/*
Theme Name: Coastal Standard
Theme URI: https://coastalstandardfl.com/
Author: Mike Yanda
Author URI: https://coastalstandardfl.com/
Description: Clean, conversion-focused theme for a residential painting company. Built for Coastal Standard FL and reusable for other painters through the Painter Settings page.
Version: 1.0.7
Requires at least: 6.4
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: coastal-standard
Tags: one-column, custom-menu, featured-images, business
*/

/* ------------------------------------------------------------------
   1. Tokens
   Colors can be overridden from Painter Settings (functions.php
   prints a small :root block after this stylesheet).
------------------------------------------------------------------ */
:root {
  --cs-navy: #0F2A44;
  --cs-navy-deep: #0A1C2E;
  --cs-navy-mid: #1A3B5A;
  --cs-accent: #1E7F74;
  --cs-accent-dark: #15605A;
  --cs-accent-light: #8FD9CF;
  --cs-accent-tint: #DDF3EF;
  --cs-sand: #F3EFE6;
  --cs-sand-dark: #D8D1C2;
  --cs-sky: #DCE6EC;
  --cs-ink: #1D2A38;
  --cs-ink-soft: #3A4D5E;
  --cs-muted: #4A5A6A;
  --cs-line: #E6E9EC;
  --cs-white: #FFFFFF;
  --cs-star: #F2C14E;

  --cs-font-display: "Outfit", system-ui, sans-serif;
  --cs-font-body: "Inter", system-ui, sans-serif;

  --cs-radius: 8px;
  --cs-radius-lg: 14px;
  --cs-radius-xl: 16px;
  --cs-max: 1200px;
  --cs-gutter: 24px;
}

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--cs-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cs-ink);
  background: var(--cs-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cs-accent); }
a:hover { color: var(--cs-accent-dark); }
h1, h2, h3, h4 {
  font-family: var(--cs-font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cs-navy);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  width: auto; height: auto; clip: auto;
  background: var(--cs-navy); color: #fff; padding: 10px 14px;
  border-radius: var(--cs-radius);
}

.cs-container {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding-left: var(--cs-gutter);
  padding-right: var(--cs-gutter);
}
.cs-section { padding: 80px 0; }
.cs-section--tight { padding: 56px 0; }
.cs-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cs-accent);
  margin-bottom: 10px;
}
.cs-section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 16px; margin-bottom: 40px;
}
.cs-section-head h2 { font-size: clamp(30px, 3.4vw, 38px); max-width: 620px; margin: 0; }
.cs-section-head a { font-weight: 600; text-decoration: none; }
.cs-lead { font-size: 17px; color: var(--cs-muted); }

