/* ============================================================
   Blaine Robert Design — blainerobertdesign.ae
   Design system: premium / architectural / restrained
   Edit tokens below to retune the whole site.
   ============================================================ */
:root {
  --bg: #f6f4ef;          /* warm ivory */
  --surface: #fffdf8;
  --ink: #17140f;         /* near-black */
  --ink-soft: #3d382f;
  --muted: #6f675a;
  --line: #e1dbcf;
  --accent: #a2764a;      /* quiet bronze */
  --accent-deep: #7d5a37;
  --footer-bg: #17140f;
  --footer-ink: #eae5da;
  --max: 1180px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a { color: var(--accent-deep); border-bottom: 1px solid var(--line); }
p a:hover, li a:hover { border-color: var(--accent-deep); }

/* ---------- type scale ---------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46em; }
.eyebrow {
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 1.1rem;
}
.serif-i { font-style: italic; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(64px, 9vw, 120px) 0; }
section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.rule { border: 0; border-top: 1px solid var(--line); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, box-shadow .35s;
  padding: 14px 0;
}
.topbar.scrolled { background: rgba(246,244,239,.96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.nav a { opacity: .85; } .nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--accent-deep); }
.nav .has-sub { position: relative; }
.nav .sub {
  visibility: hidden; opacity: 0; transition: opacity .2s;
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line); padding: 10px 0;
  display: flex; flex-direction: column; gap: 0; text-transform: none; letter-spacing: 0; font-size: .9rem;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { visibility: visible; opacity: 1; }
.nav .sub a { padding: 10px 18px; }
.nav .sub a:hover { background: var(--bg); }

.btn {
  display: inline-block; padding: 13px 26px; border: 1px solid var(--ink);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .25s, color .25s; text-align: center;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost-light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn.ghost-light:hover { background: #fff; color: var(--ink); }
.wa-link { display: inline-flex; align-items: center; gap: 8px; }
.wa-dot { width: 9px; height: 9px; border-radius: 50%; background: #25d366; display: inline-block; }

/* mobile menu */
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; }
.hero.short { min-height: 62vh; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,12,8,.28) 0%, rgba(15,12,8,.18) 45%, rgba(15,12,8,.72) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 140px; }
.hero .eyebrow { color: #d8b990; }
.hero h1 { max-width: 15ch; text-wrap: balance; }
.hero .lede { color: rgba(255,255,255,.88); margin-top: 1.4rem; }
.hero .cta-row { margin-top: 2.2rem; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.card h3 { margin-bottom: .2rem; }
.card .more { margin-top: auto; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.tile { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.tile:hover img { transform: scale(1.035); }
.tile figcaption { padding: 18px 20px 20px; }
.tile figcaption .loc { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.tile h3 { font-size: 1.35rem; }

/* steps */
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step .n { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.step h3 { margin: .5rem 0 .4rem; }

/* proof band */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.proof .wrap { display: flex; flex-wrap: wrap; gap: 18px 48px; justify-content: center; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.proof span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.proof b { color: var(--ink); font-weight: 600; }

/* quote */
.quote { max-width: 800px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; font-style: italic; }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- FAQ (no-JS accordions) ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 4px; font-family: var(--font-display); font-size: 1.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 4px 24px; color: var(--ink-soft); max-width: 62em; }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cmp td:first-child { font-weight: 600; width: 26%; }

/* deliverables list */
.dlist { list-style: none; }
.dlist li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.dlist li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 1.5px; background: var(--accent); }
.dlist b { display: block; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery img { border: 1px solid var(--line); aspect-ratio: 3/2; object-fit: cover; }
.gallery .tall { grid-row: span 2; } .gallery .tall img { aspect-ratio: auto; height: 100%; }

/* meta line on case studies */
.meta-line { display: flex; flex-wrap: wrap; gap: 10px 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 2rem 0; }
.meta-line div { font-size: .85rem; }
.meta-line span { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { font-size: .85rem; color: var(--muted); }

/* contact side */
.contact-side { background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.contact-side h3 { margin-bottom: 1rem; }
.contact-side dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-side dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-side dd { margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--bg); text-align: center; }
.cta-band .eyebrow { color: var(--accent); }
.cta-band h2 { max-width: 22ch; margin: 0 auto; }
.cta-band .btn { border-color: rgba(246,244,239,.8); color: var(--bg); }
.cta-band .btn:hover { background: var(--bg); color: var(--ink); }
.cta-band .btn.solid { background: var(--accent-deep); border-color: var(--accent-deep); }
.cta-band .btn.solid:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ---------- footer ---------- */
footer { background: var(--footer-bg); color: var(--footer-ink); padding: clamp(48px, 7vw, 80px) 0 32px; font-size: .92rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
footer h4 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #9a8f7d; margin-bottom: 14px; font-weight: 600; }
footer a { opacity: .85; } footer a:hover { opacity: 1; color: #d8b990; }
footer ul { list-style: none; } footer li { margin: 8px 0; }
footer .crest { height: 72px; width: auto; margin-bottom: 16px; }
.legal { border-top: 1px solid rgba(234,229,218,.18); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: .78rem; color: #9a8f7d; }

/* breadcrumbs */
.crumbs { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 110px; }
.crumbs .wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-deep); }

/* page head (non-hero pages) */
.page-head { padding: 40px 0 0; }
.page-head h1 { max-width: 20ch; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .g3, .g2, .split, footer .cols, .form .row2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .nav {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center;
    font-size: 1.05rem; gap: 30px; transform: translateX(100%); transition: transform .35s; z-index: 60;
  }
  .nav.open { transform: none; }
  .nav .sub { position: static; visibility: visible; opacity: 1; border: 0; background: none; text-align: center; margin-top: 8px; }
  .menu-toggle { display: block; z-index: 70; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 78vh; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- mobile sticky action bar ---------- */
.action-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(246,244,239,.97); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr 2fr; gap: 8px;
}
.action-bar a {
  text-align: center; padding: 12px 6px; border: 1px solid var(--ink);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.action-bar a.primary { background: var(--ink); color: var(--bg); }
@media (max-width: 900px) {
  .action-bar { display: grid; }
  body { padding-bottom: 68px; }
  footer { padding-bottom: 90px; }
}
