/* CH Services website. Navy on warm grey, Libre Baskerville headings, Almarai text (as the Squarespace site). */
:root {
  --navy: #253551;
  --navy-2: #1b2840;
  --bg: #e0e0db;
  --paper: #f4f4f0;
  --white: #ffffff;
  --text: #253551;
  --muted: #55607a;
  --line: #c9c9c2;
  --gold: #b98a2e;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: Almarai, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-head { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { font-family: var(--serif); font-size: 1.45rem; text-decoration: none; margin-right: auto; white-space: nowrap; }
#nav { display: flex; align-items: center; gap: 22px; }
#nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
#nav a, #nav button { font: inherit; color: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: none; }
#nav a:hover, #nav button:hover { text-decoration: underline; text-underline-offset: 4px; }
.has-sub { position: relative; }
.has-sub > button::after { content: "▾"; font-size: .7em; margin-left: 5px; }
.has-sub > ul { display: none !important; position: absolute; top: 100%; left: -14px; background: var(--white); border: 1px solid var(--line); padding: 8px 14px !important; min-width: 190px; flex-direction: column; align-items: flex-start !important; gap: 2px !important; box-shadow: 0 8px 24px rgba(37, 53, 81, .12); }
.has-sub.open > ul { display: flex !important; }
.phone { border: 1px solid var(--navy); padding: 8px 16px !important; white-space: nowrap; }
.phone:hover { background: var(--navy); color: var(--white); text-decoration: none !important; }
.menu-btn { display: none; font: inherit; color: inherit; background: none; border: 1px solid var(--navy); padding: 8px 14px; cursor: pointer; }

/* Hero and page titles */
.hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; color: var(--white); background: var(--navy); overflow: hidden; }
.hero.tall { min-height: min(78vh, 640px); align-items: center; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 40, 64, .35), rgba(27, 40, 64, .72)); }
.hero-text { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 44px; }
.hero h1 { max-width: 22em; margin-bottom: .35em; }
.lead { font-size: 1.1rem; max-width: 40em; margin: 0; }
.hero .btn { margin-top: 26px; }
.page-title { padding: 56px 0 8px; }

/* Buttons */
.btn { display: inline-block; font: 700 1rem var(--sans); letter-spacing: .02em; text-decoration: none; background: var(--navy); color: var(--white); border: 1px solid var(--navy); padding: 14px 28px; cursor: pointer; }
.btn:hover { background: var(--navy-2); }
.btn.light { background: transparent; color: var(--white); border-color: var(--white); }
.btn.light:hover { background: var(--white); color: var(--navy); }

/* Text pages */
.prose { padding-top: 44px; padding-bottom: 28px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose h4 { margin-top: 1.3em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { margin: 1.4em 0; }

/* Cards (home services, blog list) */
.cards { padding: 52px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card h2 { font-size: 1.25rem; margin: 18px 18px 8px; }
.card p { margin: 0 18px 18px; font-size: .97rem; color: var(--muted); }
.card .date { margin-bottom: 6px; font-size: .88rem; }
.card:hover h2 { text-decoration: underline; text-underline-offset: 4px; }

.gallery { padding: 16px 0 44px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Quote form */
.quote { background: var(--paper); padding: 52px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-form { display: grid; gap: 16px; }
.quote-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: .95rem; font-weight: 700; }
.quote-form input, .quote-form select, .quote-form textarea { font: 400 1rem var(--sans); color: var(--text); background: var(--white); border: 1px solid #8f96a6; padding: 12px; width: 100%; border-radius: 0; }
.quote-form .hp { position: absolute; left: -9999px; }
.quote-form .btn { justify-self: start; }
.form-note { margin: 0; min-height: 1.4em; font-size: .95rem; }
.contact-details { padding-top: 36px; padding-bottom: 20px; }
.cta { padding: 8px 0 56px; }

/* Why choose us, testimonials */
.why { padding: 56px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; margin-top: 26px; }
.why-grid h3 { margin-bottom: .4em; }
.why-grid p { margin: 0; color: var(--muted); }
.said { background: var(--navy); color: var(--white); padding: 56px 0; }
.said-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.said figure { margin: 0; }
.said blockquote { margin: 10px 0 12px; font-family: var(--serif); font-size: 1rem; line-height: 1.7; }
.said figcaption { font-style: italic; opacity: .85; }
.stars { color: #e7b84f; letter-spacing: 3px; font-size: 1.15rem; }

/* Footer */
.site-foot { padding: 48px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.site-foot h2 { font-size: 1.05rem; }
.site-foot p { margin: 0; }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .said-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; max-height: calc(100vh - 68px); overflow: auto; }
  #nav.open { display: flex; }
  #nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  #nav li > a, #nav li > button { display: block; width: 100%; text-align: left; padding: 12px 0; }
  .has-sub > ul { position: static; border: 0; box-shadow: none; background: none; padding: 0 0 0 16px !important; }
  .phone { margin-top: 12px; text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards-grid, .cards-grid.two-up, .gallery-grid, .quote-form .two, .foot-grid { grid-template-columns: 1fr; }
  .hero { min-height: 280px; }
}
