/*
Theme Name: Diamond Maids
Theme URI: https://diamondcleaningmaids.com
Author: Diamond Cleaning Maids LLC
Description: Custom WordPress theme for Diamond Cleaning Maids LLC — residential and commercial cleaning in Wallingford, CT. SEO-optimized with LocalBusiness schema, review markup, llms.txt, and a built-in Schedule an Appointment form.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: diamond-maids
*/

/* ============ TOKENS ============ */
:root {
  --ink: #0b2d5c;          /* deep brand navy (from logo blue) */
  --ink-soft: #1d4275;
  --ice: #eef4fb;          /* ice-blue background */
  --white: #ffffff;
  --aqua: #0168cf;         /* logo blue */
  --aqua-dark: #0151a3;
  --aqua-tint: #e4f0fc;
  --gold: #6fbe34;         /* logo green */
  --star: #f6b400;         /* review stars */
  --line: #d7e3f0;
  --text: #293b52;
  --muted: #5b6f88;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 37, 59, 0.10);
  --font-display: 'Marcellus', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw: 1180px;
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aqua-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--ice { background: var(--ice); }
.section--ink { background: var(--ink); color: #d8e4ee; }
.section--ink h2, .section--ink h3 { color: #fff; }

/* Eyebrow label with diamond tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--aqua-dark); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; background: var(--gold);
  transform: rotate(45deg); flex: none;
}
.section--ink .eyebrow { color: #7fd3df; }

/* Facet divider — signature element */
.facet-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 28px;
}
.facet-divider::before, .facet-divider::after {
  content: ""; height: 1px; background: var(--line); flex: 1;
}
.facet-divider span {
  width: 12px; height: 12px; border: 1.5px solid var(--gold);
  transform: rotate(45deg); flex: none;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 6px;
  font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn--primary { background: var(--aqua); color: #fff; }
.btn--primary:hover { background: var(--aqua-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14,143,163,.35); }
.btn--gold { background: var(--gold); color: #0b2d5c; }
.btn--gold:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--ink .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.section--ink .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ============ HEADER ============ */
.topbar {
  background: var(--ink); color: #cfe0ec; font-size: .85rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand-logo { height: 62px; width: auto; display: block; }
@media (max-width: 920px) { .brand-logo { height: 50px; } }
.brand-name { font-family: var(--font-display); font-size: 1.32rem; color: var(--ink); line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--aqua-dark); }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.main-nav a:hover { color: var(--aqua-dark); text-decoration: none; }
.header-cta { white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink);
  border-radius: 6px; padding: 8px 12px; font-size: 1.05rem; color: var(--ink); cursor: pointer;
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 22px 18px; }
  .main-nav li { border-bottom: 1px solid var(--ice); }
  .main-nav a { display: block; padding: 13px 0; }
  .header-cta { display: none; }
}

/* ============ HERO ============ */
.hero { background: linear-gradient(170deg, var(--ice) 0%, #fff 70%); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
  align-items: center; padding-top: 70px; padding-bottom: 80px;
}
.hero h1 em { font-style: normal; color: var(--aqua-dark); }
.hero-sub { font-size: 1.16rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 20px; }
.hero-trust { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink-soft); font-weight: 600; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; }

/* Diamond photo cluster — hero signature */
.hero-gems { position: relative; height: 460px; }
.gem {
  position: absolute; overflow: hidden;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, var(--aqua-tint), var(--aqua));
}
.gem img { width: 100%; height: 100%; object-fit: cover; }
.gem--lg { width: 290px; height: 290px; top: 40px; left: 50%; transform: translateX(-50%); }
.gem--sm1 { width: 160px; height: 160px; top: 0; left: 8%; }
.gem--sm2 { width: 150px; height: 150px; bottom: 20px; right: 6%; }
.gem--sm3 { width: 120px; height: 120px; bottom: 0; left: 18%; opacity: .92; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-gems { height: 340px; max-width: 420px; margin: 0 auto; width: 100%; }
  .gem--lg { width: 220px; height: 220px; }
  .gem--sm1 { width: 120px; height: 120px; }
  .gem--sm2 { width: 110px; height: 110px; }
  .gem--sm3 { display: none; }
}

/* ============ TRUST BAR ============ */
.trustbar { background: var(--ink); color: #e7eef5; padding: 22px 0; }
.trustbar .wrap { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: .98rem; }
.trust-item .d { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* ============ SERVICES ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
@media (max-width: 920px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 46px; height: 46px; margin-bottom: 18px; position: relative;
}
.card-icon::before {
  content: ""; position: absolute; inset: 0; background: var(--aqua-tint);
  transform: rotate(45deg); border-radius: 8px;
}
.card-icon span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.card li { padding: 5px 0 5px 22px; position: relative; font-size: .96rem; }
.card li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 7px; height: 7px; background: var(--aqua); transform: rotate(45deg);
}

/* ============ WHY US ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; }
.checklist li { padding: 9px 0 9px 32px; position: relative; font-size: 1.02rem; }
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 10px; height: 10px; border: 2px solid var(--gold); transform: rotate(45deg);
}

/* ============ GALLERY ============ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
@media (max-width: 920px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery a { border-radius: 8px; overflow: hidden; display: block; aspect-ratio: 1; background: var(--ice); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.05); }

/* ============ REVIEWS ============ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
@media (max-width: 920px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.section--ink .review { background: #1c3450; border-color: #2c486a; color: #d8e4ee; }
.review .stars { margin-bottom: 10px; }
.review blockquote { margin: 0 0 16px; font-size: .98rem; flex: 1; }
.review cite { font-style: normal; font-weight: 700; color: var(--ink); font-size: .92rem; }
.section--ink .review cite { color: #fff; }
.review cite small { display: block; font-weight: 400; color: var(--muted); }
.section--ink .review cite small { color: #9fb6cc; }
.rating-summary {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px;
}
.rating-summary .big { font-family: var(--font-display); font-size: 2.6rem; color: var(--star); line-height: 1; }

/* ============ SERVICE AREA / CONTACT ============ */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.area-tags span {
  background: var(--aqua-tint); color: var(--aqua-dark); font-weight: 600;
  padding: 7px 16px; border-radius: 100px; font-size: .92rem;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 30px; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { margin-bottom: .7em; }
.contact-info strong { color: var(--ink); }
.phone-big { font-family: var(--font-display); font-size: 1.7rem; }
.phone-big a { color: var(--ink); }

/* ============ FORMS (Schedule / Contact) ============ */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.form-field label .req { color: #c0392b; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 7px; background: #fbfdfe; color: var(--text); width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--aqua); background: #fff;
}
.form-msg { display: none; padding: 16px 18px; border-radius: 8px; margin-top: 18px; font-weight: 600; }
.form-msg.is-ok { display: block; background: #e8f6ec; color: #1d6b35; border: 1px solid #bfe3c9; }
.form-msg.is-err { display: block; background: #fbeaea; color: #9c2b2b; border: 1px solid #efc4c4; }
.hp-field { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============ CTA BAND ============ */
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, #1d3a5c 100%); color: #e7eef5; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .wrap { padding-top: 70px; padding-bottom: 70px; }
.cta-band .btn { margin: 8px 8px 0; }

/* ============ PAGE HERO (interior) ============ */
.page-hero { background: var(--ink); color: #cfe0ec; padding: 58px 0; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { max-width: 46em; margin-bottom: 0; }

/* ============ FAQ ============ */
.faq { margin-top: 30px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 12px; }
.faq summary { padding: 17px 20px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 18px; color: var(--aqua-dark); font-size: 1.25rem; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 20px 18px; }

/* ============ FOOTER ============ */
.site-footer { background: #0e1b2c; color: #aabdd0; font-size: .94rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
@media (max-width: 920px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #cfe0ec; }
.footer-bottom { border-top: 1px solid #1f3046; padding: 18px 0; text-align: center; font-size: .85rem; color: #7a92aa; }

.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.footer-logo img { height: 56px; width: auto; display: block; }

/* ============ GENERIC CONTENT ============ */
.entry-content { max-width: 760px; }
.entry-content img { border-radius: 8px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }
