/* Edworks Custom Creations — global styles */

:root {
  --cream: #F6EFDC;
  --cream-2: #EADFC4;
  --sand: #D9CDAD;
  --sand-2: #C4B48E;
  --green: #1F4A2B;
  --green-deep: #163A22;
  --deep: #11261A;
  --gold: #E9A825;
  --gold-text: #D9961B;
  --teal: #1F6A8C;
  --ink: #1F2320;
  --muted: #4A4F47;
  --muted-2: #6B6A62;
  --on-dark-muted: #B9C9AE;
  --on-dark-soft: #E8E3CF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --max: 1200px;
  --pad: 20px;
  --header-h: 64px;
}

@media (min-width: 720px) {
  :root { --pad: 32px; --header-h: 80px; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 96px 0; } }

.eyebrow {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.on-dark .eyebrow { color: var(--on-dark-muted); }

.h2 { font-size: clamp(30px, 4.5vw, 44px); margin-top: 10px; }
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--muted); max-width: 640px; margin-top: 12px; }
.on-dark .lead { color: var(--on-dark-soft); }

.on-dark { color: var(--cream); }
.bg-green { background: var(--green); }
.bg-green-deep { background: var(--green-deep); }
.bg-cream-2 { background: var(--cream-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 4px;
  border: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--deep); }
.btn--green { background: var(--green); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-solid,
.site-header--solid {
  background: var(--cream);
  border-color: var(--sand);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.3s;
}
.site-header.is-solid .brand,
.site-header--solid .brand { color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.1; }
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
@media (min-width: 720px) {
  .brand img { width: 56px; height: 56px; }
  .brand__name { font-size: 20px; }
}

.nav { display: none; gap: 28px; font-weight: 600; font-size: 15px; }
.nav a { color: inherit; text-decoration: none; }
@media (min-width: 900px) { .nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  border: 1px solid rgba(246, 239, 220, 0.5);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.site-header.is-solid .icon-btn,
.site-header--solid .icon-btn { color: var(--ink); border-color: var(--sand); }
.icon-btn--call { background: var(--gold); border-color: var(--gold); color: var(--deep) !important; }
.call-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--deep);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
@media (min-width: 900px) {
  .call-btn { display: inline-flex; }
  .icon-btn--call { display: none; }
}
@media (min-width: 900px) { .icon-btn--menu { display: none; } }

/* Mobile menu */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--deep);
  color: var(--cream);
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 32px;
  padding: 10px 0;
}
.mobile-nav__close { align-self: flex-end; margin-bottom: 16px; }

/* Trust strip */
.trust {
  padding: 18px 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  font-weight: 600;
  font-size: 13px;
}
.trust__grid div { display: flex; align-items: center; gap: 8px; }
.trust__grid svg { flex-shrink: 0; }
@media (min-width: 720px) {
  .trust { padding: 22px 0; }
  .trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 15px; }
}

