/* ==========================================================================
   Golds Electrical — site styles
   Typography restores the original site's character:
   - Original headings: orpheus-pro 400 (Adobe Fonts — not legally
     self-hostable). Stand-in: Cormorant (OFL), light elegant serif.
   - Original body/nav: Inter Tight 400/500 (Google Fonts, OFL) — the exact
     original body font, self-hosted here.
   Palette: charcoal, white, warm neutrals, restrained gold accents.
   ========================================================================== */

/* --- self-hosted fonts (OFL licensed, variable weight) ------------------- */
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-var-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-var-latin-ext.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-var-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --gold: #c2a052;
  --gold-dark: #9d7c2f;
  --gold-light: #e4d3a6;
  --ink: #24262a;
  --charcoal: #2e3237;
  --grey: #55595f;
  --grey-light: #83878e;
  --bg: #ffffff;
  --bg-soft: #f8f6f2;      /* warm off-white */
  --bg-dark: #24262a;
  --line: #e8e5de;

  --font-display: "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-nav: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --radius: 8px;
  --radius-btn: 6px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 22, .06);
  --shadow-md: 0 12px 34px rgba(24, 24, 22, .10);
  --header-h: 78px;
}

/* --- reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip (not hidden) prevents horizontal scroll from the off-canvas mobile
     menu without turning the root into a scroll container that would break
     the sticky header. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.72;
  font-size: 17px;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .45em;
  letter-spacing: .002em;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.62rem); font-weight: 600; }
p { margin: 0 0 1.15em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 1rem;
}

.section { padding: clamp(52px, 7.5vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #e9e7e2; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }

.lead { font-size: 1.16rem; line-height: 1.75; color: var(--grey); max-width: 62ch; }
.measure { max-width: 70ch; }
.center { text-align: center; }
.center .lead, .center .measure { margin-left: auto; margin-right: auto; }

/* skip link */
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
  z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 8px; color: #fff; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-nav);
  font-weight: 550; font-size: .98rem;
  padding: .85em 1.7em; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; letter-spacing: .01em;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  line-height: 1.2;
}
.btn-primary { background: var(--gold); color: #241d0f; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(36, 38, 42, .55); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* tertiary text link w/ phone icon */
.link-call {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 550; color: inherit; text-decoration: none; font-size: 1rem;
}
.link-call svg { color: var(--gold-dark); }
.link-call:hover { color: var(--gold-dark); }
.hero .link-call svg, .section--dark .link-call svg { color: var(--gold-light); }
.hero .link-call:hover, .section--dark .link-call:hover { color: var(--gold-light); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 1.5em; }
.center .btn-row { justify-content: center; }

/* --- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  /* NB: avoid backdrop-filter/filter/transform here — they create a containing
     block for the fixed-position off-canvas mobile nav and would break it. */
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex: 0 0 auto; }
.brand img { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: .01em; }
.brand-sub { font-family: var(--font-nav); font-size: .64rem; letter-spacing: .17em; text-transform: uppercase; color: var(--grey-light); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav a, .nav .folder-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-nav); font-weight: 475; font-size: .95rem;
  color: var(--charcoal); text-decoration: none;
  padding: 10px 13px; border-radius: 6px; background: none; border: 0; cursor: pointer;
  letter-spacing: .012em;
}
.nav a:hover, .nav .folder-toggle:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--gold-dark); }
.folder-toggle svg { width: 10px; height: 10px; transition: transform .2s; opacity: .55; }

/* dropdowns */
.has-folder { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 262px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 20;
}
.has-folder:hover .submenu,
.has-folder:focus-within .submenu,
.submenu[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 13px; border-radius: 6px; font-weight: 475; }
.submenu a:hover { background: var(--bg-soft); }

.header-cta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-nav); font-weight: 550; font-size: .97rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: 8px 10px;
}
.phone-link .ph-ico { color: var(--gold-dark); }
.phone-link:hover { color: var(--gold-dark); }
.btn-book-header { padding: .68em 1.25em; font-size: .92rem; }

.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--grey); text-decoration: none;
}
.social-link:hover { color: var(--gold-dark); background: var(--bg-soft); }

