* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* —— Header Layout & Nav Link Styles —— */
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;           /* white links on dark header */
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover {
  text-decoration: underline;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.navbar {
  background-color: #003366;
  color: #fff;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
}

.hero {
  background: linear-gradient(to right, #003366, #004c99);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-buttons .btn {
  display: inline-block;
  background: #e4572e;
  color: #fff;
  padding: 0.75rem 1.5rem;
  margin: 1rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
}

.btn-alt {
  background: #fff;
  color: #003366;
  border: 2px solid #003366;
}

.overview {
  padding: 4rem 0;
  background-color: #f4f4f4;
}

.three-columns {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.column {
  flex: 1;
}

.highlight {
  padding: 4rem 0;
}

.highlight-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.highlight ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* ——— Offices Maps ——— */
.offices .three-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.offices .column {
  flex: 1 1 300px;
  max-width: 350px;
  margin-bottom: 2rem;

  /* Center content inside each column */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.map-container {
  margin: 1rem auto 0;
  width: 100%;
  height: 220px;
  border-radius: 4px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ——— Contact Form Styling ——— */
.form-section {
  background: #fff;
  padding: 4rem 0;
}

.section-title {
  font-size: 1.75rem;
  color: #003366;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  font-weight: 500;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #003366;
  box-shadow: 0 0 5px rgba(0, 51, 102, 0.3);
  outline: none;
}

.contact-form button {
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  background-color: #e4572e;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #c94525;
}

/* ——— Email line & note ——— */
.email-line,
.form-note {
  text-align: center;
  margin-top: 1.5rem;
  color: #555;
}

.email-line a {
  color: #003366;
  font-weight: 600;
  text-decoration: none;
}

.email-line a:hover {
  text-decoration: underline;
}

.logo img {
  max-height: 80px;       /* adjust as needed */
  width: auto;
  display: block;
}

/* Ensure logo link doesn’t inherit default link styles */
.logo {
  display: inline-block;
}
.logo img {
  vertical-align: middle;
}   

/* Keep the logo link flush and vertically centered */
.navbar .logo {
  margin: 0;              /* remove any default spacing */
  padding: 0;             /* remove default padding */
  display: flex;          /* turn the link into a flex container */
  align-items: center;    /* vertically center its contents */
}

/* Ensure the logo image itself has no extra spacing */
.navbar .logo img {
  display: block;         /* drop any inline-image quirks */
  margin: 0;              /* no auto margins */
  padding: 0;             /* no extra padding */
  max-height: 50px;       /* cap the height so it sits flush in your nav */
  width: auto;            /* maintain its proportions */
}

/* Make the logo container align image + text */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;           /* spacing between logo and text */
}

/* Style the text next to your logo */
.logo-text {
  font-size: 1.25rem;    /* tweak to taste */
  font-weight: 700;
  color: #fff;           /* or #003366 to match your palette */
  line-height: 1;
}

/* —— Core Values Cards —— */
.values .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 2rem;
  padding: 4rem 0;
}
.values .card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform .3s, box-shadow .3s;
}
.values .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.values .card img {
  height: 48px;
  margin-bottom: 1rem;
}
.values .card h4 {
  margin-bottom: .5rem;
  color: #003366;
  font-size: 1.1rem;
}
.values .card p {
  font-size: 0.95rem;
  color: #555;
}

/* —— Why Alfa Group Tabs (Centered, No Bullets) —— */
.why .tab-list {
  list-style: none !important;           /* remove default bullets */
  list-style-type: none !important;
  padding: 0 !important;                 /* remove default padding */
  margin: 0 auto 1.5rem !important;      /* center the UL and add bottom spacing */
  display: flex;
  justify-content: center;               /* center the tabs horizontally */
  gap: 1rem;                             /* space between each tab */
}

/* remove any markers on list items */
.why .tab-list li {
  list-style: none !important;           /* ensure list items have no bullets */
  list-style-type: none !important;
  margin: 0;                             /* reset any margin */
  padding: 0.5rem 1rem;
  background: #f4f4f4;
  border-radius: 4px;
  transition: background 0.3s;
}

/* explicit removal of marker pseudo-element */
.why .tab-list li::marker {
  content: none;
}

.why .tab-list li.active {
  background: #003366;
  color: #fff;
}

/* Center tab content text */
.why .tab-content > div {
  display: none;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

.why .tab-content > div.active {
  display: block;
}

/* —— Why Alfa Group Tabs: remove bullets & center —— */
.why ul.tab-list {
  list-style: none !important;          /* kill default bullets */
  padding: 0 !important;                /* remove any padding */
  margin: 0 auto 1.5rem !important;     /* center the list, add bottom space */
  display: flex;
  justify-content: center;              /* horizontally center the tabs */
  gap: 1rem;                            /* space between each tab */
}

/* also nuke markers on the LIs themselves */
.why ul.tab-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0.5rem 1rem;
  background: #f4f4f4;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

/* remove any ::marker fallback */
.why ul.tab-list li::marker {
  content: none !important;
}

.why ul.tab-list li.active {
  background: #003366;
  color: #fff;
}

/* center the tab-content text under the pills */
.why .tab-content > div {
  text-align: center;
}

/* —— Why Alfa Group Tabs: centered pills, no bullets —— */
.why .tab-list {
  list-style: none;                /* remove default bullets */
  padding: 0;                       /* remove default padding */
  margin: 0 auto 1.5rem;            /* center the UL and add bottom spacing */
  display: flex;
  justify-content: center;          /* center the tabs horizontally */
  gap: 1rem;                        /* space between each tab */
}

.why .tab-list li {
  list-style: none;                 /* ensure list items have no bullets */
  margin: 0;                        /* reset any margin */
  padding: 0.5rem 1rem;
  background: #f4f4f4;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.why .tab-list li::marker {
  content: none;                    /* remove any marker fallback */
}

.why .tab-list li.active {
  background: #003366;
  color: #fff;
}

/* —— Tab content typography —— */
.why .tab-content > div {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;              /* slightly larger text */
  font-weight: 400;
  line-height: 1.8;                 /* more breathing room */
  color: #333;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.why .tab-content > div.active {
  display: block;
} 

/* —— Projects Hero with Image —— */
.project-hero {
  padding: 4rem 0;
}
.project-hero .two-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.project-hero .text {
  flex: 1 1 300px;
}
.project-hero .image {
  flex: 1 1 300px;
  text-align: center;
}
.project-hero .image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* —— Process Infographic Section —— */
.process-infographic {
  padding: 4rem 0;
  background: #fff;
  text-align: center;
}
.process-infographic h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: #003366;
}
.process-infographic img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 4px;
}

/* —— Projects Hero Feature List —— */
.project-hero .feature-list {
  list-style: disc;
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
}
.project-hero .feature-list li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* —— Our Journey, Our Vision —— */
.journey-vision {
  position: relative;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}
.journey-vision::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.journey-vision .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
}
.journey-vision h3 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.journey-vision p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.journey-vision .btn {
  background: #e4572e;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.3s;
}
.journey-vision .btn:hover {
  background: #c94525;
}

