/* ==========================================================================
   CodeMyWebsite — style.css
   Palette: Pine (trust) · Marigold (action) · Sea teal (links) · White/Mist
   Type: Bricolage Grotesque (headings) · Instrument Sans (body)
   ========================================================================== */

:root {
  /* Core palette */
  --pine-900: #0b2023;
  --pine-800: #0f2a2e;
  --pine-700: #163a3f;
  --pine-600: #1f4c52;
  --marigold: #f5b700;
  --marigold-600: #e0a600;
  --marigold-soft: #fff4d1;
  --teal: #0e7c6b;
  --teal-soft: #e3f2ef;
  --white: #ffffff;
  --mist: #f1f4f3;
  --whatsapp: #25d366;

  /* Text on light */
  --ink: #142427;
  --ink-muted: #56676a;
  --ink-dim: #839294;
  --rule: #dfe6e5;
  --rule-strong: #c9d4d2;

  /* Text on pine */
  --on-pine: #f4f7f6;
  --on-pine-muted: #a9bcbd;
  --pine-rule: rgba(255, 255, 255, 0.12);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.55em; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pine-800); }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--marigold); color: var(--pine-900);
  font-weight: 600; border-radius: var(--radius-sm); transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; cursor: pointer; text-align: center;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }

.btn-primary { background: var(--marigold); color: var(--pine-900); box-shadow: 0 6px 0 -2px var(--marigold-600); }
.btn-primary:hover { background: #ffc61a; color: var(--pine-900); transform: translateY(-2px); box-shadow: 0 8px 0 -2px var(--marigold-600); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 3px 0 -2px var(--marigold-600); }
.btn-primary:hover .btn-icon { transform: translateX(3px); }

.btn-ghost { background: transparent; border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--pine-800); color: var(--pine-800); }
.hero .btn-ghost, .section-pine .btn-ghost { border-color: rgba(255, 255, 255, 0.3); color: var(--on-pine); }
.hero .btn-ghost:hover, .section-pine .btn-ghost:hover { border-color: var(--on-pine); color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-whatsapp { background: var(--whatsapp); color: #06301a; margin-top: 8px; }
.btn-whatsapp:hover { background: #3ee07c; color: #06301a; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}
.site-header.scrolled {
  background: rgba(11, 32, 35, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--pine-rule);
  --header-h: 66px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em;
  color: var(--on-pine);
}
.logo:hover { color: #fff; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--marigold); color: var(--pine-900);
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; letter-spacing: -0.04em;
}
.logo-accent { color: var(--marigold); }

.primary-nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; gap: 2px; }
.nav-link {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--on-pine-muted); font-weight: 500; font-size: 0.97rem;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; box-shadow: inset 0 -2px 0 var(--marigold); border-radius: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; position: relative; z-index: 110;
  border: 1px solid var(--pine-rule); border-radius: 10px; background: transparent; cursor: pointer;
}
.nav-toggle-bar {
  position: absolute; left: 11px; width: 20px; height: 2px; border-radius: 2px; background: var(--on-pine);
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 96px;
  background: var(--pine-800); color: var(--on-pine);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.glow-1 { width: 520px; height: 520px; background: #1b5f5a; top: -180px; right: -120px; opacity: 0.55; }
.glow-2 { display: none; }

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  color: var(--on-pine-muted); font-size: 0.95rem; font-weight: 500;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em;
  color: #fff; margin-bottom: 26px; max-width: 15ch;
  text-wrap: balance;
}
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--on-pine-muted); max-width: 54ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 22px; border-top: 1px solid var(--pine-rule); max-width: 54ch; }
.hero-tags li { color: var(--on-pine-muted); font-size: 0.92rem; font-weight: 500; }

/* Page-load sequence (the one orchestrated motion moment) */
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero visual: browser + phone mockup */
.hero-visual { position: relative; width: 100%; max-width: 560px; justify-self: end; aspect-ratio: 1.08 / 1; }
.browser {
  position: absolute; top: 6%; left: 0; width: 88%;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: rise 0.9s 0.2s var(--ease) both;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #eef2f1; border-bottom: 1px solid var(--rule); }
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #c9d4d2; }
.browser-url {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; flex: 1; max-width: 240px;
  padding: 5px 10px; border-radius: 6px; background: #fff; font-size: 0.74rem; color: var(--ink-muted);
}
.browser-url svg { width: 11px; height: 11px; fill: none; stroke: var(--teal); stroke-width: 2.4; }
.browser-page { padding: 16px 18px 22px; }

.wf-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.wf-logo { width: 26px; height: 10px; border-radius: 3px; background: var(--pine-800); }
.wf-links { display: flex; gap: 8px; margin-left: auto; }
.wf-links i { width: 26px; height: 6px; border-radius: 3px; background: #dce4e3; }
.wf-btn { width: 44px; height: 16px; border-radius: 5px; background: var(--marigold); }

.wf-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: center; margin-bottom: 20px; }
.wf-copy i, .phone i { display: block; height: 11px; border-radius: 4px; background: var(--pine-800); margin-bottom: 8px; }
.wf-copy i.thin, .phone i.thin { height: 6px; background: #c9d4d2; }
.w90 { width: 90%; } .w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; }
.wf-copy i { transform-origin: left; animation: build 1s var(--ease) both; }
.wf-copy i:nth-child(1) { animation-delay: 0.5s; } .wf-copy i:nth-child(2) { animation-delay: 0.62s; } .wf-copy i:nth-child(3) { animation-delay: 0.74s; }
@keyframes build { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wf-cta { display: block; width: 64px; height: 20px; margin-top: 14px; border-radius: 5px; background: var(--marigold); animation: rise 0.6s 0.9s var(--ease) both; }
.wf-img {
  aspect-ratio: 4 / 3; border-radius: 10px;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 183, 0, 0.9) 0 14%, transparent 15%),
    linear-gradient(160deg, var(--teal) 0%, var(--pine-700) 100%);
}
.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wf-cards span { height: 52px; border-radius: 8px; background: var(--mist); border: 1px solid var(--rule); }