/* mobile menu button */
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .ico-close { display: none; }
.menu-toggle[aria-expanded="true"] .ico-open { display: none; }
.menu-toggle[aria-expanded="true"] .ico-close { display: block; }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative; color: #fff;
  background: var(--bg-dark);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22, 23, 26, .74) 0%, rgba(22, 23, 26, .48) 55%, rgba(22, 23, 26, .28) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(72px, 12vw, 138px) 0;
  max-width: 660px;
}
.hero h1 { color: #fff; font-weight: 520; text-wrap: balance; }
.hero .eyebrow { color: var(--gold-light); }
.hero p { color: #eceae5; font-size: 1.14rem; line-height: 1.7; max-width: 54ch; }
.hero--page .hero-inner { padding: clamp(56px, 9vw, 100px) 0; max-width: 720px; }
.hero-note { font-size: .92rem; color: #cfccc4; margin-top: 14px; }
.hero-note a { color: #e4d3a6; }

/* --- grids / cards ------------------------------------------------------ */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #ddd8cd; }
.card-media { aspect-ratio: 3 / 2; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--grey); font-size: .97rem; line-height: 1.6; }
.card-link {
  margin-top: auto; padding-top: 12px;
  font-family: var(--font-nav); font-weight: 550; color: var(--ink);
  text-decoration: none; font-size: .93rem; letter-spacing: .01em;
}
.card-link::after { content: " →"; color: var(--gold-dark); }
.card:hover .card-link { color: var(--gold-dark); }
a.card { text-decoration: none; color: inherit; }

/* feature list (why golds) */
.feature {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.feature:first-child { border-top: 0; }
.feature .fnum {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-dark);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  background: #fff;
}
.feature h3 { margin: 4px 0 8px; }
.feature p { margin: 0; color: var(--grey); }

/* split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.split-body h2 { margin-top: 0; }

/* service detail sections */
.detail { border-top: 1px solid var(--line); padding: 32px 0; }
.detail:first-of-type { border-top: 0; }
.detail h3 { color: var(--ink); margin-bottom: .35em; }
.detail p { color: var(--grey); margin-bottom: .5em; }
.detail .card-link { padding-top: 4px; display: inline-block; }

/* two-pathway panel (book vs quote) */
.pathways { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pathway {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px;
}
.pathway--featured { border-color: var(--gold); border-width: 1px; position: relative; }
.pathway--featured::before {
  content: "Priority scheduling";
  position: absolute; top: -11px; left: 26px;
  background: var(--gold); color: #241d0f;
  font-family: var(--font-nav); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
}
.pathway h3 { margin: 0 0 4px; }
.pathway p { color: var(--grey); font-size: .98rem; margin: 0 0 10px; }
.pathway .btn-row { margin-top: auto; padding-top: 8px; }

/* testimonials */
.quote {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm);
  height: 100%; display: flex; flex-direction: column;
}
.quote::before {
  content: "“";
  font-family: var(--font-display); font-size: 3rem; line-height: 1;
  color: var(--gold); height: .55em;
}
.quote p { color: var(--charcoal); font-size: 1.01rem; line-height: 1.7; }
.quote .who { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.quote .who strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 550; }
.quote .who span { color: var(--grey-light); font-size: .89rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-line { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-top: 1px solid var(--line); }
.contact-line:first-of-type { border-top: 0; }
.contact-line .ci {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
  background: var(--bg-soft); color: var(--gold-dark); display: grid; place-items: center;
}
.contact-line .cl-label { display: block; font-family: var(--font-nav); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey-light); }
.contact-line a, .contact-line strong { font-size: 1.08rem; color: var(--ink); text-decoration: none; font-weight: 550; }
.contact-line a:hover { color: var(--gold-dark); }

/* CTA band — charcoal, restrained gold */
.cta-band { background: var(--bg-dark); color: #ece9e2; border-top: 2px solid var(--gold); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 550; }
.cta-band p { margin: 8px 0 0; color: #b8b5ae; font-size: .98rem; }

/* trust row */
.trust { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust img { height: 54px; width: auto; opacity: .92; }
.trust .trust-note { color: var(--grey); font-size: .96rem; max-width: 48ch; margin: 0; }

/* --- footer ------------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: #b4b1aa; padding: 64px 0 30px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.site-footer h4 { color: #fff; font-family: var(--font-nav); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; font-weight: 600; }
.site-footer a { color: #cfccc5; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand img { height: 62px; margin-bottom: 16px; }
.footer-brand p { color: #a4a19a; max-width: 36ch; font-size: .97rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: .97rem; }
.footer-contact .fc-line { margin-bottom: 12px; }
.footer-contact .fc-line span { display: block; font-family: var(--font-nav); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #7d7a74; }
.footer-contact .fc-line a, .footer-contact .fc-line strong { color: #fff; font-weight: 550; font-size: 1.02rem; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: #cfccc5; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .85rem; color: #83807a;
}

/* --- 404 ---------------------------------------------------------------- */
.error-page { text-align: center; padding: clamp(60px, 12vw, 130px) 0; }
.error-page .code { font-family: var(--font-display); font-weight: 500; font-size: clamp(4.5rem, 14vw, 8rem); color: var(--gold); line-height: 1; margin: 0; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .header-cta .btn-book-header { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .menu-toggle { display: inline-flex; }
  .header-cta .phone-link { display: none; }
  .header-cta .social-link { display: none; }
  .brand img { height: 46px; }
  .brand-text { display: none; }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff; border-top: 1px solid var(--line);
    padding: 12px 20px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease;
    display: block;
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav .folder-toggle { width: 100%; justify-content: space-between; padding: 15px 6px; font-size: 1.04rem; border-radius: 0; }
  .has-folder { position: static; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 12px;
    min-width: 0; display: none;
  }
  .submenu[data-open="true"] { display: block; }
  .has-folder:hover .submenu, .has-folder:focus-within .submenu { opacity: 1; }
  .folder-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mobile-cta { display: grid; gap: 12px; margin-top: 22px; }
  /* .nav a (0,1,1) outranks .btn classes — restore button styling explicitly */
  .nav .mobile-cta .btn {
    width: 100%; justify-content: center; gap: .55em;
    padding: .9em 1.7em; border-radius: var(--radius-btn); font-size: 1rem;
  }
  .nav .mobile-cta .btn-primary { background: var(--gold); border: 1px solid var(--gold); color: #241d0f; }
  .nav .mobile-cta .btn-outline { background: transparent; border: 1px solid rgba(36, 38, 42, .55); color: var(--ink); }
}

@media (min-width: 861px) { .mobile-cta { display: none; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .pathways { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .hero-inner { padding: clamp(56px, 14vw, 90px) 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
