/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #efe6d0;
  --ink: #3a2f1a;
  --a: #a67c00;
  --b: #6b7a3a;
  --c: #c04e1a;
  --light: #f7f1e2;
  --muted: #8a7d5e;
  --card-bg: #f4ebd4;
  --border: #d8cbae;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2a2416;
    --ink: #e2d7be;
    --a: #d4a92a;
    --b: #8da34a;
    --c: #d96a2a;
    --light: #3a3220;
    --muted: #a89a7a;
    --card-bg: #332c1c;
    --border: #4d4228;
  }
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== GRAIN OVERLAY ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== ATTRIBUTION ===== */
.attribution {
  font-size: 0.7rem;
  opacity: 0.5;
}
.attribution a { color: inherit; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.header-rating { color: var(--a); font-weight: 500; }
.header-phone a { color: var(--c); font-weight: 600; }

/* ===== CURSOR REVEAL ===== */
.cursor-reveal {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  cursor: crosshair;
}
.reveal-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.reveal-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  -webkit-mask-image: radial-gradient(circle 80px at var(--cx, 50%) var(--cy, 50%), transparent 0%, black 100%);
  mask-image: radial-gradient(circle 80px at var(--cx, 50%) var(--cy, 50%), transparent 0%, black 100%);
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-overlay {
    opacity: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ===== HERO ===== */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 500;
  font-variation-settings: 'wdth' 100;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  visibility: hidden;
  animation: breathe 6s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes breathe {
  0%, 100% { font-variation-settings: 'wdth' 75; }
  50% { font-variation-settings: 'wdth' 125; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 {
    visibility: visible;
    animation: none;
    font-variation-settings: 'wdth' 100;
  }
}

/* typewriter chars */
.tw-char {
  opacity: 0;
  animation: typeIn 0.05s ease forwards;
  animation-delay: calc(var(--i) * 0.045s);
}
@keyframes typeIn {
  to { opacity: 1; }
}
.tw-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--ink);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-char { opacity: 1; animation: none; }
  .tw-caret { display: none; }
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--c);
  color: #fff;
  border-color: var(--c);
}
.btn-primary:hover {
  background: #a83e12;
  border-color: #a83e12;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--c);
  border-color: var(--c);
}
.btn-outline:hover {
  background: var(--c);
  color: #fff;
  text-decoration: none;
}
.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  background: var(--b);
  color: #fff;
  border: none;
}
.btn-small:hover {
  background: #5a6830;
  text-decoration: none;
}

/* ===== ABOUT ===== */
.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink);
}
.about-text p {
  margin: 0 0 1rem;
  color: var(--ink);
}
.about-text p:last-child { margin-bottom: 0; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.highlight-icon { font-size: 1.5rem; }
.highlight-label { font-weight: 600; font-size: 0.95rem; }
.highlight-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* ===== SERVICES (menu-style) ===== */
.services {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.services h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 2rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-category h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin: 0 0 0.75rem;
  color: var(--b);
}
.service-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--border);
}
.service-item:last-child { border-bottom: none; }
.service-name { color: var(--ink); }
.service-price {
  font-weight: 600;
  color: var(--c);
  white-space: nowrap;
}
.services-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 2rem 0 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== REVIEWS ===== */
.reviews {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.reviews h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 2rem;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .reviews-grid { grid-template-columns: 1fr; }
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0;
}
.review-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  font-style: italic;
}
.review-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.review-stars { color: var(--a); letter-spacing: 2px; }
.reviews-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* ===== INFO CARDS ===== */
.info-cards {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 750px) {
  .info-cards { grid-template-columns: 1fr; }
}
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--b);
}
.hours-list {
  margin: 0;
  font-size: 0.9rem;
}
.hours-list div {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border);
}
.hours-list div:last-child { border-bottom: none; }
.hours-list dt { font-weight: 500; }
.hours-list dd { margin: 0; color: var(--muted); }
.info-address {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}
.info-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.info-phone {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.info-phone a { color: var(--c); }

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--a);
  outline-offset: -1px;
  border-color: transparent;
}
.contact-form button { margin-top: 0.25rem; }
.form-status {
  font-size: 0.85rem;
  color: var(--b);
  margin: 0;
}

/* ===== CLOSING QUOTE ===== */
.closing {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}
.closing blockquote {
  margin: 0;
}
.closing blockquote p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.closing cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.site-footer p { margin: 0.3rem 0; }
.site-footer a { color: var(--muted); text-decoration: underline; }

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid var(--a);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
