/* Omnitrace SA — warm, approachable, local */
:root {
  --sand:      #E8DFD3;
  --cream:     #FAF6F0;
  --cream-2:   #F1EADF;
  --terra:     #9C4A2E;
  --terra-dk:  #7C3820;
  --ink:       #1F1B18;
  --ink-2:     #3A332D;
  --muted:     #6B615A;
  --olive:     #6B7A4F;
  --line:      #DDD1BF;
  --shadow:    0 8px 30px rgba(31,27,24,.08);
  --radius:    14px;
  --maxw:      1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
a  { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform .1s, background .2s, color .2s, border-color .2s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dk); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { background: var(--cream-2); color: var(--ink); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250,246,240,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.brand-mark { color: var(--terra); display: inline-flex; }
.brand-za { color: var(--terra); }
.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav > a, .has-sub > a { color: var(--ink-2); font-weight: 500; padding: .35rem .1rem; position: relative; }
.primary-nav > a:hover, .has-sub > a:hover { color: var(--terra); text-decoration: none; }
.has-sub { position: relative; }
.has-sub .sub { position: absolute; top: 100%; left: -.75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; min-width: 240px; display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub .sub a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--ink-2); }
.has-sub .sub a:hover { background: var(--cream-2); color: var(--terra); text-decoration: none; }
.nav-toggle { display: none; background: transparent; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { position: relative; padding: 3.5rem 0 3rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero .eyebrow { display: inline-block; padding: .3rem .75rem; background: var(--sand); color: var(--terra-dk); border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 span { color: var(--terra); }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 32rem; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust span::before { content: "✓"; color: var(--olive); font-weight: 700; margin-right: .4rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: -12px -12px auto auto; width: 60%; height: 60%; border: 1px solid var(--terra); border-radius: var(--radius); z-index: -1; }

/* Stats */
.stats { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats .num { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--terra-dk); font-weight: 700; line-height: 1; }
.stats .lbl { color: var(--ink-2); font-size: .9rem; margin-top: .3rem; }

/* Sections */
.section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; }
.section-head .eyebrow { color: var(--terra); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--terra); }
.service-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sand); color: var(--terra-dk); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: .35rem; }
.service-card p { color: var(--muted); margin-bottom: 1rem; font-size: .95rem; }
.service-card .more { margin-top: auto; color: var(--terra); font-weight: 600; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--cream-2); border-radius: var(--radius); padding: 1.75rem; position: relative; }
.step .n { font-family: 'Fraunces', serif; font-size: 2.5rem; color: var(--terra); line-height: 1; margin-bottom: .5rem; }

/* Testimonials */
.testimonials { background: var(--cream-2); }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tcard { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); }
.tcard blockquote { margin: 0 0 1rem; font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--ink-2); }
.tcard cite { color: var(--muted); font-style: normal; font-size: .9rem; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--cream); padding: 3.5rem 0; text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(250,246,240,.8); max-width: 40rem; margin: 0 auto 1.5rem; }

/* Service detail page */
.page-hero { padding: 3rem 0 2rem; background: var(--sand); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { color: var(--terra-dk); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.page-hero p.lede { max-width: 42rem; font-size: 1.1rem; color: var(--ink-2); }
.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.content-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.content ul.check { list-style: none; padding: 0; margin: 1rem 0; }
.content ul.check li { padding-left: 1.75rem; position: relative; margin-bottom: .5rem; }
.content ul.check li::before { content: "✓"; color: var(--olive); font-weight: 700; position: absolute; left: 0; top: 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--terra); box-shadow: var(--shadow); transform: translateY(-8px); }
.plan .tag { display: inline-block; background: var(--terra); color: #fff; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .75rem; }
.plan h3 { font-size: 1.4rem; }
.plan .price { font-family: 'Fraunces', serif; font-size: 2.4rem; color: var(--terra-dk); font-weight: 700; margin: .5rem 0 .25rem; }
.plan .price small { font-size: .9rem; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.plan li { padding: .4rem 0 .4rem 1.5rem; position: relative; border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓"; color: var(--olive); position: absolute; left: 0; font-weight: 700; }
.plan .btn { margin-top: auto; }

/* FAQ */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
details.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::after { content: "+"; color: var(--terra); font-size: 1.4rem; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: .75rem; color: var(--ink-2); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
.contact-info { background: var(--cream-2); border-radius: var(--radius); padding: 2rem; }
.contact-info h3 { color: var(--terra-dk); }
.contact-info dt { font-weight: 600; margin-top: 1rem; }
.contact-info dd { margin: .1rem 0 0; color: var(--ink-2); }

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 1rem; }
label { display: block; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; margin-top: .35rem; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); font-weight: 400;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--terra); outline-offset: 1px; border-color: var(--terra); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { min-height: 1.25rem; font-size: .95rem; }
.form-status.ok { color: var(--olive); font-weight: 600; }
.form-status.err { color: #B33A1A; font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer h4 { color: var(--cream); font-family: 'Inter', sans-serif; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand, .site-footer .brand-name { color: var(--cream); }
.site-footer .brand-mark, .site-footer .brand-za { color: var(--terra); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(250,246,240,.75); }
.footer-links a:hover { color: var(--cream); }
.footer-callback { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-callback input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: var(--cream); }
.footer-callback input::placeholder { color: rgba(250,246,240,.55); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; color: rgba(250,246,240,.6); font-size: .85rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { margin: 0; }

/* WhatsApp float */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.15); z-index: 50; }
.wa-float:hover { text-decoration: none; transform: scale(1.05); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(31,27,24,.55); backdrop-filter: blur(2px); }
.modal-panel { position: relative; background: var(--cream); border-radius: var(--radius); padding: 2rem; max-width: 620px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-close { position: absolute; top: .75rem; right: 1rem; background: transparent; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-close:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .content-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .tgrid, .pricing-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; top: 61px; right: 0; left: 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav > a, .has-sub > a { padding: .75rem .5rem; border-bottom: 1px solid var(--line); }
  .has-sub .sub { position: static; box-shadow: none; border: 0; background: var(--cream-2); }
  .cta-quote { margin-top: .5rem; }
}
@media (max-width: 520px) {
  .services-grid, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3rem 0; }
}
