/*
Theme Name: Smart Communities Chicago
Theme URI: https://smartcommunitieschicago.org
Author: Smart Communities Chicago
Description: New home communities in Chicago featuring advanced smart home technology.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: smart-communities-chicago
Tags: chicago, real estate, new construction, smart home, communities
*/

/* =============================================
   DESIGN TOKENS — Chicago Steel & Glass
   ============================================= */
:root {
  --midnight:     #0E1B35;
  --navy:         #122444;
  --navy-mid:     #1A3260;
  --navy-up:      #243D72;
  --blue:         #2563EB;
  --blue-lt:      #3B82F6;
  --blue-pale:    #EFF6FF;
  --green:        #22C55E;
  --green-dk:     #16A34A;
  --green-lt:     #4ADE80;
  --green-pale:   #F0FDF4;
  --orange:       #F97316;
  --orange-dk:    #EA580C;
  --orange-pale:  #FFF7ED;
  --slate:        #F1F5F9;
  --slate-dk:     #E2E8F0;
  --white:        #FFFFFF;
  --cloud:        #F8FAFD;
  --ink:          #0F172A;
  --ink-mid:      #1E293B;
  --ink-lt:       #334155;
  --body-text:    #475569;
  --mist:         #94A3B8;
  --border:       #E2E8F0;
  --border-dk:    #CBD5E1;
  --border-dark:  rgba(255,255,255,0.08);

  /* Community category colors */
  --cat-luxury:   #8B5CF6;
  --cat-family:   #22C55E;
  --cat-urban:    #2563EB;
  --cat-eco:      #059669;
  --cat-boutique: #F97316;

  /* Fonts — Urbanist + Lora: both brand new to this series */
  --font-display: 'Urbanist', 'Arial', sans-serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Urbanist', 'Arial', sans-serif;

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --transition: all 0.28s var(--ease);
  --fast:       all 0.14s ease;

  /* Layout */
  --max-w:    1400px;
  --gutter:   clamp(1.25rem, 4vw, 3.5rem);
  --radius:   8px;
  --radius-md: 16px;
  --radius-lg: 28px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cloud);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { color: var(--blue); text-decoration: none; transition: var(--fast); }
a:hover { color: var(--blue-lt); }
ul, ol { list-style: none; }
p { margin-bottom: 1.15em; }
p:last-child { margin-bottom: 0; }

/* =============================================
   TYPOGRAPHY — Urbanist geometric + Lora readable
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.9rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

/* Section label */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}
.eyebrow--blue   { color: var(--blue); }
.eyebrow--green  { color: var(--green-dk); }
.eyebrow--orange { color: var(--orange-dk); }
.eyebrow--white  { color: rgba(255,255,255,0.6); }
.eyebrow--mist   { color: var(--mist); }

/* Rule */
.rule { display: block; width: 44px; height: 3px; background: var(--blue); border-radius: 2px; margin: 0.85rem 0; }
.rule--green  { background: var(--green); }
.rule--orange { background: var(--orange); }
.rule--white  { background: rgba(255,255,255,0.3); }
.rule--center { margin-left: auto; margin-right: auto; }

/* Smart score badge — unique element for this site */
.smart-score {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-pale);
  border: 1.5px solid rgba(34,197,94,0.3);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green-dk);
  white-space: nowrap;
}
.smart-score-icon { font-size: 0.9rem; }

/* Price badge */
.price-badge {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.price-badge sub {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--mist);
  vertical-align: baseline;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.status-pill--selling { background: rgba(34,197,94,0.12); color: var(--green-dk); border: 1px solid rgba(34,197,94,0.3); }
.status-pill--coming  { background: rgba(249,115,22,0.1);  color: var(--orange-dk); border: 1px solid rgba(249,115,22,0.25); }
.status-pill--limited { background: rgba(239,68,68,0.1);   color: #DC2626;          border: 1px solid rgba(239,68,68,0.25); }
.status-pill--preview { background: rgba(37,99,235,0.1);   color: var(--blue);      border: 1px solid rgba(37,99,235,0.25); }

/* Feature chip */
.feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  background: var(--slate);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--ink-lt);
}
.feat-chip--blue   { background: var(--blue-pale);  border-color: rgba(37,99,235,0.2); color: var(--blue); }
.feat-chip--green  { background: var(--green-pale); border-color: rgba(34,197,94,0.25); color: var(--green-dk); }

