/*
Theme Name: Winyah Bay Pools
Theme URI: https://winyahbaypools.com
Author: EngageEngine™ / Marketing Performance
Description: Block theme for Winyah Bay Pools. Every word, photo, menu item, pool model and town page is edited in wp-admin (Pages, Pool Models, Patterns, Appearance > Editor). Activating the theme creates the pages, pool models, menu, Quote Form and images.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: winyah-bay-pools
*/

/* ==========================================================================
   Design tokens — the colors, radii and shadows are defined in theme.json
   (Appearance > Editor > Styles). These short names map to them so the rules
   below read like the original stylesheet.
   ========================================================================== */
:root {
  --teal-950: var(--wp--preset--color--teal-950);
  --teal-900: var(--wp--preset--color--teal-900);
  --teal-800: var(--wp--preset--color--teal-800);
  --teal-700: var(--wp--preset--color--teal-700);
  --teal-600: var(--wp--preset--color--teal-600);
  --teal-200: var(--wp--preset--color--teal-200);
  --teal-100: var(--wp--preset--color--teal-100);
  --teal-50: var(--wp--preset--color--teal-50);
  --sand-600: var(--wp--preset--color--sand-600);
  --sand-500: var(--wp--preset--color--sand-500);
  --sand-400: var(--wp--preset--color--sand-400);
  --sand-100: var(--wp--preset--color--sand-100);
  --sand-50: var(--wp--preset--color--sand-50);
  --zinc-950: var(--wp--preset--color--zinc-950);
  --zinc-800: var(--wp--preset--color--zinc-800);
  --zinc-600: var(--wp--preset--color--zinc-600);
  --zinc-400: var(--wp--preset--color--zinc-400);
  --zinc-200: var(--wp--preset--color--zinc-200);
  --zinc-100: var(--wp--preset--color--zinc-100);
  --zinc-50: var(--wp--preset--color--zinc-50);
  --white: var(--wp--preset--color--white);
  --radius-sm: var(--wp--custom--radius--sm);
  --radius-md: var(--wp--custom--radius--md);
  --radius-lg: var(--wp--custom--radius--lg);
  --shadow-sm: var(--wp--custom--shadow--sm);
  --shadow-md: var(--wp--custom--shadow--md);
  --shadow-lg: var(--wp--custom--shadow--lg);
  --transition: var(--wp--custom--transition);
  --font: var(--wp--preset--font-family--system);
}

/* ── Reset (as the original site) ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
p { max-width: 65ch; color: var(--zinc-600); line-height: 1.7; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* The header template part must not trap the sticky navigation bar. */
header.wp-block-template-part { display: contents; }

/* ── Utility ───────────────────────────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.container.container-narrow { max-width: 900px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.bg-teal-light { background: var(--teal-50); }
.bg-white { background: var(--white); }

.section-label {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-500);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  max-width: none;
}
.section-header { margin-bottom: 3rem; }
.section-header p:not(.section-label) { margin-top: 0.75rem; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
/* Default button = orange. Styles (block toolbar): Large, Outline white, Outline navy. */
.wp-block-buttons { display: flex; flex-wrap: wrap; }
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204,148,85,0.35);
}
.wp-block-button .wp-block-button__link:active { transform: scale(0.98); }
.wp-block-button.is-style-large .wp-block-button__link,
.wp-block-button.is-style-outline-white .wp-block-button__link,
.wp-block-button.is-style-outline-navy .wp-block-button__link { padding: 1rem 2.25rem; font-size: 1.05rem; }
.wp-block-button.is-style-outline-white .wp-block-button__link {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.wp-block-button.is-style-outline-white .wp-block-button__link:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  box-shadow: none;
}
.wp-block-button.is-style-outline-navy .wp-block-button__link {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--teal-700);
}
.wp-block-button.is-style-outline-navy .wp-block-button__link:hover {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: none;
}

