/* ============================================================
   ETHERIDGE CONSTRUCTION LTD — Design System
   Brand teal derived from logo: #447878
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  --teal:         #447878;
  --teal-dark:    #2e5555;
  --teal-darker:  #1e3838;
  --teal-light:   #5a9292;
  --teal-pale:    #eaf2f2;

  --amber:        #c07830;
  --amber-light:  #d4903e;
  --amber-pale:   #fdf3e7;

  --cream:        #f7f4ef;
  --cream-dark:   #ede9e2;
  --white:        #ffffff;

  --charcoal:     #1a2828;
  --charcoal-mid: #243434;
  --slate:        #4a5c5c;
  --slate-light:  #7a8e8e;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --shadow-sm:   0 1px 3px rgba(26,40,40,.06), 0 2px 8px rgba(26,40,40,.06);
  --shadow-card: 0 1px 3px rgba(26,40,40,.05), 0 4px 14px rgba(26,40,40,.08), 0 12px 28px rgba(26,40,40,.05);
  --shadow-lg:   0 2px 6px rgba(26,40,40,.07), 0 8px 24px rgba(26,40,40,.10), 0 24px 48px rgba(26,40,40,.07);

  --radius:    4px;
  --radius-lg: 10px;
  --radius-xl: 16px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
address { font-style: normal; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

#navbar.scrolled {
  background: var(--charcoal);
  box-shadow: 0 2px 24px rgba(26,40,40,.45);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.nav-logo:hover img { opacity: 1; }
.nav-logo:focus-visible { outline: 2px solid var(--amber-light); outline-offset: 4px; border-radius: 2px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber-light);
  transition: width 0.25s ease;
}

.nav-link:hover             { color: #fff; }
.nav-link:hover::after      { width: 100%; }
.nav-link:focus-visible     { outline: 2px solid var(--amber-light); outline-offset: 4px; border-radius: 2px; }

.nav-cta {
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  padding: 0.625rem 1.375rem;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #fff;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.nav-hamburger:hover       { background: rgba(255,255,255,.1); }
.nav-hamburger:focus-visible { outline: 2px solid var(--amber-light); }

@media (min-width: 1024px) { .nav-hamburger { display: none; } }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--charcoal-mid);
  border-top: 1px solid rgba(255,255,255,.07);
}
.mobile-menu.open { display: flex; }

.mobile-menu-link {
  padding: 1rem 1.5rem;
  color: rgba(255,255,255,.8);
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-menu-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.mobile-menu-link--cta  { color: var(--amber-light); font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(192,120,48,.28), 0 6px 20px rgba(192,120,48,.14);
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(192,120,48,.4), 0 10px 28px rgba(192,120,48,.18);
}
.btn-primary:active  { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--amber-light); outline-offset: 3px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-2px);
}
.btn-ghost:active  { transform: translateY(0); }
.btn-ghost:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 3px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--teal);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ============================================================
   HERO
   ============================================================ */

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../project_images/Image1-mobile.webp');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease;
}

@media (min-width: 769px) {
  .hero-bg {
    background-image: url('../project_images/Image1.webp');
  }
}

#hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26,40,40,.72) 0%,
    rgba(26,40,40,.48) 45%,
    rgba(26,40,40,.80) 100%
  );
}

.hero-color-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 25% 40%, rgba(68,120,120,.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 75% 75%, rgba(192,120,48,.12) 0%, transparent 55%);
  mix-blend-mode: screen;
}

.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-content { max-width: 640px; }
.hero-logo { height: 128px; width: auto; display: block; margin: 0 auto 1.75rem; opacity: 0.95; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3)) drop-shadow(0 2px 12px rgba(0,0,0,0.25)); }

.hero-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.625rem, 6.5vw, 5.25rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.035em;
  line-height: 1.0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3), 0 2px 12px rgba(0,0,0,0.25), 0 0 30px rgba(0,0,0,0.2);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.88);
  margin-bottom: 2.25rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Trust bar */
.trust-bar {
  position: relative;
  z-index: 2;
  background: rgba(26,40,40,.72);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.09);
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .trust-bar-inner { grid-template-columns: repeat(4, 1fr); }
}

.trust-stat {
  padding: 1.375rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
}
.trust-stat:last-child { border-right: none; }

@media (max-width: 767px) {
  .trust-stat:nth-child(2) { border-right: none; }
  .trust-stat:nth-child(3) { border-right: 1px solid rgba(255,255,255,.07); }
}

.trust-num {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
}

.trust-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 0.3rem;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */

.section-pad { padding: 5rem 1.5rem; }
@media (min-width: 1024px) { .section-pad { padding: 7rem 1.5rem; } }

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

.section-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  display: block;
  margin-bottom: 0.875rem;
}

.section-eyebrow--light {
  color: var(--teal-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-title--light { color: #fff; }

.divider {
  width: 44px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin-bottom: 1.375rem;
}

.divider--center { margin-left: auto; margin-right: auto; }

.section-intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--slate);
}

/* ============================================================
   ABOUT
   ============================================================ */

#about { background: var(--cream); }

.about-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-img-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: 1.5rem;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.about-badge-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.about-badge-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  display: block;
  margin-top: 0.3rem;
}

.about-body {
  padding-bottom: 1rem;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate);
  margin-top: 1.25rem;
  margin-bottom: 1.125rem;
}

.accred-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.75rem 0 2.25rem;
}

.accred-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 0.875rem;
  border: 1.5px solid rgba(68,120,120,.3);
  border-radius: 999px;
  background: rgba(68,120,120,.05);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal-dark);
}

