/* Rising Phoenix Construction
   Palette carried over from the WordPress child theme (style.css :root). */
:root {
  --primary-orange: #f8981d;
  --dark-gray: #212222;
  --soft-beige: #e8e0d8;
  --slate-gray: #6a7b8c;
  --warm-off-white: #f5f5f5;
  --rusty-red: #a63c2f;
  --metallic-silver: #b0b7bc;
  --golden-yellow: #d4a017;

  --text: #666;            /* Divi body text */
  --text-dark: #333;
  --heading-font: "Open Sans", Arial, sans-serif;
  --body-font: "Roboto", Helvetica, Arial, sans-serif;
  --wrap: 1080px;          /* Divi content width */
  --band: clamp(3.5rem, 6vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.75 var(--body-font);
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-orange); }
:focus-visible { outline: 3px solid var(--primary-orange); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--heading-font); color: var(--text-dark); margin: 0 0 .5em; line-height: 1.2; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark-gray); color: #fff; padding: .75rem 1rem; z-index: 1000; }
.skip:focus { left: 1rem; top: 1rem; }

/* The letter-spaced uppercase section heading from the original site */
.caps {
  font: 800 15px/1.1 var(--heading-font);
  text-transform: uppercase;
  letter-spacing: .45em;
  color: var(--dark-gray);
  margin-bottom: 1.1em;
}
.caps a { color: inherit; text-decoration: none; }

