/* Golden Knob Engineering — site styles */
:root {
  --ink: #141416;
  --charcoal: #1c1c20;
  --charcoal-2: #26262b;
  --gold: #8d7910;          /* logo gold, for light backgrounds */
  --gold-dark: #6f5f0b;
  --gold-bright: #d4af37;   /* for dark backgrounds */
  --cream: #faf6e6;
  --paper: #fffdf6;
  --line: #e7e0c6;
  --muted: #5d5a50;
  --muted-on-dark: #c9c5b8;
  --ok: #2f7d4f;
  --err: #b3261e;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 20, 22, .10);
  --max: 1200px;
  --head: "Domine", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold-bright); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: .6rem; }
.dark .eyebrow { color: var(--gold-bright); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--body); transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-bright); color: var(--ink); }
.btn-gold:hover { background: #e2c04f; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--charcoal-2); color: #fff; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* Top bar + header */
.topbar { background: var(--ink); color: var(--muted-on-dark); font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.topbar a { color: var(--gold-bright); text-decoration: none; font-weight: 600; }
@media (max-width: 760px) { .topbar .container > span:first-child { display: none; } .topbar .container { justify-content: center; } }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { width: 240px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; white-space: nowrap; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-dark); background: rgba(141, 121, 16, .08); }
.nav .btn { padding: .65em 1.15em; margin-left: 8px; }
.nav .btn:hover { background: #e2c04f; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: .2s; }
@media (max-width: 1180px) {
  .brand img { width: 190px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--cream); transform: translateX(100%); transition: transform .25s; padding: 90px 20px 20px; box-shadow: var(--shadow); overflow-y: auto; }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .btn { margin: 10px 0 0; }
  body.nav-open { overflow: hidden; }
  .menu-toggle { position: relative; z-index: 60; }
}

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.cream { background: var(--cream); }
.dark { background: var(--charcoal); color: #ece8dc; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark p { color: var(--muted-on-dark); }
.dark a:not(.btn) { color: var(--gold-bright); }
.section-head { margin-bottom: 2.2rem; }

/* Hero */
.hero { position: relative; color: #fff; padding: clamp(48px, 7vw, 88px) 0; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,14,16,.94) 0%, rgba(14,14,16,.78) 45%, rgba(14,14,16,.35) 100%); }
.page-hero::after { background: linear-gradient(100deg, #141416 0%, #1c1c20 100%); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .lead { color: #ddd8c8; }
.hero-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 10px; }
.hero-points li { padding-left: 30px; position: relative; color: #ece8dc; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 10px; border-left: 3px solid var(--gold-bright); border-bottom: 3px solid var(--gold-bright); transform: rotate(-45deg); }
.page-hero { padding: clamp(48px, 7vw, 80px) 0; }
.page-hero .container { display: block; }
.page-hero .lead { max-width: 70ch; }
.crumbs { font-size: .88rem; margin-bottom: 1rem; color: #bdb8a8; }
.crumbs a { color: var(--gold-bright); text-decoration: none; }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } }

/* Quote form */
.quote-card { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border-top: 5px solid var(--gold-bright); }
.quote-card h2 { font-size: 1.5rem; margin-bottom: .2rem; }
.quote-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #d6cfb3; border-radius: 8px; font: inherit; font-size: .97rem; background: #fff; color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-bright); outline-offset: 1px; border-color: var(--gold); }
.field small { color: var(--muted); font-size: .8rem; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.form-status { margin-top: 12px; padding: 12px 14px; border-radius: 8px; display: none; font-weight: 600; }
.form-status.ok { display: block; background: #e8f4ec; color: var(--ok); }
.form-status.err { display: block; background: #fbeaea; color: var(--err); }
.quote-card .btn { width: 100%; margin-top: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .quote-card { padding: 20px; } }

/* Trust bar */
.trustbar { background: var(--ink); color: #ece8dc; padding: 22px 0; border-top: 1px solid #2c2c31; }
.trustbar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trustbar strong { display: block; font-family: var(--head); color: var(--gold-bright); font-size: 1.1rem; }
.trustbar span { font-size: .9rem; color: var(--muted-on-dark); }
@media (max-width: 760px) { .trustbar ul { grid-template-columns: 1fr 1fr; } }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 0 rgba(0,0,0,.02); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: .4rem; }
.card h3 a, .project h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--gold-dark); }
.card p { color: var(--muted); margin-bottom: .6rem; }
.card .more { font-weight: 700; text-decoration: none; }
.icon { width: 46px; height: 46px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; margin-bottom: 14px; color: var(--gold); }
.icon svg { width: 26px; height: 26px; }
.dark .card { background: var(--charcoal-2); border-color: #34343a; }
.dark .card p { color: var(--muted-on-dark); }

/* Projects */
.project { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.project .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.project .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover .ph img { transform: scale(1.04); }
.project .body { padding: 20px; }
.project .loc { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.project h3 { margin: .3rem 0 .5rem; }
.project p { color: var(--muted); font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags span { font-size: .78rem; background: var(--cream); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; color: #4a463a; }

.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; padding: 48px 0; border-bottom: 1px solid var(--line); }
.case:last-child { border-bottom: 0; }
.case.flip > .case-media { order: 2; }
.case-media { display: grid; gap: 12px; }
.case-media figure { margin: 0; border-radius: 12px; overflow: hidden; background: #eee; }
.case-media figure img { width: 100%; object-fit: cover; }
.case-media figcaption { font-size: .82rem; color: var(--muted); padding: 6px 2px 0; background: var(--paper); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.facts { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.facts li { border-left: 3px solid var(--gold); padding-left: 10px; font-size: .95rem; }
.facts b { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case.flip > .case-media { order: 0; } }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 24px; background: var(--charcoal-2); border-radius: var(--radius); border: 1px solid #34343a; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--head); font-size: 2rem; color: var(--gold-bright); display: block; margin-bottom: 8px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.dark .checks li::before { border-color: var(--gold-bright); }

/* Testimonials */
.quote { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; position: relative; }
.quote::before { content: "\201C"; font-family: var(--head); font-size: 4rem; line-height: 1; color: var(--gold-bright); position: absolute; top: 8px; left: 18px; opacity: .5; }
.quote blockquote { margin: 18px 0 14px; font-size: 1rem; color: #36342d; }
.quote cite { font-style: normal; font-weight: 700; display: block; }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.stars { color: var(--gold-bright); letter-spacing: 2px; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.areas li a, .areas li span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: .95rem; }
.areas li a:hover { border-color: var(--gold); color: var(--gold-dark); }
.area-block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.area-block h2 { font-size: 1.6rem; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; list-style: none; position: relative; font-size: 1.03rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 20px 18px; color: #3d3a31; }
.faq-cat { margin: 2.2rem 0 1rem; }

/* Service detail */
.svc { padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc:last-child { border-bottom: 0; }
.svc-group { scroll-margin-top: 100px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; }
.toc a { padding: 8px 14px; border-radius: 999px; background: rgba(212,175,55,.12); color: var(--gold-bright); text-decoration: none; font-weight: 600; font-size: .92rem; border: 1px solid rgba(212,175,55,.35); }
.mat { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.mat li { background: var(--ink); color: var(--gold-bright); padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .92rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--ink), var(--charcoal-2)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--muted-on-dark); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* About */
.bio { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
.bio img { border-radius: 16px; box-shadow: var(--shadow); }
.bio .creds { list-style: none; padding: 0; margin: 1rem 0; }
.bio .creds li { padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio img { max-width: 320px; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 64px 0 24px; font-size: .95rem; }
.site-footer a { color: #e9e4d4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 1rem; font-family: var(--body); letter-spacing: .08em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-logo { width: 210px; margin-bottom: 14px; }
.footer-grid .social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.footer-grid .social a { display: inline-flex; align-items: center; gap: 6px; }
.footer-grid .social svg { width: 20px; height: 20px; color: var(--gold-bright); }
.legal { border-top: 1px solid #2c2c31; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); border-top: 1px solid #333; }
  .mobile-bar a { padding: 13px 6px; text-align: center; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
  .mobile-bar a.q { background: var(--gold-bright); color: var(--ink); }
  body { padding-bottom: 52px; }
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
