/* ============================================================
   S7 Builders — Main Stylesheet
   Design System, Layout, Header, Footer, Hero
   ============================================================ */

/* -----------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   ----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* -----------------------------------------------------------
   2. CUSTOM PROPERTIES (DESIGN TOKENS)
   ----------------------------------------------------------- */
:root {
  /* Brand Colors */
  --c-blue:        #0976BD;
  --c-blue-dark:   #065A9A;
  --c-blue-light:  #E8F4FD;
  --c-green:       #57B947;
  --c-green-dark:  #43A135;
  --c-green-light: #EDF7EB;
  --c-white:       #FFFFFF;
  --c-light:       #F8FAFC;
  --c-light-2:     #F1F5F9;
  --c-dark:        #1F2937;
  --c-dark-2:      #111827;
  --c-gray-700:    #374151;
  --c-gray-500:    #6B7280;
  --c-gray-300:    #D1D5DB;
  --c-gray-200:    #E5E7EB;
  --c-gray-100:    #F3F4F6;

  /* Gradients */
  --g-brand:       linear-gradient(135deg, #0976BD 0%, #57B947 100%);
  --g-brand-r:     linear-gradient(135deg, #57B947 0%, #0976BD 100%);
  --g-hero:        linear-gradient(135deg, rgba(9,118,189,0.96) 0%, rgba(6,90,154,0.92) 50%, rgba(31,41,55,0.98) 100%);
  --g-dark:        linear-gradient(135deg, #1F2937 0%, #111827 100%);
  --g-card:        linear-gradient(180deg, transparent 0%, rgba(31,41,55,0.9) 100%);

  /* Typography */
  --font-heading:  'Poppins', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  /* Font Sizes — fluid */
  --fs-xs:    clamp(0.75rem, 1.5vw, 0.875rem);
  --fs-sm:    clamp(0.875rem, 1.8vw, 1rem);
  --fs-base:  clamp(1rem, 2vw, 1.125rem);
  --fs-lg:    clamp(1.125rem, 2.2vw, 1.25rem);
  --fs-xl:    clamp(1.25rem, 2.5vw, 1.5rem);
  --fs-2xl:   clamp(1.5rem, 3vw, 2rem);
  --fs-3xl:   clamp(2rem, 4vw, 2.5rem);
  --fs-4xl:   clamp(2.5rem, 5vw, 3.5rem);
  --fs-5xl:   clamp(3rem, 6vw, 4.5rem);

  /* Font Weights */
  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;
  --fw-black:     900;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --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;

  /* Border Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   20px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 2px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 12px 24px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 24px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
  --shadow-2xl: 0 40px 80px rgba(0,0,0,0.16);
  --shadow-blue: 0 8px 24px rgba(9,118,189,0.3);
  --shadow-green: 0 8px 24px rgba(87,185,71,0.3);

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.3s ease;
  --t-slow:   0.5s ease;
  --t-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max:     1400px;
  --container-pad:     clamp(1.25rem, 5vw, 4rem);
  --header-h:          98px;
  --section-pad:       clamp(4rem, 8vw, 7rem);

  /* Z-Index */
  --z-base:     1;
  --z-card:     10;
  --z-sticky:   100;
  --z-overlay:  200;
  --z-modal:    300;
  --z-toast:    400;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: 1.7;
  color: var(--c-gray-700);
  background-color: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--c-dark);
}

p {
  line-height: 1.75;
}

/* -----------------------------------------------------------
   4. LAYOUT SYSTEM
   ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1600px;
}

.section {
  padding-block: var(--section-pad);
}

.section--light {
  background: var(--c-light);
}

.section--dark {
  background: var(--g-dark);
  color: var(--c-white);
}

.section--blue {
  background: var(--c-blue);
  color: var(--c-white);
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

@media (min-width: 768px) {
  .grid-2-exact { grid-template-columns: repeat(2, 1fr); }
  .grid-3-exact { grid-template-columns: repeat(3, 1fr); }
  .grid-4-exact { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* -----------------------------------------------------------
   5. SECTION HEADER
   ----------------------------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--g-brand);
  border-radius: var(--r-full);
}

.section-label--white {
  color: rgba(255,255,255,0.8);
}

.section-label--white::before {
  background: var(--c-white);
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--c-dark);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-title span {
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title--white {
  color: var(--c-white);
}

.section-title--white span {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #57B947, #a8e89c);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-desc {
  font-size: var(--fs-lg);
  color: var(--c-gray-500);
  max-width: 640px;
  line-height: 1.8;
}

.section-desc--white {
  color: rgba(255,255,255,0.75);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-label {
  justify-content: center;
}

.section-header--center .section-desc {
  margin-inline: auto;
}

/* -----------------------------------------------------------
   6. HEADER / NAVIGATION
   ----------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--t-base), box-shadow var(--t-base), height var(--t-base);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
  height: 98px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.scrolled .nav-link {
  color: var(--c-dark);
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 90px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}

/* White logo when header is transparent (over dark hero) */
.site-header:not(.scrolled) .logo-img {
  filter: brightness(0) invert(1);
}

.footer-brand .logo-img {
  height: 98px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.92);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--g-brand);
  border-radius: var(--r-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

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

.site-header.scrolled .nav-link:hover {
  color: var(--c-blue);
  background: var(--c-blue-light);
}

.nav-link.active {
  color: var(--c-green);
}

.site-header.scrolled .nav-link.active {
  color: var(--c-blue);
}

/* Nav CTA */
.nav-cta {
  margin-left: var(--space-4);
  background: var(--g-brand);
  color: var(--c-white) !important;
  padding: 0.625rem 1.25rem !important;
  border-radius: var(--r-full) !important;
  font-weight: var(--fw-semibold) !important;
  box-shadow: var(--shadow-blue);
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(9,118,189,0.4);
  opacity: 0.95;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--r-md);
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background var(--t-fast);
}

.site-header.scrolled .hamburger {
  background: var(--c-blue-light);
  border-color: var(--c-gray-200);
}

.hamburger:hover {
  background: rgba(255,255,255,0.2);
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--c-white);
  border-radius: var(--r-full);
  transition: transform var(--t-base), opacity var(--t-fast), width var(--t-base);
  transform-origin: center;
}

