/*
Theme Name: Blue Median
Theme URI: https://bluemedian.com
Author: Blue Median
Description: Single-page landing theme for Blue Median - US-based development outsourcing.
Version: 1.0
Text Domain: blue-median
*/

/* ==========================================================================
   Reset & base
   ========================================================================== */
:root{
  --blue-900:#0a1a3f;
  --blue-800:#0e2258;
  --blue-700:#123a91;
  --blue-600:#1454f5;
  --blue-500:#2f6bff;
  --blue-100:#e8f0ff;
  --blue-50:#f4f8ff;
  --ink:#0f1a35;
  --gray-700:#4b5573;
  --gray-500:#6b7488;
  --gray-200:#e3e8f2;
  --gray-100:#f1f4f9;
  --white:#ffffff;
  --radius:14px;
  --shadow-sm:0 2px 10px rgba(15,26,53,.06);
  --shadow-md:0 12px 30px rgba(15,26,53,.10);
  --shadow-lg:0 24px 60px rgba(10,26,79,.18);
  --container:1320px;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Arimo', Helvetica, Arial, sans-serif;

  /* accent palette - header / hero */
  --accent:#2563eb;
  --accent-dark:#1d4ed8;
  --accent-100:#e4edfd;
  --header-bg:#f5f8fd;
  --heading-ink:#0e0e14;
  --body-gray:#71717f;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4,p{ margin:0; }
h1,h2,h3,h4{ font-family:var(--font-heading); }
button{ font-family:var(--font-heading); cursor:pointer; }
input,textarea{ font-family:var(--font-body); }
section{ scroll-margin-top:84px; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
.eyebrow{
  display:inline-block;
  font-family:var(--font-heading);
  font-size:17px;
  font-weight:600;
  letter-spacing:0;
  color:var(--accent);
  margin-bottom:0;
}
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(28px,3.4vw,38px); font-weight:800; letter-spacing:-0.02em; color:var(--blue-900); }
.section-head p{ margin-top:14px; color:var(--gray-700); font-size:16.5px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:14px 26px;
  border-radius:10px;
  font-family:var(--font-heading);
  font-weight:600;
  font-size:15px;
  border:1.5px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{
  background:var(--accent);
  color:var(--white);
  box-shadow:0 10px 24px rgba(37,99,235,.28);
}
.btn-primary:hover{ background:var(--accent-dark); box-shadow:0 14px 30px rgba(37,99,235,.38); transform:translateY(-1px); }
.btn-outline{
  background:var(--white);
  border-color:var(--gray-200);
  color:var(--ink);
}
.btn-outline:hover{ border-color:var(--accent); color:var(--accent); }
.btn-white{
  background:var(--white);
  color:var(--blue-700);
}
.btn-white:hover{ transform:translateY(-1px); box-shadow:0 10px 24px rgba(0,0,0,.15); }
.btn-block{ width:100%; justify-content:center; }
.btn-pill{ border-radius:999px; padding:15px 30px; }

.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--header-bg);
  border-bottom:1px solid transparent;
  transition:box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled{
  box-shadow:0 4px 20px rgba(15,26,53,.08);
  border-color:var(--gray-200);
}
/* header spans the full viewport width, unlike the 1320px sections below it */
.site-header .container{
  max-width:100%;
  padding:0 46px;
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:92px;
}
@media (max-width: 1100px){
  .site-header .container{ padding:0 24px; }
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:21px; color:var(--ink); }
.brand .brand-mark{
  width:34px; height:34px; border-radius:9px;
  background:var(--accent);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:16px;
  box-shadow:0 6px 16px rgba(37,99,235,.35);
}
.brand span{ color:var(--accent); }
/* logo is 1318x293 (4.5:1), so 250px wide renders ~56px tall.
   max-height is a hard stop in case the CSS ever loads late or a bigger file is swapped in. */
.brand-logo{
  width:250px;
  height:auto;
  max-width:100%;
  max-height:60px;
  object-fit:contain;
}
/* footer uses the real white logo file, so no colour filter is needed */
.brand.is-footer .brand-logo{ width:230px; max-height:56px; }
/* stop the nav wrapping on mid-size screens before the mobile menu kicks in */
@media (max-width: 1180px){
  .nav-menu{ gap:24px; }
  .nav-menu a{ font-size:14.5px; }
  .brand-logo{ width:200px; }
}
@media (max-width: 480px){
  .brand-logo{ width:180px; }
}

.nav-menu{ display:flex; align-items:center; gap:36px; }
.nav-menu a{
  font-family:var(--font-heading);
  font-size:15.5px; font-weight:500; color:#2f3540;
  position:relative; padding:6px 0;
  transition:color .15s ease;
}
.nav-menu a:hover{ color:var(--ink); }
.nav-menu a::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0;
  background:var(--accent); transition:width .2s ease;
}
.nav-menu a:hover::after,
.nav-menu a.is-active::after{ width:100%; }
.nav-menu a.is-active{ color:var(--accent); font-weight:600; }

