/* ============================================================
   GUARANT RE — Design System
   Aesthetic: Clean Corporate-Modern
   Typography: Sora (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* --- Tokens ------------------------------------------------ */
:root {
  /* Color */
  --navy:          #0a1628;
  --navy-mid:      #111d33;
  --navy-light:    #162440;
  --blue:          #2563eb;
  --blue-hover:    #1d4ed8;
  --blue-muted:    rgba(37,99,235,.08);
  --sky:           #38bdf8;
  --orange:        #e05a00;
  --orange-hover:  #c44e00;
  --orange-muted:  rgba(224,90,0,.08);
  --surface:       #f8fafc;
  --surface-alt:   #f1f5f9;
  --white:         #ffffff;
  --text:          #0f172a;
  --text-secondary:#475569;
  --text-tertiary: #94a3b8;
  --border:        #e2e8f0;
  --border-subtle: #f1f5f9;
  --success:       #16a34a;
  --warning:       #d97706;
  --error:         #dc2626;

  /* Typography */
  --font-display:  'Sora', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  /* Spacing */
  --space-xs:  .25rem;
  --space-sm:  .5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width:  1280px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-md:   0 4px 6px rgba(15,23,42,.04), 0 2px 4px rgba(15,23,42,.06);
  --shadow-lg:   0 10px 25px rgba(15,23,42,.06), 0 4px 10px rgba(15,23,42,.04);
  --shadow-xl:   0 20px 50px rgba(15,23,42,.08), 0 8px 20px rgba(15,23,42,.04);
  --shadow-blue: 0 4px 14px rgba(37,99,235,.18);
  --shadow-card: 0 1px 3px rgba(15,23,42,.03), 0 1px 2px rgba(15,23,42,.06);

  /* Transitions */
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-snap: cubic-bezier(.34,1.56,.64,1);
  --dur-fast:  .15s;
  --dur-base:  .25s;
  --dur-slow:  .5s;

  /* For legacy compat with existing pages */
  --primary-dark: var(--navy);
  --primary-blue: var(--blue);
  --accent-orange: var(--orange);
  --light-bg: var(--surface);
  --text-dark: var(--text);
  --text-gray: var(--text-secondary);
  --border-light: var(--border);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }
ul, ol  { list-style: none; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem);  font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: var(--space-md); color: var(--navy); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--navy); margin-bottom: .6rem; }
h4 { font-size: 1.05rem; color: var(--text); font-weight: 600; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
a:hover { color: var(--orange); }

strong { font-weight: 600; color: var(--text); }

/* --- Layout ------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.grid   { display: grid; gap: var(--space-xl); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-xl); }

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

header.scrolled {
  background: rgba(10,22,40,.97);
  box-shadow: 0 4px 30px rgba(0,0,0,.2);
}

/* Shared nav container — works for both .nav-container and .navbar-container */
.nav-container,
.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

/* Logo */
.logo,
.navbar-brand a,
.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: .02em;
  transition: opacity var(--dur-base);
}
.logo:hover,
.navbar-brand a:hover { opacity: .85; color: var(--white); }

.logo span { color: var(--white); }

.logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
}

.logo-subtitle {
  font-family: var(--font-display);
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: -2px;
}

/* Nav links — standard pattern */
nav,
.navbar-menu,
.nav-menu {
  flex: 1;
  margin-left: 3rem;
}

nav ul,
.nav-list {
  list-style: none;
  display: flex;
  gap: .25rem;
  align-items: center;
}

nav li,
.nav-item {
  position: relative;
}

nav a,
.nav-link {
  color: rgba(255,255,255,.8);
  padding: .6rem 1rem;
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .01em;
  transition: color var(--dur-fast), background var(--dur-fast);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

nav a:hover,
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.07);
}

/* Dropdown trigger dot */
nav .dropdown > a::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  margin-left: .4rem;
  margin-bottom: .2rem;
  vertical-align: middle;
}

/* Dropdown menus */
.dropdown,
.nav-dropdown { position: relative; }

.dropdown-menu,
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  min-width: 210px;
  padding: .35rem 0;
  padding-top: calc(.35rem + 4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  overflow: hidden;
  z-index: 100;
}

.dropdown-menu li { width: 100%; }

.dropdown-menu a,
.dropdown-content a {
  padding: .6rem 1.2rem;
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  border-radius: 0;
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.dropdown-menu a:hover,
.dropdown-content a:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
}

.dropdown:hover > .dropdown-menu,
.nav-dropdown:hover > .dropdown-content {
  display: block;
}

/* Dropdown toggle chevron for homepage nav */
.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  margin-left: .4rem;
  margin-bottom: .2rem;
  vertical-align: middle;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform var(--dur-base), opacity var(--dur-base);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a365d 100%);
  color: var(--white);
  padding: clamp(4rem,8vw,7rem) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric accent */
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(224,90,0,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--white);
  margin-bottom: .75rem;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255,255,255,.7);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  margin: 0 auto;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  font-size: .85rem;
  margin-bottom: var(--space-lg);
  color: rgba(255,255,255,.5);
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #0f2847 50%, #162c50 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background svg,
.hero-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem,8vw,6rem) var(--space-xl);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-subheadline {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.65);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================================
   METRICS BAR
   ============================================================ */
