/* =========================================================
   ClearView Glass · style.css
   Palette: emerald, brass, ivory
   ========================================================= */

:root {
  --emerald: #0F2A24;
  --emerald-deep: #0B201B;
  --emerald-line: #2B4A41;
  --brass: #C4A265;
  --brass-dark: #8A6A32;
  --ivory: #F1EAD9;
  --ivory-bg: #F4EFE3;
  --ivory-line: #E3DCCB;
  --muted: #B9B2A3;
  --muted-dark: #5C6660;
  --white: #FFFFFF;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ivory);
  background: var(--emerald);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brass); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.05; }
h1 em, h2 em { font-style: italic; color: var(--brass); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow-dark { color: var(--brass-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-brass { background: var(--brass); color: var(--emerald); }
.btn-brass:hover { background: #D4B578; color: var(--emerald); }
.btn-outline { color: var(--ivory); border-color: #3F5E55; font-weight: 400; }
.btn-outline:hover { border-color: var(--brass); color: var(--ivory); }
.btn-outline-brass { color: var(--ivory); border-color: var(--brass); font-weight: 400; }
.btn-outline-brass:hover { background: rgba(196,162,101,0.12); color: var(--ivory); }
.btn-sm { padding: 12px 20px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row-center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,42,36,0.92); backdrop-filter: blur(10px); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--ivory); }
.brand-crest { width: 96px; height: 96px; border-radius: 50%; }
.brand-divider { width: 1px; height: 56px; background: var(--brass); opacity: 0.5; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 32px; }
.brand-name em { font-style: italic; color: var(--brass); }
.brand-tag { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.site-nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 400; }
.site-nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-nav a:hover { color: var(--ivory); }
.site-nav a.is-active { color: var(--ivory); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.site-nav .btn { padding: 13px 24px; color: var(--emerald); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--emerald-line); border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--ivory); transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 100px;
}
.hero-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 28px; }
.hero-copy h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -0.015em; color: var(--white); }
.hero-copy p { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 500px; }
.hero-arch { flex: 1 1 400px; display: flex; justify-content: center; }
.hero-arch img {
  width: 100%;
  max-width: 440px;
  height: 540px;
  object-fit: cover;
  object-position: center top;
  padding: 12px;
  border: 1px solid var(--brass);
  border-radius: 220px 220px 0 0;
  background: var(--emerald);
}
.hero-arch img { border-radius: 220px 220px 0 0; }

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { font-size: clamp(36px, 4.5vw, 54px); letter-spacing: -0.015em; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.section-note { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--muted-dark); max-width: 400px; }

/* ---------- Services ---------- */
.services { background: var(--ivory-bg); color: var(--emerald); padding: 100px 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.glass-card {
  position: relative;
  height: 380px;
  background: var(--white);
  border: 1px solid var(--ivory-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s ease;
  z-index: 1;
}
.card-photo {
  position: absolute; left: 0; top: 0; width: 100%; height: 250px;
  padding: 0; border: 0; display: block;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: height .45s var(--ease), transform .6s ease;
  transform-origin: center;
}
.card-strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
  padding: 22px 24px; background: var(--white);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.card-strip h3 { font-size: 22px; color: var(--emerald); }
.card-strip span { font-size: 13px; color: var(--muted-dark); }
.card-strip .card-more { color: var(--brass-dark); font-weight: 500; white-space: nowrap; }

.card-veil {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 72px 26px 26px;
  display: flex; flex-direction: column; gap: 12px;
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(15,42,36,0) 0%, rgba(15,42,36,0.82) 28%, rgba(15,42,36,0.96) 100%);
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .35s ease, transform .45s var(--ease), visibility .35s;
}
.veil-line { width: 44px; height: 2px; background: var(--brass); }
.veil-kind { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); }
.card-veil h3 { font-size: 26px; color: var(--white); }
.card-veil p { font-size: 14px; line-height: 1.6; color: #D9D2C2; }
.card-veil .btn-row { gap: 10px; padding-top: 4px; }

.card-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(241,234,217,0.6);
  background: rgba(15,42,36,0.55); color: var(--ivory);
  font-size: 22px; line-height: 1; padding: 0;
  display: none; align-items: center; justify-content: center;
}

/* Open state: set by hover on desktop, by tap (JS adds .is-open) on touch */
.glass-card.is-open {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 48px rgba(15,42,36,0.28);
  z-index: 2;
}
.glass-card.is-open .card-photo { height: 380px; transform: scale(1.08); }
.glass-card.is-open .card-veil { opacity: 1; visibility: visible; transform: translateY(0); }
.glass-card.is-open .card-close { display: flex; }

