/* SEO static content blocks (visible to crawlers + users) */

.seo-content {
  max-width: 1080px;
  margin: 24px auto 60px;
  padding: 0 40px;
  font-family: 'DM Sans', sans-serif;
  color: #1A1A1A;
}

/* When stub render returns empty (location/service/info pages), drop ud-content
   min-height so the empty zone doesn't leave 200px gap above breadcrumb. */
body.has-static-only #ud-content { min-height: 0 !important; }

/* ===== BROWN HERO BANNER — info / service / location / blog pages ===== */
/* Mirrors the .ph-hero styling from the Prehung Guide page */
body.has-static-only main.seo-content > .seo-hero {
  background: linear-gradient(135deg, #2C2418, #4A3D2A, #1A1A1A);
  color: #FFFFFF;
  border: none;
  border-radius: 18px;
  padding: 56px 56px;
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
}
body.has-static-only main.seo-content > .seo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(circle at 20% 80%, #C49B2C 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
body.has-static-only main.seo-content > .seo-hero::after {
  content: '';
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 240px;
  border: 2px solid rgba(196, 155, 44, 0.18);
  border-radius: 6px;
  background-image:
    linear-gradient(rgba(196, 155, 44, 0.08), rgba(196, 155, 44, 0.08)),
    linear-gradient(rgba(196, 155, 44, 0.06), rgba(196, 155, 44, 0.06));
  background-position: 18px 24px, 18px 130px;
  background-size: 104px 92px, 104px 84px;
  background-repeat: no-repeat;
  pointer-events: none;
}
body.has-static-only main.seo-content > .seo-hero > * {
  position: relative;
  z-index: 1;
}
body.has-static-only main.seo-content > .seo-hero h1 {
  color: #FFFFFF;
  font-size: 42px;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  max-width: calc(100% - 180px);
}
body.has-static-only main.seo-content > .seo-hero .lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  max-width: 600px;
}
body.has-static-only main.seo-content > .seo-hero a {
  color: #C49B2C;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.has-static-only main.seo-content > .seo-hero a:hover {
  color: #E0B85A;
}
body.has-static-only main.seo-content > .seo-hero strong {
  color: #FFFFFF;
}
/* Category-tag pill (used on blog articles) inside brown hero — keep visible */
body.has-static-only main.seo-content > .seo-hero p[style*="uppercase"] {
  color: #C49B2C !important;
}

@media (max-width: 768px) {
  body.has-static-only main.seo-content > .seo-hero {
    padding: 40px 26px;
    border-radius: 14px;
  }
  body.has-static-only main.seo-content > .seo-hero::after {
    display: none;
  }
  body.has-static-only main.seo-content > .seo-hero h1 {
    font-size: 28px;
    max-width: 100%;
  }
}

/* ===== HOME PAGE — sections styled as blocks with smooth visual separation ===== */
body.is-home main.seo-content {
  max-width: 1180px;
  padding: 0 24px;
  margin: 32px auto 60px;
}
/* Default block: white card on cream body bg, subtle shadow makes the block "lift" */
body.is-home main.seo-content > section {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 48px 44px;
  margin-bottom: 20px;
  border: 1px solid #ECE7DE;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.is-home main.seo-content > section:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
/* Hero — gold-tinted gradient, premium feel */
body.is-home main.seo-content > .seo-hero {
  background: linear-gradient(135deg, #F5F0E3 0%, #EFE3C8 100%);
  border: 1px solid #E0D5B8;
  padding: 56px 44px;
}
body.is-home main.seo-content > .seo-hero h1 {
  font-size: 46px;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
/* Local-areas section: highlight with a deeper cream */
body.is-home main.seo-content > .seo-local {
  background: linear-gradient(180deg, #FAF9F6 0%, #FFFFFF 100%);
}
/* CTA — gold gradient, draws the eye */
body.is-home main.seo-content > .seo-cta {
  background: linear-gradient(135deg, #F5F0E3 0%, #E8DEC2 100%);
  border: 1px solid #E0D5B8;
  padding: 56px 44px;
  margin-top: 8px;
}
/* Inner cards (area cards / related cards) — subtle outline so they read inside white sections */
body.is-home main.seo-content .seo-area-card,
body.is-home main.seo-content .seo-related-grid a {
  background: #FAF9F6;
  border-color: #ECE7DE;
}
body.is-home main.seo-content .seo-related-grid a:hover {
  background: #FFFFFF;
  border-color: #8B6914;
}

@media (max-width: 768px) {
  body.is-home main.seo-content {
    padding: 0 14px;
  }
  body.is-home main.seo-content > section {
    padding: 32px 22px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  body.is-home main.seo-content > .seo-hero {
    padding: 40px 22px;
  }
  body.is-home main.seo-content > .seo-hero h1 {
    font-size: 32px;
  }
  body.is-home main.seo-content > .seo-cta {
    padding: 40px 22px;
  }
}

/* On catalog-style pages (category / doors-type / /doors/ hub), JS renders the
   breadcrumb at the top of #ud-content. Hide the duplicate static breadcrumb
   that sits inside main.seo-content (which gets moved to #ud-seo-zone below products). */
body.has-catalog main.seo-content > .seo-breadcrumb {
  display: none;
}

/* JS-rendered breadcrumb at the top of catalog pages (above products grid) */
.seo-breadcrumb--top {
  max-width: 1200px;
  margin: 16px auto 8px;
  padding: 0 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #6B6B6B;
  letter-spacing: 0.3px;
}
.seo-breadcrumb--top a {
  color: #6B6B6B;
  text-decoration: none;
  transition: color 0.15s;
}
.seo-breadcrumb--top a:hover {
  color: #8B6914;
  text-decoration: underline;
}
.seo-breadcrumb--top .sep {
  margin: 0 8px;
  color: #C4A97D;
  font-weight: 300;
}
.seo-breadcrumb--top .current {
  color: #1A1A1A;
  font-weight: 500;
}
@media (max-width: 768px) {
  .seo-breadcrumb--top { padding: 0 20px; }
}

/* ---------- Breadcrumb ---------- */
.seo-breadcrumb {
  font-size: 13px;
  color: #6B6B6B;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.seo-breadcrumb a {
  color: #6B6B6B;
  text-decoration: none;
  transition: color 0.15s;
}
.seo-breadcrumb a:hover {
  color: #8B6914;
  text-decoration: underline;
}
.seo-breadcrumb .sep {
  margin: 0 8px;
  color: #C4A97D;
  font-weight: 300;
}
.seo-breadcrumb .current {
  color: #1A1A1A;
  font-weight: 500;
}

/* ---------- Related links (categories / cities / services) ---------- */
.seo-content .seo-related {
  background: #FAF9F6;
  padding: 32px 28px;
  border-radius: 12px;
  border: 1px solid #E8E5DE;
}
.seo-content .seo-related h2 {
  font-size: 24px;
  margin-bottom: 18px;
}
.seo-content .seo-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 0;
}
.seo-content .seo-related-grid li {
  list-style: none;
  border: none;
  padding: 0;
  margin: 0;
}
.seo-content .seo-related-grid li::before {
  display: none;
}
.seo-content .seo-related-grid a {
  display: block;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #E8E5DE;
  border-radius: 6px;
  color: #1A1A1A;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.seo-content .seo-related-grid a:hover {
  border-color: #8B6914;
  color: #8B6914;
  background: #FFFFFF;
}
.seo-content .seo-related-grid a .seo-related-count {
  display: block;
  font-size: 12px;
  color: #999;
  font-weight: 400;
  margin-top: 2px;
}
.seo-content .seo-related-grid a:hover .seo-related-count {
  color: #6B6B6B;
}

@media (max-width: 768px) {
  .seo-content .seo-related {
    padding: 24px 20px;
  }
  .seo-content .seo-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== PRODUCT PAGE — extended sections ========== */
/* Composite description block — sits under the door image in the LEFT column */
.product-desc-under-image {
  margin-top: 24px;
  padding: 22px 24px;
  background: #FAF9F6;
  border: 1px solid #E8E5DE;
  border-radius: 10px;
}
.product-desc-under-image p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4A4A4A;
  margin: 0;
}
.product-desc-under-image strong {
  color: #1A1A1A;
  font-weight: 600;
}
.product-desc-under-image a {
  color: #8B6914;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-desc-under-image a:hover {
  color: #C49B2C;
}

@media (max-width: 768px) {
  .product-desc-under-image {
    padding: 20px;
  }
}

.product-desc-composite {
  font-size: 15px;
  line-height: 1.7;
  color: #4A4A4A;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #E8E5DE;
}
.product-desc-composite a {
  color: #8B6914;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-desc-composite strong {
  color: #1A1A1A;
}

/* ========== HIGHLIGHTED NAV ITEM — Doors slightly distinguished ========== */
nav .nav-link[href="/doors/"] {
  color: #8B6914;
  font-weight: 700;
}
nav .nav-link[href="/doors/"]:hover {
  color: #C49B2C;
}

/* Mobile drawer — bolder gold for the Doors item */
.mobile-nav-link[href="/doors/"] {
  color: #8B6914 !important;
  font-weight: 700;
}

/* ========== MOBILE MENU (hamburger drawer) ========== */
.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #E8E5DE;
  border-radius: 8px;
  background: #FFFFFF;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1A1A1A;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.nav-hamburger:hover {
  border-color: #8B6914;
  background: #FAF9F6;
}
.nav-hamburger svg { display: block; }

@media (max-width: 800px) {
  .nav-hamburger { display: flex; }
}

/* Drawer overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  z-index: 9998;
  display: flex;
  justify-content: flex-end;
  animation: mmFadeIn 0.18s ease;
}
@keyframes mmFadeIn { from { opacity: 0 } to { opacity: 1 } }

.mobile-menu-panel {
  width: min(360px, 88vw);
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  animation: mmSlideIn 0.22s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
@keyframes mmSlideIn { from { transform: translateX(100%) } to { transform: translateX(0) } }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #E8E5DE;
}
.mobile-menu-header .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #1A1A1A;
  text-decoration: none;
}
.mobile-menu-header .logo span { color: #8B6914; }

.mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: #6B6B6B;
  transition: background 0.15s, border-color 0.15s;
}
.mobile-menu-close:hover {
  background: #FAF9F6;
  border-color: #E8E5DE;
  color: #1A1A1A;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  flex: 1;
  overflow-y: auto;
}
.mobile-nav-link {
  display: block;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #FAF9F6;
  border-left-color: #8B6914;
  color: #8B6914;
}

.mobile-menu-footer {
  padding: 18px 22px 24px;
  border-top: 1px solid #E8E5DE;
  background: #FAF9F6;
}
.mobile-menu-cta {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  margin-bottom: 4px;
}
.mobile-menu-email {
  display: block;
  font-size: 13px;
  color: #6B6B6B;
  text-decoration: none;
}

/* Trust badges — placed inside left column (image-col), under composite description */
.product-trust {
  margin-top: 16px;
}
.product-trust .trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #F5F0E3;
  padding: 18px 20px;
  border-radius: 10px;
}
.product-trust .trust-item {
  padding: 6px 10px;
  border-left: 2px solid #8B6914;
}
.product-trust .trust-strong {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 2px;
  line-height: 1.3;
}
.product-trust .trust-sub {
  font-size: 12px;
  color: #6B6B6B;
  line-height: 1.4;
}
@media (max-width: 600px){
  .product-trust .trust-row {
    grid-template-columns: 1fr;
  }
}

.product-specs {
  max-width: 1180px;
  margin: 48px auto;
  padding: 0 32px;
  font-family: 'DM Sans', sans-serif;
}
.product-specs h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 16px;
}
.product-specs-table {
  width: 100%;
  max-width: 700px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.product-specs-table tr {
  border-bottom: 1px solid #E8E5DE;
}
.product-specs-table tr:last-child {
  border-bottom: none;
}
.product-specs-table th {
  text-align: left;
  font-weight: 500;
  color: #6B6B6B;
  padding: 12px 24px 12px 0;
  width: 40%;
  vertical-align: top;
}
.product-specs-table td {
  padding: 12px 0;
  color: #1A1A1A;
}
.product-specs-table td a {
  color: #8B6914;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-related {
  max-width: 1180px;
  margin: 48px auto;
  padding: 0 32px;
  font-family: 'DM Sans', sans-serif;
}
.product-related h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 18px;
}
.product-related h2 a {
  color: #8B6914;
  text-decoration: none;
}
.product-related h2 a:hover {
  text-decoration: underline;
}
.product-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.product-related .related-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E8E5DE;
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.product-related .related-card:hover {
  border-color: #8B6914;
  transform: translateY(-2px);
}
.product-related .related-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
  pointer-events: none;
}
.product-related .related-name {
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.35;
  margin-bottom: 4px;
}
.product-related .related-price {
  font-size: 13px;
  color: #6B6B6B;
}

.product-faq-block {
  max-width: 1180px;
  margin: 48px auto 64px;
  padding: 0 32px;
  font-family: 'DM Sans', sans-serif;
}
.product-faq-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 16px;
}
.product-faq-block details {
  border-bottom: 1px solid #E8E5DE;
  padding: 18px 0;
}
.product-faq-block details:first-of-type {
  border-top: 1px solid #E8E5DE;
}
.product-faq-block summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: #1A1A1A;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-faq-block summary::-webkit-details-marker { display: none; }
.product-faq-block summary::after {
  content: '+';
  font-size: 24px;
  color: #8B6914;
  font-weight: 300;
  transition: transform 0.25s ease;
  margin-left: 16px;
  flex-shrink: 0;
}
.product-faq-block details[open] summary::after { transform: rotate(45deg); }
.product-faq-block details p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #6B6B6B;
}
.product-faq-block details a {
  color: #8B6914;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .product-trust,
  .product-specs,
  .product-related,
  .product-faq-block {
    padding: 0 20px;
  }
  .product-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seo-content section {
  margin-bottom: 56px;
}

.seo-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #1A1A1A;
  letter-spacing: -0.5px;
}