/* =============================================
   LAYOUT
   ============================================= */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.section     { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--sm { padding: clamp(2.5rem, 5vw, 5rem) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.8rem 1.85rem;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; border: 2px solid transparent;
  border-radius: var(--radius-md); cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-lt); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.35); }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dk); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.35); }
.btn-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dk); color: var(--white); transform: translateY(-2px); }
.btn-midnight { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
.btn-midnight:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,27,53,0.4); }
.btn-outline-blue { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-white { background: var(--white); color: var(--midnight); border-color: var(--white); }
.btn-white:hover { background: var(--slate); color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.btn-slate { background: var(--slate); color: var(--ink-lt); border-color: var(--border-dk); }
.btn-slate:hover { background: var(--slate-dk); color: var(--ink); }
.btn-lg { padding: 1rem 2.2rem; font-size: 0.88rem; }
.btn-xl { padding: 1.1rem 2.5rem; font-size: 0.94rem; }
.btn-sm { padding: 0.42rem 1rem; font-size: 0.66rem; }
.btn-arrow::after { content: ' →'; display: inline-block; transition: transform 0.16s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* =============================================
   IMAGE PLACEHOLDERS
   ============================================= */
.img-ph {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--midnight) 100%);
  position: relative; overflow: hidden;
}
.img-ph::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 40% at 65% 35%, rgba(37,99,235,0.12) 0%, transparent 60%);
}
.img-ph-txt {
  font-family: var(--font-display); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.22);
  z-index: 1; text-align: center; padding: 1rem; line-height: 2;
}
.img-ph--light { background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dk) 100%); }
.img-ph--light .img-ph-txt { color: rgba(0,0,0,0.22); }
.img-ph--green { background: linear-gradient(135deg, #064E3B 0%, #022C22 100%); }
.img-ph--aerial { background: linear-gradient(135deg, #0F2744 0%, #071422 100%); }
.img-ph--aerial::before { background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(37,99,235,0.2) 0%, transparent 65%); }

/* =============================================
   HEADER
   ============================================= */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--midnight);
  border-bottom: 1px solid var(--border-dark);
  transition: var(--transition);
}
#site-header.scrolled {
  background: rgba(14,27,53,0.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border-dark), 0 8px 32px rgba(0,0,0,0.4);
}
.header-bar { height: 3px; background: linear-gradient(90deg, var(--blue) 0%, var(--green) 50%, var(--orange) 100%); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter); gap: 2rem;
  max-width: var(--max-w); margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; background: var(--blue); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition);
}
.logo-mark svg { width: 22px; height: 22px; }
.site-logo:hover .logo-mark { background: var(--green); transform: scale(1.06); }
.logo-text { line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--white); display: block; letter-spacing: -0.02em; }
.logo-name em { color: var(--green); font-style: normal; }
.logo-sub { font-family: var(--font-display); font-size: 0.5rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.3); display: block; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.6); transition: color 0.15s; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--green); border-radius: 2px; transition: width 0.2s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.mobile-nav { position: fixed; inset: 0; background: var(--midnight); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; transform: translateX(-100%); transition: transform 0.4s var(--ease); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--white); letter-spacing: -0.03em; }
.mobile-nav a:hover { color: var(--green-lt); }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--midnight); position: relative; overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0 0;
}
.hero-glow-1 { position: absolute; top: -20%; right: -8%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 65%); pointer-events: none; }
.hero-glow-2 { position: absolute; bottom: -10%; left: 5%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 60%); pointer-events: none; }
.hero-skyline { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, rgba(14,27,53,0.4), transparent); pointer-events: none; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding-bottom: clamp(3.5rem, 6vw, 5rem); }
.hero-inner > * { min-width: 0; }
.hero-live-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  border-radius: 100px; padding: 0.32rem 1rem; margin-bottom: 1.5rem;
}
.hero-live-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 10px rgba(34,197,94,0.8); animation: pulse-g 2.2s ease-in-out infinite; }
@keyframes pulse-g { 0%,100%{box-shadow:0 0 6px rgba(34,197,94,0.5);}50%{box-shadow:0 0 18px rgba(34,197,94,0.95);} }
.hero-live-text { font-family: var(--font-display); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-lt); }
.hero-title { font-size: clamp(2.8rem, 6.5vw, 6.5rem); font-weight: 800; color: var(--white); line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.hero-title .accent { display: block; color: var(--blue-lt); }
.hero-title .sub { display: block; font-style: italic; font-family: var(--font-body); font-weight: 400; font-size: 0.48em; color: rgba(255,255,255,0.45); letter-spacing: 0; margin-top: 0.6rem; line-height: 1.45; }
.hero-desc { font-family: var(--font-body); font-size: 1.05rem; color: rgba(255,255,255,0.52); line-height: 1.82; max-width: 470px; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border-dark); flex-wrap: wrap; }
.hero-stat-val { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--white); display: block; line-height: 1; letter-spacing: -0.03em; }
.hero-stat-val em { color: var(--green-lt); font-style: normal; }
.hero-stat-label { font-family: var(--font-display); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); display: block; margin-top: 0.3rem; }