.site-header.scrolled .hamburger-line {
  background: var(--c-blue);
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 1023px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform var(--t-slow) cubic-bezier(0.77,0,0.175,1);
    z-index: var(--z-overlay);
    padding: var(--space-8);
  }

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

  .nav-link {
    font-size: 1.25rem;
    font-weight: var(--fw-semibold);
    padding: var(--space-4) var(--space-8);
    color: rgba(255,255,255,0.9);
    width: 100%;
    text-align: center;
    border-radius: var(--r-lg);
  }

  .nav-link::after { display: none; }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(9,118,189,0.2);
    color: var(--c-white);
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
    padding: var(--space-4) var(--space-8) !important;
  }

  .hamburger {
    display: flex;
  }

  .site-header.scrolled .nav {
    top: 68px;
  }
}

/* -----------------------------------------------------------
   7. HERO SECTION
   ----------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--c-dark-2);
}

/* Slider track — simple container, no flex magic */
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Each slide covers the hero fully, hidden by default */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  overflow: hidden;
}

/* Only the active slide is visible */
.hero-slide.active {
  opacity: 1;
  pointer-events: all;
}

/* Slide background variants */
.slide-bg-1 { background: linear-gradient(135deg, rgba(9,118,189,0.96) 0%, rgba(6,90,154,0.92) 50%, rgba(31,41,55,0.98) 100%); }
.slide-bg-2 { background: linear-gradient(135deg, #065a9a 0%, #0976BD 45%, #1a5e15 100%); }
.slide-bg-3 { background: linear-gradient(135deg, #0d1f3c 0%, #1a3a60 50%, #065a9a 100%); }

/* Slider arrow buttons */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.35);
  color: #ffffff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
  padding: 0;
}
.slider-arrow:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: clamp(1rem, 3vw, 2.5rem); }
.slider-next { right: clamp(1rem, 3vw, 2.5rem); }

/* Dot indicators */
.slider-dots {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.45);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: width 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.slider-dot.active {
  width: 28px;
  background: var(--c-green);
  border-color: var(--c-green);
}

/* Autoplay progress bar */
.slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.12);
  z-index: 10;
}
.slider-progress-fill {
  height: 100%;
  width: 0;
  background: var(--c-green);
  transition: width 5s linear;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--g-hero);
  z-index: 1;
}

