/* ============================================
   GRIDSPAN SOLUTIONS — CLEAN PREMIUM THEME
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=DM+Serif+Display&display=swap');

:root {
  --white:      #ffffff;
  --off-white:  #f8f7f5;
  --light:      #f2f0ed;
  --border:     #e5e2dc;
  --text:       #1a1a1a;
  --text-mid:   #4a4a4a;
  --text-light: #888880;
  --blue:       #1a3a5c;
  --blue-mid:   #2d5a8e;
  --blue-light: #e8eff8;
  --orange:     #c4622d;
  --serif:      'DM Serif Display', serif;
  --sans:       'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo .wordmark { font-family: var(--serif); font-size: 1.3rem; color: var(--blue); }
.nav-logo .dot { width: 5px; height: 5px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.875rem; color: var(--text-mid); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta { background: var(--blue) !important; color: var(--white) !important; padding: 0.6rem 1.4rem !important; font-weight: 500 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--blue-mid) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--white); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; gap: 1.25rem; }
  .nav-links.open { display: flex; }
}

main { padding-top: 68px; }

/* ── HERO ── */
.hero { padding: 7rem 0 5rem; border-bottom: 1px solid var(--border); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 500; color: var(--orange);
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 1.75rem;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--orange); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400; line-height: 1.05;
  color: var(--blue); max-width: 820px; margin-bottom: 2rem;
}
.hero h1 em { font-style: italic; color: var(--text); }
.hero-desc { font-size: 1.1rem; color: var(--text-mid); max-width: 540px; line-height: 1.8; margin-bottom: 2.5rem; font-weight: 300; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 0; margin-top: 5rem; border-top: 1px solid var(--border); padding-top: 3rem; }
.hero-stat { flex: 1; padding-right: 2.5rem; border-right: 1px solid var(--border); margin-right: 2.5rem; }
.hero-stat:last-child { border-right: none; margin-right: 0; }
.hero-stat .num { font-family: var(--serif); font-size: 2.4rem; color: var(--blue); line-height: 1; margin-bottom: 0.3rem; }
.hero-stat .label { font-size: 0.8rem; color: var(--text-light); }

@media (max-width: 600px) {
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; padding-right: 0; margin-right: 0; }
  .hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--blue); color: var(--white);
  font-size: 0.875rem; font-weight: 500; padding: 0.85rem 1.75rem;
  transition: background 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--blue-mid); color: var(--white); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--text-mid);
  font-size: 0.875rem; font-weight: 400; padding: 0.85rem 1.75rem;
  border: 1px solid var(--border); transition: all 0.2s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-text { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 500; color: var(--blue); transition: gap 0.2s; }
.btn-text:hover { gap: 0.7rem; }
.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white); color: var(--blue);
  font-size: 0.875rem; font-weight: 500; padding: 0.85rem 1.75rem;
  transition: opacity 0.2s; white-space: nowrap;
}
.btn-white:hover { opacity: 0.9; }

/* ── SECTIONS ── */
section { padding: 6rem 0; }
.bg-off { background: var(--off-white); }
.bg-light { background: var(--light); }
.bg-blue { background: var(--blue); }
.bg-blue .section-title { color: var(--white); }
.bg-blue .section-desc { color: rgba(255,255,255,0.65); }

.section-eyebrow {
  font-size: 0.75rem; font-weight: 500; color: var(--orange);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.section-eyebrow::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--orange); }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.15; color: var(--blue); margin-bottom: 1.25rem; }
.section-desc { font-size: 1rem; color: var(--text-mid); font-weight: 300; max-width: 520px; line-height: 1.8; }

/* ── PROBLEM STRIP ── */
.problem-strip { background: var(--blue); padding: 3.5rem 0; }
.problem-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.problem-item { padding: 0 3rem; border-right: 1px solid rgba(255,255,255,0.12); }
.problem-item:first-child { padding-left: 0; }
.problem-item:last-child { border-right: none; }
.problem-item h4 { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--white); margin-bottom: 0.6rem; }
.problem-item p { font-size: 0.875rem; color: rgba(255,255,255,0.6); font-weight: 300; line-height: 1.7; }

@media (max-width: 768px) {
  .problem-strip-inner { grid-template-columns: 1fr; gap: 2rem; }
  .problem-item { padding: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 2rem; }
  .problem-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ── SERVICE CARDS ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  padding: 2.5rem; border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(26,58,92,0.06); }