.metrics-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 3;
}

.metrics-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.metric-item {
  padding: var(--space-md) 0;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: .8rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* Who We Are */
.who-we-are {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.who-we-are h2 {
  margin-bottom: var(--space-xl);
}

.who-we-are-content {
  max-width: 800px;
}

.who-we-are-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue);
  transition: gap var(--dur-base) var(--ease-out), color var(--dur-base);
}
.link-more:hover {
  gap: .6rem;
  color: var(--orange);
}

/* Services */
.services {
  padding: var(--space-4xl) 0;
  background: var(--surface);
}

.services h2 { margin-bottom: var(--space-2xl); }

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-xl);
}

.card-service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur-base);
  position: relative;
  overflow: hidden;
}

.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.15);
}

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

.card-service .card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-muted);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--blue);
  transition: background var(--dur-base), transform var(--dur-base);
}

.card-service:hover .card-icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.05);
}

.card-service .card-icon svg {
  width: 26px;
  height: 26px;
}

.card-service h3 {
  margin-bottom: .5rem;
  font-size: 1.15rem;
}

.card-service p {
  font-size: .925rem;
  margin-bottom: var(--space-md);
}

/* Lines of Business */
.lines-of-business {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.lines-of-business h2 { margin-bottom: var(--space-2xl); }

.lob-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.card-lob {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base),
              background var(--dur-base);
  cursor: default;
}

.card-lob:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--white);
  border-color: var(--border);
}

.lob-emoji {
  font-size: 1.75rem;
  margin-bottom: .5rem;
  filter: grayscale(.2);
  transition: filter var(--dur-base), transform var(--dur-base);
}

.card-lob:hover .lob-emoji {
  filter: grayscale(0);
  transform: scale(1.15);
}

.card-lob h3 {
  font-size: .9rem;
  margin-bottom: .35rem;
}

.card-lob p {
  font-size: .78rem;
  color: var(--text-tertiary);
  margin-bottom: .5rem;
  line-height: 1.5;
}

.card-lob .link-more {
  font-size: .78rem;
}

/* Why GUARANT */
.why-guarant {
  padding: var(--space-4xl) 0;
  background: var(--surface);
}

.why-guarant h2 { margin-bottom: var(--space-2xl); }

.value-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.value-item {
  padding: var(--space-lg) 0;
}

.value-number {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.value-item h3 {
  margin-bottom: .5rem;
  font-size: 1.05rem;
}

.value-item h4 {
  margin-bottom: .5rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.value-item p {
  font-size: .925rem;
  margin: 0;
}

/* ============================================================
   SECTIONS (inner pages)
   ============================================================ */
.section {
  padding: clamp(2.5rem,5vw,4rem) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.section:last-of-type { border-bottom: none; }

.section-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: var(--space-xl);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur-base);
  box-shadow: var(--shadow-card);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.12);
}

.card h3 {
  margin-bottom: .75rem;
  color: var(--navy);
}

.card p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: .95rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-muted);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--blue);
  transition: background var(--dur-base), color var(--dur-base), transform var(--dur-base);
}

.card:hover .card-icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.05);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.process-step,
.step {
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  padding: var(--space-lg) var(--space-md);
}

.process-step::after,
.step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: calc(-1rem - 1px);
  width: calc(2rem + 2px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step:last-child::after,
.step:last-child::after { display: none; }

.process-number,
.step-number {
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-blue);
  position: relative;
  z-index: 1;
}

.process-step h4,
.step h3 {
  margin-bottom: .5rem;
  color: var(--navy);
  font-size: 1rem;
}

.process-step p,
.step p {
  font-size: .9rem;
  margin: 0;
  color: var(--text-secondary);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 60%, #1e3a8a 100%);
  color: var(--white);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  border-radius: var(--radius-lg);
  margin-top: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

/* Decorative circle */
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: .75rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255,255,255,.85);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base),
              background var(--dur-fast);
  text-decoration: none;
  text-align: center;
  letter-spacing: .01em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.btn {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover,
.btn:hover {
  background: var(--blue-hover);
  box-shadow: var(--shadow-blue);
  color: var(--white);
}

.btn-secondary {
  background: var(--orange);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--orange-hover);
  box-shadow: 0 4px 14px rgba(224,90,0,.2);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  color: var(--white);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: .4rem;
  color: var(--text);
  font-weight: 500;
  font-size: .9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-muted);
}

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

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: var(--white);
  padding-top: var(--space-3xl);
  margin-top: var(--space-3xl);
  position: relative;
}

/* Subtle top accent */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--orange), transparent);
  opacity: .4;
}

.footer-content,
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.footer-grid,
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4,
.footer-col h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: var(--space-md);
}

.footer-section ul,
.footer-col ul { list-style: none; }

.footer-section li,
.footer-col li { margin-bottom: .6rem; }