@media (hover: hover) {
  .glass-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 48px rgba(15,42,36,0.28);
    z-index: 2;
  }
  .glass-card:hover .card-photo { height: 380px; transform: scale(1.08); }
  .glass-card:hover .card-veil { opacity: 1; visibility: visible; transform: translateY(0); }
}

/* ---------- About ---------- */
.about-inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 100px; padding-bottom: 100px; }
.about-copy { flex: 1 1 400px; display: flex; flex-direction: column; gap: 24px; }
.about-copy h2 { font-size: clamp(36px, 4.5vw, 50px); color: var(--white); }
.about-copy p { line-height: 1.8; color: var(--muted); }
.dot-list { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.dot-list li { display: flex; gap: 14px; align-items: center; }
.dot-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex-shrink: 0; }
.about-frame { flex: 1 1 400px; padding: 12px; border: 1px solid var(--brass); border-radius: var(--radius); }
.about-frame img { width: 100%; height: 400px; object-fit: cover; border-radius: 10px; }

/* ---------- How it works ---------- */
.process { background: var(--emerald-deep); border-top: 1px solid var(--emerald-line); padding: 100px 0; }
.process .section-head h2 { color: var(--white); }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { border: 1px solid var(--emerald-line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.step-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--brass); }
.step h3 { font-size: 24px; color: var(--white); }
.step p { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--emerald-line); }
.contact-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: 90px; padding-bottom: 90px; }
.contact h2 { font-size: clamp(36px, 4.5vw, 54px); color: var(--white); }
.contact p { line-height: 1.7; color: var(--muted); max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--emerald-line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; padding-bottom: 32px; font-size: 13px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .card-grid, .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .brand-crest { width: 64px; height: 64px; }
  .brand-divider { height: 40px; }
  .brand-name { font-size: 24px; }
  .brand-tag { font-size: 8px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--emerald); border-top: 1px solid var(--emerald-line);
    padding: 12px 24px 24px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--emerald-line); }
  .site-nav a.is-active { border-bottom: 1px solid var(--emerald-line); color: var(--brass); }
  .site-nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero-inner { padding-top: 40px; padding-bottom: 64px; gap: 40px; }
  .hero-arch img { height: 420px; }
  .services, .process { padding: 72px 0; }
  .about-inner { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
  .about-frame img { height: 300px; }
  .card-grid, .step-grid { grid-template-columns: 1fr; }
  .glass-card { height: 360px; }
  .card-photo { height: 230px; }
  .section-head { margin-bottom: 32px; }
  .contact-inner { padding-top: 64px; padding-bottom: 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reviews ---------- */
.reviews { border-top: 1px solid var(--emerald-line); padding: 100px 0; }
.reviews .section-head h2 { color: var(--white); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.review { margin: 0; border: 1px solid var(--emerald-line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--emerald-deep); }
.stars { color: var(--brass); letter-spacing: 0.18em; font-size: 16px; }
.review p { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ivory); }
.review footer { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--emerald-line); font-size: 14px; }
.review footer strong { font-weight: 500; color: var(--white); }
.review footer span { color: var(--muted); }
@media (max-width: 1024px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .reviews { padding: 72px 0; } .review-grid { grid-template-columns: 1fr; } }

/* ---------- Review form ---------- */
.stars-off { color: var(--emerald-line); }
.review-empty { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 19px; }
.review-form-wrap { margin-top: 56px; border: 1px solid var(--emerald-line); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; background: var(--emerald-deep); }
.review-form-intro { display: flex; flex-direction: column; gap: 14px; }
.review-form-intro h3 { font-size: 30px; color: var(--white); }
.review-form-intro p { color: var(--muted); line-height: 1.7; }
.review-form { display: flex; flex-direction: column; gap: 18px; }
.review-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.review-form input, .review-form select, .review-form textarea {
  font: inherit; font-size: 15px; color: var(--ivory);
  background: var(--emerald); border: 1px solid var(--emerald-line); border-radius: 10px; padding: 12px 14px;
}
.review-form input:focus, .review-form select:focus, .review-form textarea:focus { outline: none; border-color: var(--brass); }
.review-form select { appearance: none; -webkit-appearance: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.thanks { min-height: 100vh; display: flex; align-items: center; }
.thanks .brand-crest { margin: 0 auto 8px; }
@media (max-width: 900px) { .review-form-wrap { grid-template-columns: 1fr; padding: 28px; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Service tabs & tags ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: -16px 0 36px; }
.tab {
  background: transparent; color: var(--emerald); border: 1px solid #CFC6B3; border-radius: 999px;
  padding: 11px 20px; font-size: 14px; font-weight: 500;
  transition: background-color .25s, color .25s, border-color .25s;
}
.tab:hover { border-color: var(--brass); }
.tab.is-active { background: var(--emerald); color: var(--ivory); border-color: var(--emerald); }
.glass-card.is-hidden { display: none; }
.card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: rgba(15,42,36,0.78); color: var(--brass);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
  transition: opacity .3s;
}
.glass-card.is-open .card-tag { opacity: 0; }
@media (hover: hover) { .glass-card:hover .card-tag { opacity: 0; } }

/* ---------- Before & after gallery ---------- */
.work { background: var(--ivory-bg); color: var(--emerald); padding: 100px 0; border-top: 1px solid var(--ivory-line); }
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.ba { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ba-frame { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--emerald); user-select: none; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--brass);
  transform: translateX(-1px); pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--emerald); border: 2px solid var(--brass);
  background-image: linear-gradient(var(--brass), var(--brass)), linear-gradient(var(--brass), var(--brass));
  background-size: 8px 2px, 8px 2px; background-position: 9px 50%, calc(100% - 9px) 50%; background-repeat: no-repeat;
}
.ba-label {
  position: absolute; bottom: 16px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  background: rgba(15,42,36,0.8); color: var(--brass); padding: 7px 14px; border-radius: 999px; pointer-events: none;
}
.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100%; }
.ba-range::-moz-range-thumb { width: 60px; height: 100%; border: 0; opacity: 0; }
.ba figcaption { display: flex; flex-direction: column; gap: 4px; }
.ba figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.ba figcaption span { font-size: 14px; color: var(--muted-dark); line-height: 1.6; }
@media (max-width: 760px) {
  .work { padding: 72px 0; }
  .ba-grid { grid-template-columns: 1fr; gap: 28px; }
  .tabs { margin-top: -8px; margin-bottom: 28px; }
  .tab { padding: 10px 16px; font-size: 13px; }
}