.seo-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 18px;
  color: #1A1A1A;
  letter-spacing: -0.3px;
}

.seo-content .lead {
  font-size: 18px;
  line-height: 1.65;
  color: #1A1A1A;
  max-width: 760px;
  font-weight: 400;
}

.seo-content p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #6B6B6B;
  margin-bottom: 14px;
  max-width: 780px;
}

.seo-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
}

.seo-content ul li {
  font-size: 15.5px;
  line-height: 1.6;
  color: #6B6B6B;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid #E8E5DE;
  position: relative;
}

.seo-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 1px;
  background: #8B6914;
}

.seo-content ul li:last-child {
  border-bottom: none;
}

.seo-content strong {
  color: #1A1A1A;
  font-weight: 600;
}

.seo-content a {
  color: #8B6914;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.seo-content a:hover {
  color: #C49B2C;
}

.seo-content .seo-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.seo-content .seo-area-card {
  padding: 22px 24px;
  background: #FFFFFF;
  border: 1px solid #E8E5DE;
  border-radius: 8px;
}

.seo-content .seo-area-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8B6914;
  font-weight: 600;
  margin-bottom: 10px;
}

.seo-content .seo-area-card p {
  font-size: 14.5px;
  color: #6B6B6B;
  margin: 0;
  line-height: 1.6;
}