/* ---------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .3em 1em; min-height: 44px;
  font: 500 20px/1.7 var(--body-font);
  text-decoration: none; border-radius: 3px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-orange { background: var(--primary-orange); color: #fff; }
.btn-orange:hover { background: #e5850a; color: #fff; }
.btn-bordered { border-color: #fff; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--primary-orange); }
.quote-link { font-weight: 700; color: var(--rusty-red); text-decoration: none; font-size: 14px; }
.quote-link:hover { text-decoration: underline; }

/* ---------- header */
.site-header { background: var(--dark-gray); position: sticky; top: 0; z-index: 50; }
.is-home .site-header { position: fixed; inset: 0 0 auto 0; background: rgba(33,34,34,.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 92px; }
.brand img { height: 66px; width: auto; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { font: 700 14px/1 var(--body-font); color: var(--primary-orange); text-decoration: none; padding: .5rem 0; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .header-inner { min-height: 76px; }
  .brand img { height: 52px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    background: none; border: 2px solid var(--primary-orange); border-radius: 3px;
    padding: .45rem .8rem; font: 700 14px var(--body-font); color: var(--primary-orange); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--dark-gray); border-top: 3px solid var(--primary-orange); padding: .5rem 1.25rem 1rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 16px; }
}

/* ---------- home slider */
.slider { position: relative; height: 100vh; min-height: 560px; max-height: 1000px; background: var(--dark-gray); overflow: hidden; color: #fff; }
.slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.slide-inner { position: relative; z-index: 1; text-align: center; padding-top: 92px; }
.slide h1, .slide h2 { font: 600 clamp(2.2rem, 5vw, 3.9rem)/1.1 var(--heading-font); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); margin-bottom: .2em; text-wrap: balance; }
.slide p { color: #fff; font-size: clamp(15px, 1.4vw, 16px); max-width: 980px; margin: 0 auto 1.6em; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.slider-dots { position: absolute; bottom: 1.5rem; left: 0; right: 0; display: flex; justify-content: center; gap: .6rem; z-index: 2; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.slider-dots button[aria-selected="true"] { background: var(--primary-orange); }

/* ---------- interior banner */
.banner { position: relative; min-height: 270px; display: grid; align-items: end; background: var(--dark-gray); border-bottom: 3px solid var(--slate-gray); overflow: hidden; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,34,34,.75) 0%, rgba(33,34,34,.15) 45%, rgba(33,34,34,.25) 100%); z-index: 1; }
.banner-inner { position: relative; z-index: 2; padding-bottom: 1rem; }
.banner h1 { font: 300 clamp(2rem, 4.4vw, 3rem)/1.2 var(--heading-font); color: #fff; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* ---------- bands */
.band { padding-block: var(--band); }
.band-light { background: var(--warm-off-white); }
.band-white { background: #fff; }
.band-beige { background: var(--soft-beige); }
.band-dark { background: var(--dark-gray); color: #fff; }
.band-dark .caps { color: #fff; }
.band-dark .caps a:hover { color: var(--primary-orange); }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.band-head .caps { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5%; align-items: center; }
.split-top { align-items: start; }
.split-form { grid-template-columns: 1fr 2.6fr; }
.split-img { width: 100%; aspect-ratio: 9 / 4; object-fit: cover; }
.body-text { font-weight: 300; }
.body-text p:last-child { margin-bottom: 0; }
@media (max-width: 980px) {
  .split, .split-form { grid-template-columns: 1fr; gap: 2rem; }
  .split-reverse > :last-child { order: -1; }
}

.feature-list { margin: 0; padding-left: 1.1em; font-weight: 300; line-height: 1.9; }
.feature-list strong { font-weight: 700; color: #555; }

/* dark columns */
.cols { display: grid; gap: 2.5rem 5.5%; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.col p { color: #fff; font-weight: 300; margin-bottom: .5em; line-height: 1.6; }
.col ul { margin: 0; padding-left: 1.1em; font-weight: 300; line-height: 1.6; }
.col li { margin-bottom: .35em; }
.col .col-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.5rem; }
.col .quote-link { color: var(--primary-orange); }
@media (max-width: 980px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* CTA callout */
.callout { border-left: 4px solid var(--primary-orange); padding: .25rem 0 .25rem 1.25rem; }
.callout h2 { font: 400 clamp(1.7rem, 3vw, 2.25rem)/1.15 var(--heading-font); color: var(--text-dark); margin-bottom: .35em; }
.callout p { font-weight: 300; margin-bottom: .2em; }

/* tile strip */
.tile-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; background: #fff; overflow: hidden; }
.tile { flex: 0 0 auto; width: 62px; height: 52px; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.7); }
.tile-mark img { width: 44px; height: auto; }
@media (max-width: 680px) { .tile-strip .tile:nth-of-type(n+5), .tile-strip .tile-mark:nth-of-type(n+5) { display: none; } }

/* process (added section, in the site's vocabulary) */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; border-left: 4px solid var(--primary-orange); padding-left: 1rem; }
.steps li::before { content: counter(step); display: block; font: 300 2.4rem/1 var(--heading-font); color: var(--primary-orange); margin-bottom: .4rem; }
.steps h3 { font: 600 17px/1.3 var(--heading-font); }
.steps p { font-weight: 300; margin: 0; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: 1fr 2.2fr; gap: 5.5%; }
.faq details { border-bottom: 1px solid #ddd; }
.faq details:first-child { border-top: 1px solid #ddd; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; position: relative; font: 600 16px/1.4 var(--heading-font); color: var(--text-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font-size: 1.5rem; color: var(--primary-orange); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { font-weight: 300; padding-bottom: 1rem; margin: 0; }
@media (max-width: 980px) { .faq-inner { grid-template-columns: 1fr; } }

/* closing orange box + form */
.orange-box {
  background: var(--primary-orange); color: #fff; text-align: center;
  padding: 2.5rem 2rem 2.25rem; border: 2px solid var(--metallic-silver); border-top-color: transparent;
  border-radius: 0 0 50px 50px;
}
.orange-box h2 { font: 400 clamp(1.8rem, 3vw, 2.3rem)/1.2 var(--heading-font); color: #fff; margin-bottom: .35em; }
.orange-box p { color: #fff; font-weight: 300; font-size: 14px; }
.orange-box .btn { margin-top: .5rem; }
.orange-box-call { margin: .75rem 0 0; font-size: 13px !important; opacity: .9; }

.quote-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3%; }
@media (max-width: 560px) { .quote-form .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 3%; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; font: 400 14px var(--body-font); color: #555;
  background: #eee; border: 0; border-radius: 0; padding: 16px; min-height: 50px;
}
.quote-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.quote-form select.is-empty { color: #888; }
.quote-form ::placeholder { color: #888; opacity: 1; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--primary-orange); outline-offset: 0; background-color: #e8e8e8; }
.quote-form [aria-invalid="true"] { outline: 2px solid var(--rusty-red); }
.form-actions { text-align: right; }
.field-error { color: var(--rusty-red); font-size: 13px; margin: .35rem 0 0; }
.form-error { background: #fbe9e7; color: #8c1d18; padding: .75rem 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- photos */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.photo-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-caption { font-size: 13px; font-weight: 300; margin: .4rem 0 0; }

.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(20,21,21,.96); color: #fff; }
.lightbox::backdrop { background: rgba(20,21,21,.96); }
.lightbox-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3.5rem 4rem 1.5rem; }
.lightbox img { max-height: calc(100vh - 8rem); max-width: 100%; width: auto; object-fit: contain; }
.lightbox-cap { margin: .75rem 0 0; text-align: center; color: rgba(255,255,255,.85); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 700 15px var(--body-font); cursor: pointer; padding: .75rem 1rem; }
.lightbox button:hover { color: var(--primary-orange); }
.lightbox .lb-close { top: .5rem; right: .75rem; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lightbox .lb-prev { left: .25rem; } .lightbox .lb-next { right: .25rem; }

/* gallery page */
.gallery-lede { margin-bottom: 1rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter a { text-decoration: none; color: var(--dark-gray); font: 700 14px var(--body-font); padding: .55rem 1rem; background: #fff; border: 2px solid #ddd; }
.filter a span { color: #888; font-weight: 400; margin-left: .2rem; }
.filter a:hover { border-color: var(--primary-orange); }
.filter a[aria-current="page"] { background: var(--primary-orange); border-color: var(--primary-orange); color: #fff; }
.filter a[aria-current="page"] span { color: rgba(255,255,255,.85); }
.empty { font-weight: 300; }

/* contact */
.area-map { width: 100%; margin-bottom: 1.25rem; }
.note { font-style: italic; font-weight: 300; font-size: 14px; }
.city-list { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.1em; font-weight: 300; line-height: 1.75; color: var(--slate-gray); }
.contact-direct a { font-weight: 700; }
.rural-callout { margin-top: 2rem; }
.rural-callout h3 { font: 400 1.5rem/1.2 var(--heading-font); color: var(--text-dark); margin-bottom: .35em; }
.thanks { background: #fff; border-left: 4px solid var(--primary-orange); padding: 2rem; }
.thanks h2 { font: 400 1.8rem/1.2 var(--heading-font); }

/* ---------- footer: four boxes */
.site-footer { background: var(--dark-gray); color: #fff; padding: 1.75rem 0 1.5rem; }
.footer-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5%; }
.footer-box { border: 1px solid #3a3b3b; padding: 1.75rem 1rem; text-align: center; min-height: 200px; font: 400 16px/1.35 var(--heading-font); }
.footer-box p { margin: 0; }
.footer-box a { color: #fff; }
.footer-box a:hover { color: var(--primary-orange); }
.footer-icon { width: 36px; height: 36px; fill: #fff; color: #fff; margin: 0 auto 1rem; display: block; }
.footer-box-brand { background: var(--primary-orange); border-color: var(--primary-orange); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.footer-box-brand img { width: 44px; margin-bottom: .75rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; margin-top: 1.25rem; }
.footer-nav a { color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none; }
.footer-nav a:hover { color: var(--primary-orange); }
@media (max-width: 980px) { .footer-boxes { grid-template-columns: 1fr 1fr; gap: 1rem; } .footer-box { min-height: 0; } }
@media (max-width: 520px) { .footer-boxes { grid-template-columns: 1fr; } }

/* ---------- optional content protection (config: effects.content_protection) */
.is-protected { -webkit-user-select: none; user-select: none; }
.is-protected input, .is-protected textarea, .is-protected .footer-copyable, .is-protected .contact-direct, .is-protected a[href^="tel:"], .is-protected a[href^="mailto:"] { -webkit-user-select: text; user-select: text; }
.is-protected::after { content: "© Rising Phoenix Construction"; position: fixed; bottom: 10px; right: 10px; color: rgba(33,34,34,.3); font-size: 14px; pointer-events: none; z-index: 9999; }

/* effects canvases never block clicks */
.fx-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