/* —— Our Services —— */
.services {
  background: #f9f9f9;
  padding: 6rem 0;
}
.services h3 {
  text-align: center;
  font-size: 2rem;
  color: #003366;
  margin-bottom: 2rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.service-card h4 {
  font-size: 1.25rem;
  color: #e4572e;
  margin-bottom: 1rem;
}
.service-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}


/* —— Why Alfa Group Tabs: boxed tabs & fixed content box —— */
.why .tab-list {
  list-style: none;                /* remove default bullets */
  padding: 0;                      /* remove default padding */
  margin: 0 auto 1.5rem;           /* center the list and add bottom spacing */
  display: flex;
  justify-content: center;         /* center the tabs horizontally */
  gap: 1rem;                       /* space between each tab */
}

.why .tab-list li {
  list-style: none;                /* ensure no bullets on list items */
  margin: 0;                       /* reset any margin */
  padding: 0.75rem 1.25rem;        /* larger hit area */
  background: #fff;                /* white background for box effect */
  border: 2px solid #003366;      /* blue border around each tab */
  border-radius: 6px;              /* slightly rounder corners */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.why .tab-list li.active {
  background: #003366;             /* filled blue for active */
  color: #fff;
  transform: translateY(-2px);     /* slight lift on active tab */
}

/* —— Content Box —— */
.why .tab-content {
  background: #fff;                /* white box */
  border: 1px solid #ccc;          /* light grey border */
  border-radius: 6px;
  padding: 1.5rem;
  min-height: 140px;               /* fixed height for consistent layout */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-top: 1rem;
}

.why .tab-content > div {
  display: none;                   /* hide all by default */
}

.why .tab-content > div.active {
  display: block;                  /* show only the active panel */
}

/* —— Sticky footer layout —— */
html, body {
  height: 100%;          /* allow body to fill viewport */
  margin: 0;             /* reset default margins */
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;     /* full-height container */
}

/* make the main content grow to fill available space */
.site-content {
  flex: 1;
}

.form-section .email-line {
  margin-bottom: 3rem;
}

/* Hide toggle on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hamburger lines */
.hamburger, 
.hamburger::before, 
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  position: relative;
  transition: transform .3s ease;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after  { top: 6px; }

/* —— Mobile navigation —— */
@media (max-width: 768px) {
  /* Show hamburger toggle */
  .nav-toggle {
    display: block;
  }
  /* Hide nav by default */
  .nav-links {
    display: none;
    flex-direction: column;
    background: #003366;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  /* Show nav when open */
  .nav-links.open {
    display: flex;
  }
  /* Style nav items */
  .nav-links li {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links li:first-child {
    border-top: none;
  }
}

/* Collapse any 3-column layout into one column on small screens */
@media (max-width: 768px) {
  .three-columns,
  .services-grid,
  .values .grid {
    display: grid;                           /* switch to CSS Grid */
    grid-template-columns: 1fr;              /* one column only */
    gap: 1.5rem;                             /* vertical spacing */
  }

  /* Make sure your hero/other two-column sections also stack */
  .two-columns {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}
/* in css/style.css */
.navbar {
  position: relative;
}
.nav-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.nav-links.open {
  max-height: 500px;  /* or whatever comfortably fits your menu */
}

/* —— Desktop Navigation Override —— */
@media (min-width: 769px) {
  /* Always show the nav links in a row */
  .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    background: none !important;
    width: auto !important;
  }

  /* Hide the hamburger toggle */
  .nav-toggle {
    display: none !important;
  }
}

/* —— Consolidated Navigation (Desktop + Mobile) —— */
.navbar {
  position: relative;
  background-color: #003366;
  padding: 1rem 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Desktop: show links, hide hamburger */
.nav-toggle {
  display: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover {
  text-decoration: underline;
}

/* Hamburger icon bars */
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  position: relative;
  transition: transform 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after  { top: 6px; }

/* Mobile styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #003366;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links li:first-child {
    border-top: none;
  }
}

/* Desktop override */
@media (min-width: 769px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
    position: static !important;
  }
}

/* —— Restore Desktop Nav & Style Header —— */
@media (min-width: 769px) {
  /* Header background & layout */
  .navbar {
    background-color: #003366;       /* dark blue bar */
  }
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Show the nav links inline */
  .nav-links {
    display: flex !important;
    flex-direction: row;
    gap: 2rem;
    margin: 0;
    padding: 0;
    position: static !important;
    background: none !important;
  }

  /* Hide the hamburger toggle */
  .nav-toggle {
    display: none !important;
  }

  /* Style the links so they’re visible */
  .nav-links a {
    color: #fff;                     /* white text */
    font-weight: 500;
    text-decoration: none;
  }
  .nav-links a:hover {
    text-decoration: underline;
  }
}

/* —— Force‐show Desktop Nav Links —— */
@media (min-width: 769px) {
  /* Make sure the <nav> wrapper is visible */
  header.navbar nav {
    display: block !important;
    position: static !important;
  }

  /* Force the UL into a horizontal list */
  header.navbar .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* And each <li> as an inline block */
  header.navbar .nav-links li {
    display: inline-block !important;
    margin: 0 !important; /* use gap on UL, not margins on LI */
  }

  /* Ensure the links themselves are white and clickable */
  header.navbar .nav-links a {
    color: #fff !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 0 !important;
  }
  header.navbar .nav-links a:hover {
    text-decoration: underline !important;
  }

  /* Completely hide the hamburger on desktop */
  header.navbar .nav-toggle {
    display: none !important;
  }
}

/* ——— FINAL OVERRIDE: DESKTOP NAV FIX ——— */
@media (min-width: 769px) {
  /* keep header visible above hero */
  .navbar {
    position: relative;
    z-index: 9999;
    background: #003366;   /* dark blue bar */
  }

  /* make nav visible and full-width */
  .navbar nav {
    display: block !important;
    position: static !important;
  }

  /* UL should lay out items horizontally */
  .navbar .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* show every <li> */
  .navbar .nav-links li {
    display: inline-block !important;
  }

  /* ensure links are white & readable */
  .navbar .nav-links a {
    color: #fff !important;
    font-weight: 500 !important;
    text-decoration: none !important;
  }
  .navbar .nav-links a:hover {
    text-decoration: underline !important;
  }

  /* hide hamburger on desktop */
  .navbar .nav-toggle {
    display: none !important;
  }
}
/* —— Desktop nav must NOT be collapsed —— */
@media (min-width: 769px) {
  .nav-links {
    max-height: none !important;   /* allow natural height */
    overflow: visible !important;  /* no clipping */
  }
}

/* ===== FINAL TWEAKS ===== */

/* 1. Make burger sit flush right */
.nav-toggle { margin-left: auto; }

/* 2. About-page tab row wraps on small phones */
@media (max-width: 480px) {
  .why .tab-list { 
    flex-wrap: wrap; 
    gap: .5rem; 
  }
  .why .tab-list li { 
    flex: 1 1 120px; 
  }
}

/* 3. Nicer mobile-menu panel */
@media (max-width: 768px) {
  .nav-links {
    border-top: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 6px 12px rgba(0,0,0,.25);
  }
  .nav-links li { 
    border: none;            /* remove old separators */
  }
  .nav-links a {
    padding: 1rem 1.25rem;   /* comfy tap zone */
    font-size: 1.1rem;
  }
}

/* Desktop: Still force nav visible */
@media (min-width: 769px) {
  .nav-links { max-height: none !important; overflow: visible !important; }
}