/* =========================
   PRICING PAGE — SCOPED STYLES ONLY
   All nav, header, footer, body, and
   global element rules removed.
   header_footer.css owns all of those.
   ========================= */

:root {
  --primary:  #2e5f84;
  --accent:   #c48416;
  --accent-2: #640505;
  --bg:       #f8fafc;
  --text:     #0f172a;
  --muted:    #64748b;
  --border:   #e2e8f0;
  --radius:   16px;
  --shadow:   0 8px 22px rgba(15,23,42,0.12);
}

* {
  box-sizing: border-box;
}

/* Page wrapper */
.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

/* Typography scoped to page content only */
.page-wrap h1,
.page-wrap h2,
.page-wrap h3 {
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.page-wrap h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
}

.page-wrap h2 {
  font-size: 1.4rem;
}

.page-wrap p {
  margin: 0 0 0.9rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.page-wrap a {
  color: var(--primary);
  text-decoration: none;
}

.page-wrap a:hover {
  text-decoration: underline;
}

/* ── HERO ── */
.pricing-hero {
  margin-bottom: 2rem;
}

.pricing-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(46,95,132,0.06);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.pricing-hero-tag span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── SUMMARY BAND ── */
.pricing-summary-band {
  margin: 2rem 0 2.4rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 780px) {
  .pricing-summary-band {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.summary-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.3rem 1.4rem 1.5rem;
  box-shadow: 0 4px 16px rgba(15,23,42,0.08);
}

.summary-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.summary-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(46,95,132,0.06);
  font-size: 0.85rem;
  margin: 0.35rem 0 0.55rem;
}

.summary-pill strong {
  color: var(--primary);
}

.summary-card small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── PRICING TABLE ── */
.pricing-table-wrap {
  margin-bottom: 2.8rem;
}

.pricing-table-wrap h2 {
  margin-bottom: 0.5rem;
}

.pricing-table-wrap .muted {
  margin-bottom: 1rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
  background: #ffffff;
}

.pricing-table thead {
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  color: #ffffff;
}

.pricing-table th,
.pricing-table td {
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  text-align: left;
}

.pricing-table th:nth-child(1),
.pricing-table td:nth-child(1) { min-width: 160px; }

.pricing-table th:nth-child(2),
.pricing-table td:nth-child(2) { min-width: 150px; }

.pricing-table th:nth-child(3),
.pricing-table td:nth-child(3) { min-width: 200px; }

.pricing-table tbody tr:nth-child(odd)  { background: #f8fafc; }
.pricing-table tbody tr:nth-child(even) { background: #ffffff; }

.pricing-tag {
  display: inline-flex;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--muted);
}

.pricing-table strong {
  font-weight: 600;
  color: var(--primary);
}

.placeholder {
  color: #b91c1c;
  font-style: italic;
  font-size: 0.85rem;
}

/* ── EXTERIOR BAR GRAPH ── */
.exterior-bars {
  margin-bottom: 2.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}

.exterior-bars h2 {
  margin-bottom: 0.35rem;
}

.exterior-row {
  display: grid;
  grid-template-columns: 1.1fr 3fr auto;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: left center;
}

.bar-small  { width: 40%; }
.bar-medium { width: 65%; }
.bar-large  { width: 100%; }

.exterior-price {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .exterior-row { grid-template-columns: 1fr; }
  .exterior-price { justify-self: flex-start; }
}

/* ── COST FACTORS ── */
.pricing-factors {
  margin-bottom: 2.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}

.pricing-factors ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.pricing-factors li + li {
  margin-top: 0.3rem;
}

/* ── CTA ROW ── */
.cta-row {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(45deg, #22374a, #c48416);
  background-size: 200% 200%;
  color: #ffffff !important; 
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background-position 0.18s ease;
}

.btn-primary:hover {
  background-position: 200% 200%;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15,23,42,0.25);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-ghost:hover {
  background: #f1f5f9;
  text-decoration: none;
}

/* ── PRICING OPTIONS BUTTONS ── */
#pricing-options {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin: 0;
}

#pricing-options button {
  flex-grow: 1;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 200;
  letter-spacing: 2px;
}

#interior-btn.active,
#exterior-btn.active {
  background-color: #f4f4f4;
  color: #2e5f84;
}

#interior-btn:not(.active),
#exterior-btn:not(.active) {
  background-color: #5a5c5e;
  color: #ffffff;
}

@media (max-width: 600px) {
  #pricing-options button { font-size: 14px; padding: 8px 10px; }
}

@media (min-width: 601px) and (max-width: 1024px) {
  #pricing-options button { font-size: 16px; padding: 10px 15px; }
}

@media (min-width: 1025px) {
  #pricing-options button { font-size: 20px; padding: 12px 20px; }
}