.service-num { font-size: 0.72rem; font-weight: 500; color: var(--text-light); letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.service-icon { font-size: 1.4rem; margin-bottom: 1rem; }
.service-card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; color: var(--blue); margin-bottom: 0.75rem; line-height: 1.3; }
.service-card p { font-size: 0.875rem; color: var(--text-mid); font-weight: 300; line-height: 1.75; margin-bottom: 1.25rem; }
.service-link { font-size: 0.8rem; font-weight: 500; color: var(--blue); display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.service-link:hover { gap: 0.6rem; }

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

/* ── TWO COLUMN ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse { direction: ltr; }
}

/* ── INFO PANEL ── */
.info-panel { background: var(--off-white); border: 1px solid var(--border); padding: 2.5rem; }
.info-panel-title { font-size: 0.72rem; font-weight: 500; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.85rem 0; border-bottom: 1px solid var(--border); gap: 1rem; }
.info-row:last-child { border-bottom: none; }
.info-row .key { font-size: 0.85rem; color: var(--text-light); }
.info-row .val { font-size: 0.875rem; color: var(--text); font-weight: 500; text-align: right; }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2.5rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; font-size: 0.95rem; color: var(--text-mid); font-weight: 300; line-height: 1.7; }
.feature-list li::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--orange); margin-top: 0.7em; flex-shrink: 0; }

/* ── PROCESS ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-step { padding: 2rem; background: var(--off-white); border: 1px solid var(--border); position: relative; }
.process-step::after { content: '→'; position: absolute; right: -1.1rem; top: 2.5rem; color: var(--text-light); font-size: 0.9rem; z-index: 1; }
.process-step:last-child::after { display: none; }
.process-num { font-family: var(--serif); font-size: 2rem; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.process-step h4 { font-size: 0.9rem; font-weight: 500; color: var(--blue); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.82rem; color: var(--text-light); font-weight: 300; line-height: 1.65; }

@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } .process-step::after { display: none; } }
@media (max-width: 500px) { .process-grid { grid-template-columns: 1fr; } }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { border-top: 2px solid var(--border); padding-top: 1.75rem; display: flex; flex-direction: column; transition: border-color 0.2s; }
.blog-card:hover { border-color: var(--blue); }
.blog-tag { font-size: 0.72rem; font-weight: 500; color: var(--orange); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.75rem; }
.blog-card h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--blue); line-height: 1.35; margin-bottom: 0.75rem; }
.blog-card h3 a { transition: opacity 0.2s; }
.blog-card h3 a:hover { opacity: 0.7; }
.blog-card p { font-size: 0.875rem; color: var(--text-mid); font-weight: 300; line-height: 1.75; flex: 1; margin-bottom: 1.25rem; }
.blog-meta { font-size: 0.75rem; color: var(--text-light); display: flex; gap: 1rem; }

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

/* ── BLOG POST ── */
.post-header { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--border); background: var(--off-white); }
.post-body { padding: 3.5rem 0 6rem; }
.post-body h2 { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; color: var(--blue); margin: 2.5rem 0 1rem; }
.post-body p { font-size: 1rem; color: var(--text-mid); font-weight: 300; line-height: 1.9; margin-bottom: 1.25rem; }
.post-body strong { color: var(--text); font-weight: 500; }
.post-body ul { margin: 1rem 0 1.5rem 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.post-body ul li { font-size: 0.95rem; color: var(--text-mid); font-weight: 300; padding-left: 1.25rem; position: relative; line-height: 1.7; }
.post-body ul li::before { content: '—'; position: absolute; left: 0; color: var(--text-light); }
.callout { border-left: 2px solid var(--blue); padding: 1.25rem 1.75rem; margin: 2rem 0; background: var(--blue-light); }
.callout p { font-family: var(--serif) !important; font-size: 1.05rem !important; color: var(--blue) !important; font-style: italic; margin: 0 !important; line-height: 1.6 !important; }

/* ── CONTACT ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 3rem; } }
.contact-info-block { margin-bottom: 2rem; }
.contact-info-block h4 { font-size: 0.72rem; font-weight: 500; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.contact-info-block p { font-size: 0.95rem; color: var(--text-mid); font-weight: 300; }

/* ── FORM ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-mid); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--white); border: 1px solid var(--border);
  color: var(--text); font-family: var(--sans); font-size: 0.925rem;
  padding: 0.8rem 1rem; transition: border-color 0.2s; outline: none;
  border-radius: 0; -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ── CTA BAND ── */
.cta-band { background: var(--blue); padding: 5rem 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; color: var(--white); max-width: 500px; }

/* ── PAGE HEADER ── */
.page-header { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--border); background: var(--off-white); }
.page-header h1 { font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 400; color: var(--blue); margin-bottom: 0.75rem; line-height: 1.1; }
.page-header p { font-size: 1rem; color: var(--text-mid); font-weight: 300; max-width: 520px; line-height: 1.8; }

/* ── FOOTER ── */
footer { background: var(--white); border-top: 1px solid var(--border); padding: 3.5rem 0 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.footer-wordmark { font-family: var(--serif); font-size: 1.2rem; color: var(--blue); margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.875rem; color: var(--text-light); font-weight: 300; line-height: 1.7; max-width: 300px; }
.footer-col h5 { font-size: 0.72rem; font-weight: 500; color: var(--text); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-light); font-weight: 300; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-light); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── UTILS ── */
.tag { font-size: 0.75rem; color: var(--text-light); border: 1px solid var(--border); padding: 0.25rem 0.7rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--border); }