/* ============================================================
   SERVICES
   ============================================================ */

#services {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 55%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(68,120,120,.12) 0%, transparent 70%);
  pointer-events: none;
}

#services::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 45%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(192,120,48,.07) 0%, transparent 65%);
  pointer-events: none;
}

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-subtitle {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 520px;
  margin: 0.875rem auto 0;
}

.services-grid {
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.875rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(68,120,120,.28);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--teal-light);
  margin-bottom: 1.125rem;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.5rem;
}

.service-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--amber-light);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.service-cta:hover { gap: 0.625rem; opacity: .85; }
.service-cta:focus-visible { outline: 2px solid var(--amber-light); outline-offset: 3px; border-radius: 2px; }

/* ============================================================
   PROJECTS
   ============================================================ */

#projects { background: var(--cream-dark); }

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .projects-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.4375rem 1.125rem;
  border-radius: 999px;
  border: 1.5px solid rgba(68,120,120,.28);
  color: var(--slate);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.filter-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.projects-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px)  { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--charcoal);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-card img {
  width: 100%;
  height: 268px;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.project-card:hover img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,40,40,.88) 0%,
    rgba(26,40,40,.25) 55%,
    transparent 100%
  );
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.375rem 1.25rem;
}

.project-cat {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-light);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-loc {
  font-size: 0.75rem;
  color: rgba(255,255,255,.58);
  margin-top: 0.25rem;
}

/* ============================================================
   TEAM
   ============================================================ */

#team { background: var(--cream); }

.team-intro-text {
  max-width: 560px;
  margin-top: 1rem;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .team-card {
    flex-direction: row;
  }
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .team-photo {
    width: 330px;
    height: 330px;
  }
}

.team-photo--john {
  object-position: center 19%;
}

.team-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.team-role {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0.3rem 0 0.875rem;
}

.team-bio {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--slate);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

#testimonials {
  background: linear-gradient(145deg, var(--teal-darker) 0%, var(--teal-dark) 100%);
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -15%;
  width: 65%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(68,120,120,.18) 0%, transparent 65%);
  pointer-events: none;
}

#testimonials .section-eyebrow {
  display: block;
  margin-bottom: 0.875rem;
}

.testimonials-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 0.6;
  color: var(--amber-light);
  opacity: 0.35;
  font-weight: 700;
  display: block;
  margin-bottom: 1.25rem;
}

.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; }

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.375rem);
  font-style: italic;
  color: rgba(255,255,255,.9);
  line-height: 1.72;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.testimonial-author {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-light);
}

.testimonial-project {
  font-size: 0.78125rem;
  color: rgba(255,255,255,.45);
  margin-top: 0.2rem;
}

.testimonial-stars {
  color: var(--amber-light);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.875rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.dot.active {
  background: var(--amber-light);
  transform: scale(1.3);
}

.dot:focus-visible { outline: 2px solid rgba(255,255,255,.5); outline-offset: 3px; }

/* ============================================================
   CONTACT
   ============================================================ */

#contact { background: var(--cream); }

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .contact-form-card { padding: 2.5rem 2.5rem; }
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 480px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--charcoal);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(68,120,120,.2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(68,120,120,.13);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select { appearance: none; cursor: pointer; }

.form-submit-wrap { margin-top: 1.5rem; }
.form-submit-wrap .btn-primary { width: 100%; justify-content: center; }

.contact-intro { margin-bottom: 3rem; }

#contact .section-intro {
  margin-top: 0.875rem;
  max-width: 520px;
}

.contact-details { padding-top: 0.5rem; }

.contact-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.025em;
  margin-bottom: 0.625rem;
}

.contact-sub {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.contact-item-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-item-val {
  font-size: 0.9375rem;
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.5;
}

a.contact-item-val:hover { color: var(--teal); }

.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(68,120,120,.15);
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
}

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.social-link:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

.social-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.5);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  height: 44px;
  width: auto;
  opacity: 0.8;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,.42);
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 0.625rem;
  transition: color 0.2s ease;
}

.footer-link:hover { color: rgba(255,255,255,.85); }
.footer-link:focus-visible { outline: 2px solid rgba(255,255,255,.4); outline-offset: 3px; border-radius: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom a {
  color: var(--teal-light);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--teal-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.footer-bottom a:hover { color: #fff; }
.footer-bottom a:hover::after { transform: scaleX(1); background: #fff; }
.footer-bottom a:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 3px; border-radius: 2px; }

/* ============================================================
   SCROLL ANIMATIONS
   Only applied when JS has loaded (body.js-ready class).
   Elements are always visible without JS.
   ============================================================ */

.js-ready .fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .fade-up:nth-child(2) { transition-delay: 0.08s; }
.js-ready .fade-up:nth-child(3) { transition-delay: 0.16s; }
.js-ready .fade-up:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   UTILITIES
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Cookie/response notice */
.form-notice {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-notice--success {
  background: rgba(68,120,120,.1);
  color: var(--teal-dark);
  border: 1px solid rgba(68,120,120,.25);
}

.form-notice--error {
  background: rgba(180,50,50,.07);
  color: #8b2323;
  border: 1px solid rgba(180,50,50,.25);
}

/* Inline field error message */
.form-error {
  display: none;
  font-size: 0.78rem;
  font-weight: 500;
  color: #b03030;
  margin-top: 0.15rem;
}

/* Input invalid state */
.form-input--error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,.12) !important;
}

/* Honeypot — off-screen, invisible to real users; bots will fill it in */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}