.phone {
  position: absolute; right: 0; bottom: 2%; width: 30%; padding: 22px 10px 14px;
  background: #fff; border-radius: 22px; border: 5px solid #0a1a1c;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  animation: rise 0.9s 0.45s var(--ease) both;
}
.phone-notch { position: absolute; top: 6px; left: 50%; width: 34%; height: 6px; margin-left: -17%; border-radius: 4px; background: #0a1a1c; }
.phone i { height: 8px; margin-bottom: 6px; }
.phone-img { display: block; aspect-ratio: 4 / 3; margin: 8px 0; border-radius: 8px; background: linear-gradient(160deg, var(--teal), var(--pine-700)); }
.phone-cta { display: block; height: 16px; margin-top: 8px; border-radius: 5px; background: var(--marigold); }

.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 12px; background: #fff; color: var(--ink);
  border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
  animation: rise 0.8s var(--ease) both;
}
.chip strong { display: block; font-size: 0.86rem; font-weight: 600; line-height: 1.25; }
.chip small { display: block; font-size: 0.74rem; color: var(--ink-muted); line-height: 1.3; }
.chip-search { left: -6%; bottom: 14%; animation-delay: 0.7s; }
.chip-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--teal-soft); }
.chip-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; }
.chip-growth { top: 0; right: 2%; animation-delay: 0.85s; }
.spark { width: 64px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.spark path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.4s 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; background: var(--white); color: var(--ink); }
.section-mist { background: var(--mist); }
.section-pine { background: var(--pine-800); color: var(--on-pine); }
.section-pine h2, .section-pine h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 0 56px; }
.section-title { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.section-lead { color: var(--ink-muted); font-size: 1.1rem; max-width: 62ch; margin-bottom: 0; }
.section-pine .section-lead { color: var(--on-pine-muted); }

/* Services — open list with rules, not boxed cards */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.service-card {
  padding: 32px 28px 36px 0; border-bottom: 1px solid var(--rule);
}
.service-card:not(:nth-child(4n+1)) { padding-left: 28px; border-left: 1px solid var(--rule); }
.service-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px;
  border-radius: 12px; background: var(--teal-soft); transition: background 0.25s;
}
.service-icon svg { width: 23px; height: 23px; fill: none; stroke: var(--teal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s; }
.service-card:hover .service-icon { background: var(--marigold); }
.service-card:hover .service-icon svg { stroke: var(--pine-900); }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-muted); font-size: 0.97rem; margin: 0; }

/* About / why */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: start; }
.about-copy p { color: var(--ink-muted); max-width: 52ch; }
.about-copy .btn { margin-top: 12px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 36px; padding-top: 8px; }
.why-card { padding-top: 22px; border-top: 3px solid var(--pine-800); }
.why-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-card p { color: var(--ink-muted); font-size: 0.97rem; margin: 0; }

/* Portfolio */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--rule-strong);
  background: #fff; color: var(--ink-muted); font-size: 0.93rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--pine-800); }