/* Buttons inside the Quote Form (Custom HTML) keep the original classes. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.75rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: var(--transition); white-space: nowrap;
  line-height: 1.6;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--sand-500); color: var(--white); border-color: var(--sand-500); }
.btn-primary:hover { background: var(--sand-600); border-color: var(--sand-600); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(204,148,85,0.35); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ── Top bar ───────────────────────────────────────────────────────────── */
.top-bar { background: var(--teal-950); padding: 0.45rem 0; font-size: 0.83rem; color: rgba(255,255,255,0.75); line-height: 1.6; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-bar p { max-width: none; color: inherit; line-height: 1.6; }
.top-bar a { color: var(--sand-400); transition: color 0.2s; }
.top-bar a:hover { color: var(--white); }
.top-bar-tagline { display: flex; align-items: center; gap: 0.5rem; }

/* ── Navigation bar ────────────────────────────────────────────────────── */
.nav { background: var(--teal-900); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(7,30,38,0.35); }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 1.5rem; max-width: 1320px; margin: 0 auto; height: 72px;
}
.nav-inner .wp-block-site-logo.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-inner .wp-block-site-logo.nav-logo a { display: block; line-height: 0; }
.nav-inner .wp-block-site-logo.nav-logo img,
.footer-brand .wp-block-site-logo.footer-logo img {
  width: auto; display: block; background: white; border: 1px solid black; border-radius: 4px; padding: 2px;
}
.nav-inner .wp-block-site-logo.nav-logo img { height: 68px; }
.footer-brand .wp-block-site-logo.footer-logo img { height: 96px; }

.nav-cta { flex-shrink: 0; gap: 1rem; }

/* Menu links (Navigation block) */
.wbp-nav { flex: 0 1 auto; font-family: var(--font); color: rgba(255,255,255,0.8); }
.wbp-nav .wp-block-navigation__container { gap: 0.25rem; }
.wbp-nav .wp-block-navigation-item__content {
  font-weight: 500; font-size: 0.9rem; line-height: 1.6;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.wbp-nav .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.wbp-nav .current-menu-item > .wp-block-navigation-item__content.wp-block-navigation-item__content,
.wbp-nav .current-menu-ancestor > .wp-block-navigation-item__content.wp-block-navigation-item__content {
  color: var(--white); background: rgba(255,255,255,0.08);
}
.wbp-nav .wp-block-navigation__responsive-container-open,
.wbp-nav .wp-block-navigation__responsive-container-close { color: var(--white); }
.wbp-nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }

@media (min-width: 901px) {
  .wbp-nav .has-child > .wp-block-navigation-item__content { padding-right: 0.15rem; }
  .wbp-nav .wp-block-navigation__submenu-icon {
    width: 12px; height: 12px; margin: 0 0.85rem 0 0.15rem; color: rgba(255,255,255,0.8);
    transition: transform 0.2s;
  }
  .wbp-nav .wp-block-navigation__submenu-icon svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; }
  .wbp-nav .has-child:hover > .wp-block-navigation__submenu-icon { transform: rotate(180deg); }
  .wbp-nav .has-child .wp-block-navigation__submenu-container {
    background: var(--teal-900) !important;
    color: rgba(255,255,255,0.8) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(7,30,38,0.5);
    padding: 0.9rem 0 0.4rem;
    left: 50% !important;
    transform: translateX(-50%);
    top: 100%;
    z-index: 200;
  }
  .wbp-nav .has-child:hover > .wp-block-navigation__submenu-container,
  .wbp-nav .has-child:focus-within > .wp-block-navigation__submenu-container { min-width: 200px !important; }
  .wbp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    display: block; padding: 0.55rem 1.1rem; font-size: 0.875rem; white-space: nowrap; border-radius: 0;
  }
}