/* Hero right: Community photo mosaic */
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: 0.75rem; }
.hero-mosaic > * { min-width: 0; min-height: 0; border-radius: var(--radius-md); overflow: hidden; }
.mosaic-span { grid-column: 1 / -1; }
.mosaic-cell { position: relative; }
.mosaic-cell .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; min-height: unset; }
.mosaic-label { position: absolute; bottom: 0.75rem; left: 0.75rem; z-index: 2; }

/* =============================================
   PAGE HERO
   ============================================= */
.page-hero { background: var(--midnight); padding: clamp(4.5rem,8vw,7rem) 0 clamp(2.5rem,4vw,4rem); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; bottom: 0; right: 0; width: 500px; height: 500px; background: radial-gradient(ellipse at bottom right, rgba(37,99,235,0.1) 0%, transparent 65%); pointer-events: none; }
.page-hero::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green), var(--orange), transparent); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.85rem; }
.page-hero .hero-sub { color: rgba(255,255,255,0.5); font-size: 1.05rem; max-width: 580px; font-family: var(--font-body); }
.breadcrumb { font-family: var(--font-display); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.38); display: block; margin-bottom: 1.25rem; }
.breadcrumb a { color: rgba(255,255,255,0.38); }
.breadcrumb a:hover { color: var(--green-lt); }
.breadcrumb .sep { margin: 0 0.45rem; opacity: 0.35; }

/* =============================================
   COMMUNITY CARDS
   ============================================= */
.community-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; position: relative;
}
.community-card:hover { box-shadow: 0 16px 48px rgba(37,99,235,0.12); transform: translateY(-5px); border-color: transparent; }
.community-card__img { aspect-ratio: 16/10; overflow: hidden; position: relative; flex-shrink: 0; background: var(--slate); }
.community-card__img .img-ph { min-height: unset; transition: transform 0.5s var(--ease); }
.community-card:hover .community-card__img .img-ph { transform: scale(1.05); }
.community-card__badges { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.4rem; flex-wrap: wrap; z-index: 2; }
.community-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.community-card__neighborhood { font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); margin-bottom: 0.3rem; display: block; }
.community-card__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-bottom: 0.6rem; line-height: 1.2; transition: color 0.15s; letter-spacing: -0.01em; }
.community-card:hover .community-card__name { color: var(--blue); }
.community-card__desc { font-family: var(--font-body); font-size: 0.88rem; color: var(--body-text); line-height: 1.65; margin-bottom: 1rem; flex: 1; }
.community-card__features { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.community-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: auto; }