/* Buttons */
.cs-btn {
  display: inline-block; padding: 14px 24px; border-radius: var(--cs-radius);
  font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s;
}
.cs-btn--accent { background: var(--cs-accent); color: #fff; border-color: var(--cs-accent); }
.cs-btn--accent:hover { background: var(--cs-accent-dark); border-color: var(--cs-accent-dark); color: #fff; }
.cs-btn--navy { background: var(--cs-navy); color: #fff; border-color: var(--cs-navy); }
.cs-btn--navy:hover { background: var(--cs-navy-mid); color: #fff; }
.cs-btn--white { background: #fff; color: var(--cs-navy); border-color: #fff; }
.cs-btn--white:hover { background: var(--cs-sand); color: var(--cs-navy); }
.cs-btn--outline-white { background: transparent; color: #fff; border-color: #fff; }
.cs-btn--outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.cs-btn--lg { padding: 16px 28px; font-size: 17px; }

/* Placeholder blocks (shown when an image has not been set yet) */
.cs-placeholder {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px; font-size: 14px;
  color: var(--cs-ink-soft); background: var(--cs-sky);
}

/* ------------------------------------------------------------------
   3. Header
------------------------------------------------------------------ */
.cs-topbar { background: var(--cs-navy); color: #fff; font-size: 14px; }
.cs-topbar .cs-container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px;
}
.cs-topbar__badges { display: flex; flex-wrap: wrap; gap: 20px; }
.cs-topbar__phone { color: #fff; font-weight: 600; text-decoration: none; }

.cs-header { border-bottom: 1px solid var(--cs-line); background: #fff; position: relative; z-index: 20; }
.cs-header .cs-container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px; padding-bottom: 14px;
}
.cs-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.cs-brand__mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--cs-accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cs-brand__logo { max-height: 48px; width: auto; }
.cs-brand__name { font-family: var(--cs-font-display); font-weight: 700; font-size: 20px; color: var(--cs-navy); line-height: 1.1; }
.cs-brand__tag { font-size: 12px; color: var(--cs-muted); }

.cs-nav { display: flex; align-items: center; gap: 28px; }
.cs-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.cs-nav li { position: relative; }
.cs-nav a { color: var(--cs-nav-link, #5B6B7A); text-decoration: none; font-weight: 500; font-size: 15px; }
.cs-nav a:hover, .cs-nav .current-menu-item > a { color: var(--cs-accent); }
.cs-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--cs-line); border-radius: var(--cs-radius);
  padding: 8px 0; flex-direction: column; gap: 0; box-shadow: 0 10px 30px rgba(15,42,68,.08);
}
.cs-nav li:hover > .sub-menu, .cs-nav li:focus-within > .sub-menu { display: flex; }
.cs-nav .sub-menu a { display: block; padding: 8px 16px; }
.cs-nav a.cs-nav__cta { padding: 12px 20px; color: #FFFFFF; }
.cs-nav a.cs-nav__cta:hover { color: #FFFFFF; }

.cs-nav-toggle {
  display: none; background: none; border: 1px solid var(--cs-line); border-radius: var(--cs-radius);
  padding: 10px; cursor: pointer; color: var(--cs-navy);
}

@media (max-width: 900px) {
  .cs-topbar__badges { display: none; }
  .cs-nav-toggle { display: inline-flex; }
  .cs-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--cs-line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
  }
  .cs-nav.is-open { display: flex; }
  .cs-nav ul { flex-direction: column; gap: 0; }
  .cs-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--cs-line); font-size: 17px; }
  .cs-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .cs-nav__cta { margin-top: 16px; text-align: center; }
}

/* ------------------------------------------------------------------
   4. Hero
------------------------------------------------------------------ */
.cs-hero { background: var(--cs-navy); color: #fff; }
.cs-hero .cs-container {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.cs-hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cs-hero__kicker {
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--cs-accent-light);
}
.cs-hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
.cs-hero__sub { font-size: 19px; color: #D5DEE6; max-width: 520px; margin: 0; }
.cs-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cs-hero__points { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: #D5DEE6; padding-top: 8px; }
.cs-hero__side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cs-hero__image { border-radius: var(--cs-radius-lg); overflow: hidden; height: 300px; }
.cs-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero__image .cs-placeholder { height: 100%; background: var(--cs-navy-mid); color: #BFD0DF; border: 1px dashed #5B7A96; border-radius: var(--cs-radius-lg); }

/* Quote form card */
.cs-quote-card {
  background: #fff; color: var(--cs-ink); border-radius: var(--cs-radius-lg);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 12px;
}
.cs-quote-card__title { font-family: var(--cs-font-display); font-weight: 600; font-size: 18px; color: var(--cs-navy); }
.cs-form { display: flex; flex-direction: column; gap: 12px; }
.cs-form__row { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-form__row > label { flex: 1 1 160px; }
.cs-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--cs-muted); }
.cs-form input, .cs-form textarea {
  padding: 11px 12px; border: 1px solid #CCD4DB; border-radius: var(--cs-radius);
  font-size: 15px; color: var(--cs-ink); background: #fff; width: 100%;
}
.cs-form input:focus, .cs-form textarea:focus { outline: 2px solid var(--cs-accent); outline-offset: 1px; border-color: var(--cs-accent); }
.cs-form textarea { min-height: 110px; resize: vertical; }
.cs-form .cs-btn { width: 100%; border: 0; }
.cs-form__hp { position: absolute; left: -9999px; }
.cs-form__notice { padding: 12px 14px; border-radius: var(--cs-radius); font-size: 15px; }
.cs-form__notice--ok { background: var(--cs-accent-tint); color: var(--cs-accent-dark); }
.cs-form__notice--err { background: #FDECEC; color: #8A2B2B; }

/* Call card: used in place of the form when "None" is chosen */
.cs-call-card { background: #fff; color: var(--cs-ink); border-radius: var(--cs-radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cs-call-card__title { font-family: var(--cs-font-display); font-weight: 600; font-size: 18px; color: var(--cs-navy); }
.cs-call-card__phone { font-family: var(--cs-font-display); font-weight: 700; font-size: 30px; color: var(--cs-navy); text-decoration: none; }
.cs-call-card p { margin: 0; font-size: 15px; color: var(--cs-muted); }

/* ------------------------------------------------------------------
   5. Trust strip
------------------------------------------------------------------ */
.cs-trust { background: var(--cs-sand); border-bottom: 1px solid #E6E1D5; }
.cs-trust .cs-container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding-top: 22px; padding-bottom: 22px; font-size: 15px; font-weight: 500; color: var(--cs-navy);
}
.cs-trust__item { display: flex; align-items: center; gap: 10px; }
.cs-trust__item svg { flex-shrink: 0; }

/* ------------------------------------------------------------------
   6. Services
------------------------------------------------------------------ */
.cs-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
/* Column count follows the number of services (1 to 4) so the row is always full. */
.cs-cards--1 { grid-template-columns: 1fr; }
.cs-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-cards--3 .cs-card__media { height: 220px; }
.cs-cards--2 .cs-card__media { height: 260px; }
.cs-cards--1 .cs-card { flex-direction: row; }
.cs-cards--1 .cs-card__media { height: auto; min-height: 280px; flex: 0 0 50%; }
.cs-cards--1 .cs-card__body { padding: 32px; justify-content: center; }
.cs-card {
  border: 1px solid var(--cs-line); border-radius: var(--cs-radius-lg); overflow: hidden;
  display: flex; flex-direction: column; background: #fff; text-decoration: none; color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.cs-card:hover { box-shadow: 0 12px 30px rgba(15,42,68,.10); transform: translateY(-2px); color: inherit; }
.cs-card__media { height: 180px; background: var(--cs-sky); }
.cs-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cs-card__media .cs-placeholder { height: 100%; }

/* Line illustrations used when a service has no photo yet. Drawn in the
   theme palette so they read as part of the design, not as a missing image. */
.cs-art { background-color: var(--cs-sky); background-repeat: no-repeat; background-position: center; background-size: cover; }
.cs-art--exterior { background-image: url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180'><rect width='320' height='180' fill='%23DCE6EC'/><g fill='none' stroke='%23A9BFCC' stroke-width='2.5' stroke-linejoin='round'><path d='M64 180V90l96-54 96 54v90'/><path d='M44 100L160 34l116 66'/><path d='M74 108h172M74 124h172M74 140h172M74 156h172M74 172h172'/><rect x='90' y='110' width='34' height='34' fill='%23DCE6EC'/><rect x='196' y='110' width='34' height='34' fill='%23DCE6EC'/><path d='M107 110v34M90 127h34M213 110v34M196 127h34'/></g><rect x='142' y='124' width='36' height='56' fill='%231E7F74'/><circle cx='171' cy='154' r='2.5' fill='%23DCE6EC'/></svg>"); }
.cs-art--interior { background-image: url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180'><rect width='320' height='180' fill='%23DCE6EC'/><rect width='148' height='162' fill='%23C5D4DD'/><path d='M148 0c6 20-4 40 2 60s-6 42 0 62 2 40 2 40' fill='none' stroke='%23C5D4DD' stroke-width='10' stroke-linecap='round'/><path d='M0 162h320' stroke='%23A9BFCC' stroke-width='4'/><rect x='118' y='34' width='48' height='96' rx='8' fill='%231E7F74'/><path d='M166 82h32v44' fill='none' stroke='%233A4D5E' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/><rect x='190' y='122' width='16' height='44' rx='6' fill='%233A4D5E'/></svg>"); }
.cs-art--fence { background-image: url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180'><rect width='320' height='180' fill='%23DCE6EC'/><g fill='%23ECF2F5' stroke='%23A9BFCC' stroke-width='2.5' stroke-linejoin='round'><path d='M16 180V62l14-22 14 22v118z'/><path d='M58 180V62l14-22 14 22v118z'/><path d='M100 180V62l14-22 14 22v118z'/><path d='M142 180V62l14-22 14 22v118z'/><path d='M184 180V62l14-22 14 22v118z'/><path d='M226 180V62l14-22 14 22v118z'/><path d='M268 180V62l14-22 14 22v118z'/></g><path d='M0 92h320M0 144h320' stroke='%23A9BFCC' stroke-width='7'/><path d='M0 92h320' stroke='%231E7F74' stroke-width='3'/></svg>"); }
.cs-art--specialty { background-image: url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180'><defs><pattern id='b' width='64' height='32' patternUnits='userSpaceOnUse'><path d='M0 0H64M0 16H64M32 0V16M0 16V32M64 16V32' fill='none' stroke='%23A9BFCC' stroke-width='2.5'/></pattern></defs><rect width='320' height='180' fill='%23DCE6EC'/><rect width='320' height='180' fill='url(%23b)'/><rect width='150' height='180' fill='%23F3EFE6' opacity='.85'/><path d='M150 0c8 24-6 46 2 70s-6 48 0 72 4 38 4 38' fill='none' stroke='%23F3EFE6' stroke-width='12' stroke-linecap='round' opacity='.85'/><rect x='122' y='44' width='40' height='26' rx='4' fill='%231E7F74'/><path d='M122 70h40l-4 44a16 16 0 01-32 0z' fill='%23D8D1C2'/><rect x='136' y='8' width='12' height='36' rx='4' fill='%233A4D5E'/></svg>"); }
.cs-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.cs-card__body h3 { font-size: 20px; margin: 0; }
.cs-card__body p { font-size: 15px; color: var(--cs-muted); margin: 0; }
@media (max-width: 1024px) {
  .cs-cards, .cs-cards--3, .cs-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-cards--3 .cs-card__media { height: 180px; }
}
@media (max-width: 560px) {
  .cs-cards, .cs-cards--2, .cs-cards--3, .cs-cards--4 { grid-template-columns: 1fr; }
  .cs-cards .cs-card__media { height: 180px; }
  .cs-cards--1 .cs-card { flex-direction: column; }
  .cs-cards--1 .cs-card__media { flex: none; min-height: 0; }
}

/* ------------------------------------------------------------------
   7. Owner
------------------------------------------------------------------ */
.cs-owner { background: var(--cs-sand); }
.cs-owner .cs-container { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.cs-owner__media { flex: 1 1 380px; min-width: 0; }
.cs-owner__media img, .cs-owner__media .cs-placeholder { width: 100%; height: 440px; object-fit: cover; border-radius: var(--cs-radius-xl); background: var(--cs-sand-dark); }
.cs-owner__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cs-owner__copy h2 { font-size: clamp(30px, 3.4vw, 38px); margin: 0; }
.cs-owner__copy p { font-size: 17px; color: var(--cs-ink-soft); margin: 0; }
.cs-owner__copy a.cs-link { font-weight: 600; text-decoration: none; align-self: flex-start; }
.cs-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.cs-stat { flex: 1 1 180px; background: #fff; border-radius: 12px; padding: 18px; }
.cs-stat__value { font-family: var(--cs-font-display); font-weight: 700; font-size: 28px; color: var(--cs-navy); }
.cs-stat__label { font-size: 14px; color: var(--cs-muted); }

/* ------------------------------------------------------------------
   8. Process
------------------------------------------------------------------ */
.cs-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cs-step { padding-top: 18px; border-top: 3px solid var(--cs-accent); display: flex; flex-direction: column; gap: 12px; }
.cs-step__num { font-family: var(--cs-font-display); font-weight: 700; font-size: 14px; color: var(--cs-accent); }
.cs-step h3 { font-size: 20px; margin: 0; }
.cs-step p { font-size: 15px; color: var(--cs-muted); margin: 0; }
@media (max-width: 1024px) { .cs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cs-steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   9. Season banner
------------------------------------------------------------------ */
.cs-season { padding-bottom: 80px; }
.cs-season__box {
  background: var(--cs-accent); color: #fff; border-radius: var(--cs-radius-xl);
  padding: 36px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cs-season__title { font-family: var(--cs-font-display); font-weight: 700; font-size: 26px; margin-bottom: 8px; }
.cs-season__text { font-size: 16px; color: var(--cs-accent-tint); max-width: 700px; margin: 0; }
.cs-season__box .cs-btn { white-space: nowrap; }

/* ------------------------------------------------------------------
   10. Gallery + reviews
------------------------------------------------------------------ */
.cs-gallery { background: var(--cs-navy); color: #fff; }
.cs-gallery h2 { color: #fff; }
.cs-gallery .cs-eyebrow { color: var(--cs-accent-light); }
.cs-gallery .cs-section-head a { color: #fff; }
.cs-gallery__grid { display: grid; gap: 16px; margin-bottom: 40px; }
.cs-gallery__item { position: relative; border-radius: 12px; overflow: hidden; background: var(--cs-navy-mid); text-decoration: none; display: block; }
.cs-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.cs-gallery__item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; font-size: 14px; color: #fff;
  background: linear-gradient(to top, rgba(10,28,46,.85), rgba(10,28,46,0));
}
.cs-gallery__item .cs-placeholder { height: 100%; background: var(--cs-navy-mid); color: #BFD0DF; align-items: flex-end; justify-content: flex-start; }

/* The grid reshapes to the number of projects: 0 or 1 fills the row, 2 split it,
   3 is big-left plus two stacked, 4 is the full layout. */
.cs-gallery__grid--0, .cs-gallery__grid--1 { grid-template-columns: 1fr; grid-template-rows: 420px; }
.cs-gallery__grid--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 360px; }
.cs-gallery__grid--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 172px 172px; }
.cs-gallery__grid--3 .cs-gallery__item:nth-child(1) { grid-row: 1 / 3; }
.cs-gallery__grid--4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 152px 152px; }
.cs-gallery__grid--4 .cs-gallery__item:nth-child(1),
.cs-gallery__grid--4 .cs-gallery__item:nth-child(4) { grid-row: 1 / 3; }

@media (max-width: 900px) {
  .cs-gallery__grid--0, .cs-gallery__grid--1 { grid-template-rows: 260px; }
  .cs-gallery__grid--2 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cs-gallery__grid--2 .cs-gallery__item { height: 220px; }
  .cs-gallery__grid--3, .cs-gallery__grid--4 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .cs-gallery__grid--3 .cs-gallery__item, .cs-gallery__grid--4 .cs-gallery__item { height: 200px; grid-row: auto; }
  .cs-gallery__grid--3 .cs-gallery__item:nth-child(1),
  .cs-gallery__grid--4 .cs-gallery__item:nth-child(1),
  .cs-gallery__grid--4 .cs-gallery__item:nth-child(4) { grid-column: 1 / 3; }
}
.cs-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cs-review { background: var(--cs-navy-mid); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cs-review__stars { color: var(--cs-star); letter-spacing: 2px; font-size: 16px; }
.cs-review p { font-size: 16px; color: #D5DEE6; margin: 0; }
.cs-review__who { font-size: 14px; color: var(--cs-accent-light); font-weight: 600; }
@media (max-width: 900px) { .cs-reviews { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   11. Final CTA
------------------------------------------------------------------ */
.cs-cta .cs-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.cs-cta__copy { max-width: 640px; }
.cs-cta__copy h2 { font-size: clamp(32px, 3.6vw, 40px); line-height: 1.12; }
.cs-cta__copy p { font-size: 17px; color: var(--cs-muted); margin: 0; }
.cs-cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cs-cta__phone { font-family: var(--cs-font-display); font-weight: 700; font-size: 26px; color: var(--cs-navy); text-decoration: none; }

/* ------------------------------------------------------------------
   12. Footer
------------------------------------------------------------------ */
.cs-footer { background: var(--cs-navy-deep); color: #B9C6D2; font-size: 14px; }
.cs-footer a { color: #B9C6D2; text-decoration: none; }
.cs-footer a:hover { color: #fff; }
.cs-footer__grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.cs-footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; }
.cs-footer__col--wide { flex: 1 1 260px; }
.cs-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cs-footer__title { color: #fff; font-weight: 600; }
.cs-footer__brand { font-family: var(--cs-font-display); font-weight: 700; font-size: 18px; color: #fff; }
.cs-footer__phone { color: #fff !important; font-weight: 600; font-size: 16px; }
.cs-footer__bottom { border-top: 1px solid #1F3448; }
.cs-footer__bottom .cs-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.cs-footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }

/* Sticky mobile call bar */
.cs-callbar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 60px; }
  .cs-callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--cs-accent); color: #fff; font-weight: 600; text-decoration: none;
    align-items: center; justify-content: center; gap: 10px; padding: 16px; font-size: 16px;
  }
  .cs-callbar:hover { color: #fff; }
}

/* ------------------------------------------------------------------
   13. Inner pages
------------------------------------------------------------------ */
.cs-page-head { background: var(--cs-navy); color: #fff; }
.cs-page-head .cs-container { padding-top: 56px; padding-bottom: 56px; }
.cs-page-head h1 { color: #fff; font-size: clamp(32px, 4vw, 46px); margin: 0; }
.cs-page-head p { color: #D5DEE6; font-size: 18px; max-width: 640px; margin: 12px 0 0; }

.cs-content { padding: 56px 0 80px; }
.cs-content .cs-container { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.cs-content__main { flex: 1 1 560px; min-width: 0; }
.cs-content__side { flex: 0 1 360px; min-width: 0; position: sticky; top: 24px; }
.cs-content__main > *:first-child { margin-top: 0; }
.cs-entry { font-size: 17px; line-height: 1.65; color: var(--cs-ink-soft); }
.cs-entry h2 { font-size: 30px; margin-top: 1.6em; }
.cs-entry h3 { font-size: 22px; margin-top: 1.4em; }
.cs-entry img { border-radius: var(--cs-radius-lg); }
.cs-entry ul, .cs-entry ol { padding-left: 1.3em; }
.cs-entry blockquote { border-left: 3px solid var(--cs-accent); margin: 1.5em 0; padding: 4px 0 4px 20px; color: var(--cs-navy); font-style: italic; }
.cs-entry .wp-block-image figcaption { font-size: 14px; color: var(--cs-muted); }
.alignwide { margin-left: 0; margin-right: 0; }
.cs-side-card { background: var(--cs-sand); border-radius: var(--cs-radius-lg); padding: 24px; }
.cs-side-card .cs-quote-card { padding: 0; background: transparent; }
.cs-side-card .cs-form input, .cs-side-card .cs-form textarea { background: #fff; }

.cs-archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .cs-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cs-archive { grid-template-columns: 1fr; } }
.cs-pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.cs-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--cs-line); border-radius: var(--cs-radius); text-decoration: none; }
.cs-pagination .page-numbers.current { background: var(--cs-navy); color: #fff; border-color: var(--cs-navy); }

.cs-service-area { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-service-area span { background: #fff; border: 1px solid var(--cs-line); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }

/* Project single: before/after pair */
.cs-before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.cs-before-after figure { margin: 0; }
.cs-before-after img { border-radius: var(--cs-radius-lg); width: 100%; height: 360px; object-fit: cover; }
.cs-before-after figcaption { margin-top: 8px; font-size: 14px; color: var(--cs-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 700px) { .cs-before-after { grid-template-columns: 1fr; } .cs-before-after img { height: 240px; } }
.cs-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 32px; }
.cs-photo-grid a { display: block; border-radius: var(--cs-radius-lg); overflow: hidden; background: var(--cs-sky); }
.cs-photo-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
@media (max-width: 700px) { .cs-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-photo-grid img { height: 150px; } }

/* 404 */
.cs-404 { text-align: center; padding: 100px 0; }
.cs-404 h1 { font-size: 48px; }