/* Hide the white name strip while a card is open so it never shows through the veil */
.card-strip { transition: opacity .25s ease; }
.glass-card.is-open .card-strip { opacity: 0; }
@media (hover: hover) { .glass-card:hover .card-strip { opacity: 0; } }
.glass-card.is-open .card-veil { z-index: 2; }
@media (hover: hover) { .glass-card:hover .card-veil { z-index: 2; } }
.card-close { z-index: 3; }

/* Recent work sits on emerald so it alternates with the ivory services section */
.work { background: var(--emerald-deep); color: var(--ivory); border-top: 1px solid var(--emerald-line); }
.work .eyebrow-dark { color: var(--brass); }
.work .section-head h2 { color: var(--white); }
.work .section-note { color: var(--muted); }
.work .ba figcaption strong { color: var(--white); }
.work .ba figcaption span { color: var(--muted); }
.ba-frame { border: 1px solid var(--emerald-line); }

/* ---------- Dropdown tabs ---------- */
.tabs { position: relative; }
.tab-dd { position: relative; }
.tab-dd-btn { display: inline-flex; align-items: center; gap: 8px; }
.tab-dd-btn svg { transition: transform .25s; }
.tab-dd.is-open .tab-dd-btn svg { transform: rotate(180deg); }
.tab-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 6;
  display: none; flex-direction: column; min-width: 240px; padding: 6px;
  background: var(--white); border: 1px solid var(--ivory-line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15,42,36,0.18);
}
.tab-dd.is-open .tab-menu { display: flex; }
.tab-opt {
  background: none; border: 0; text-align: left; padding: 11px 14px; border-radius: 9px;
  font-size: 14px; font-weight: 400; color: var(--emerald); transition: background-color .2s, color .2s;
}
.tab-opt:hover { background: var(--ivory-bg); }
.tab-opt.is-active { background: var(--emerald); color: var(--ivory); }
.tab-opt + .tab-opt { margin-top: 2px; }
.grid-empty { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--muted-dark); }
.grid-empty a { color: var(--brass-dark); }

/* Sample reviews: a small tag so placeholders are never mistaken for real customers */
.review { position: relative; }
.review-sample { position: absolute; top: 18px; right: 18px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--brass); border-radius: 999px; padding: 4px 10px; }
