/* Elite Remodeling Group — brand palette carried over from the original site:
   gold #AE9778 / #705839 / #95754C, teal #7A9DA1, warm neutrals. */

:root {
  --gold: #ae9778;
  --gold-dk: #8a7355;
  --gold-lt: #d8c9b2;
  --teal: #7a9da1;
  --ink: #171310;
  --ink-2: #302923;
  --body: #453d36;
  --muted: #6b6058;
  --sand: #f7f3ed;
  --sand-2: #efe8de;
  --line: #e2d9cd;
  --white: #fff;

  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --sec-y: clamp(3.5rem, 8vw, 7rem);
  --r: 4px;
  --shadow: 0 18px 45px -22px rgba(23, 19, 16, .45);

  --f-display: "Zilla Slab", Georgia, "Times New Roman", serif;
  --f-accent: "Josefin Sans", "Century Gothic", sans-serif;
  --f-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dk); text-underline-offset: .18em; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.section { padding-block: var(--sec-y); }
/* consecutive plain sections would otherwise stack two full paddings of air */
.section:not([class*="--"]) + .section:not([class*="--"]) { padding-top: 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #cdc4bb; }
.section--ink h2, .section--ink h3 { color: var(--white); }

/* a section whose original Elementor background was a photo */
.section--image { position: relative; isolation: isolate; color: #ded6cd; background: var(--ink); }
.section--image :is(h2, h3, h4) { color: var(--white); }
.section--image a:not(.btn) { color: var(--gold-lt); }
.section--image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(23,19,16,.9), rgba(23,19,16,.93));
}
.section--image .hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  font-family: var(--f-accent);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.lede { font-size: 1.15rem; color: var(--ink-2); }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-accent);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.9rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--r);
  background: var(--gold);
  color: var(--white);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--gold-dk); border-color: var(--gold-dk); color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--gold-dk); }
.btn--ghost:hover { background: var(--gold); color: var(--white); }
.btn--light { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }

/* -------------------------------------------------------------- header -- */
.topbar {
  background: var(--ink);
  color: #b9afa5;
  font-family: var(--f-accent);
  font-size: .8rem;
  letter-spacing: .06em;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: flex-end; padding-block: .55rem; }
.topbar a { color: #d8cec3; text-decoration: none; }
.topbar a:hover { color: var(--gold-lt); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 52px; }
.brand span { font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 1.45rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--f-accent);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: .4rem;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-dk); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

.has-sub { position: relative; }
.has-sub > button {
  font: inherit; font-family: var(--f-accent); font-weight: 600; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  background: none; border: 0; padding: .4rem 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
}
.has-sub > button:hover { color: var(--gold-dk); }
.has-sub > button svg { width: .6rem; transition: transform .2s; }
.has-sub[data-open="true"] > button svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + .6rem); left: 50%; translate: -50% 0;
  min-width: 250px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: .5rem;
  display: none; flex-direction: column; gap: 0;
}
.has-sub[data-open="true"] .subnav { display: flex; }
.subnav a { padding: .55rem .8rem; border-radius: var(--r); letter-spacing: .06em; text-transform: none; font-size: .9rem; }
.subnav a:hover { background: var(--sand); }

.nav-cta { margin-left: .4rem; }
.burger {
  display: none; margin-left: auto;
  width: 46px; height: 40px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); cursor: pointer; padding: 10px 11px;
}
.burger span { display: block; height: 2px; background: var(--ink); margin-block: 4px; transition: .25s; }
.site-header[data-open="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .burger span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; inset: 100% 0 auto; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 100%); overflow-y: auto;
  }
  .site-header[data-open="true"] .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.5rem; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li:last-child { border: 0; padding-top: 1rem; }
  .nav a, .has-sub > button { display: flex; width: 100%; padding: .95rem 0; }
  .has-sub > button { justify-content: space-between; }
  .subnav {
    position: static; translate: none; box-shadow: none; border: 0;
    border-left: 2px solid var(--gold-lt); border-radius: 0;
    margin: 0 0 .8rem .2rem; padding: 0 0 0 .8rem; min-width: 0;
  }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- hero -- */
.hero { position: relative; isolation: isolate; background: var(--ink); color: var(--white); }
.hero-slide { position: relative; display: grid; align-items: center; min-height: clamp(430px, 72vh, 720px); }
.hero-slide:not(.is-active) { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(23,19,16,.86) 0%, rgba(23,19,16,.62) 45%, rgba(23,19,16,.28) 100%);
}
.hero-inner { padding-block: clamp(3.5rem, 9vw, 6rem); max-width: 660px; }
.hero h1 { color: var(--white); margin-bottom: .5em; }
.hero .eyebrow { color: var(--gold-lt); }
.hero p { color: #ddd5cc; font-size: 1.1rem; }
.hero .btn { margin-top: 1.6rem; }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 1.6rem; display: flex; justify-content: center; gap: .55rem; z-index: 3; }
.hero-dots button {
  width: 36px; height: 4px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35); border-radius: 99px; transition: background .2s;
}
.hero-dots button[aria-selected="true"] { background: var(--gold); }

