/* ============================================================
   STRATA CONSTRUCTION GROUP — styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&display=swap');

/* ── Tokens ── */
:root {
  --paper:       #ffffff;
  --paper-deep:  #f5f5f5;
  --ink:         #0b0b0b;
  --ink-soft:    #525252;
  --mute:        #9b9b9b;
  --line:        #e8e8e8;
  --line-strong: #d1d1d1;
  --blue:        #0052ff;
  --blue-dark:   #0041cc;
  --blue-soft:   #eef3ff;
  --font:        'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --max-w:       1360px;
  --px:          clamp(24px, 4vw, 64px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #fff; }
body { font-family: var(--font); font-size: 16px; line-height: 1.625; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--blue); color: #fff; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

/* ── Typography ── */
.text-display-1 { font-weight: 700; letter-spacing: -0.04em; line-height: 0.92; font-size: clamp(2.75rem, 2rem + 3.5vw, 5.5rem); }
.text-display-2 { font-weight: 700; letter-spacing: -0.035em; line-height: 0.96; font-size: clamp(2.5rem, 1.8rem + 3vw, 5rem); }
.text-display-3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.75rem); }
.text-eyebrow   { font-weight: 500; letter-spacing: 0.08em; font-size: 0.6875rem; text-transform: uppercase; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 0.875rem; font-weight: 500; letter-spacing: -0.01em;
  padding: 14px 28px; border-radius: 9999px; border: 1px solid transparent;
  transition: all 0.2s var(--ease); cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.btn-primary  { background: var(--blue);  color: #fff;      border-color: var(--blue);  }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline  { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-white    { background: #fff; color: var(--blue); border-color: transparent; }
.btn-white:hover   { background: rgba(255,255,255,0.9); }
.btn-white-border  { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-white-border:hover { background: rgba(255,255,255,0.1); }
.btn-dark     { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover    { background: var(--blue); border-color: var(--blue); }
.btn-sm       { padding: 10px 16px; font-size: 0.75rem; }
.btn svg      { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s; }
.btn:hover svg { transform: translate(1px, -1px); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Section heading ── */
.section-heading { display: flex; flex-direction: column; gap: 14px; }
.section-heading.center { text-align: center; align-items: center; }
.section-heading .desc { color: var(--ink-soft); max-width: 52ch; font-size: 0.9375rem; line-height: 1.65; }
.section-heading.center .desc { margin-inline: auto; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
#navbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 0 0 var(--line);
  backdrop-filter: blur(4px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; max-width: var(--max-w); margin-inline: auto;
  padding-inline: var(--px);
}
.nav-logo { font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.07em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid var(--line-strong); color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: #fff;
  overflow: hidden;
}
.mobile-menu.open { display: block; animation: mobileDown 0.3s var(--ease); }
@keyframes mobileDown { from { opacity: 0; height: 0; } to { opacity: 1; } }
.mobile-menu a {
  display: block; border-bottom: 1px solid var(--line);
  padding: 14px var(--px); font-size: 1rem; font-weight: 500; color: var(--ink);
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu-footer { padding: 20px var(--px); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero { background: #fff; }
.hero-spacer { height: 56px; }
.hero-card-wrap {
  max-width: var(--max-w); margin-inline: auto;
  padding-inline: var(--px);
}
.hero-card {
  position: relative; overflow: hidden; border-radius: 16px;
  min-height: 84vh;
}
.hero-card::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.25); pointer-events: none; z-index: 0;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-image: url('hero_house_provided.png');
  background-size: cover; background-position: center;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 84vh;
}
.hero-left { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px, 4vw, 48px); }
.hero-right-col {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(32px, 4vw, 48px);
}
.hero-right-inner {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 28px 28px 24px;
}
.hero-headline {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.05);
}
.hero-body { font-size: 0.9375rem; line-height: 1.65; color: rgba(255,255,255,0.85); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 20px; }
.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Stats strip */
.hero-stats-strip { border-bottom: 1px solid var(--line); }
.hero-stats-inner {
  max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--line);
}
.stat-strip-item { padding: 24px 0; padding-right: 32px; }
.stat-strip-item + .stat-strip-item { padding-left: 32px; border-left: 1px solid var(--line); }
.stat-strip-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.stat-strip-label { font-size: 0.75rem; color: var(--mute); margin-top: 2px; }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about { background: #fff; padding-block: 80px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.about-img-wrap { aspect-ratio: 4/5; overflow: hidden; border-radius: 16px; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: flex; flex-direction: column; justify-content: center; }
.about-body { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; font-size: 0.9375rem; line-height: 1.7; color: var(--ink-soft); }
.about-facts {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 32px;
}
.about-fact { padding-inline: 24px; }
.about-fact:first-child { padding-left: 0; }
.about-fact + .about-fact { border-left: 1px solid var(--line); }
.about-fact-value { font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.75rem); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.about-fact-label { font-size: 0.75rem; color: var(--mute); margin-top: 4px; }
.about-cta { margin-top: 32px; }

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
#services { background: #fff; padding-block: 24px 32px; }
.services-card-wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); }
.services-card {
  border-radius: 16px; background: var(--blue);
  padding: clamp(32px, 4vw, 48px);
}
.services-intro { max-width: 560px; }
.services-intro .text-eyebrow { color: rgba(255,255,255,0.55); }
.services-intro h2 { color: #fff; margin-top: 20px; }
.services-intro p { margin-top: 20px; font-size: 0.9375rem; line-height: 1.65; color: rgba(255,255,255,0.65); }
.services-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.2);
}
.service-item {
  padding: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.service-item:hover { background: rgba(255,255,255,0.05); }
.service-item:nth-child(3n) { border-right: none; }
.service-item:nth-last-child(-n+3) { border-bottom: none; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; }
.service-icon { color: rgba(255,255,255,0.8); }
.service-icon svg { width: 24px; height: 24px; }
.service-num { font-size: 0.6875rem; font-weight: 500; color: rgba(255,255,255,0.35); }
.service-title { margin-top: 32px; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.service-desc { margin-top: 12px; font-size: 0.875rem; line-height: 1.65; color: rgba(255,255,255,0.65); }

/* ══════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════ */
#projects { background: #fff; padding-block: 80px; }
.projects-top {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
@media (min-width: 1024px) {
  .projects-top { flex-direction: row; align-items: flex-end; }
}
.filter-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border-radius: 9999px; border: 1px solid var(--line);
  padding: 8px 16px; font-size: 0.875rem; font-weight: 500;
  color: var(--ink-soft); background: transparent;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.projects-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.project-card { }
.project-img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 12px; background: var(--paper-deep);
  border: 1px solid var(--line);
}
.project-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.project-card:hover .project-img-wrap img { transform: scale(1.04); }
.project-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  padding: 4px 12px; border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 600; color: var(--ink);
}
.project-info { margin-top: 20px; padding-inline: 4px; }
.project-info-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project-name { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.project-year { font-size: 0.75rem; color: var(--mute); flex-shrink: 0; }
.project-meta { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--mute); margin-top: 6px; }
.project-meta svg { width: 12px; height: 12px; }
.project-desc { margin-top: 12px; font-size: 0.875rem; line-height: 1.65; color: var(--ink-soft); }
.project-card.hidden { display: none; }

/* ══════════════════════════════════════════
   WHY CHOOSE US
══════════════════════════════════════════ */
#why { background: var(--paper-deep); padding-block: 80px; }
.why-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.why-item {
  padding: 40px 32px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.why-item:last-child { border-right: none; }
.why-icon { color: var(--blue); }
.why-icon svg { width: 24px; height: 24px; }
.why-title { margin-top: 24px; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.why-desc { margin-top: 12px; font-size: 0.875rem; line-height: 1.65; color: var(--ink-soft); }

/* ══════════════════════════════════════════
   PROCESS
══════════════════════════════════════════ */
#process { background: #fff; padding-block: 80px; }
.process-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.process-right { position: relative; }
.process-line-bg {
  position: absolute; left: 19px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.process-line-fill {
  position: absolute; left: 19px; top: 8px; bottom: 8px;
  width: 1px; background: var(--blue);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-line-fill.animate { transform: scaleY(1); }
.process-step { display: flex; gap: 28px; padding-bottom: 28px; position: relative; }
.process-step:last-child { padding-bottom: 0; }
.step-circle {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600; position: relative; z-index: 1;
}
.step-body { padding-top: 6px; }
.step-title { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.step-desc { margin-top: 10px; font-size: 0.875rem; line-height: 1.65; color: var(--ink-soft); max-width: 480px; }

/* ══════════════════════════════════════════
   STATS
══════════════════════════════════════════ */
#stats { background: #fff; padding-block: 24px 32px; }
.stats-card-wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); }
.stats-card {
  border-radius: 16px; background: var(--blue);
  padding: clamp(32px, 4vw, 48px);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap-y: 48px; border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 48px;
}
.stat-item { }
.stat-value { font-weight: 700; letter-spacing: -0.04em; line-height: 0.92; font-size: clamp(2.75rem, 2rem + 3.5vw, 5.5rem); color: #fff; }
.stat-label { margin-top: 12px; font-size: 0.875rem; color: rgba(255,255,255,0.55); }

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
#testimonials { background: #fff; padding-block: 80px; }
.testimonials-body { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 48px; }
.quote-mark { font-size: 80px; font-weight: 700; line-height: 1; color: var(--blue); user-select: none; }
.testimonial-slide { min-height: 144px; margin-top: 8px; }
@media (min-width: 768px) { .testimonial-slide { min-height: 96px; } }
.testimonial-quote {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500;
  line-height: 1.5; letter-spacing: -0.02em; color: var(--ink);
  max-width: 900px;
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.testimonial-author { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.author-name { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.author-role { font-size: 0.75rem; color: var(--mute); margin-top: 2px; }
.testimonial-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px;
}
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-dot {
  height: 6px; border-radius: 9999px; background: var(--line);
  transition: all 0.3s var(--ease); cursor: pointer; border: none;
}
.carousel-dot.active { width: 24px; background: var(--blue); }
.carousel-dot:not(.active) { width: 6px; }
.carousel-arrows { display: flex; gap: 12px; }
.carousel-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.carousel-arrow:hover { border-color: var(--ink); }
.carousel-arrow svg { width: 16px; height: 16px; }
.testimonial-fade { opacity: 0; transform: translateY(10px); }

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
#faq { background: var(--paper-deep); padding-block: 80px; }
.faq-list { max-width: 768px; margin-inline: auto; margin-top: 56px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 24px; text-align: left;
}
.faq-question { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-soft); transition: color 0.2s; }
.faq-item.open .faq-question { color: var(--ink); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue-dark); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  font-size: 0.875rem; line-height: 1.7; color: var(--ink-soft);
  overflow: hidden; max-height: 0;
  transition: max-height 0.35s var(--ease), padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 28px; }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
#contact { padding-block: 96px; }
.contact-panels {
  margin-top: 64px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: start;
}
.contact-left-panel {
  border-radius: 24px; background: var(--ink); padding: clamp(32px, 4vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.contact-left-panel .text-eyebrow { color: var(--blue); }
.contact-left-title { margin-top: 20px; color: #fff; }
.contact-left-title span { color: var(--blue); }
.contact-left-sub { margin-top: 16px; font-size: 0.875rem; line-height: 1.65; color: rgba(255,255,255,0.6); }
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; }
.contact-detail-icon { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.contact-detail-value { margin-top: 4px; font-size: 0.875rem; font-weight: 500; color: #fff; }
.contact-right-panel {
  border-radius: 24px; border: 1px solid var(--line); background: var(--paper-deep);
  padding: clamp(32px, 4vw, 40px); position: relative; overflow: hidden;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 8px; }
.field-input, .field-select, .field-textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--line-strong);
  background: #fff; padding: 12px 16px;
  font-size: 0.875rem; color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--mute); }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,82,255,0.1);
}
.field-input.err, .field-select.err, .field-textarea.err { border-color: #f87171; }
.field-error { display: block; font-size: 0.75rem; color: #dc2626; margin-top: 6px; min-height: 16px; }
.field-textarea { resize: none; }
.form-honey { position: absolute; left: -9999px; top: auto; height: 1px; width: 1px; overflow: hidden; }
.form-submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; background: var(--ink); color: #fff;
  padding: 16px 24px; font-size: 0.875rem; font-weight: 600;
  border: none; cursor: pointer; width: 100%;
  transition: background 0.2s;
}
.form-submit-btn:hover { background: var(--blue); }
.form-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
@media (min-width: 640px) { .form-submit-btn { width: auto; } }
.form-success-state {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 380px;
}
.form-success-state.visible { display: flex; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
}
.success-icon svg { width: 28px; height: 28px; }
.success-title { margin-top: 24px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.success-body { margin-top: 12px; font-size: 0.875rem; line-height: 1.65; color: var(--ink-soft); max-width: 36ch; }
.success-reset { margin-top: 32px; font-size: 0.875rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; cursor: pointer; background: none; border: none; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#footer { border-top: 1px solid var(--line); background: #fff; color: var(--ink); }
.footer-grid {
  padding-block: 64px;
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 48px;
}
.footer-logo { font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.07em; color: var(--ink); }
.footer-tagline { margin-top: 20px; font-size: 0.875rem; line-height: 1.65; color: var(--ink-soft); max-width: 36ch; }
.footer-socials { margin-top: 24px; display: flex; align-items: center; gap: 20px; }
.footer-social { font-size: 0.75rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.footer-social:hover { color: var(--ink); }
.footer-col-title { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.875rem; color: var(--ink-soft); transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }
.footer-newsletter-desc { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.6; }
.footer-newsletter-form { margin-top: 16px; }
.footer-newsletter-row {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
  transition: border-color 0.2s;
}
.footer-newsletter-row:focus-within { border-color: var(--ink); }
.footer-email-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 0.875rem; color: var(--ink);
}
.footer-email-input::placeholder { color: var(--mute); }
.footer-signup-btn { font-size: 0.875rem; font-weight: 600; color: var(--blue); flex-shrink: 0; }
.footer-signup-btn:hover { color: var(--blue-dark); }
.footer-bottom {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line); padding-block: 32px;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; }
}
.footer-copy { font-size: 0.75rem; color: var(--mute); }
.footer-legal { display: flex; align-items: center; gap: 24px; }
.footer-legal a { font-size: 0.75rem; color: var(--mute); transition: color 0.2s; }
.footer-legal a:hover { color: var(--ink); }
.back-top {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: none; transition: all 0.2s;
}
.back-top:hover { border-color: var(--ink); color: var(--ink); }
.back-top svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Desktop: equal padding both sides, matching md:py-28 / md:py-32 */
@media (min-width: 768px) {
  #about, #projects, #why, #process, #testimonials, #faq { padding-block: 112px; }
  #contact { padding-block: 128px; }
  .footer-grid { padding-block: 80px; }
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(2n) { border-right: none; }
  .service-item:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.2); }
  .service-item:nth-child(2n) { border-right: none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(2n) { border-right: none; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-panels { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta-desktop { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .hero-left { justify-content: flex-start; padding-bottom: 0; min-width: 0; }
  .hero-right-col { padding: 0 12px 12px; min-width: 0; width: 100%; }
  .hero-right-inner { padding: 20px 20px 16px; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { padding: 12px 14px; font-size: 0.6875rem; }
  .about-facts { grid-template-columns: 1fr; }
  .about-fact + .about-fact { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; margin-top: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item:nth-child(n) { border-right: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-strip-item + .stat-strip-item { border-left: none; padding-left: 0; }
  .contact-panels { grid-template-columns: 1fr; }
}

/* ── Back to gateway (mobile only) ───────────────────────── */
.back-to-gateway {
  display: none;
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999;
  align-items: center; gap: 6px;
  background: rgba(11,11,11,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; text-decoration: none;
  font-family: var(--font); font-size: 0.8125rem; font-weight: 500;
  padding: 11px 20px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
  transition: background 0.2s;
}
.back-to-gateway:hover { background: rgba(11,11,11,0.96); }
.back-to-gateway svg { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 768px) {
  .back-to-gateway { display: flex; }
}

/* ── Device switcher (desktop only) ──────────────────────── */
.device-switcher {
  display: none;
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999;
  align-items: center; gap: 6px;
  background: rgba(11,11,11,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 8px 10px;
}
.device-switcher-label {
  font-family: var(--font); font-size: 0.6875rem; font-weight: 600;
  color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0 4px;
}
.device-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 7px;
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-family: var(--font); font-size: 0.8125rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.device-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.device-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.device-btn--home { color: rgba(255,255,255,0.5); }
.device-switcher-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.12); margin: 0 2px; flex-shrink: 0; }

@media (min-width: 769px) {
  .device-switcher { display: flex; }
}