.nav-actions{ display:flex; align-items:center; gap:18px; }
.nav-toggle{
  display:none; background:none; border:none; padding:6px;
  flex-direction:column; gap:5px;
}
.nav-toggle span{ width:24px; height:2px; background:var(--ink); border-radius:2px; transition:.25s; }

@media (max-width: 960px){
  .nav-menu{
    position:fixed; top:76px; left:0; right:0;
    background:#fff; flex-direction:column; align-items:flex-start;
    gap:0; padding:8px 24px 20px;
    box-shadow:0 12px 24px rgba(15,26,53,.1);
    transform:translateY(-8px); opacity:0; visibility:hidden;
    transition:.2s ease;
  }
  .nav-menu.is-open{ transform:translateY(0); opacity:1; visibility:visible; }
  .nav-menu a{ width:100%; padding:14px 0; border-bottom:1px solid var(--gray-100); }
  .nav-actions .btn-primary{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;
  overflow:hidden;
  background:var(--header-bg);
  padding:88px 0 92px;
}
.hero-decor{
  position:absolute; inset:0; width:100%; height:100%;
  z-index:0; pointer-events:none; opacity:.55;
}
.hero-grid{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:60% 40%;
  align-items:center;
}
/* columns sum to 100%, so the centre gap comes from padding, not a grid gap.
   8.3% of the 60% column == 5% of the container width. */
.hero-copy{ padding-right:8.3%; }
.hero-heading{
  margin-top:24px;
  font-size:clamp(34px,4vw,56px);
  font-weight:700;
  letter-spacing:-0.025em;
  line-height:1.2;
  color:var(--heading-ink);
}
.hero-heading .accent-line{ color:var(--accent); }
/* inline SVG flag: Windows has no country-flag emoji glyphs, so 🇺🇸 would render as "US" */
.hero-heading .flag{
  display:inline-block;
  width:.66em; height:auto;
  margin-left:.2em;
  vertical-align:baseline;
  border-radius:2px;
  box-shadow:0 1px 3px rgba(15,26,53,.18);
}
.hero-lead{
  margin-top:28px;
  font-size:16.5px; line-height:1.7; color:var(--body-gray);
}
.hero-checks{
  display:flex; flex-wrap:wrap;
  gap:14px 28px;
  margin-top:28px;
}
.hero-checks li{
  display:flex; align-items:center; gap:9px;
  font-family:var(--font-heading);
  font-size:14.5px; font-weight:600;
  color:var(--heading-ink);
}
.hero-checks svg{
  width:20px; height:20px; flex:none;
  color:var(--accent);
}
.hero-cta{ margin-top:38px; }

/* --- image slider: clipped at the container's right edge, next slide peeking --- */
.hero-visual{ position:relative; z-index:1; }
.hero-slider{
  overflow:hidden;
  border-radius:24px;
}
.hero-track{
  display:flex;
  gap:12px;
  transition:transform .55s cubic-bezier(.4,0,.2,1);
}
.hero-slide{
  flex:0 0 84%;
  position:relative;
  border-radius:24px;
  overflow:hidden;
  aspect-ratio:41/50;
  background:linear-gradient(135deg,var(--accent-100),#cfe0fb);
}
.hero-slide img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}

/* stat card pinned to the bottom of a slide, 10px inset on left/right/bottom */
.slide-card{
  position:absolute;
  left:10px; right:10px; bottom:10px;
  z-index:2;
  display:flex; align-items:center; gap:16px;
  padding:16px 20px;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(8px);
  border-radius:16px;
  box-shadow:0 10px 28px rgba(15,26,53,.16);
}
.slide-card-icon{
  flex:none;
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-dark));
  box-shadow:0 6px 16px rgba(37,99,235,.38);
  position:relative;
}
.slide-card-icon::after{
  content:''; position:absolute; inset:-5px;
  border-radius:50%; border:1.5px solid rgba(37,99,235,.22);
}
/* flag variant: circular crop of the flag instead of a gradient badge */
.slide-card-icon.is-flag{
  background:none;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(15,26,53,.2);
}
.slide-card-icon.is-flag svg{ width:100%; height:100%; display:block; }
.slide-card-icon.is-flag::after{ border-color:rgba(15,26,53,.14); }
.slide-card-text{ display:flex; flex-direction:column; line-height:1.25; }
.sc-label{ font-size:12.5px; font-weight:600; color:var(--body-gray); }
.sc-value{
  font-family:var(--font-heading);
  font-size:27px; font-weight:800; letter-spacing:-.01em;
  color:var(--accent);
}
.sc-sub{ font-size:12.5px; color:var(--body-gray); }

