/* ============================================================
   Lunar Cove Pools and Landscaping — site styles
   ============================================================ */

:root {
  --midnight: #0F1B2D;
  --cove:     #16324F;
  --water:    #3E6E84;
  --mist:     #B6CBD3;
  --sage:     #7E9D7E;
  --moss:     #4F6B4A;
  --leaf:     #2E4A2C;
  --sand:     #F6F0E2;
  --paper:    #FBF7EE;
  --moon:     #F1E3B6;
  --copper:   #C77F4A;
  --ink:      #15191F;
  --slate:    #4A5462;
  --line:     #E5DCC8;
  --line-2:   #DDD2B8;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .05);
  --shadow-md: 0 6px 14px rgba(15, 27, 45, .08), 0 2px 4px rgba(15, 27, 45, .05);
  --shadow-lg: 0 24px 48px rgba(15, 27, 45, .14), 0 6px 12px rgba(15, 27, 45, .06);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--cove);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--copper); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--midnight);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 480; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--cove); }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: .75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 56ch;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section--alt {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(241, 227, 182, 0.12), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(126, 157, 126, 0.18), transparent 60%),
    linear-gradient(180deg, var(--midnight), var(--cove));
  color: var(--paper);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--moon); }
.section--dark .lede { color: rgba(251, 247, 238, 0.82); }
.section--dark a { color: var(--moon); }
.section--dark a:hover { color: var(--copper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 6px 14px rgba(199, 127, 74, .28);
}
.btn--primary:hover { background: #B5703D; color: #fff; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--midnight);
  border-color: rgba(15, 27, 45, .25);
}
.btn--ghost:hover { background: var(--midnight); color: var(--paper); }

.section--dark .btn--ghost { color: var(--paper); border-color: rgba(241, 227, 182, .35); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--midnight); }

.btn--lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 238, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--midnight);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.005em;
}
.brand:hover { color: var(--midnight); }
.brand__mark { width: 38px; height: 38px; }
.brand__name { line-height: 1; }
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--midnight);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--copper); }
.nav__links a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--copper);
  border-radius: 2px;
}

.nav__cta { margin-left: 12px; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  color: var(--midnight);
}

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__menu {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
  }
  .nav__links li { border-top: 1px solid var(--line); }
  .nav__links li:first-child { border-top: 0; }
  .nav__links a { display: block; padding: 14px 0; }
  .nav__cta { margin: 12px 0 0; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(241, 227, 182, 0.45), transparent 60%),
    radial-gradient(700px 400px at 5% 90%, rgba(126, 157, 126, 0.30), transparent 60%),
    linear-gradient(180deg, #FBF7EE, #F2E9D3);
  padding: clamp(72px, 10vw, 130px) 0 clamp(72px, 10vw, 120px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--midnight);
}
.hero__art svg { width: 100%; height: auto; display: block; }