/* Featured community card — hero format */
.community-hero-card {
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  display: flex; flex-direction: column; min-height: 420px; text-decoration: none; transition: var(--transition);
}
.community-hero-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.3); transform: translateY(-3px); }
.community-hero-card-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.community-hero-card-img .img-ph { min-height: unset; width: 100%; height: 100%; }
.community-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(14,27,53,0.95) 0%, rgba(14,27,53,0.4) 55%, rgba(14,27,53,0.1) 100%); }
.community-hero-body { position: relative; z-index: 2; padding: 2rem; margin-top: auto; }
.community-hero-name { font-family: var(--font-display); font-size: clamp(1.3rem,2.5vw,2.2rem); font-weight: 800; color: var(--white); letter-spacing: -0.02em; margin-bottom: 0.5rem; }

/* =============================================
   SMART HOME FEATURES
   ============================================= */
.smart-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.smart-feat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.75rem; text-align: center; transition: var(--transition); position: relative; overflow: hidden;
}
.smart-feat-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--blue); transform: scaleX(0); transition: transform 0.28s var(--ease); }
.smart-feat-card:hover { box-shadow: 0 8px 28px rgba(37,99,235,0.1); transform: translateY(-3px); border-color: rgba(37,99,235,0.2); }
.smart-feat-card:hover::before { transform: scaleX(1); }
.smart-feat-icon { font-size: 2.2rem; margin-bottom: 0.85rem; display: block; line-height: 1; }
.smart-feat-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.smart-feat-desc { font-family: var(--font-body); font-size: 0.82rem; color: var(--body-text); line-height: 1.6; margin: 0; }

/* Smart home showcase — split layout unique to this site */
.smart-showcase {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border);
}
.smart-showcase-visual { position: relative; min-height: 460px; background: var(--midnight); }
.smart-showcase-visual .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; min-height: unset; }
.smart-showcase-panel { padding: 3rem; background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.smart-feature-list { display: flex; flex-direction: column; gap: 0; margin-top: 1.5rem; }
.smart-feature-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.smart-feature-item:last-child { border-bottom: none; }
.sfi-icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--blue-pale); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.sfi-content { flex: 1; }
.sfi-title { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 0.18rem; }
.sfi-desc { font-family: var(--font-body); font-size: 0.8rem; color: var(--body-text); line-height: 1.55; margin: 0; }

/* =============================================
   BLOG POST CARDS
   ============================================= */
.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; position: relative;
}
.post-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.09); transform: translateY(-4px); border-color: transparent; }
.post-card__img { aspect-ratio: 16/9; overflow: hidden; position: relative; flex-shrink: 0; background: var(--slate); }
.post-card__img .img-ph { min-height: unset; transition: transform 0.45s var(--ease); }
.post-card:hover .post-card__img .img-ph { transform: scale(1.05); }
.post-card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { font-family: var(--font-display); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 0.5rem; }
.post-card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 0.5rem; flex: 1; transition: color 0.15s; letter-spacing: -0.01em; }
.post-card:hover .post-card__title { color: var(--blue); }
.post-card__excerpt { font-family: var(--font-body); font-style: italic; font-size: 0.85rem; color: var(--body-text); line-height: 1.65; margin-bottom: 0.85rem; }
.post-card__meta { font-family: var(--font-display); font-size: 0.62rem; font-weight: 600; color: var(--mist); display: flex; align-items: center; gap: 0.6rem; padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: auto; }

