/* WebInspired — shared styles */
:root {
  --ink: #102a4c;
  --ink-soft: #2c4466;
  --steel: #5b6b80;
  --paper: #eef2f6;
  --white: #ffffff;
  --line: #c9d3df;
  --grid: rgba(16, 42, 76, 0.07);
  --approve: #1f8a70;
  --approve-soft: #d7efe7;
  --max: 1120px;
  --radius: 6px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--approve); }
:focus-visible { outline: 3px solid var(--approve); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; font-stretch: 100%; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1rem; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--approve); border-color: var(--approve); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(238, 242, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-stretch: 112%; font-size: 1.35rem; text-decoration: none; }
.logo span { color: var(--approve); }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; }
.nav-links a[aria-current="page"] { color: var(--approve); }
.nav-links .btn { padding: 0.55rem 1rem; color: var(--white); }
.menu-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero with drafting grid */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Spec sheet: the signature element */
.spec {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  font-size: .95rem;
}
.spec-head {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.2rem; border-bottom: 2px solid var(--ink); font-weight: 700;
}
.spec-head small { font-weight: 500; color: var(--steel); }
.spec dl { margin: 0; }
.spec-row { display: grid; grid-template-columns: 9rem 1fr; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec dt, .spec dd { margin: 0; padding: .7rem 1.2rem; }
.spec dt { color: var(--steel); border-right: 1px solid var(--line); }
.spec dd { font-weight: 600; }
.stamp {
  display: inline-block; padding: .1rem .55rem; border: 2px solid var(--approve);
  color: var(--approve); border-radius: 4px; font-weight: 800; transform: rotate(-3deg);
}

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-intro { margin-bottom: 2.5rem; }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem 3rem; }
.service h3 { padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.service p { color: var(--ink-soft); font-size: 1rem; }
.service ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.service li {
  font-size: .88rem; padding: .25rem .6rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 3px;
}

/* Process (a genuine sequence, so it's numbered) */
.process { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.process > li {
  counter-increment: step;
  position: relative;
  display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem;
  padding-bottom: 2.25rem;
}
.process > li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--white); font-weight: 800; font-size: 1.25rem;
  position: relative; z-index: 1;
}
.process > li::after {
  content: ""; position: absolute; left: 1.6rem; top: 3.25rem; bottom: 0;
  border-left: 2px dashed var(--line);
}
.process > li:last-child::after { display: none; }
.process > li:last-child { padding-bottom: 0; }
.process h3 { margin-top: .7rem; }
.agreement {
  display: inline-block; margin-bottom: .6rem; padding: .2rem .65rem;
  background: var(--approve-soft); color: #145c4a; border-radius: 3px;
  font-size: .85rem; font-weight: 700;
}
.process p { color: var(--ink-soft); }

/* Clients and testimonial */
.clients { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.clients li { font-weight: 800; font-stretch: 112%; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--steel); }
blockquote {
  margin: 3rem 0 0; padding: 1.75rem 2rem;
  border-left: 6px solid var(--approve); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { font-size: 1.2rem; max-width: 60ch; }
blockquote footer { color: var(--steel); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-details { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-details li { margin-bottom: .5rem; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, textarea {
  font: inherit; padding: .75rem .9rem; border: 2px solid var(--line);
  border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%;
}
input:focus, textarea:focus { border-color: var(--approve); outline: none; }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--steel); margin: 0; }
.form-error { color: #b42318; font-size: .9rem; margin: 0; min-height: 1.2em; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #c6d2e2; }
.cta-band .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-band .btn:hover { background: var(--approve); border-color: var(--approve); color: var(--white); }

/* Footer */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--steel); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--steel); }