.filter-btn[aria-pressed="true"] { background: var(--pine-800); border-color: var(--pine-800); color: #fff; }
.filter-count { opacity: 0.6; font-size: 0.82em; margin-left: 5px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.project-card { display: flex; flex-direction: column; animation: fade 0.45s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.project-thumb {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius); background: var(--mist); border: 1px solid var(--rule);
}
.project-thumb::after {
  content: attr(data-domain); position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center; font-size: 0.9rem; color: var(--ink-dim);
}
.project-thumb img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease), opacity 0.3s;
}
.project-thumb img.img-failed { opacity: 0; }
.project-card:hover .project-thumb img { transform: scale(1.035); }
.project-live {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.96); font-size: 0.74rem; font-weight: 600; color: var(--pine-800);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.project-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--whatsapp); }
.project-body { padding: 18px 2px 0; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.project-body h3 a { color: var(--ink); background-image: linear-gradient(var(--marigold), var(--marigold)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.3s var(--ease); }
.project-card:hover h3 a, .project-body h3 a:focus-visible { background-size: 100% 3px; }
.project-body p { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 12px; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags li { font-size: 0.78rem; font-weight: 500; padding: 3px 10px; border-radius: 6px; background: var(--mist); color: var(--ink-muted); }
.portfolio-count { color: var(--ink-dim); font-size: 0.92rem; margin: 40px 0 0; text-align: center; }
.portfolio-more { display: flex; justify-content: center; margin-top: 16px; }
.noscript-note { color: var(--ink-muted); }

/* Process — a real sequence, so numbered */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.process-list::before { content: ""; position: absolute; top: 27px; left: 28px; right: 10%; height: 2px; background: var(--rule-strong); }
.process-step { position: relative; padding-right: 12px; }
.step-num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px;
  border-radius: 50%; background: var(--pine-800); color: var(--marigold);
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 0 0 8px var(--mist);
}
.process-step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.process-step p { color: var(--ink-muted); font-size: 0.97rem; margin: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card { padding: 28px 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.team-avatar {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 50%;
  background: var(--pine-800); color: var(--marigold); overflow: hidden;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-role { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }
.team-link { display: inline-block; margin-top: 12px; font-size: 0.92rem; font-weight: 500; }
.noscript-team { color: var(--ink-muted); }

/* FAQ — divider list */
.faq-wrap { max-width: 900px; }
.accordion { border-top: 1px solid var(--rule); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-heading { margin: 0; font-size: 1rem; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.01em;
}
.acc-trigger:hover { color: var(--teal); }
.acc-icon { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--mist); transition: background 0.25s; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--pine-800); border-radius: 2px; transition: transform 0.3s var(--ease);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--marigold); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.acc-panel { padding: 0 56px 26px 0; color: var(--ink-muted); }
.acc-panel p { margin: 0; max-width: 68ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info .section-title { color: #fff; }
.contact-info .section-lead { margin-bottom: 34px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list small { display: block; color: var(--on-pine-muted); font-size: 0.84rem; }
.contact-list a { color: #fff; font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: var(--marigold); }
.ci-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.ci-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--marigold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form-card {
  padding: clamp(24px, 4vw, 44px); background: #fff; color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 0.93rem; font-weight: 600; color: var(--ink); }
.req { color: #c2410c; }
.opt { color: var(--ink-dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; background: #fff; color: var(--ink); font-size: 1rem;
  border: 1.5px solid var(--rule-strong); border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356676a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 107, 0.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #dc2626; }
.field-error { margin: 6px 0 0; font-size: 0.86rem; color: #b91c1c; }
.field-error:empty { display: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(15, 42, 46, 0.3); border-top-color: var(--pine-900); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .spinner { display: inline-block; }

.form-status { margin-top: 16px; border-radius: 10px; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.success { padding: 14px 16px; background: #ecfdf3; border: 1px solid #a7f3c4; color: #14532d; }
.form-status.error { padding: 14px 16px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.form-status a { color: inherit; text-decoration: underline; font-weight: 600; }
.form-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-dim); text-align: center; }

/* Footer — continues the pine of the contact section */
.site-footer { background: var(--pine-900); color: var(--on-pine-muted); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { font-size: 0.97rem; margin: 18px 0 22px; max-width: 34ch; }
.footer-title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: var(--on-pine-muted); font-size: 0.97rem; word-break: break-word; }
.footer-col a:hover { color: var(--marigold); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); color: var(--on-pine); transition: background 0.2s, color 0.2s;
}
.social-links a:hover { background: var(--marigold); color: var(--pine-900); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 22px 24px; border-top: 1px solid var(--pine-rule); font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }
.back-top { color: var(--on-pine-muted); }
.back-top:hover { color: var(--marigold); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .service-card:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--rule); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 0; z-index: 105; flex-direction: column; justify-content: center; gap: 28px;
    padding: 90px 24px 40px; background: var(--pine-900);
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .primary-nav.open { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: center; gap: 6px; }
  .nav-link { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; padding: 8px 22px; }
  .nav-link.active { box-shadow: none; color: var(--marigold); }
  .nav-cta { padding: 15px 34px; font-size: 1.02rem; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 44px); }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { justify-self: center; max-width: 520px; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process-list::before { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 18px; }
  .services-grid, .why-grid, .portfolio-grid, .team-grid, .process-list, .form-row { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(even) { padding: 28px 0; border-left: 0; }
  .form-row { gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { margin-bottom: 40px; }
  .hero-actions .btn { width: 100%; }
  .chip { padding: 8px 12px 8px 8px; gap: 8px; }
  .chip small { display: none; }
  .chip-icon { width: 28px; height: 28px; }
  .spark { width: 44px; }
  .chip-search { left: 0; }
  .browser-page { padding: 12px 12px 16px; }
  .wf-cards span { height: 36px; }
  .acc-trigger { font-size: 1.06rem; }
  .acc-panel { padding-right: 0; }
  .footer-bottom { padding: 20px 18px; justify-content: center; text-align: center; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .spark path { stroke-dashoffset: 0; }
}