/* Phones and tablets: menu button, same break point as the original site (900px). */
@media (max-width: 900px) {
  .wbp-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .wbp-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
  .nav-inner .nav-cta { display: none; }
}
.wbp-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.wbp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  padding: 0.75rem 1rem; width: 100%; color: rgba(255,255,255,0.85); font-size: 1rem;
}
.wbp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  border-left: 2px solid rgba(255,255,255,0.15) !important;
  margin: 0.25rem 0 0.25rem 1rem; padding: 0 0 0 1rem !important;
}

/* ── Hero (home) ───────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; max-height: 820px; }
.hero-content {
  background: var(--teal-900); display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4rem 5rem 3rem; position: relative;
}
.hero-content::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7,30,38,0.3) 0%, transparent 100%);
  pointer-events: none;
}
.hero-content > * { position: relative; z-index: 1; }
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-content h1 em { font-style: normal; color: var(--sand-400); }
.hero-content p:not(.section-label) { color: rgba(255,255,255,0.75); max-width: 48ch; margin-bottom: 2rem; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.wp-block-image.hero-image { position: relative; overflow: hidden; min-height: 0; margin: 0; }
.wp-block-image.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.wp-block-image.hero-image::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 60px;
  background: linear-gradient(to right, var(--teal-900), transparent);
}
/* Block editor only: let the hero photo fill its column while editing. */
.wp-block-image.hero-image > .components-resizable-box__container { width: 100% !important; height: 100% !important; }
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; max-height: none; min-height: auto; }
  .wp-block-image.hero-image { height: 280px; order: -1; }
  .wp-block-image.hero-image::after { display: none; }
  .hero-content { padding: 3rem 1.5rem; }
  .hero-content h1 { font-size: 2rem; }
}

/* ── Trust bar ─────────────────────────────────────────────────────────── */
.trust-bar { background: var(--teal-800); padding: 1.5rem 0; }
.trust-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.5rem 0;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.trust-item:last-child { border-right: none; }
.trust-item::before {
  content: ''; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background-color: rgba(255,255,255,0.1); background-repeat: no-repeat;
  background-position: center; background-size: 20px 20px;
}
.trust-text p { max-width: none; line-height: 1.6; }
.trust-title { font-family: var(--font); font-weight: 600; font-size: 0.9rem; color: var(--white); }
.trust-sub { font-size: 0.78rem; color: rgba(255,255,255,0.6); line-height: 1.6rem !important; }
@media (max-width: 768px) {
  .trust-bar .container { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
  .trust-item:nth-child(n+3) { border-bottom: none; }
}
@media (max-width: 480px) {
  .trust-bar .container { grid-template-columns: 1fr; }
  .trust-item { border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
  .trust-item:last-child { border-bottom: none !important; }
}

/* ── "Why" two-column sections (home + town pages) ─────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-features { display: flex; flex-direction: column; gap: 1.75rem; margin-top: 2rem; }
.why-features.is-compact { margin-top: 1.5rem; }
.why-feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-feature::before {
  content: ''; width: 44px; height: 44px; flex-shrink: 0;
  background-color: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius-sm);
  background-repeat: no-repeat; background-position: center; background-size: 22px 22px;
}
.why-feature h4 { margin-bottom: 0.25rem; color: var(--teal-900); }
.why-feature p { font-size: 0.93rem; margin: 0; max-width: none; }
.wp-block-image.why-image {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; margin: 0;
}
.wp-block-image.why-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.town-actions { margin-top: 2rem; }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .wp-block-image.why-image { max-height: 320px; }
}

/* ── Pool cards (Query Loop of Pool Models) ────────────────────────────── */
.wp-block-post-template.pool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
  list-style: none; padding: 0; margin: 0; max-width: none;
}
.pool-card {
  height: 100%;
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--zinc-200);
  background: var(--white); transition: var(--transition); box-shadow: var(--shadow-sm);
}
.pool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-100); }
.wp-block-post-featured-image.pool-card-img { aspect-ratio: 4/3; overflow: hidden; margin: 0; }
.wp-block-post-featured-image.pool-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pool-card:hover .pool-card-img img { transform: scale(1.04); }
.pool-card-body { padding: 1rem 1.25rem 1.25rem; }
.pool-card-category {
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sand-500); margin-bottom: 0.35rem; line-height: 1.6;
}
.pool-card-body .wp-block-post-title.pool-card-title { font-size: 1.05rem; color: var(--teal-900); margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.pool-card-link { line-height: 1.6; max-width: none; }
.pool-card-link a {
  font-family: var(--font); font-size: 0.85rem; font-weight: 600; color: var(--teal-700);
  display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.2s ease;
}
.pool-card-link a:hover { gap: 0.55rem; }
.centered-actions { justify-content: center; margin-top: 2.5rem; }

/* ── Our Pools page: filter + sections ─────────────────────────────────── */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-bar .wp-block-button.filter-btn .wp-block-button__link {
  padding: 0.5rem 1.1rem; border: 1.5px solid var(--zinc-200); border-radius: 99px;
  font-family: var(--font); font-size: 0.85rem; font-weight: 600; line-height: normal;
  color: var(--zinc-600); background: var(--white); box-shadow: none; transform: none;
}
.filter-bar .wp-block-button.filter-btn .wp-block-button__link:hover,
.filter-bar .wp-block-button.filter-btn.is-active .wp-block-button__link {
  border-color: var(--teal-700); color: var(--teal-700); background: var(--teal-50);
}
.container > .pool-section { margin-bottom: 3rem; }
.catalog-heading {
  font-size: 1.3rem !important; color: var(--teal-800) !important; margin-bottom: 1.5rem;
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--teal-100);
}