/* Mobile */
@media (max-width: 860px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .spec { box-shadow: 5px 5px 0 var(--ink); }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .8rem 0; }
  .nav-links .btn { text-align: center; margin-top: .5rem; padding: .8rem; }
}
@media (max-width: 480px) {
  .spec-row { grid-template-columns: 1fr; }
  .spec dt { border-right: 0; padding-bottom: 0; }
  .process > li { grid-template-columns: 3rem 1fr; gap: .9rem; }
  .process > li::before { width: 2.6rem; height: 2.6rem; font-size: 1.05rem; }
  .process > li::after { left: 1.25rem; top: 2.6rem; }
  .process h3 { margin-top: .45rem; }
  blockquote { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- v2 additions ---- */
.eyebrow-note { color: var(--steel); font-size: .95rem; margin-top: 1.25rem; }

/* Hero app mock-up: shows the kind of thing we build */
.app {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink); overflow: hidden; font-size: .88rem;
}
.app-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; border-bottom: 2px solid var(--ink); background: var(--paper); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.app-bar b { margin-left: .5rem; font-weight: 700; }
.app-tools { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.app-search { flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: .3rem .6rem; color: var(--steel); }
.app-new { background: var(--ink); color: var(--white); border-radius: 4px; padding: .3rem .7rem; font-weight: 700; white-space: nowrap; }
.app-table { overflow-x: auto; }
.app table { width: 100%; border-collapse: collapse; min-width: 340px; }
.app th, .app td { text-align: left; padding: .55rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.app th { color: var(--steel); font-weight: 600; font-size: .8rem; }
.app tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: .05rem .45rem; border-radius: 3px; font-size: .78rem; font-weight: 700; }
.tag-ok { background: var(--approve-soft); color: #145c4a; }
.tag-wait { background: #fdf0d5; color: #8a5a00; }
.tag-new { background: #e1e9f5; color: var(--ink-soft); }

/* Problems list */
.problems { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 3rem; max-width: 900px; }
@media (max-width: 640px) { .problems { grid-template-columns: 1fr; } }
.problems li { padding-left: 1.1rem; border-left: 3px solid var(--approve); }
.problems strong { display: block; margin-bottom: .25rem; }
.problems span { color: var(--ink-soft); font-size: 1rem; }

/* Secondary services line */
.also { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* Selects */
select {
  font: inherit; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); width: 100%;
}
select:focus { border-color: var(--approve); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: .5rem; }

/* ---- v3 additions ---- */
.service h3 a { text-decoration: none; }
.service h3 a:hover { color: var(--approve); }
.more { font-weight: 700; font-size: .95rem; text-decoration: none; }
.more::after { content: " →"; }

/* Featured work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.work-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.work-card .agreement { align-self: flex-start; }
.work-card p { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.past-label { font-weight: 700; color: var(--steel); margin-bottom: .75rem; }

/* Testimonial rotator */
.quotes { position: relative; margin-top: 1rem; }
.quotes blockquote { margin: 0; display: none; }
.quotes blockquote.active { display: block; animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.quote-controls { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.quote-controls button.arrow {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--white); color: var(--ink); font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.quote-controls button.arrow:hover { background: var(--ink); color: var(--white); }
.dots { display: flex; gap: .4rem; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 2px solid var(--ink); background: transparent; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--ink); }

/* Landing page content */
.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: start; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; max-width: 64ch; }
.prose li { margin-bottom: .5rem; }
.side-box { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); padding: 1.5rem; position: sticky; top: 90px; }
.side-box h3 { margin-bottom: .75rem; }
.side-box ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.side-box li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.side-box li:last-child { border-bottom: 0; }
.side-box blockquote { margin: 0; padding: 0; border: 0; background: none; }
.side-box blockquote p { font-size: 1rem; }
.breadcrumb { font-size: .9rem; color: var(--steel); margin-bottom: 1rem; }
.breadcrumb a { color: var(--steel); }

/* Footer v3 */
.site-footer { padding: 3rem 0 2rem; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-cols h4 { margin: 0 0 .75rem; color: var(--ink); font-size: 1rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: .4rem; }
.footer-cols p { font-size: .95rem; }

@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
  .side-box { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .quotes blockquote.active { animation: none; }
}

/* 8-card services grid: 4 across on wide screens */
@media (min-width: 1000px) {
  .services-4 { grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; }
}

/* WhatsApp button */
.btn-whatsapp { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; background: #1f8a70; border-color: #1f8a70; }
.btn-whatsapp:hover { background: var(--ink); border-color: var(--ink); }
.wa-icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 50;
  max-width: 640px; margin: 0 auto; background: var(--white); border: 2px solid var(--ink);
  border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); padding: 1.1rem 1.25rem;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 280px; font-size: .95rem; }
.cookie-actions { display: flex; gap: .5rem; }
.cookie-actions .btn { padding: .6rem 1.1rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--approve); }