.page-head { background: var(--ink); color: #cdc4bb; position: relative; isolation: isolate; }
.page-head .wrap { padding-block: clamp(3rem, 7vw, 5rem); }
.page-head h1 { color: var(--white); }
.page-head p { max-width: 62ch; }
.page-head .hero-bg + .wrap { position: relative; }
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(23,19,16,.9) 0%, rgba(23,19,16,.66) 100%);
}

.crumbs { font-family: var(--f-accent); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.crumbs a { color: var(--gold-lt); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs span { color: #8d837a; }

/* ------------------------------------------------------------- content -- */
.prose { max-width: 72ch; }
.prose :is(ul, ol) { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose h3 { margin-top: 1.8em; }
.prose img { border-radius: var(--r); margin-block: 1.5em; }
.prose blockquote {
  margin: 1.8em 0; padding: .2em 0 .2em 1.4em;
  border-left: 3px solid var(--gold); font-size: 1.1rem; color: var(--ink-2);
}
.prose--center { max-width: 68ch; margin-inline: auto; text-align: center; }

.media-row { display: grid; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .media-row { grid-template-columns: 1fr 1fr; }
  .media-row[data-side="right"] .media-row__fig { order: 2; }
}
.media-row__fig img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-lt); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s; }
a.card:hover .card__img img { scale: 1.05; }
.card__body { padding: 1.35rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.card__body p { font-size: .96rem; color: var(--muted); }
.card__more {
  margin-top: auto; padding-top: .9rem;
  font-family: var(--f-accent); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk);
}

.feature { text-align: center; }
.feature img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 1.2rem; max-width: 190px; }
.feature h3 { font-size: 1.15rem; }
.feature p { font-size: .96rem; }

.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); }
.logos img { height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: .25s; }
.logos img:hover { filter: none; opacity: 1; }

.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.gallery a { display: block; overflow: hidden; border-radius: var(--r); background: var(--sand-2); }
.gallery img { aspect-ratio: 1; width: 100%; object-fit: cover; transition: scale .35s; }
.gallery a:hover img { scale: 1.06; }

.videos { display: grid; gap: clamp(1rem, 3vw, 1.75rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.video-frame :is(iframe, video) { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame--portrait { aspect-ratio: 9 / 16; max-height: 620px; }

.quote-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.9rem 1.8rem; position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--f-display); font-size: 4.5rem; line-height: 1;
  color: var(--gold-lt); position: absolute; top: .35rem; left: 1.2rem;
}
.quote p { position: relative; font-size: 1rem; }
.quote cite {
  display: block; margin-top: 1rem; font-style: normal;
  font-family: var(--f-accent); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; color: var(--gold-dk);
}

.compare { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.compare figure { margin: 0; }
.compare img { width: 100%; border-radius: var(--r); }
.compare figcaption {
  font-family: var(--f-accent); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); padding-top: .6rem;
}

.cta-band { background: var(--ink); color: #d6cdc4; position: relative; isolation: isolate; text-align: center; }
.cta-band .hero-bg + .wrap { position: relative; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(23,19,16,.82);
}
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 58ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1.5rem; }

/* ------------------------------------------------------------ post list -- */
.post-list { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.post-meta { font-family: var(--f-accent); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.post-nav a { font-family: var(--f-accent); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

/* ----------------------------------------------------------------- form -- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; margin-bottom: .4rem;
  font-family: var(--f-accent); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.field :is(input, textarea, select) {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s;
}
.field :is(input, textarea, select):focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(174, 151, 120, .18); outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; gap: 0 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.alert { padding: .9rem 1.1rem; border-radius: var(--r); margin-bottom: 1.2rem; font-size: .95rem; }
.alert--error { background: #fdf0ee; border: 1px solid #e8c4bd; color: #8c3a28; }

.info-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.info h3 {
  font-family: var(--f-accent); font-size: .8rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: .5rem;
}
.info p, .info a { font-size: 1rem; color: var(--ink-2); text-decoration: none; }
.info a:hover { color: var(--gold-dk); }

.map-frame { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* -------------------------------------------------------------- footer -- */
.site-footer { background: var(--ink); color: #a99f96; position: relative; isolation: isolate; font-size: .96rem; }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(23,19,16,.9); }
.site-footer .wrap { position: relative; padding-block: clamp(3rem, 7vw, 4.5rem) 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.site-footer h3 {
  font-family: var(--f-accent); font-size: .82rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--white);
  margin-bottom: 1.1rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
.site-footer img.footer-logo { height: 60px; width: auto; margin-bottom: 1.2rem; }
.site-footer a { color: #c3b9af; text-decoration: none; }
.site-footer a:hover { color: var(--gold-lt); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%; transition: .2s;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.colophon {
  margin-top: 3rem; padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .86rem; color: #8b8178;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.form-note--legal { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.form-note--legal a { color: var(--muted); }
.grecaptcha-badge { visibility: hidden; }
