/* Base theme */
:root {
  --beige-50: #faf5ef;
  --beige-100: #f6f0e9;
  --brown-200: #e4d4c6;
  --brown-500: #8b6f5e;
  --brown-700: #5e463b;
  --text: #111111;
  --muted: #454545;
  --bg: var(--beige-100);
  --surface: #ffffff;
  --ring: #222;

  --radius: 14px;
  --shadow-1: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-2: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; border-radius: calc(var(--radius) - 6px); display: block; }
picture { display: block; }

.container { width: min(1100px, 92%); margin-inline: auto; }
.narrow    { width: min(800px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { font-family: "Lora", Georgia, serif; color: var(--text); line-height: 1.25; margin: 0 0 .5rem 0; }
h1 { font-size: clamp(2rem, 2.8vw + 1rem, 3rem); }
h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem); }
.h3, h3 { font-size: 1.25rem; }
.h4, h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; background: #fff; padding: .5rem .75rem; border-radius: 8px; box-shadow: var(--shadow-1); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.8); backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid #eee; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: .2px; display: inline-flex; gap: .5rem; align-items: center; font-family: "Lora", Georgia, serif; }
.logo span { filter: grayscale(100%); }

.site-nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--text); padding: .5rem .75rem; border-radius: 10px; }
.site-nav a:hover { background: var(--beige-50); }
.site-nav a.active { color: var(--brown-700); background: var(--brown-200); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; border: none; background: transparent; padding: 10px; border-radius: 10px; position: relative; }
.nav-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.nav-toggle-bar { width: 22px; height: 2px; background: #111; border-radius: 4px; transition: transform .2s ease, opacity .2s ease; }

/* Animate hamburger to "X" when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 64px 0 auto 0; background: rgba(255,255,255,0.98); transform: translateY(-100%); transition: transform .28s ease; box-shadow: var(--shadow-2); z-index: 60; }
  .site-nav ul { flex-direction: column; padding: 1rem; }
  .site-nav.open { transform: translateY(0); }
}

/* Hero */
.hero { padding: 2rem 0 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.hero-text .tagline { font-family: "Lora", Georgia, serif; color: var(--brown-700); font-size: 1.25rem; }
.hero-text .intro { max-width: 52ch; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: clamp(2rem, 5vw, 4rem) 0; }
.section.alt { background: #fff; }
.section .section-intro { margin-top: .25rem; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; color: var(--text); border: 1px solid #ddd; padding: .7rem 1rem; border-radius: 12px; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); background: var(--beige-50); }
.btn-primary { border: none; color: white; background: linear-gradient(180deg, var(--brown-500), var(--brown-700)); }
.btn-primary:hover { filter: brightness(1.03); box-shadow: 0 8px 18px rgba(139,111,94,0.3); }
.btn-outline { border-color: var(--brown-500); color: var(--brown-700); }

/* Cards & grids */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.team-grid { grid-template-columns: repeat(3, 1fr); }
.services-list { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-list { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid, .team-grid, .services-list, .testimonials-grid { grid-template-columns: 1fr; }
}

.card { background: var(--surface); border: 1px solid #eee; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.card-body { padding: 1rem 1rem 1.25rem; }
.card-body.no-media { padding-top: 1.25rem; }
.service img { aspect-ratio: 4 / 3; object-fit: cover; }
.service .media-link { display: block; }

.testimonial { padding: 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid #eee; box-shadow: var(--shadow-1); }
.testimonial blockquote { margin: 0 0 .5rem; font-family: "Lora", Georgia, serif; color: #222; }
.testimonial figcaption { font-size: .95rem; color: var(--muted); }

.cta { text-align: center; }
.cta-inner { background: linear-gradient(180deg, #fff, var(--beige-100)); border: 1px solid #eee; border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow-1); }

/* Page hero */
.page-hero.small { padding: 2rem 0 1rem; }
.page-hero .intro { color: var(--muted); }

/* Team */
.team-member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.avatar-placeholder { width: 100%; aspect-ratio: 4/5; border-radius: calc(var(--radius) - 6px); background: linear-gradient(135deg, var(--brown-200), var(--beige-50)); box-shadow: inset 0 0 0 1px #e8e0d8; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1rem, 2vw, 2rem); }
.hours { margin: .5rem 0 0; padding-left: 1rem; }
.map-placeholder { height: 100%; min-height: 280px; display: grid; place-items: center; border-radius: calc(var(--radius) - 6px); background: repeating-linear-gradient(45deg, #f2e8dd, #f2e8dd 10px, #efe3d6 10px, #efe3d6 20px); color: #634f43; font-weight: 700; letter-spacing: .4px; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-field { display: grid; gap: .35rem; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 600; }
input, textarea { padding: .7rem .8rem; border-radius: 10px; border: 1px solid #ddd; background: #fff; color: var(--text); }
input:focus, textarea:focus { outline: 2px solid var(--brown-200); border-color: var(--brown-500); }
.form-actions { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { padding: 2rem 0 1.25rem; border-top: 1px solid #eee; background: #fff; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.footer-title { font-weight: 700; margin-bottom: .25rem; }
.credits { text-align: center; color: var(--muted); margin-top: 1rem; font-size: .95rem; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Focus ring utility */
:where(a, button) { transition: opacity .15s ease, background .2s ease, transform .15s ease; }
:where(a, button):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Lightbox */
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox-backdrop[data-open="true"] { display: flex; }
.lightbox-backdrop img { max-width: min(92vw, 1100px); max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-2); }