/* Geometric pattern overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(87,185,71,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87,185,71,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Animated orbs */
.hero-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  right: -100px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(87,185,71,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroOrb 8s ease-in-out infinite alternate;
}

@keyframes heroOrb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, -30px) scale(1.1); }
}

/* Container fills the slide and centres content vertically */
.hero-slide > .container {
  height: 100%;
  display: flex;
  align-items: center;
  /* top padding clears the sticky header so nothing overlaps the logo */
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: 5rem; /* room for dots */
  box-sizing: border-box;
}

/* Two-column layout: left = text, right = image */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ---- Right-side image column ---- */
.hero-img-wrap {
  position: relative;
}

/* The image frame — SVG illustration fills it completely */
.hero-slide-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.45);
  display: block;
}

.hero-slide-img > svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Green floating badge bottom-left */
.hero-img-badge {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: var(--c-green);
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.82rem;
  box-shadow: 0 10px 28px rgba(87,185,71,0.5);
  line-height: 1.3;
  white-space: nowrap;
  z-index: 2;
}

.hero-img-badge strong {
  display: block;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
}

/* Top-right decorative corner border */
.hero-img-wrap::after {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 2px solid rgba(87,185,71,0.4);
  pointer-events: none;
  z-index: 0;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  background: var(--c-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-black);
  color: var(--c-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  max-width: 800px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #57B947 0%, #a8e89c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-xl);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin-bottom: var(--space-10);
  line-height: 1.7;
  font-weight: var(--fw-regular);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: heroScroll 2s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
}

@keyframes heroScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* Hero Stats Bar */
.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-1);
}

.hero-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

/* -----------------------------------------------------------
   8. PAGE HERO (Inner Pages)
   ----------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  background: var(--g-hero);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(87,185,71,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87,185,71,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero--light::after {
  background: var(--c-light);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--c-white);
}

.page-hero-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-black);
  color: var(--c-white);
  margin-bottom: var(--space-4);
}

.page-hero-desc {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-inline: auto;
}

/* -----------------------------------------------------------
   9. FOOTER
   ----------------------------------------------------------- */
.site-footer {
  background: var(--c-dark-2);
  color: var(--c-white);
  padding-top: clamp(4rem, 8vw, 6rem);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1023px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: var(--space-5);
}


.footer-desc {
  color: rgba(255,255,255,0.55);
  font-size: var(--fs-sm);
  line-height: 1.8;
  max-width: 320px;
  margin-bottom: var(--space-6);
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}

.social-link:hover {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--g-brand);
  border-radius: var(--r-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-sm);
  transition: color var(--t-fast), padding-left var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-link::before {
  content: '›';
  color: var(--c-green);
  font-size: 1.1em;
  transition: transform var(--t-fast);
}

.footer-link:hover {
  color: var(--c-white);
  padding-left: var(--space-1);
}

.footer-link:hover::before {
  transform: translateX(2px);
}

.footer-contact-item {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: rgba(255,255,255,0.55);
  font-size: var(--fs-sm);
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(9,118,189,0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-blue);
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
}

.footer-contact-text strong {
  display: block;
  color: var(--c-white);
  font-weight: var(--fw-medium);
  margin-bottom: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-block: var(--space-6);
}

.footer-copyright {
  color: rgba(255,255,255,0.35);
  font-size: var(--fs-xs);
}

.footer-copyright a {
  color: var(--c-blue);
  transition: color var(--t-fast);
}