.footer-section a,
.footer-col a {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  transition: color var(--dur-fast);
}

.footer-section a:hover,
.footer-col a:hover { color: var(--white); }

.footer-section p,
.footer-col p,
.footer-col li {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  margin-bottom: .5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: var(--space-lg) 0 var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
  transition: color var(--dur-fast);
}

.footer-links a:hover { color: rgba(255,255,255,.7); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal.active .card,
.reveal.active .card-service,
.reveal.active .card-lob,
.reveal.active .value-item,
.reveal.active .process-step,
.reveal.active .step {
  animation: fadeSlideUp .6s var(--ease-out) both;
}

.reveal.active .card:nth-child(1),
.reveal.active .card-service:nth-child(1),
.reveal.active .card-lob:nth-child(1),
.reveal.active .value-item:nth-child(1),
.reveal.active .process-step:nth-child(1),
.reveal.active .step:nth-child(1) { animation-delay: 0s; }

.reveal.active .card:nth-child(2),
.reveal.active .card-service:nth-child(2),
.reveal.active .card-lob:nth-child(2),
.reveal.active .value-item:nth-child(2),
.reveal.active .process-step:nth-child(2),
.reveal.active .step:nth-child(2) { animation-delay: .08s; }

.reveal.active .card:nth-child(3),
.reveal.active .card-service:nth-child(3),
.reveal.active .card-lob:nth-child(3),
.reveal.active .value-item:nth-child(3),
.reveal.active .process-step:nth-child(3),
.reveal.active .step:nth-child(3) { animation-delay: .16s; }

.reveal.active .card:nth-child(4),
.reveal.active .card-service:nth-child(4),
.reveal.active .card-lob:nth-child(4),
.reveal.active .value-item:nth-child(4),
.reveal.active .process-step:nth-child(4),
.reveal.active .step:nth-child(4) { animation-delay: .22s; }

.reveal.active .card:nth-child(5),
.reveal.active .card-lob:nth-child(5),
.reveal.active .value-item:nth-child(5) { animation-delay: .28s; }

.reveal.active .card:nth-child(6),
.reveal.active .card-lob:nth-child(6) { animation-delay: .34s; }

.reveal.active .card-lob:nth-child(7) { animation-delay: .38s; }
.reveal.active .card-lob:nth-child(8) { animation-delay: .42s; }
.reveal.active .card-lob:nth-child(9) { animation-delay: .46s; }
.reveal.active .card-lob:nth-child(10) { animation-delay: .50s; }

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   TIMELINE / MILESTONES
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.milestone {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}

.milestone::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--blue);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-blue);
  z-index: 1;
}

.milestone h4 {
  color: var(--navy);
  margin-bottom: .35rem;
}

.milestone p {
  font-size: .925rem;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-container,
  .navbar-container {
    padding: 0 var(--space-md);
  }

  nav, .navbar-menu, .nav-menu { margin-left: var(--space-xl); }

  nav a, .nav-link {
    padding: .5rem .7rem;
    font-size: .825rem;
  }

  .lob-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .metric-item:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
  /* Header */
  .nav-container,
  .navbar-container {
    flex-wrap: wrap;
    height: auto;
    padding: var(--space-md);
    gap: .75rem;
  }

  nav, .navbar-menu, .nav-menu {
    margin-left: 0;
    width: 100%;
    order: 2;
  }

  .hamburger { display: block; }

  .navbar-menu { display: none; }
  .navbar-menu.active { display: block; }

  nav ul, .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav li, .nav-item { width: 100%; }

  nav a, .nav-link {
    padding: .85rem var(--space-md);
    text-align: left;
    border-radius: var(--radius-sm);
  }

  .dropdown-menu,
  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,.04);
    border-radius: var(--radius-sm);
    padding: 0;
    margin-bottom: .25rem;
  }

  .dropdown:hover > .dropdown-menu { display: none; }
  .dropdown-menu.mobile-open { display: block !important; }
  .dropdown-content.mobile-open { display: block !important; }

  .dropdown-menu a,
  .dropdown-content a {
    padding-left: 2rem;
    font-size: .85rem;
  }

  /* Layout */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-column { grid-template-columns: 1fr; }

  .lob-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-item::after { display: none; }

  .process-steps { grid-template-columns: 1fr; }
  .process-step::after,
  .step::after { display: none; }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links { justify-content: center; }

  /* Page hero */
  .page-hero { padding: clamp(3rem,6vw,5rem) var(--space-md); }

  /* Section */
  .section { padding: var(--space-2xl) var(--space-md); }

  /* Cards */
  .card { padding: var(--space-xl); }
  .card-service { padding: var(--space-xl); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }

  .lob-grid { grid-template-columns: 1fr 1fr; }

  .hero-content { padding: var(--space-2xl) var(--space-md); }

  .btn {
    width: 100%;
    padding: .85rem var(--space-md);
    justify-content: center;
  }

  .hero-buttons { flex-direction: column; }

  .metrics-container { grid-template-columns: 1fr 1fr; }
}
