/*
Theme Name: Palm Beach Exteriors
Theme URI: https://palmbeachexteriors.com
Author: Palm Beach Exteriors
Author URI: https://palmbeachexteriors.com
Description: A coastal-inspired WordPress theme for Palm Beach Exteriors — a Palm Beach, FL pressure washing & soft washing (chemical rinsing) company serving residential and commercial properties. Brand palette pulled from the logo: sky blue, deep navy, golden yellow, and palm green.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pbe
Tags: business, portfolio, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, editor-style, threaded-comments, translation-ready
*/

:root {
  --pbe-sky:        #2BA6E6;
  --pbe-sky-soft:   #BDE3F5;
  --pbe-navy:       #0E2A47;
  --pbe-navy-deep:  #081B30;
  --pbe-gold:       #F5B400;
  --pbe-palm:       #2F8F3F;
  --pbe-sand:       #FAF6EE;
  --pbe-ink:        #0E2A47;
  --pbe-cloud:      #FFFFFF;
  --pbe-font-head:  "Playfair Display", Georgia, serif;
  --pbe-font-body:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pbe-radius:     14px;
  --pbe-shadow:     0 14px 36px rgba(14, 42, 71, .12);
  --pbe-container:  1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pbe-font-body);
  color: var(--pbe-ink);
  background: var(--pbe-sand);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--pbe-font-head); color: var(--pbe-navy); line-height: 1.15; margin: 0 0 .5em; }
a { color: var(--pbe-gold); text-decoration: none; }
a:hover { color: var(--pbe-sky); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--pbe-container); margin: 0 auto; padding: 0 1.25rem; }

/* Header — navy bar so the sky-blue logo integrates seamlessly */
.site-header { background: var(--pbe-navy); border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: .5rem; padding-bottom: .5rem; gap: 1.25rem; flex-wrap: wrap; }
.site-logo img { width: 275px; height: auto; max-width: 100%; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); transition: width .2s ease; }
.site-logo .text-logo { font-family: var(--pbe-font-head); font-size: 1.4rem; color: var(--pbe-gold); font-weight: 700; }