/* Services */
.services__head { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) {
  .services__head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
}
.services__grid { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.service {
  display: flex;
  align-items: stretch;
  min-height: 96px;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.service__img {
  width: 110px;
  flex-shrink: 0;
  background: var(--sand);
  object-fit: cover;
}
.service__body { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.service h3 { font-size: 18px; }
.service p { font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (min-width: 720px) {
  .services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
  .service { flex-direction: column; }
  .service__img { width: 100%; height: 200px; }
  .service__body { padding: 22px 24px 26px; gap: 8px; }
  .service h3 { font-size: 22px; }
  .service p { font-size: 15px; line-height: 1.5; }
}
@media (min-width: 1000px) { .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Featured project / before-after */
.ba { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.ba__img {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--sand-2);
  aspect-ratio: 4 / 3;
}
.ba__img img { width: 100%; height: 100%; object-fit: cover; }
.ba__tag {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  background: var(--deep); color: var(--cream);
}
.ba__tag--after { background: var(--teal); }
@media (min-width: 720px) {
  .ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
  .ba__img { aspect-ratio: 5 / 4; }
}
.featured__body { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) {
  .featured__body { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; margin-top: 32px; }
}
.featured__text { font-size: clamp(16px, 2vw, 18px); line-height: 1.6; }
.spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: 13px;
}
.spec div {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.spec span { color: var(--muted-2); }
.spec strong { font-weight: 600; }
@media (min-width: 900px) {
  .spec { grid-template-columns: 1fr; gap: 0; background: var(--cream); border: 1px solid var(--sand); border-radius: 6px; padding: 10px 24px; font-size: 15px; }
  .spec div { background: none; border: 0; border-bottom: 1px solid var(--cream-2); border-radius: 0; padding: 12px 0; flex-direction: row; justify-content: space-between; }
  .spec div:last-child { border-bottom: 0; }
}

/* About */
.about { display: flex; flex-direction: column; gap: 20px; }
.about__img { border-radius: 6px; overflow: hidden; background: #245533; aspect-ratio: 4 / 3; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
  .about__img { aspect-ratio: 4 / 5; max-height: 520px; }
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1; }
.stats span { font-size: 13px; color: var(--on-dark-muted); }

/* Reviews */
.reviews { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
@media (min-width: 900px) { .reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; } }
.review {
  margin: 0;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.review__stars { color: var(--gold-text); letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: 15px; line-height: 1.55; }
.review figcaption { font-size: 17px; color: var(--ink); font-weight: 700; }
.review figcaption span { font-size: 14px; color: var(--muted-2); font-weight: 600; }
.review .review__stars { margin-top: -6px; }

/* Service area */
.areas { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .areas { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pills span {
  background: var(--cream);
  border: 1px solid var(--sand);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.areas__map { border-radius: 6px; overflow: hidden; background: var(--sand); aspect-ratio: 3 / 2; }
.areas__map img { width: 100%; height: 100%; object-fit: cover; }
.areas__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Quote */
.quote { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .quote { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.quote__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--cream);
  text-decoration: none;
}
.quote__hours { font-size: 15px; color: var(--on-dark-muted); }
.form {
  background: var(--cream);
  color: var(--ink);
  border-radius: 6px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 720px) { .form { padding: 32px; gap: 16px; } }
.form__row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .form__row { grid-template-columns: 1fr 1fr; gap: 16px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 16px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--sand-2);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.form__note { font-size: 12px; color: var(--muted-2); text-align: center; }
.form__status { font-size: 14px; font-weight: 600; min-height: 1.2em; }

/* Footer */
.footer { background: var(--deep); color: var(--on-dark-muted); font-size: 14px; }
.footer__inner { padding: 36px 0 40px; display: flex; flex-direction: column; gap: 24px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 56px; height: 56px; }
.footer__brand strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--cream); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols strong { color: var(--cream); font-weight: 600; }
.footer a { color: inherit; text-decoration: none; }
.footer__social { display: flex; gap: 20px; }
.footer__social a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) {
  .footer__inner { padding: 48px 0; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .footer__brand { flex-direction: column; align-items: flex-start; }
  .footer__cols { display: contents; }
  .footer__social { flex-direction: column; gap: 10px; }
}
.footer__legal { border-top: 1px solid rgba(185, 201, 174, 0.2); padding: 16px 0; font-size: 13px; }

/* Case study page */
.case-hero { padding-top: calc(var(--header-h) + 32px); }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.case-tags span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--cream-2); }
.case-tags span.is-primary { background: var(--green-deep); color: var(--cream); }
.case-title { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; max-width: 900px; }
.case-summary { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 760px; margin-top: 16px; }
.case-hero-img { border-radius: 6px; overflow: hidden; background: #3B4A36; aspect-ratio: 16 / 9; margin-top: 32px; }
.case-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.case-meta { padding: 24px 0; }
.case-meta__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 720px) { .case-meta__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; } }
.case-meta__grid div { display: flex; flex-direction: column; gap: 4px; }
.case-meta__grid span { font-size: 12px; color: var(--on-dark-muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.case-meta__grid strong { font-weight: 600; font-size: 17px; }
.case-block { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .case-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; } }
.case-block__text { font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }
.steps { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__img { border-radius: 6px; overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--teal); line-height: 1; }
.step h3 { font-family: var(--font-body); font-size: 19px; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 260px 260px; gap: 16px; } .gallery > :first-child { grid-column: span 2; grid-row: span 2; } }
.gallery div { border-radius: 6px; overflow: hidden; background: #6B8F4E; min-height: 220px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.case-result { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
@media (min-width: 900px) { .case-result { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; } }
.testimonial { margin: 0; background: var(--green-deep); color: var(--cream); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.testimonial blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; }
.testimonial figcaption { font-size: 15px; color: var(--on-dark-muted); font-weight: 600; }
.materials { background: #fff; border: 1px solid var(--sand); border-radius: 6px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.materials .eyebrow { color: var(--muted-2); }
.materials div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; border-bottom: 1px solid var(--cream-2); padding-bottom: 10px; }
.materials div:last-child { border-bottom: 0; padding-bottom: 0; }
.materials span { color: var(--muted-2); }
.materials strong { font-weight: 600; text-align: right; }
.cta-band { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; } }
.cta-band__btns { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 720px) { .cta-band__btns { flex-direction: row; } }
.more { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
@media (min-width: 720px) { .more { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.more a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; }
.more .more__img { border-radius: 6px; overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.more .more__img img { width: 100%; height: 100%; object-fit: cover; }
.more h3 { font-size: 20px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Holiday / notice banner from settings */
.site-banner { position:relative; z-index:90; background:var(--gold); color:var(--deep); text-align:center; font-weight:600; padding:10px 16px; margin-top:var(--header-h); }
.service__img:empty { display:block; }

/* Thank-you page */
.thanks { display:flex; flex-direction:column; gap:28px; }
.thanks__img { border-radius:6px; overflow:hidden; background:#245533; aspect-ratio:4/3; }
.thanks__img img { width:100%; height:100%; object-fit:cover; }
@media (min-width:900px) { .thanks { display:grid; grid-template-columns:1.2fr 1fr; gap:64px; align-items:center; } .thanks__img { aspect-ratio:4/5; max-height:480px; } }
.phone-link { text-decoration: none; font-weight: 700; white-space: nowrap; }

/* Content pages */
.page-hero-img { border-radius: 6px; overflow: hidden; background: #3B4A36; aspect-ratio: 16 / 10; max-height: 560px; margin-top: 32px; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.page-body { max-width: 760px; }
.page-body p { font-size: clamp(17px, 2vw, 19px); line-height: 1.65; margin: 0 0 1.2em; white-space: pre-line; }
.admin-btn-row .admin-btn { margin-top: 0; }
.page-head { text-align: center; }
.page-head .case-title, .page-head .case-summary { margin-left: auto; margin-right: auto; }
.page-hero-img { max-width: 960px; margin-left: auto; margin-right: auto; }
.page-body { margin-left: auto; margin-right: auto; }