.footer-copyright a:hover {
  color: var(--c-green);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-6);
}

.footer-legal-link {
  color: rgba(255,255,255,0.35);
  font-size: var(--fs-xs);
  transition: color var(--t-fast);
}

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

/* -----------------------------------------------------------
   10. BREADCRUMBS
   ----------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-3);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  transition: color var(--t-fast);
}

.breadcrumb-item a:hover {
  color: var(--c-green);
}

.breadcrumb-separator {
  color: rgba(255,255,255,0.3);
}

.breadcrumb-current {
  color: var(--c-green);
  font-weight: var(--fw-medium);
}

/* Dark version */
.breadcrumb--dark {
  color: var(--c-gray-500);
}

.breadcrumb--dark .breadcrumb-item a {
  color: var(--c-gray-500);
}

.breadcrumb--dark .breadcrumb-item a:hover {
  color: var(--c-blue);
}

.breadcrumb--dark .breadcrumb-current {
  color: var(--c-blue);
}

/* -----------------------------------------------------------
   11. SKIP TO MAIN (ACCESSIBILITY)
   ----------------------------------------------------------- */
.skip-to-main {
  position: absolute;
  left: -100%;
  top: auto;
  z-index: 999;
  padding: var(--space-3) var(--space-6);
  background: var(--c-blue);
  color: var(--c-white);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-md);
  transition: left var(--t-fast);
}

.skip-to-main:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* -----------------------------------------------------------
   12. BACK TO TOP
   ----------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-16);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: var(--g-brand);
  color: var(--c-white);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base);
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* -----------------------------------------------------------
   13. UTILITY CLASSES
   ----------------------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.font-heading { font-family: var(--font-heading); }
.font-bold    { font-weight: var(--fw-bold); }
.font-semibold { font-weight: var(--fw-semibold); }

.text-blue  { color: var(--c-blue); }
.text-green { color: var(--c-green); }
.text-dark  { color: var(--c-dark); }
.text-gray  { color: var(--c-gray-500); }
.text-white { color: var(--c-white); }

.bg-white { background: var(--c-white); }
.bg-light { background: var(--c-light); }
.bg-dark  { background: var(--c-dark-2); }

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: 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;
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* -----------------------------------------------------------
   14. IMAGE PLACEHOLDERS (for demo)
   ----------------------------------------------------------- */
.img-placeholder {
  background: var(--g-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.05) 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.05) 60%, transparent 60%);
  background-size: 30px 30px;
}

/* Image variants for different project types */
.img-ph-1 { background: linear-gradient(135deg, #0976BD 0%, #065A9A 100%); }
.img-ph-2 { background: linear-gradient(135deg, #57B947 0%, #43A135 100%); }
.img-ph-3 { background: linear-gradient(135deg, #1F2937 0%, #374151 100%); }
.img-ph-4 { background: linear-gradient(135deg, #065A9A 0%, #57B947 100%); }
.img-ph-5 { background: linear-gradient(135deg, #374151 0%, #0976BD 100%); }
.img-ph-6 { background: linear-gradient(135deg, #43A135 0%, #1F2937 100%); }

/* -----------------------------------------------------------
   15. DIVIDER
   ----------------------------------------------------------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--c-gray-200);
}

.divider--brand {
  height: 3px;
  background: var(--g-brand);
  border-radius: var(--r-full);
}

/* -----------------------------------------------------------
   16. LOADING STATE
   ----------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, var(--c-gray-100) 25%, var(--c-gray-200) 50%, var(--c-gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--r-md);
}

@keyframes skeleton-loading {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* -----------------------------------------------------------
   17. RESPONSIVE HELPERS
   ----------------------------------------------------------- */
@media (max-width: 767px) {
  .hide-mobile  { display: none !important; }
  .show-mobile  { display: block !important; }
}

@media (min-width: 768px) {
  .hide-tablet  { display: none !important; }
  .show-tablet  { display: block !important; }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
  .show-desktop { display: block !important; }
}