.primary-nav ul { display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; align-items: center; }
.primary-nav a { color: var(--pbe-gold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .92rem; }
.primary-nav a:hover { color: #fff; }

.header-cta { background: var(--pbe-gold); color: var(--pbe-navy) !important; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 800; box-shadow: 0 6px 16px rgba(245,180,0,.4); }
.header-cta:hover { background: #fff; }

/* Hero */
.pbe-hero {
  position: relative;
  color: #fff;
  padding: 6rem 0 7rem;
  overflow: hidden;
  background-color: var(--pbe-navy);
  background-image: linear-gradient(110deg, rgba(8,27,48,.78) 0%, rgba(14,42,71,.55) 45%, rgba(43,166,230,.18) 100%), url('assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
}
.pbe-hero h1 { color: #fff; font-size: clamp(2rem, 5.5vw, 4rem); max-width: 820px; }
.pbe-hero p { font-size: 1.15rem; max-width: 620px; margin: 0 0 1.75rem; opacity: .95; }
.pbe-eyebrow { display:inline-block; background:rgba(245,180,0,.18); color:var(--pbe-gold); border:1px solid var(--pbe-gold); padding:.3rem .8rem; border-radius:999px; font-weight:700; letter-spacing:.08em; font-size:.8rem; margin-bottom:1rem; }
.pbe-btn { display: inline-block; background: var(--pbe-gold); color: var(--pbe-navy) !important; padding: 1rem 1.7rem; border-radius: 999px; font-weight: 800; box-shadow: 0 12px 28px rgba(245,180,0,.45); }
.pbe-btn:hover { background: #fff; }
.pbe-btn.secondary { background: rgba(255,255,255,.12); color: #fff !important; border:1px solid rgba(255,255,255,.4); box-shadow:none; }
.pbe-btn.gold { background: var(--pbe-gold); color: var(--pbe-navy) !important; }

/* Sections & cards */
.section { padding: 5rem 0; }
.grid { display: grid; gap: 1.5rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: #fff; border-radius: var(--pbe-radius); box-shadow: var(--pbe-shadow); overflow: hidden; transition: transform .2s ease; }
.card:hover { transform: translateY(-4px); }
.card .card-body { padding: 1.5rem; }

/* Service card block */
.pbe-service-card { background: #fff; border-radius: var(--pbe-radius); box-shadow: var(--pbe-shadow); padding: 1.75rem; border-top: 4px solid var(--pbe-gold); display:flex; flex-direction:column; gap:.5rem; }
.pbe-service-card h3 { margin-top: 0; }
.pbe-service-card h3 a { color: var(--pbe-navy); }
.pbe-service-card .price { color: var(--pbe-palm); font-weight: 700; }
.pbe-service-card .card-cta { color: var(--pbe-sky); font-weight: 700; }

/* Before/After block */
.pbe-ba-figure { display: flex; flex-direction: column; gap: .75rem; }
.pbe-ba-caption { font-weight: 700; color: var(--pbe-navy); letter-spacing: .04em; }
.pbe-ba { position: relative; width: 100%; aspect-ratio: 1280/896; border-radius: var(--pbe-radius); overflow: hidden; box-shadow: var(--pbe-shadow); user-select: none; touch-action: none; cursor: ew-resize; background:#000; }
.pbe-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.pbe-ba .pbe-ba-clip { position: absolute; inset: 0; overflow: hidden; width: 50%; }
.pbe-ba .pbe-ba-clip img { width: 100%; height: 100%; }
.pbe-ba .pbe-ba-label { position: absolute; top: 14px; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.pbe-ba .pbe-ba-before { left: 14px; background: var(--pbe-navy); color:#fff; }
.pbe-ba .pbe-ba-after  { right: 14px; background: var(--pbe-gold); color: var(--pbe-navy); }
.pbe-ba .pbe-ba-line { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; transform: translateX(-50%); left: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.pbe-ba .pbe-ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; color: var(--pbe-navy); font-weight: 800; }

.pbe-ba-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Quote form template */
.pbe-quote-wrap { background: linear-gradient(135deg, var(--pbe-navy-deep), var(--pbe-navy) 55%, var(--pbe-sky)); color: #fff; padding: 5rem 1.25rem; }
.pbe-quote-grid { max-width: 1100px; margin: 0 auto; display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.pbe-quote-form { background: #fff; color: var(--pbe-ink); border-radius: var(--pbe-radius); padding: 2rem; box-shadow: var(--pbe-shadow); display: grid; gap: 1rem; }
.pbe-quote-form label { display: grid; gap: .35rem; font-size: .9rem; color: var(--pbe-navy); font-weight: 600; }
.pbe-quote-form .pbe-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.pbe-quote-form input, .pbe-quote-form textarea, .pbe-quote-form select { width: 100%; padding: .8rem .9rem; border: 1px solid #d6dee6; border-radius: 10px; font: inherit; background: #fff; }
.pbe-quote-form button { background: var(--pbe-gold); color: var(--pbe-navy); padding: 1rem 1.6rem; border-radius: 999px; border: 0; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 24px rgba(245,180,0,.4); }
.pbe-quote-form button:hover { background: var(--pbe-navy); color: var(--pbe-gold); }

/* Footer */
.site-footer { background: var(--pbe-navy-deep); color: #cfdbe7; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.site-footer h4 { color: #fff; }
.site-footer a { color: var(--pbe-gold); }
.footer-widgets { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; font-size: .9rem; text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .site-logo img { width: 220px; }
  .primary-nav ul { gap: 1rem; }
  .primary-nav a { font-size: .85rem; }
}
@media (max-width: 768px) {
  .site-header .container { justify-content: center; text-align: center; }
  .site-logo img { width: 200px; }
  .primary-nav ul { gap: .9rem; justify-content: center; }
  .pbe-hero { padding: 4rem 0 5rem; }
  .pbe-quote-form .pbe-row { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .site-logo img { width: 180px; }
  .primary-nav a { font-size: .8rem; letter-spacing: .02em; }
  .header-cta { padding: .55rem 1rem; font-size: .9rem; }
}
