/* ==========================================================================
   GIBEON BUILDERS CONSTRUCTION — Global Stylesheet
   style.css — Design tokens, reset, nav, footer, shared components
   Built by ThisUncle Technologies (www.thisuncle.co.tz)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600;1,700&family=Outfit:wght@300;400;500;600&display=swap');


/* --------------------------------------------------------------------------
   2. DESIGN TOKENS — CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-red:        #B8131A;
  --color-red-dark:   #8C0D13;
  --color-ink:        #0e0e0d;
  --color-ink-2:      #1e1e1c;
  --color-stone:      #f5f2ed;
  --color-sand:       #ede9e1;
  --color-white:      #fafaf7;
  --color-muted:      #8a8780;
  --color-border:     rgba(17, 17, 16, 0.08);

  /* Typography */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Outfit', system-ui, sans-serif;

  /* Type Scale */
  --text-xs:    0.625rem;   /* 10px */
  --text-sm:    0.75rem;    /* 12px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   2rem;       /* 32px */
  --text-4xl:   2.5rem;     /* 40px */
  --text-5xl:   3rem;       /* 48px */
  --text-6xl:   4rem;       /* 64px */
  --text-7xl:   5rem;       /* 80px */
  --text-8xl:   6rem;       /* 96px */

  /* Spacing */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;
  --space-32:   8rem;

  /* Layout */
  --container-max:    1320px;
  --nav-height:       80px;

  /* Transitions */
  --ease-smooth:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo:    cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out:      cubic-bezier(0.76, 0, 0.24, 1);
  --dur-fast:         0.2s;
  --dur-med:          0.4s;
  --dur-slow:         0.7s;
  --dur-xslow:        1.2s;

  /* Z-index Layers */
  --z-base:       1;
  --z-above:      10;
  --z-nav:        100;
  --z-modal:      200;
  --z-overlay:    300;
  --z-cursor:     9999;
}


/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* custom cursor active */
  opacity: 0; /* JS fades in */
}

body.loaded {
  opacity: 1;
  transition: opacity 0.4s ease;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: none;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
}

::selection {
  background: var(--color-red);
  color: var(--color-white);
}

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   4. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

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

.text-red { color: var(--color-red); }
.text-muted { color: var(--color-muted); }
.text-white { color: var(--color-white); }
.text-ink { color: var(--color-ink); }

.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }

/* Section label — e.g. "01 — About Us" */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-4);
}

/* Clip-path reveal wrapper */
.reveal-wrap {
  overflow: hidden;
}

/* Red text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  position: relative;
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red);
  transition: width var(--dur-med) var(--ease-smooth);
}

.text-link:hover::after {
  width: 100%;
}

/* Overflow hidden for GSAP clip-path animations */
.clip-wrap { overflow: hidden; }


/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: scale(1.02);
}

/* Primary — red filled */
.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(184, 19, 26, 0.25);
}

.btn-primary:hover {
  background: var(--color-red-dark);
  box-shadow: 0 8px 30px rgba(184, 19, 26, 0.35);
}

/* Ghost on dark — white outlined */
.btn-ghost-dark {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
}

/* Ghost on light — ink outlined */
.btn-ghost-light {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}

.btn-ghost-light:hover {
  border-color: var(--color-ink);
}

/* CTA white outlined (for dark red band) */
.btn-cta {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 1rem 2.5rem;
}

.btn-cta:hover {
  background: var(--color-white);
  color: var(--color-red-dark);
}


/* --------------------------------------------------------------------------
   6. CUSTOM CURSOR
   -------------------------------------------------------------------------- */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-red);
  transition: transform 0.1s ease, opacity 0.2s ease;
}

#cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-red);
  transition: width 0.35s var(--ease-out-expo),
              height 0.35s var(--ease-out-expo),
              border-radius 0.35s var(--ease-out-expo),
              opacity 0.2s ease;
}

/* Hover states applied via JS adding classes to ring */
#cursor-ring.hover-link {
  width: 72px;
  height: 28px;
  border-radius: 14px;
}

#cursor-ring.hover-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cursor-ring.hover-image::after {
  content: 'VIEW';
  position: absolute;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-white);
}