/* Featured blog post hero */
.post-hero-card { border-radius: var(--radius-md); overflow: hidden; position: relative; display: flex; flex-direction: column; min-height: 360px; text-decoration: none; }
.post-hero-card-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-hero-card-img .img-ph { min-height: unset; width: 100%; height: 100%; }
.post-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(14,27,53,0.94) 0%, rgba(14,27,53,0.55) 55%, rgba(14,27,53,0.1) 100%); }
.post-hero-body { position: relative; z-index: 2; padding: 2.5rem; margin-top: auto; max-width: 600px; }
.post-hero-title { font-family: var(--font-display); font-size: clamp(1.3rem,2.5vw,2.4rem); font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.75rem; }

/* =============================================
   STATS BAND
   ============================================= */
.stats-band { background: var(--midnight); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(37,99,235,0.06) 0%, transparent 65%); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.stat-item { padding: 2.75rem 2rem; text-align: center; border-right: 1px solid var(--border-dark); }
.stat-item:last-child { border-right: none; }
.stat-val { font-family: var(--font-display); font-size: clamp(2rem,4vw,4.5rem); font-weight: 800; color: var(--white); line-height: 1; display: block; letter-spacing: -0.04em; }
.stat-val em { color: var(--green-lt); font-style: normal; }
.stat-label { font-family: var(--font-display); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); display: block; margin-top: 0.45rem; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section { background: var(--midnight); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -30%; right: -5%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 65%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); }
.cta-inner p  { color: rgba(255,255,255,0.5); margin-top: 0.4rem; font-family: var(--font-body); }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-family: var(--font-display); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-lt); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--slate); color: var(--ink); padding: 0.78rem 1rem; font-family: var(--font-display); font-size: 0.9rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; appearance: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--mist); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); background: var(--white); }
.form-group textarea { height: 130px; resize: vertical; font-family: var(--font-body); font-size: 0.95rem; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232563EB' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-color: var(--slate); padding-right: 2.5rem; }

/* =============================================
   SINGLE POST / PAGE CONTENT
   ============================================= */
.post-content { font-family: var(--font-body); font-size: 1.04rem; line-height: 1.88; color: var(--ink-mid); }
.post-content h2 { font-family: var(--font-display); font-size: 1.75rem; margin: 2.5rem 0 0.9rem; color: var(--navy); }
.post-content h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 2rem 0 0.7rem; }
.post-content p  { margin-bottom: 1.3em; }
.post-content ul, .post-content ol { margin: 0 0 1.3em 1.5rem; list-style: disc; }
.post-content li { margin-bottom: 0.45em; line-height: 1.75; }
.post-content strong { color: var(--ink); font-weight: 700; font-family: var(--font-display); }
.post-content a  { color: var(--blue); border-bottom: 1px solid rgba(37,99,235,0.25); }
.post-content a:hover { color: var(--blue-lt); }
.info-callout { background: var(--blue-pale); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.info-callout p { font-size: 0.92rem; color: var(--ink-lt); margin: 0; line-height: 1.65; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer { background: var(--midnight); padding: 5rem 0 0; position: relative; }
#site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green), var(--orange), transparent 80%); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--border-dark); }
.footer-brand p { font-family: var(--font-body); font-size: 0.88rem; color: rgba(255,255,255,0.32); line-height: 1.72; margin-top: 1rem; max-width: 260px; }
.footer-col h5 { font-family: var(--font-display); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-family: var(--font-display); font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.32); transition: color 0.15s; }
.footer-col a:hover { color: var(--green-lt); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-family: var(--font-display); font-size: 0.68rem; color: rgba(255,255,255,0.18); margin: 0; letter-spacing: 0.06em; }

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.09s; }
.fade-up:nth-child(3) { transition-delay: 0.18s; }
.fade-up:nth-child(4) { transition-delay: 0.27s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-mosaic { display: none; }
  .smart-showcase { grid-template-columns: 1fr; }
  .smart-showcase-visual { min-height: 280px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .smart-feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .smart-feat-grid { grid-template-columns: 1fr 1fr; }
}