.hero h1 { margin-bottom: .35em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: .92rem;
}
.hero__meta strong { color: var(--midnight); font-weight: 600; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Page header (smaller hero for inner pages) ---------- */
.page-head {
  background:
    radial-gradient(900px 500px at 90% -20%, rgba(241, 227, 182, 0.35), transparent 60%),
    linear-gradient(180deg, #FBF7EE, #F4ECD7);
  padding: clamp(72px, 9vw, 110px) 0 clamp(48px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
}
.page-head .lede { margin-top: 8px; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 880px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--moon), #E8D9A7);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--midnight);
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(199, 127, 74, .25);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35em; }
.card__meta {
  margin-top: auto;
  padding-top: 16px;
  font-size: .9rem;
  color: var(--slate);
  border-top: 1px dashed var(--line-2);
}

/* ---------- Feature row ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature + .feature { margin-top: clamp(48px, 6vw, 90px); }
.feature--reverse > :first-child { order: 2; }
.feature__art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--midnight);
}
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature--reverse > :first-child { order: 0; }
}

/* ---------- Pricing table ---------- */
.price-list {
  display: grid;
  gap: 14px;
}
.price-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.price-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.price-row__title { font-family: var(--font-display); font-size: 1.18rem; color: var(--midnight); margin: 0 0 4px; font-weight: 500; }
.price-row__desc { font-size: .94rem; color: var(--slate); margin: 0; max-width: 60ch; }
.price-row__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cove);
  font-weight: 500;
  white-space: nowrap;
}
.price-row__price small {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-top: 2px;
}
.price-row--featured {
  border-color: var(--copper);
  box-shadow: 0 8px 18px rgba(199, 127, 74, .14);
  background: linear-gradient(180deg, #fff, #FFFAF0);
}
.price-row--second {
  border-color: var(--sage);
  background: linear-gradient(180deg, #fff, #F4F8F2);
}
.price-tag {
  position: absolute;
  top: -11px;
  left: 22px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
}
.price-tag--second { background: var(--moss); }

.price-group { margin-top: 48px; }
.price-group:first-child { margin-top: 0; }
.price-group__head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.price-group__head h2 { margin: 0; }
.price-group__head span {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}

@media (max-width: 600px) {
  .price-row { grid-template-columns: 1fr; }
  .price-row__price { text-align: left; }
}

/* ---------- Testimonials ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -8px; left: 18px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--copper);
}
.quote p { font-family: var(--font-display); font-size: 1.12rem; color: var(--midnight); line-height: 1.5; }
.quote footer { margin-top: 14px; color: var(--slate); font-size: .92rem; }
.quote footer strong { color: var(--midnight); display: block; }

/* ---------- Stats ---------- */
.stat {
  display: flex;
  flex-direction: column;
  padding: 22px 0;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--moon);
  font-weight: 500;
  line-height: 1;
}
.stat__label {
  margin-top: 8px;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, .75);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gallery-item__art { aspect-ratio: 4 / 3; background: var(--midnight); }
.gallery-item__art svg { width: 100%; height: 100%; display: block; }
.gallery-item__caption { padding: 16px 18px 20px; }
.gallery-item__caption h3 { font-size: 1.08rem; margin-bottom: 4px; }
.gallery-item__caption p { margin: 0; font-size: .9rem; color: var(--slate); }

.gallery-section + .gallery-section { margin-top: 56px; }
.gallery-section h2 {
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--cove);
  box-shadow: 0 0 0 3px rgba(22, 50, 79, .12);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form__notice {
  background: var(--sand);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .9rem;
  color: var(--slate);
}

/* ---------- Info list ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list strong { display: block; color: var(--midnight); margin-bottom: 2px; }
.info-list span { color: var(--slate); font-size: .94rem; }
.info-list .info-icon {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--sand);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cove);
}
.info-list .info-icon svg { width: 18px; height: 18px; }

/* ---------- Service area chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--cove);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 500;
}
.section--dark .chip { background: rgba(255,255,255,.08); border-color: rgba(241, 227, 182, .25); color: var(--moon); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  color: rgba(251, 247, 238, 0.78);
  padding: 64px 0 28px;
  font-size: .92rem;
}
.site-footer h4 {
  color: var(--moon);
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(251, 247, 238, 0.78); }
.site-footer a:hover { color: var(--copper); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(241, 227, 182, .15);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-brand p { color: rgba(251, 247, 238, 0.6); margin-top: 14px; max-width: 36ch; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(251, 247, 238, 0.55);
  font-size: .85rem;
}

/* ---------- Misc utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--slate); }
.divider { height: 1px; background: var(--line); margin: 48px 0; border: 0; }

.callout {
  background: linear-gradient(160deg, var(--cove), var(--midnight));
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.callout h2 { color: var(--moon); margin-bottom: .35em; }
.callout p { color: rgba(251, 247, 238, .82); margin: 0; max-width: 50ch; }
@media (max-width: 720px) {
  .callout { grid-template-columns: 1fr; text-align: left; }
}

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sand);
  border: 1px solid var(--line-2);
  color: var(--moss);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--moss);
  display: inline-block;
}