.seo-content details {
  border-bottom: 1px solid #E8E5DE;
  padding: 20px 0;
}

.seo-content details:first-of-type {
  border-top: 1px solid #E8E5DE;
}

.seo-content details summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: #1A1A1A;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 8px;
}

.seo-content details summary::-webkit-details-marker {
  display: none;
}

.seo-content details summary::after {
  content: '+';
  font-size: 26px;
  color: #8B6914;
  font-weight: 300;
  transition: transform 0.25s ease;
  line-height: 1;
  margin-left: 16px;
  flex-shrink: 0;
}

.seo-content details[open] summary::after {
  transform: rotate(45deg);
}

.seo-content details p {
  margin-top: 14px;
  margin-bottom: 6px;
}

.seo-content .seo-cta {
  background: #F5F0E3;
  padding: 48px 40px;
  border-radius: 12px;
  text-align: center;
  margin-top: 72px;
  margin-bottom: 0;
}

.seo-content .seo-cta h2 {
  margin-bottom: 14px;
}

.seo-content .seo-cta p {
  margin: 0 auto 20px;
  max-width: 560px;
  font-size: 16px;
}

.seo-content .seo-cta .seo-tel {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin: 8px 0;
}

.seo-content .seo-cta .seo-tel:hover {
  color: #8B6914;
}

.seo-content .seo-cta .seo-email {
  display: block;
  color: #6B6B6B;
  font-size: 14px;
  margin-top: 6px;
  text-decoration: none;
}

.seo-content .seo-cta .seo-email:hover {
  color: #8B6914;
}

@media (max-width: 768px) {
  .seo-content {
    padding: 0 24px;
    margin: 40px auto 60px;
  }
  .seo-content h1 {
    font-size: 32px;
    letter-spacing: -0.3px;
  }
  .seo-content h2 {
    font-size: 24px;
  }
  .seo-content .lead {
    font-size: 16px;
  }
  .seo-content .seo-cta {
    padding: 36px 24px;
    margin-top: 56px;
  }
  .seo-content .seo-cta .seo-tel {
    font-size: 28px;
  }
}