/* ── Service area cards (Query Loop of the Service Areas child pages) ──── */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.areas-grid > .wp-block-query,
.areas-grid .wp-block-post-template,
.sa-grid > .wp-block-query,
.sa-grid .wp-block-post-template { display: contents; }
.areas-grid .area-card { margin: 0; max-width: none; line-height: 1.6; }
.areas-grid .area-card a {
  display: flex; align-items: center; gap: 0.75rem; height: 100%;
  background: var(--white); border: 1px solid var(--zinc-200); border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem; transition: var(--transition);
  font-family: var(--font); font-weight: 600; font-size: 0.95rem; color: var(--teal-800);
}
.areas-grid .area-card a:hover {
  border-color: var(--teal-600); background: var(--teal-50); transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.areas-grid .area-card:not(.area-card-all) a::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-600); flex-shrink: 0;
}
.areas-grid .area-card.area-card-all a { border-style: dashed; color: var(--sand-500); border-color: var(--sand-400); }

.sa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.sa-card {
  position: relative; height: 100%;
  background: var(--white); border: 1px solid var(--zinc-200); border-radius: var(--radius-md);
  padding: 1.5rem; transition: var(--transition);
}
.sa-card:hover { border-color: var(--teal-600); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sa-card p, .sa-card .wp-block-post-excerpt__excerpt { max-width: none; line-height: 1.6; margin: 0; }
.sa-card .sa-card-title { font-weight: 700; font-size: 1.1rem; color: var(--teal-900); margin-bottom: 0.4rem; line-height: 1.6; }
.sa-card .sa-card-title a::after { content: ''; position: absolute; inset: 0; }
.sa-card .sa-card-sub, .sa-card .sa-card-sub p { font-size: 0.85rem; color: var(--zinc-600); }
.sa-card .sa-card-sub { margin-bottom: 1rem; }
.sa-card .sa-card-cta { font-size: 0.82rem; font-weight: 600; color: var(--teal-600); }
.sa-card.sa-card-more { background: var(--sand-50); border: 2px dashed var(--sand-400); }
.sa-card.sa-card-more:hover { background: var(--sand-100); border-color: var(--sand-400); transform: none; box-shadow: none; }
.sa-card.sa-card-more .sa-card-title, .sa-card.sa-card-more .sa-card-cta { color: var(--sand-600); }

/* ── Add-On Features page ──────────────────────────────────────────────── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.container > .feature-row.is-last { margin-bottom: 2rem; }
.feature-points { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.feature-points li { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; color: var(--zinc-800); }
.feature-points li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sand-500); flex-shrink: 0; display: inline-block;
}
.feature-actions { margin-top: 1.75rem; }
hr.wp-block-separator.divider { width: 100%; max-width: none; height: 1px; background: var(--zinc-200); border: none; margin: 0 0 5rem; opacity: 1; }

/* ── Inner page hero + breadcrumb ──────────────────────────────────────── */
.page-hero { background: var(--teal-900); padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7,30,38,0.5), transparent); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p:not(.breadcrumb) { color: rgba(255,255,255,0.7); max-width: 55ch; }
.page-hero .breadcrumb { font-size: 0.83rem; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; line-height: 1.6; max-width: none; word-spacing: 0.2em; }
.page-hero .breadcrumb a { color: var(--sand-400); word-spacing: normal; }
.page-hero.area-hero-bg { background-image: linear-gradient(to right, var(--teal-900) 55%, var(--teal-700)); }