/* Hide native cursor on interactive elements */
a, button, [role="button"], input, textarea, select, label, .card {
  cursor: none;
}


/* --------------------------------------------------------------------------
   7. PAGE TRANSITION BAR
   -------------------------------------------------------------------------- */
#page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--color-red);
  z-index: var(--z-overlay);
  transform-origin: left center;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   8. NAVIGATION
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  /* Default: gradient ensures legibility over any hero background */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  transition: background 0.4s ease,
              backdrop-filter 0.4s ease,
              -webkit-backdrop-filter 0.4s ease,
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

#site-nav .nav-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Scrolled state — stays dark/ink, never light */
#site-nav.nav-scrolled {
  background: rgba(10, 10, 9, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}


/* ---- LOGO ---- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  position: relative;
}

/* Keep the inline SVG centred but let the clip-path do the shaping */
.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
}

/* On scrolled state logo stays white — nav stays dark, no inversion */
#site-nav.nav-scrolled .logo-name {
  color: rgba(255, 255, 255, 0.95);
}

#site-nav.nav-scrolled .logo-sub {
  color: rgba(255, 255, 255, 0.4);
}


/* ---- CENTER NAV LINKS ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  padding: 4px 0;
  transition: color 0.2s ease;
}

/* Hide the num labels — replaced by underline affordance */
.nav-link-num {
  display: none;
}

/* Red underline — grows from 0 on hover, full-width when active */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  width: 100%;
}

/* Scrolled — links remain white variants (dark nav stays dark) */
#site-nav.nav-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.72);
}

#site-nav.nav-scrolled .nav-link:hover,
#site-nav.nav-scrolled .nav-link.active {
  color: #ffffff;
}


/* ---- RIGHT ACTIONS ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Scrolled — icon buttons stay same (nav stays dark) */
#site-nav.nav-scrolled .nav-icon-btn {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
}

#site-nav.nav-scrolled .nav-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* CTA button */
.btn-nav-cta,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--color-red);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  border: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-nav-cta:hover,
.nav-cta:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 19, 26, 0.45);
  color: #ffffff;
}


/* ---- HAMBURGER (mobile) ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: calc(var(--z-nav) + 10);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Scrolled hamburger — stays white (dark nav) */
#site-nav.nav-scrolled .nav-hamburger span {
  background: #ffffff;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* --------------------------------------------------------------------------
   9. MOBILE NAV OVERLAY
   -------------------------------------------------------------------------- */
#mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-ink);
  z-index: calc(var(--z-nav) + 5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-in-out);
}

#mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: rgba(250, 250, 247, 0.3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--dur-fast) ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-white);
}

.mobile-nav-link.active {
  color: var(--color-red);
}

/* Close button inside mobile nav overlay */
.mobile-nav-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}
.mobile-nav-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.mobile-nav-close svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mobile-nav-footer {
  margin-top: var(--space-10);
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.mobile-nav-social {
  color: var(--color-muted);
  transition: color var(--dur-fast) ease;
}

.mobile-nav-social:hover {
  color: var(--color-white);
}

.mobile-nav-social svg {
  width: 20px;
  height: 20px;
}


/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */

/* CTA Band — appears before footer on every page */
.footer-cta-band {
  background: var(--color-red-dark);
  padding: var(--space-20) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-cta-band .cta-content {
  position: relative;
  z-index: 1;
}

.footer-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.footer-cta-band p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(250, 250, 247, 0.7);
  margin-bottom: var(--space-8);
  max-width: 480px;
  margin-inline: auto;
}

#site-footer {
  background: var(--color-ink);
  border-top: 3px solid var(--color-red);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: var(--space-12);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Col 1 */
.footer-brand .footer-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.footer-brand .footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
  display: block;
}

.footer-brand .footer-location {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(138, 135, 128, 0.6);
}

/* Col 2 — Quick Links */
.footer-links-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-6);
}

.footer-nav-link {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-muted);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--dur-fast) ease;
}

.footer-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red);
  transition: width var(--dur-med) var(--ease-smooth);
}

