/* ENMAR — Design System */
:root {
  --gold: #C9A961;
  --gold-light: #E0C585;
  --gold-dark: #A08647;
  --olive: #5A5E3F;
  --olive-dark: #3C4029;
  --cream: #F5EFD9;
  --bone: #FAF8F2;
  --ink: #1A1D17;
  --ink-soft: #2A2E25;
  --graphite: #4A4E45;
  --muted: #8A8A7E;
  --line: rgba(90, 94, 63, 0.15);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --container: 1360px;
  --container-narrow: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bone); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
.eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--olive); }
.eyebrow-gold { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; line-height: 1.05; color: var(--ink); }
h1 { font-size: clamp(48px, 7vw, 104px); }
h2 { font-size: clamp(36px, 4.8vw, 72px); }
h3 { font-size: clamp(26px, 2.6vw, 40px); }
h4 { font-size: clamp(20px, 1.6vw, 26px); }
p.lead { font-size: 19px; line-height: 1.55; color: var(--graphite); max-width: 62ch; }
em { font-style: italic; color: var(--gold); font-weight: 300; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .container, .container-narrow { padding: 0 22px; } }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 22px 40px; display: flex; align-items: center; justify-content: space-between; transition: all 0.35s ease; }
.nav.is-dark { color: var(--bone); }
.nav.is-scrolled { background: rgba(26,29,23,0.92); backdrop-filter: blur(18px); padding: 14px 40px; color: var(--bone); }
.nav.is-light-scrolled { background: rgba(250,248,242,0.95); backdrop-filter: blur(18px); padding: 14px 40px; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo svg { width: 32px; height: 32px; color: var(--gold); }
.nav-logo .mark-text { font-family: var(--serif); font-size: 22px; letter-spacing: 0.24em; font-weight: 400; color: var(--gold); }
.nav { gap: 40px; }
.nav-logo { flex-shrink: 0; }
.nav-links { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; position: relative; padding: 8px 0; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 1px; width: 0; background: var(--gold); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { border: 1px solid currentColor; padding: 11px 22px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; transition: all 0.25s ease; }
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.only-mobile { display: none; }
@media (max-width: 900px) {
  .nav-links .only-desktop { display: none; }
  .nav-links .only-desktop.nav-cta { display: none; }
  .nav { padding: 18px 22px; gap: 16px; }
  .only-mobile { display: flex; }
}
.nav-burger { display: flex; flex-direction: column; gap: 5px; width: 28px; padding: 6px; background: transparent; }
.nav-burger span { display: block; width: 24px; height: 1.5px; background: currentColor; }
.mobile-drawer { position: fixed; inset: 0; background: var(--ink); color: var(--bone); z-index: 100; transform: translateX(100%); transition: transform 0.4s cubic-bezier(.6,.1,.2,1); display: flex; flex-direction: column; }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-close { position: absolute; top: 22px; right: 22px; color: var(--gold); padding: 8px; }
.drawer-inner { padding: 100px 32px 40px; display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.drawer-inner > a { font-family: var(--serif); font-size: 36px; font-weight: 300; padding: 12px 0; color: var(--bone); border-bottom: 1px solid rgba(245,239,217,0.08); transition: color 0.2s; }
.drawer-inner > a.active { color: var(--gold); }
.drawer-foot { margin-top: auto; padding-top: 32px; border-top: 1px solid rgba(245,239,217,0.1); display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: rgba(245,239,217,0.6); }
.drawer-foot a { color: rgba(245,239,217,0.6); }
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 16px 32px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { border-color: currentColor; }
.btn-outline:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }
.footer { background: var(--ink); color: var(--bone); padding: 100px 0 40px; margin-top: 120px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 70px; border-bottom: 1px solid rgba(245,239,217,0.1); }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand .logo-row { display: flex; align-items: center; gap: 14px; }
.footer-brand svg { width: 44px; height: 44px; color: var(--gold); }
.footer-brand .wordmark { font-family: var(--serif); font-size: 30px; letter-spacing: 0.22em; color: var(--gold); }
.footer-brand p { color: rgba(245,239,217,0.65); max-width: 38ch; line-height: 1.7; font-size: 14px; }
.footer-col h5 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 22px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 14px; color: rgba(245,239,217,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; color: rgba(245,239,217,0.45); font-size: 12px; }
.footer-bottom a { color: rgba(245,239,217,0.6); margin-left: 24px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } .footer-bottom { flex-direction: column; gap: 16px; text-align: center; } }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
@media (max-width: 900px) {
  .section { padding: 70px 0; }
  .section-sm { padding: 50px 0; }
  .page-head { padding: 140px 0 70px; }
  h1 { font-size: clamp(40px, 11vw, 72px) !important; }
  h2 { font-size: clamp(32px, 8vw, 52px) !important; }
  /* Collapse 2-col grids */
  .container > div[style*="grid-template-columns: 1fr 1fr"],
  .container > div[style*="grid-template-columns: 1.2fr 1fr"],
  .container > div[style*="grid-template-columns: 1fr 1.2fr"],
  .container > div[style*="grid-template-columns: 1.4fr 1fr"],
  .container > div[style*="grid-template-columns: 1.1fr 1fr"],
  .container > div[style*="grid-template-columns: 0.8fr 1.2fr"],
  .container > div[style*="grid-template-columns: 2fr 1fr"],
  .container > div[style*="grid-template-columns: 2fr 1fr 1fr"],
  .container > div[style*="grid-template-columns: repeat(2, 1fr)"],
  .container > div[style*="grid-template-columns: repeat(3, 1fr)"],
  .container > div[style*="grid-template-columns: repeat(4, 1fr)"],
  .container > div[style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* Portfolio grid */
  .container-narrow > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 24px !important; }
  /* Service blocks: remove RTL trick */
  section > .container[style*="direction: rtl"] { direction: ltr !important; }
  /* Featured project grid-cols becomes single col */
  section[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  section[style*="grid-template-columns: 1fr 1fr"] > div:first-child { min-height: 320px; }
  /* Inner padding reduce */
  section > div[style*="padding: 120px 80px"],
  section > div[style*="padding: 100px 80px"] { padding: 60px 28px !important; }
  /* Page head p */
  .page-head p { font-size: 16px; }
  /* Nav scroll-state */
  .nav.is-scrolled, .nav.is-light-scrolled { padding: 12px 22px; }
  /* Feature cards in Values: 3 col -> 1 */
  /* Already covered by generic selectors above */
  /* Portfolio filter chips wrap nicely */
  /* Quote size */
  p[style*="font-size: 38px"], p[style*="font-size: 34px"] { font-size: 24px !important; }
  /* Testimonial quote mark */
  /* Stats band */
  section[style*="background: var(--ink)"][style*="padding: 80px 0"] .container { padding: 0 22px; }
  /* Hero specific */
  section[style*="height: 100vh"] { min-height: 600px !important; }
  section[style*="height: 100vh"] > div[style*="paddingBottom"] { padding-bottom: 80px !important; }
  /* Image columns with top margin offset */
  div[style*="marginTop: 60"], div[style*="marginTop: 50"] { margin-top: 0 !important; }
  /* Floating gold badge in intro */
  div[style*="position: absolute"][style*="bottom: -30"] { position: static !important; margin-top: 20px; }
  /* Footer cols */
  .footer { padding: 70px 0 30px; margin-top: 80px; }
  /* Ticker font-size */
  div[style*="animation: ticker"] > div { font-size: 24px !important; gap: 28px !important; }
  /* Contact form */
  form > div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  /* Sticky intro columns unstick */
  .container > div[style*="sticky"] { position: static !important; }
  /* Promo alternating padding */
  aside { padding: 0 !important; }
  /* Hero side label */
  div[style*="rotate(-90deg)"] { display: none; }
  /* Margins between floating images */
  div[style*="marginTop: 60"] { margin-top: 0 !important; }
  /* Service block number */
  div[style*="fontSize: 100"] { font-size: 64px !important; }
  /* Bottom nav dots */
  .nav-logo .mark-text { font-size: 18px; letter-spacing: 0.18em; }
  .nav-logo svg { width: 28px; height: 28px; }
  /* Hero h1 */
  section[style*="minHeight: 720"] h1, section[style*="min-height: 720"] h1 { font-size: clamp(38px, 11vw, 68px) !important; }
  /* Reveal disable translate so no horizontal overflow */
  .reveal { transform: translateY(16px); }
  /* Disable heavy padding on promo cards */
  div[style*="padding: \"80px 0\""] { padding: 40px 0 !important; }
  /* Prevent horizontal overflow */
  body { overflow-x: hidden; }
  /* Hero stats numbers */
  div[style*="fontSize: 64"] { font-size: 44px !important; }
  /* Featured project specs 3-col */
  div[style*="grid-template-columns: repeat(3, 1fr)"][style*="gap: 40"] { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  /* Contact crumbs and h1 on contact page (light page-head) */
}
@media (max-width: 640px) {
  h1 { font-size: clamp(36px, 12vw, 56px) !important; }
  h2 { font-size: clamp(28px, 9vw, 44px) !important; }
  h3 { font-size: clamp(22px, 6vw, 30px) !important; }
  .btn { padding: 14px 22px; font-size: 11px; }
  .nav { padding: 14px 18px !important; }
  .container, .container-narrow { padding: 0 20px; }
  /* Force single column on ALL grids in mobile */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Exception: keep 2-col for small number tiles */
  .footer-top { display: grid !important; grid-template-columns: 1fr !important; gap: 36px !important; }
  .page-head { padding: 120px 0 60px; }
  p.lead, p { font-size: 15px !important; }
  p.lead { font-size: 17px !important; }
  .drawer-inner > a { font-size: 28px; }
  /* Footer bottom stack */
  .footer-bottom a { margin-left: 0; margin-right: 16px; }
}
.gold-line { display: inline-block; width: 48px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 16px; }
.img-hover { overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.img-hover img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); width: 100%; height: 100%; object-fit: cover; }
.img-hover:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -24px rgba(26,29,23,0.4); }
.img-hover:hover img { transform: scale(1.06); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  box-shadow: 0 12px 28px -8px rgba(26,29,23,0.5);
  transition: opacity 0.3s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top:hover { background: var(--gold-light); transform: translateY(-2px); }
@media (max-width: 640px) { .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .img-hover:hover, .img-hover:hover img { transform: none; }
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.page-head { background: var(--ink); color: var(--bone); padding: 220px 0 120px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(201,169,97,0.12), transparent 60%); pointer-events: none; }
.page-head h1 { color: var(--bone); }
.page-head .eyebrow { color: var(--gold); }
.page-head p { color: rgba(245,239,217,0.7); max-width: 58ch; margin-top: 20px; font-size: 18px; line-height: 1.6; }
.crumbs { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245,239,217,0.5); margin-bottom: 24px; }
.crumbs a { color: rgba(245,239,217,0.5); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 10px; opacity: 0.5; }