@media (max-width: 520px){
  .slide-card{ padding:13px 15px; gap:12px; }
  .slide-card-icon{ width:44px; height:44px; }
  .sc-value{ font-size:22px; }
  .sc-label, .sc-sub{ font-size:11.5px; }
}
.hero-dots{ display:flex; justify-content:center; gap:10px; margin-top:24px; }
.hero-dots button{
  width:11px; height:11px; border-radius:50%; border:none; padding:0;
  background:#ccd8e8; transition:background .2s ease;
}
.hero-dots button.is-active{ background:var(--accent); }

@media (max-width: 1200px){
  .hero{ padding:90px 0 100px; }
}
@media (max-width: 960px){
  .hero{ padding:64px 0 72px; }
  .hero-grid{ grid-template-columns:1fr; gap:48px; }
  .hero-copy{ padding-right:0; }
  .hero-visual{ order:-1; max-width:460px; margin:0 auto; }
  .hero-slider{ margin-right:0; border-radius:24px; }
  .hero-slide{ flex:0 0 100%; }
  .hero-lead{ max-width:100%; }
  .hero-dots{ justify-content:center; }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats{
  position:relative;
  overflow:hidden;
  background:linear-gradient(115deg,#1a45b5 0%,var(--accent) 52%,#5b9bf8 100%);
  padding:58px 0;
}
/* soft light bloom so the flat gradient doesn't read as a plain block */
.stats-glow{
  position:absolute; top:-45%; left:8%;
  width:640px; height:640px; border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.16),transparent 68%);
  pointer-events:none;
}
.stats-grid{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.stat{
  display:flex; align-items:flex-start; gap:16px;
  padding:4px 26px;
}
.stat + .stat{ border-left:1px solid rgba(255,255,255,.18); }
.stat:first-child{ padding-left:0; }
.stat:last-child{ padding-right:0; }

.stat-icon{
  flex:none;
  width:54px; height:54px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#fff; color:var(--accent);
  box-shadow:0 8px 20px rgba(8,30,70,.22);
  transition:transform .25s ease;
}
.stat:hover .stat-icon{ transform:translateY(-4px); }

.stat-body{ display:flex; flex-direction:column; }
.stat-label{
  font-size:12.5px; font-weight:600; letter-spacing:.01em;
  color:rgba(255,255,255,.72);
}
.stat-value{
  font-family:var(--font-heading);
  font-size:25px; font-weight:800; letter-spacing:-.015em;
  line-height:1.2; color:#fff;
  margin:3px 0 7px;
}
.stat-desc{
  font-size:13.5px; line-height:1.55;
  color:rgba(255,255,255,.76);
}

@media (max-width: 1100px){
  .stat{ padding:4px 20px; }
  .stat-value{ font-size:22px; }
}
@media (max-width: 900px){
  .stats{ padding:48px 0; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); row-gap:36px; }
  /* dividers only between columns, never across a wrapped row */
  .stat + .stat{ border-left:none; }
  .stat:nth-child(even){ border-left:1px solid rgba(255,255,255,.18); }
  .stat:nth-child(odd){ padding-left:0; }
  .stat:nth-child(even){ padding-right:0; }
}
@media (max-width: 560px){
  .stats-grid{ grid-template-columns:1fr; row-gap:30px; }
  .stat, .stat:nth-child(even){ border-left:none; padding:0; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services{
  background:var(--header-bg);
  padding:100px 0;
}
.services-head{
  display:flex; align-items:flex-end;
  gap:10%;               /* 10% of the container, same idea as the hero's centre gap */
  margin-bottom:52px;
}
.services-head-copy{ flex:1; min-width:0; }
.services-title{
  margin-top:10px;
  font-size:clamp(30px,3.2vw,44px);
  font-weight:700; letter-spacing:-.025em; line-height:1.2;
  color:var(--heading-ink);
}
.services-intro{
  margin-top:18px;
  font-size:16.5px; line-height:1.7; color:var(--body-gray);
  max-width:620px;       /* keep the paragraph readable even though the column is wide */
}
.services-cta{ flex:none; }

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}
.service-card{
  display:flex; flex-direction:column;
  background:#fff;
  border-radius:20px;
  padding:28px 28px 28px;
  box-shadow:0 2px 10px rgba(15,26,53,.05);
  transition:transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(15,26,53,.12);
}
.service-card-top{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  padding-bottom:22px;
  border-bottom:1px solid #e6ecf5;
}
.service-card-title{
  font-family:var(--font-heading);
  font-size:20px; font-weight:700; line-height:1.32;
  color:var(--heading-ink);
}
.service-arrow{
  flex:none;
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent); color:#fff;
  box-shadow:0 8px 18px rgba(37,99,235,.32);
  transition:transform .25s ease, background .25s ease;
}
.service-card:hover .service-arrow{
  background:var(--accent-dark);
  transform:rotate(45deg);
}
.service-desc{
  margin:20px 0 24px;
  font-size:15px; line-height:1.65; color:var(--body-gray);
}
.service-thumb{
  display:block;
  margin-top:auto;
  position:relative;
  border-radius:14px;
  overflow:hidden;
  aspect-ratio:16/10;
  background:linear-gradient(135deg,var(--accent-100),#cfe0fb);
}
.service-thumb img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.service-card:hover .service-thumb img{ transform:scale(1.06); }

@media (max-width: 1000px){
  .services{ padding:76px 0; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 820px){
  .services-head{ flex-direction:column; align-items:flex-start; gap:26px; }
}
@media (max-width: 620px){
  .services-grid{ grid-template-columns:1fr; }
}

/* ==========================================================================
   Why Blue Median
   ========================================================================== */
.why{
  background:#fff;
  padding:100px 0;
}
.why-grid{
  display:grid;
  grid-template-columns:44% 50%;
  justify-content:space-between;
  align-items:center;
  gap:40px;
}
.why-title{
  margin-top:10px;
  /* capped so "The Perfect Balance of Cost," holds one line in the 44% column */
  font-size:clamp(26px,2.6vw,34px);
  font-weight:700; letter-spacing:-.025em; line-height:1.22;
  color:var(--heading-ink);
}
.why-intro{
  margin-top:18px;
  font-size:16.5px; line-height:1.7; color:var(--body-gray);
  max-width:560px;
}
.why-list{
  margin-top:30px;
  display:flex; flex-direction:column; gap:15px;
}
.why-list li{
  display:flex; align-items:center; gap:12px;
  font-family:var(--font-heading);
  font-size:15.5px; font-weight:500;
  color:var(--heading-ink);
}
.why-list svg{ width:21px; height:21px; flex:none; color:var(--accent); }

/* map is allowed to overflow its column slightly so it reads at full scale */
.why-map{ text-align:center; }
.why-map img{
  width:114%;
  max-width:none;
  margin-left:-7%;
  height:auto; display:block;
}
.why-map-caption{ margin-top:14px; }
.why-map-caption strong{
  display:block;
  font-family:var(--font-heading);
  font-size:18px; font-weight:700; color:var(--accent);
}
.why-map-caption span{
  display:block; margin-top:3px;
  font-size:14px; color:var(--body-gray);
}

@media (max-width: 980px){
  .why{ padding:76px 0; }
  .why-grid{ grid-template-columns:1fr; gap:52px; }
  .why-intro{ max-width:100%; }
  .why-map{ max-width:560px; margin:0 auto; }
  .why-map img{ width:100%; margin-left:0; }
}

/* ==========================================================================
   Process - sticky copy on the left, scrolling step cards on the right
   ========================================================================== */
.process{
  background:var(--header-bg);
  padding:100px 0 110px;
}
.process-grid{
  display:grid;
  grid-template-columns:38% 55%;
  justify-content:space-between;
  align-items:start;      /* required for position:sticky to have room to travel */
  gap:40px;
}
.process-sticky{
  position:sticky;
  top:120px;              /* clears the 88px sticky header */
}
.process-title{
  margin-top:8px;
  font-size:clamp(30px,3.4vw,46px);
  font-weight:700; letter-spacing:-.025em; line-height:1.15;
  color:var(--heading-ink);
}
.process-intro{
  margin-top:18px;
  font-size:16.5px; line-height:1.7; color:var(--body-gray);
  max-width:400px;
}
.process-sticky .btn{ margin-top:30px; }

.process-cards{
  display:flex; flex-direction:column;
  gap:22px;
}
.p-card{
  display:flex; align-items:flex-start; gap:22px;
  background:var(--card-bg);
  border-radius:20px;
  padding:34px 36px;
  transition:transform .3s ease, box-shadow .3s ease;
}
.p-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(15,26,53,.10);
}
.p-num{
  flex:none;
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--card-accent); color:#fff;
  font-family:var(--font-heading);
  font-size:17px; font-weight:700;
  box-shadow:0 8px 20px rgba(15,26,53,.18);                                   /* fallback */
  box-shadow:0 8px 20px color-mix(in srgb, var(--card-accent) 34%, transparent);
}
.p-title{
  font-size:22px; font-weight:700; letter-spacing:-.01em;
  color:var(--heading-ink);
}
.p-desc{
  margin-top:9px;
  font-size:15.5px; line-height:1.65;
  color:var(--gray-700);
}