.footer-nav-link:hover {
  color: var(--color-white);
}

.footer-nav-link:hover::after {
  width: 100%;
}

/* Col 3 */
.footer-contact-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
}

.footer-contact-label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(138, 135, 128, 0.6);
  margin-bottom: var(--space-1);
}

.footer-contact-value {
  font-size: var(--text-base);
  color: var(--color-muted);
  transition: color var(--dur-fast) ease;
}

.footer-contact-value:hover {
  color: var(--color-white);
}

.footer-social-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-muted);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.footer-social-btn svg {
  width: 14px;
  height: 14px;
}

.footer-social-btn:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Footer bottom bar */
.footer-bottom {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(138, 135, 128, 0.5);
  letter-spacing: 0.06em;
}

.footer-bottom a {
  color: rgba(138, 135, 128, 0.7);
  transition: color var(--dur-fast) ease;
}

.footer-bottom a:hover {
  color: var(--color-white);
}


/* --------------------------------------------------------------------------
   11. BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-4);
}

.breadcrumb a {
  color: rgba(138, 135, 128, 0.7);
  transition: color var(--dur-fast) ease;
}

.breadcrumb a:hover {
  color: var(--color-red);
}

.breadcrumb .bc-sep {
  color: rgba(138, 135, 128, 0.4);
}

.breadcrumb .bc-current {
  color: var(--color-red);
}


/* --------------------------------------------------------------------------
   12. INNER PAGE HERO BANNER (shared base)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 50vh;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-16) var(--space-8) var(--space-12) var(--space-8);
  background: var(--color-ink);
  position: relative;
}

.page-hero-image {
  position: relative;
  overflow: hidden;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: var(--space-6);
}

/* Red animated underline (JS draws it) */
.title-underline-wrap {
  position: relative;
  display: inline-block;
}

.title-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--color-red);
  transition: width 0.8s var(--ease-out-expo) 0.8s;
}

.title-underline.drawn {
  width: 100%;
}


/* --------------------------------------------------------------------------
   13. SECTION COUNTER
   -------------------------------------------------------------------------- */
.section-counter {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-2);
  user-select: none;
}

.section-counter.light {
  color: rgba(250, 250, 247, 0.06);
}


/* --------------------------------------------------------------------------
   14. STATS ROW (shared component)
   -------------------------------------------------------------------------- */
.stats-band {
  background: var(--color-red-dark);
  padding: var(--space-12) var(--space-8);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: var(--container-max);
  margin-inline: auto;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: var(--space-6);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.6);
}


/* --------------------------------------------------------------------------
   15. SCROLLBAR STYLING
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-ink);
}

::-webkit-scrollbar-thumb {
  background: var(--color-red);
  border-radius: 3px;
}


/* --------------------------------------------------------------------------
   16. RESPONSIVE — BREAKPOINTS
   -------------------------------------------------------------------------- */

/* 1024px — compact desktop/ large tablet */
@media (max-width: 1024px) {
  .container {
    padding-inline: var(--space-6);
  }

  .nav-links {
    gap: var(--space-6);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-grid .footer-contact-col {
    grid-column: span 2;
  }
}

/* 900px — tablet/mobile nav breakpoint */
@media (max-width: 900px) {
  .nav-links,
  .nav-actions .btn-nav-cta,
  .nav-actions .btn-nav-cta ~ *,
  .nav-actions .nav-icon-btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* 768px — tablet */
@media (max-width: 768px) {

  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-hero-image {
    height: 40vw;
    min-height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-grid .footer-contact-col {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  .stats-row {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* --------------------------------------------------------------------------
   BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: var(--z-overlay);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s, transform 0.35s, background 0.2s, box-shadow 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(184, 19, 26, 0);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(184, 19, 26, 0.4);
}
#back-to-top:hover {
  background: var(--color-red-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(184, 19, 26, 0.5);
}
@media (max-width: 768px) {
  #back-to-top {
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* 480px — mobile */
@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding-inline: var(--space-4);
  }

  .footer-cta-band {
    padding: var(--space-12) var(--space-4);
  }

  .stat-item {
    flex: 100%;
  }
}