/* ── Nearby towns (town pages) ─────────────────────────────────────────── */
.nearby-title { margin-bottom: 0.5rem; color: var(--teal-900); }
.nearby-intro { margin-bottom: 0; }
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.nearby-grid a {
  display: block; padding: 0.75rem 1rem; background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  color: var(--teal-800); text-align: center; transition: var(--transition);
}
.nearby-grid a:hover { background: var(--teal-700); color: var(--white); border-color: var(--teal-700); }

/* ── CTA banner ────────────────────────────────────────────────────────── */
.cta-banner { background: var(--teal-800); padding: 5rem 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.7); margin: 0 auto 2rem; text-align: center; }
.cta-banner .btn-group { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Quote Form (synced pattern) ───────────────────────────────────────── */
#contact { scroll-margin-top: 80px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.quote-form-col h2 { margin-bottom: 0.5rem; }
.quote-form-col .quote-intro { margin-bottom: 2rem; }
.quote-details { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 0.5rem; }
.quote-details > .quote-detail + .quote-detail { border-top: 1px solid var(--zinc-200); padding-top: 1.5rem; }
.quote-details p { max-width: none; line-height: 1.6; }
.detail-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--zinc-400); margin-bottom: 0.5rem;
}
.detail-label.is-list-label { margin-bottom: 0.75rem; }
.detail-phone a { font-weight: 700; font-size: 1.35rem; color: var(--teal-900); }
.detail-link a { font-weight: 600; color: var(--teal-900); }
.service-area-list { display: flex; flex-direction: column; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.service-area-list li a { font-size: 0.88rem; color: var(--teal-600); font-weight: 500; transition: color 0.2s; }
.service-area-list li a:hover { color: var(--teal-900); text-decoration: underline; }
.quote-details .service-area-note { font-size: 0.82rem; color: var(--zinc-600); margin-top: 0.35rem; }
.wp-block-image.detail-illustration { margin: 0; }
.wp-block-image.detail-illustration img { width: 100%; border-radius: var(--radius-lg); }

.contact-form {
  background: var(--white); border: 1px solid var(--zinc-200); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-group label { font-family: var(--font); font-size: 0.85rem; font-weight: 600; color: var(--teal-900); }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem 1rem; border: 1.5px solid var(--zinc-200); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.95rem; color: var(--zinc-800); background: var(--zinc-50);
  transition: border-color 0.2s ease; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal-600); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select {
  cursor: pointer; appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2352525b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
  /* Deliberate change from the live site: there the two quote columns stay side by
     side on phones and push the page wider than the screen (which also pushes the
     mobile menu's close button off-screen). Delete this rule to restore it exactly. */
  .quote-grid { grid-template-columns: 1fr; }
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--teal-950); color: rgba(255,255,255,0.65); padding: 4rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .wp-block-site-logo.footer-logo { margin-bottom: 1rem; display: block; }
.footer-brand .wp-block-site-logo.footer-logo a { display: inline-block; line-height: 0; }
.footer-brand > p { font-size: 0.88rem; color: rgba(255,255,255,0.5); max-width: 34ch; line-height: 1.7; }
.footer-contact { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-contact p { max-width: none; line-height: 1.6; font-size: 0.88rem; }
.footer-contact a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-contact .is-phone a, .footer-contact .has-facebook-icon a { font-weight: 600; }
.footer-col h4 {
  font-family: var(--font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sand-400); margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0;
  font-size: 0.8rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { color: inherit; font-size: inherit; max-width: none; line-height: 1.6; }
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Privacy policy ────────────────────────────────────────────────────── */
.pp-wrap { max-width: 760px; margin: 0 auto; }
.pp-wrap h2 {
  font-size: 1.35rem; letter-spacing: -0.01em; margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--zinc-200);
}
.pp-wrap h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.pp-wrap p, .pp-wrap li { color: var(--zinc-700, #3f3f46); line-height: 1.7; }
.pp-wrap ul { padding-left: 1.4rem; }
.pp-wrap li { margin-bottom: 0.5rem; }
.pp-wrap a { color: var(--teal-700); }
.pp-callout {
  background: var(--teal-50, #eef6f7); border-left: 3px solid var(--teal-700);
  padding: 1rem 1.25rem; margin: 1.25rem 0; border-radius: 0 8px 8px 0;
}

/* ── Single posts / 404 (not used by the current site) ─────────────────── */
.wbp-main .wp-block-post-title + .wbp-content { margin-top: 1.5rem; }

/* ── Icons (generated from the original inline SVGs) ───────────────────── */
/* ICONS:START */
.trust-item.icon-clock::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC28' stroke-width='1.75'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.why-feature.icon-clock::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3080' stroke-width='1.75'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.trust-item.icon-dollar::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC28' stroke-width='1.75'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E"); }
.why-feature.icon-dollar::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3080' stroke-width='1.75'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E"); }
.trust-item.icon-star::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC28' stroke-width='1.75'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E"); }
.why-feature.icon-star::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3080' stroke-width='1.75'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E"); }
.trust-item.icon-people::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC28' stroke-width='1.75'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E"); }
.why-feature.icon-people::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3080' stroke-width='1.75'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E"); }
.trust-item.icon-heart::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC28' stroke-width='1.75'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E"); }
.why-feature.icon-heart::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3080' stroke-width='1.75'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E"); }
.trust-item.icon-house::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC28' stroke-width='1.75'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z'/%3E%3C/svg%3E"); }
.why-feature.icon-house::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3080' stroke-width='1.75'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z'/%3E%3C/svg%3E"); }
.trust-item.icon-home::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC28' stroke-width='1.75'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E"); }
.why-feature.icon-home::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3080' stroke-width='1.75'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E"); }
.trust-item.icon-shield::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC28' stroke-width='1.75'%3E%3Cpath d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'/%3E%3C/svg%3E"); }
.why-feature.icon-shield::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3080' stroke-width='1.75'%3E%3Cpath d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'/%3E%3C/svg%3E"); }
.trust-item.icon-pulse::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC28' stroke-width='1.75'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E"); }
.why-feature.icon-pulse::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3080' stroke-width='1.75'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E"); }
.top-bar-tagline::before { content: ''; width: 14px; height: 14px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.has-facebook-icon a { display: inline-flex; align-items: center; gap: 0.4rem; }
.has-facebook-icon a::before { content: ''; width: 15px; height: 15px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z'/%3E%3C/svg%3E") center/contain no-repeat; }
/* ICONS:END */
