/* ==========================================================================
   AD-SITE.CSS - brings the inner pages in line with the home page's ad look.
   Loaded after rebrand-overrides.css on every inner page.
   Condensed gold headings, warm bronze panels instead of flat black,
   a photo in every page hero, and a bronze quote bar above the footer.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --condensed: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --bronze: linear-gradient(135deg, #4a3319 0%, #7a5729 45%, #5a3f1f 100%);
  --panel-warm: linear-gradient(165deg, rgba(74, 51, 25, 0.5), rgba(24, 18, 12, 0.88) 55%);
  --line-gold: rgba(220, 184, 95, 0.38);
}

html, body { overflow-x: clip; }

/* lift the page off pure black: warmer wash over the stone */
body::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(150, 106, 38, 0.3), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(122, 87, 41, 0.18), transparent 70%),
    linear-gradient(rgba(14, 10, 7, 0.5), rgba(10, 8, 6, 0.74));
}

/* -- Headings ------------------------------------------------------------- */
h1, h2, .hero__title {
  font-family: var(--condensed);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.hero__title { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h3, h4 { font-family: var(--condensed); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* -- Page hero: a real job photo, warmed, instead of black -------------- */
.hero.hero--short {
  background-image:
    linear-gradient(100deg, rgba(10, 7, 4, 0.9) 18%, rgba(10, 7, 4, 0.55) 60%, rgba(74, 51, 25, 0.45)),
    url('../img/gallery/venetian-plaster-staircase-wide.jpg') !important;
  background-position: center !important;
  background-size: cover !important;
  border-bottom: 1px solid var(--line-gold);
}
.hero.hero--short::before { background: radial-gradient(ellipse 50% 70% at 30% 50%, rgba(150, 106, 38, 0.25), transparent 70%); }
.hero.hero--short .hero__content::after {
  content: '';
  display: block;
  width: 120px;
  height: 2px;
  margin: 22px auto 0;
  background: var(--gilt);
}

/* -- Sections: warm plaster instead of flat black ---------------------- */
.section--cave {
  background:
    linear-gradient(rgba(16, 12, 8, 0.82), rgba(12, 9, 6, 0.9)),
    url('../img/textures-web/venetian-charcoal.jpg') center/cover;
}

/* long-form copy sits in a framed panel, like the ad's finish columns */
.prose {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(28px, 5vw, 64px);
  background: var(--panel-warm);
  border: 1px solid var(--line-gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(249, 236, 196, 0.08);
  position: relative;
}
.prose::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gold-bar);
}
.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(220, 184, 95, 0.2);
}
.prose h2:first-of-type { margin-top: 1.4rem; }
.prose h3 { color: var(--amber); font-size: 1.15rem; margin-top: 1.8rem; }
.prose p, .prose li { color: rgba(243, 234, 216, 0.84); font-weight: 300; }
.prose strong { color: var(--bone); font-weight: 500; }
.prose a { color: var(--amber); }

/* -- Cards, FAQs, forms: bronze-tinted panels -------------------------- */
.service-card,
.faq-item,
.contact-form {
  background: var(--panel-warm) !important;
  border: 1px solid var(--line-gold) !important;
}
.service-card { border-top: 2px solid #c39a36 !important; }
.service-card__title { font-family: var(--condensed); text-transform: uppercase; letter-spacing: 0.04em; }
.faq-item { border-left: 3px solid #c39a36 !important; }

/* -- Bronze quote bar (in includes/footer.html) ------------------------ */
.ad-cta {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 22px;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 220, 150, 0.18), transparent 60%),
    linear-gradient(rgba(74, 51, 25, 0.55), rgba(40, 28, 14, 0.7)),
    url('../img/textures-web/venetian-copper.jpg') center/cover;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}
.ad-cta h2 { margin: 0 0 14px; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.ad-cta h2 .w { display: block; color: #f7f1e6; -webkit-text-fill-color: #f7f1e6; }
.ad-cta h2 .g { display: block; }
.ad-cta p { margin: 0 auto 26px; max-width: 560px; color: #f6ead0; }
.ad-cta .ad-cta__links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ad-cta a.ad-btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--condensed);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #f3dc9a;
  color: #f9ecc4;
  transition: background 0.3s ease, color 0.3s ease;
}
.ad-cta a.ad-btn--solid { background: var(--gilt); color: #1a1209; border-color: transparent; }
.ad-cta a.ad-btn:hover { background: #f3dc9a; color: #1a1209; }
.ad-cta .script { display: block; margin-top: 22px; font-family: var(--font-script); font-size: 1.7rem; color: #f3dc9a; }

/* footer: warm it up too */
.site-footer {
  background:
    linear-gradient(rgba(14, 10, 7, 0.9), rgba(8, 6, 4, 0.96)),
    url('../img/textures-web/venetian-charcoal.jpg') center/cover !important;
}

/* existing bug: the footer wrapper was a 4-column grid with one child, so all
   four footer columns were squeezed into the first 336px */
.site-footer .footer__inner { display: block; }
.site-footer .footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 900px) { .site-footer .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CONTENT PAGES (built by scripts/build_content_pages.py)
   ========================================================================== */
.hero.hero--short.pg-hero {
  min-height: 0;
  height: auto;
  padding: clamp(150px, 18vw, 200px) 0 clamp(64px, 8vw, 96px);
  background-image:
    linear-gradient(100deg, rgba(10, 7, 4, 0.92) 22%, rgba(10, 7, 4, 0.62) 62%, rgba(74, 51, 25, 0.42)),
    var(--hero, url('/img/gallery/venetian-plaster-staircase-wide.jpg')) !important;
}
.pg-hero .hero__content { text-align: left; max-width: 1140px; width: min(1140px, calc(100% - 44px)); }
.hero.hero--short.pg-hero .hero__content::after { display: none; }
.pg-hero .pg-eyebrow {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
}
.pg-hero h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 4.6rem); text-align: left; }
.pg-hero h1 span { display: block; }
.pg-hero h1 .w, .pg-head h2 .w {
  background: none;
  color: #f7f1e6;
  -webkit-text-fill-color: #f7f1e6;
}
.pg-hero .pg-rule { width: 120px; height: 2px; margin: 22px 0; background: var(--gilt); }
.pg-hero .pg-lead { max-width: 620px; margin: 0; font-size: 1.12rem; line-height: 1.75; color: #efe3c8; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pg-btn {
  display: inline-block;
  padding: 14px 26px;
  font-family: var(--condensed);
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f9ecc4;
  border: 1px solid #f3dc9a;
  transition: background 0.3s ease, color 0.3s ease;
}
.pg-btn--solid { background: var(--gilt); color: #1a1209; border-color: transparent; }
.pg-btn:hover { background: #f3dc9a; color: #1a1209; }

.pg-section { padding: clamp(56px, 8vw, 104px) 0; }
.pg-section + .pg-section { padding-top: 0; }
.pg-wrap { width: min(1140px, calc(100% - 44px)); margin: 0 auto; }
.pg-head { text-align: center; margin: 0 auto clamp(30px, 4vw, 48px); max-width: 760px; }
.pg-head .pg-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
}
.pg-head .pg-kicker::after { content: ""; display: block; width: 64px; height: 2px; margin: 10px auto 0; background: var(--gilt); }
.pg-head h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.pg-head h2 span { display: block; }
.pg-head p { margin: 16px auto 0; color: rgba(243, 234, 216, 0.82); }

/* copy + aside */
.pg-split { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.pg-split .prose { max-width: none; margin: 0; }
.prose > :first-child { margin-top: 0; }
.prose .pg-intro { font-size: 1.14rem; color: #f3e7cc; }
.pg-aside {
  position: sticky;
  top: 110px;
  padding: clamp(26px, 3vw, 38px);
  background:
    radial-gradient(ellipse at 30% 15%, rgba(255, 220, 150, 0.16), transparent 60%),
    linear-gradient(rgba(74, 51, 25, 0.62), rgba(40, 28, 14, 0.82)),
    url('/img/textures-web/venetian-copper.jpg') center/cover;
  border: 1px solid var(--line-gold);
}
.pg-aside h3 { margin: 0 0 16px; font-size: 1.25rem; color: #f3dc9a; }
.pg-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pg-ticks li { position: relative; padding-left: 28px; color: #f6ead0; font-size: 0.96rem; line-height: 1.55; }
.pg-ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 12px;
  height: 7px;
  border-left: 2px solid #f3dc9a;
  border-bottom: 2px solid #f3dc9a;
  transform: rotate(-45deg);
}
.pg-aside .pg-btn { margin-top: 24px; display: block; text-align: center; }
.pg-aside figure { margin: 0 0 22px; border: 1px solid var(--line-gold); }
.pg-aside figure img { display: block; width: 100%; height: auto; }

/* cards */
.pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.pg-card {
  position: relative;
  display: block;
  padding: 28px 26px;
  background: var(--panel-warm);
  border: 1px solid var(--line-gold);
  border-top: 2px solid #c39a36;
}
.pg-card h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--amber); }
.pg-card p { margin: 0; font-size: 0.95rem; color: rgba(243, 234, 216, 0.82); line-height: 1.7; }
.pg-card .pg-more { display: inline-block; margin-top: 14px; color: #f3dc9a; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; }
a.pg-card { text-decoration: none; transition: transform 0.3s ease, border-color 0.3s ease; }
a.pg-card:hover { transform: translateY(-4px); border-color: rgba(243, 220, 154, 0.7); }

/* steps */
.pg-steps {
  list-style: none;
  margin: 0;
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 26px;
  counter-reset: s;
  background:
    linear-gradient(rgba(40, 28, 14, 0.74), rgba(24, 17, 10, 0.88)),
    url('/img/textures-web/venetian-copper.jpg') center/cover;
  border: 1px solid var(--line-gold);
}
.pg-steps li { counter-increment: s; padding-top: 20px; border-top: 1px solid rgba(220, 184, 95, 0.4); }
.pg-steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 8px; font-family: var(--condensed); font-size: 1.4rem; color: #f3dc9a; }
.pg-steps strong { display: block; font-family: var(--condensed); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: #fbefd0; }
.pg-steps p { margin: 6px 0 0; font-size: 0.93rem; color: #e9dcc0; }

/* FAQ (details + .faq__answer, animated by js/components.js) */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--panel-warm); border: 1px solid var(--line-gold); border-left: 3px solid #c39a36; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-family: var(--condensed);
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f6e7c1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: #f3dc9a; }
.faq details[open] summary::after { content: "\2212"; }
.faq__answer { padding: 0 24px; }
.faq__answer > :last-child { margin-bottom: 20px; }
.faq__answer p { margin: 0 0 12px; color: rgba(243, 234, 216, 0.86); }
.faq-group { margin: 44px auto 16px; max-width: 880px; font-size: 1.4rem; color: #f3dc9a; }
.faq-group:first-child { margin-top: 0; }

/* chips */
.pg-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pg-chips a, .pg-chips span {
  padding: 9px 16px;
  border: 1px solid var(--line-gold);
  background: rgba(40, 28, 14, 0.6);
  color: #f3dc9a;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.pg-chips a:hover { background: #f3dc9a; color: #1a1209; }

/* contact page */
.pg-contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.contact-form { padding: clamp(24px, 3.5vw, 40px); }
.contact-form .form__label { display: block; margin-bottom: 6px; color: #f3dc9a; font-family: var(--condensed); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.contact-form .form__input, .contact-form .form__textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 7, 4, 0.6);
  border: 1px solid rgba(220, 184, 95, 0.35);
  color: #f6ead0;
  padding: 12px 14px;
  font: inherit;
}
.contact-form .form__textarea { min-height: 160px; }
.contact-form .form__group { margin-bottom: 16px; }
.contact-form button { border: 0; cursor: pointer; }
.pg-contact-lines { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 16px; }
.pg-contact-lines li { color: #f6ead0; }
.pg-contact-lines a { color: #f9ecc4; text-decoration: none; font-size: 1.05rem; }
.pg-contact-lines span { display: block; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: #e0b894; }

/* blog */
.pg-meta { margin: 14px 0 0; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: #e0b894; }
.prose.pg-article { max-width: 820px; margin: 0 auto; }
.prose blockquote { margin: 24px 0; padding: 16px 22px; border-left: 3px solid #c39a36; background: rgba(40, 28, 14, 0.5); color: #f3e7cc; }

@media (max-width: 980px) {
  .pg-split, .pg-contact { grid-template-columns: 1fr; }
  .pg-aside { position: static; }
  .pg-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pg-steps { grid-template-columns: 1fr; }
  .pg-hero .pg-lead { font-size: 1rem; }
}