/* ── INTERNAL LINKS ── */
a.internal-link {
  color: #ffa500;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

a.internal-link:hover {
  color: #ffcc66;
  text-decoration: underline;
}

/* ── SERVICES IMAGE SECTIONS ── */
.image-section-services {
  margin: 20px 0;
}

.image-container-services {
  position: relative;
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
}

.image-container-services picture,
.image-container-services img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-content-services {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f5f5f5;
  background: rgba(34,34,34,0.7);
  padding: 20px;
  text-align: center;
  max-width: 90%;
  width: 90%;
  transition: background 0.5s ease, color 0.5s ease;
}

@media (max-width: 600px) {
  .overlay-content-services { padding: 10px; font-size: 14px; max-width: 90%; width: 90%; }
}

@media (min-width: 601px) and (max-width: 1200px) {
  .overlay-content-services { padding: 15px; font-size: 16px; max-width: 80%; width: 80%; }
}

@media (min-width: 1201px) {
  .overlay-content-services { padding: 20px; font-size: 18px; max-width: 600px; }
}

.overlay-content-services:hover {
  background: linear-gradient(45deg, #2e5f84, #2e5f84);
  color: #ffffff;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.3);
}

.services-heading {
  margin: 10px 0;
  font-weight: 1;
  letter-spacing: 3px;
  color: #ffffff;
  font-size: 28px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.services-subheading {
  margin: 10px 0;
  font-weight: 500;
  letter-spacing: 3px;
  color: #cccccc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.services-description {
  margin: 10px 0;
  color: #e0e0e0;
  font-weight: 200;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.services-link {
  color: #ffa500;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.services-link:hover {
  color: #ffcc66;
  text-decoration: underline;
}

/* ── SQFT EXPAND/COLLAPSE ── */
.sqft-details-inner {
  display: none;
}

.sqft-details.is-expanded .sqft-details-inner {
  display: block;
}

.sqft-toggle {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sqft-toggle:hover {
  background: #f1f5f9;
}

/* ── PROJECT GRID ── */
.project-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 780px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,23,42,0.10);
}

.project-image-wrap {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
}

.project-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image-wrap img {
  transform: scale(1.04);
}

.project-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-body h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--primary);
}

.project-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.project-body p {
  margin: 0;
  font-size: 0.9rem;
}

.project-links {
  margin-top: 0.75rem;
  font-size: 0.88rem;
}
#price-per-square-foot {
  max-width: 1080px;
  margin: 40px auto;
  padding: 24px 20px 26px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

/* Heading row with icon */
#price-per-square-foot h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  margin: 0 0 12px;
}

#price-per-square-foot h2 .material-symbols-outlined {
  font-size: 1.6rem;
  color: #2e5f84; /* brand blue */
}

/* Collapsible area */
#price-per-square-foot .sqft-details {
  position: relative;
  max-height: 230px;          /* collapsed height */
  overflow: hidden;
}

/* Inner content (your big block of text) */
#price-per-square-foot .sqft-details-inner {
  font-size: 0.94rem;
  color: #475569;             /* slate-ish */
}

/* Gradient fade at the bottom when collapsed */
#price-per-square-foot .sqft-details::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 40%,
    #ffffff 100%
  );
  pointer-events: none;
}

/* Expanded state */
#price-per-square-foot .sqft-details.is-expanded {
  max-height: none;
  overflow: visible;
}

#price-per-square-foot .sqft-details.is-expanded::after {
  opacity: 0;
}

/* Toggle button */
#price-per-square-foot .sqft-toggle {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #2e5f84;               /* brand blue */
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

#price-per-square-foot .sqft-toggle:hover,
#price-per-square-foot .sqft-toggle:focus-visible {
  background: #2e5f84;
  color: #ffffff;
  border-color: #2e5f84;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

#price-per-square-foot .sqft-toggle:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}

#price-per-square-foot .sqft-toggle:focus-visible {
  outline: 2px solid #c48416; /* gold focus ring */
  outline-offset: 3px;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  #price-per-square-foot {
    margin: 28px auto;
    padding: 20px 16px 22px;
  }

  #price-per-square-foot h2 {
    font-size: 1.15rem;
  }

  #price-per-square-foot .sqft-details-inner {
    font-size: 0.92rem;
  }
}
/* ── CONTENT SECTIONS ── */
.content.section {
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}

/* ── FAQ DETAILS ── */
.page-wrap details {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.page-wrap details:first-of-type {
  border-top: 1px solid var(--border);
}

.page-wrap summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-wrap summary::-webkit-details-marker { display: none; }

.page-wrap summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
}

.page-wrap details[open] summary::after {
  content: '−';
}

.page-wrap details p {
  margin-top: 0.6rem;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── HUB CARDS ── */
.hub-intro { margin-bottom: 2rem; }

.hub-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(46,95,132,0.06);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.hub-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hub-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hub-cards { grid-template-columns: 1fr 1fr; }
}

.hub-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(15,23,42,0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15,23,42,0.14);
  text-decoration: none;
}

.hub-card__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hub-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
}

.hub-card__range {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(46,95,132,0.06);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  align-self: flex-start;
}

.hub-card__range span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.hub-card__desc {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.hub-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: #2e5f84;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}

.hub-card__cta::after {
  content: '›';
  font-size: 1.3rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.hub-card:hover .hub-card__cta {
  color: #c48416;
}

.hub-card:hover .hub-card__cta::after {
  transform: translateX(5px);
}

.hub-note {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}

.hub-note h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.hub-note ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.hub-note li + li { margin-top: 0.3rem; }

/* ── FAQ GRID ── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  align-items: start;
}

.faq-grid details {
  break-inside: avoid;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: -1px;
}

.faq-grid details:first-of-type {
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}