@media (max-width: 1000px){
  .process-grid{ grid-template-columns:1fr; gap:44px; }
  /* stacked: nothing left to scroll past, so release the lock */
  .process-sticky{ position:static; }
  .process-intro{ max-width:100%; }
}
@media (max-width: 560px){
  .process{ padding:76px 0; }
  .p-card{ flex-direction:column; gap:16px; padding:28px 26px; }
  .p-title{ font-size:20px; }
  .p-desc{ font-size:14.5px; }
}
/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials{
  background:#eef3fb;
  padding:96px 0;
}
.testimonials-head{ text-align:center; margin-bottom:56px; }
.testimonials-title{
  margin-top:6px;
  font-size:clamp(28px,3.2vw,42px);
  font-weight:700; letter-spacing:-.025em; line-height:1.2;
  color:var(--heading-ink);
}

.testimonials-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.t-card{
  position:relative;
  overflow:hidden;
  display:flex; flex-direction:column;
  background:#fff;
  border-radius:24px;
  padding:40px;
  box-shadow:0 4px 6px -1px rgba(15,26,53,.08), 0 2px 4px -2px rgba(15,26,53,.06);
  transition:box-shadow .3s ease, transform .3s ease;
}
.t-card:hover{
  box-shadow:0 20px 30px -8px rgba(15,26,53,.14);
  transform:translateY(-4px);
}
/* oversized decorative quote glyph, top-right */
.t-mark{
  position:absolute; top:2px; right:24px;
  font-family:Georgia,'Times New Roman',serif;
  font-size:110px; line-height:1;
  color:rgba(37,99,235,.10);
  user-select:none; pointer-events:none;
}
.t-stars{
  display:flex; justify-content:center; gap:4px;
  margin-bottom:20px;
}
.t-star{ width:20px; height:20px; fill:#f5a623; }
.t-text{
  position:relative; z-index:1;
  flex:1;                       /* keeps dividers/authors aligned across cards */
  text-align:center;
  font-size:16.5px; line-height:1.65;
  color:var(--gray-700);
}
.t-divider{
  display:block;
  width:48px; height:2px;
  margin:24px auto;
  background:var(--accent);
  border-radius:2px;
}
.t-author{ text-align:center; }
.t-avatar{
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 12px;
  background:var(--accent); color:#fff;
  font-family:var(--font-heading);
  font-size:17px; font-weight:700;
}
.t-name{
  font-family:var(--font-heading);
  font-size:16.5px; font-weight:700; color:var(--accent);
}
.t-role{ margin-top:3px; font-size:14.5px; color:var(--body-gray); }

@media (max-width: 980px){
  .testimonials-grid{ grid-template-columns:repeat(2,1fr); }
  .t-card{ padding:32px; }
}
@media (max-width: 660px){
  .testimonials{ padding:72px 0; }
  .testimonials-grid{ grid-template-columns:1fr; max-width:420px; margin:0 auto; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{ background:#fff; padding:96px 0; }
.contact-card{
  display:grid;
  grid-template-columns:41% 59%;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 26px 60px rgba(15,26,53,.14);
}

/* --- left: gradient info panel --- */
.contact-info{
  position:relative;
  overflow:hidden;
  background:linear-gradient(155deg,#123a8f 0%,var(--accent) 55%,#5b9bf8 100%);
  color:#fff;
  padding:54px 46px;
}
/* oversized brand letterform, bleeding off the panel */
.contact-watermark{
  position:absolute;
  left:-6%; bottom:-42%;
  font-family:var(--font-heading);
  font-size:340px; font-weight:800; line-height:1;
  color:rgba(255,255,255,.07);
  user-select:none; pointer-events:none;
}
.contact-title{
  position:relative; z-index:1;
  font-size:clamp(28px,3vw,38px);
  font-weight:700; letter-spacing:-.02em; color:#fff;
}
.contact-intro{
  position:relative; z-index:1;
  margin-top:14px;
  font-size:15px; line-height:1.7;
  color:rgba(255,255,255,.8);
  max-width:330px;
}
.contact-list{
  position:relative; z-index:1;
  margin-top:38px;
  display:flex; flex-direction:column; gap:22px;
}
.contact-list li{ display:flex; align-items:flex-start; gap:15px; }
.ci-icon{
  flex:none;
  width:42px; height:42px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.14);
  color:#fff;
}
.ci-text{ font-size:15px; line-height:1.6; color:rgba(255,255,255,.92); }
.ci-text a{ transition:color .15s ease; }
.ci-text a:hover{ color:#fff; text-decoration:underline; }

/* --- right: form panel --- */
.contact-form-wrap{ background:#fff; padding:54px 48px; }
.contact-form .form-row{
  display:grid; grid-template-columns:1fr 1fr; gap:18px;
}
.contact-form .field{ margin-bottom:20px; }
.contact-form label{
  display:block;
  font-family:var(--font-heading);
  font-size:13.5px; font-weight:600;
  color:var(--heading-ink);
  margin-bottom:8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  padding:12px 2px;
  border:none;
  border-bottom:1.5px solid #dfe6f2;   /* underline fields, as in the reference */
  border-radius:0;
  background:transparent;
  font-size:15px; color:var(--ink);
  transition:border-color .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{ color:#a9b3c4; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  outline:none;
  border-bottom-color:var(--accent);
}
.contact-form select{
  appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 2px center;
  background-size:17px;
  padding-right:26px;
  cursor:pointer;
}
.contact-form textarea{ resize:vertical; min-height:84px; }
.contact-submit{
  margin-top:10px;
  padding:16px 30px;
  border-radius:10px;
  background:linear-gradient(90deg,var(--accent),#4f8ef7);
  font-size:15.5px;
}
.contact-submit:hover{ background:linear-gradient(90deg,var(--accent-dark),#2f7ae8); }

/* honeypot: off-screen, never shown to real users */
.bm-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.form-alert{
  margin-bottom:20px; padding:13px 16px; border-radius:10px;
  font-size:14px; font-weight:600;
}
.form-alert.success{ background:#e7f8ee; color:#1a7a45; }
.form-alert.error{ background:#fdeceb; color:#c23b2f; }

@media (max-width: 900px){
  .contact{ padding:76px 0; }
  .contact-card{ grid-template-columns:1fr; }
  .contact-info{ padding:44px 32px; }
  .contact-intro{ max-width:100%; }
  .contact-watermark{ font-size:240px; bottom:-30%; }
  .contact-form-wrap{ padding:40px 32px; }
}
@media (max-width: 520px){
  .contact-form .form-row{ grid-template-columns:1fr; gap:0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background:var(--blue-900); color:rgba(255,255,255,.72); padding:64px 0 26px; }
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr repeat(4,1fr);
  gap:32px;
}
.footer-brand .brand{ color:#fff; }
.footer-brand p{ margin-top:14px; font-size:14px; line-height:1.7; max-width:260px; }
.footer-social{ display:flex; gap:10px; margin-top:20px; }
.footer-social a{
  width:36px; height:36px; border-radius:9px; background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; transition:.15s ease;
}
.footer-social a:hover{ background:var(--blue-600); }
.footer-col h4{ color:#fff; font-size:14.5px; font-weight:700; margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:13.5px; transition:color .15s ease; }
.footer-col a:hover{ color:#fff; }
.footer-col li.contact-item{ display:flex; align-items:flex-start; gap:10px; font-size:13.5px; }
.footer-col li.contact-item svg{ flex:none; margin-top:2px; color:var(--blue-500); }
.footer-bottom{
  margin-top:52px; padding-top:24px; border-top:1px solid rgba(255,255,255,.1);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:12.5px;
}
.footer-bottom a:hover{ color:#fff; }

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