:root {
  /* Color system — teal stays the brand anchor, everything else built around it */
  --primary: #0f766e;
  --primary-dark: #0b5a54;
  --primary-light: #14b8a6;
  --primary-tint: rgba(15, 118, 110, 0.08);
  --accent: #b45309;
  --accent-tint: rgba(180, 83, 9, 0.08);
  --text: #16211f;
  --text-secondary: #44544f;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f6f5f1;
  --bg-dark: #0d1614;
  --border: #e6e4dc;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 22, 20, 0.07);
  --shadow-md: 0 8px 24px rgba(13, 22, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 22, 20, 0.14);
  --shadow-primary: 0 10px 26px rgba(15, 118, 110, 0.28);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Spacing */
  --section-padding: clamp(64px, 9vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { color: var(--primary); text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; }
.site-header .logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-header nav a {
  margin-left: 28px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.site-header nav a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  padding: var(--section-padding) 0;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, var(--primary-tint), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, var(--accent-tint), transparent 60%),
    var(--bg-alt);
}
.hero.has-image {
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero.has-image h1 { color: #fff; }
.hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(13, 22, 20, 0.78), rgba(13, 22, 20, 0.6)),
    rgba(13, 22, 20, 0.55);
}
.hero.has-image .wrap { position: relative; z-index: 1; }
.hero.has-image .subhead { color: rgba(255, 255, 255, 0.88); }
.hero h1 {
  font-size: clamp(2.4rem, 4vw + 1.2rem, 4.25rem);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero .subhead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
}

.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.36);
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-secondary {
  display: inline-block;
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero:not(.has-image) .cta-secondary { color: var(--primary); }
.cta-secondary:hover { background: var(--primary-tint); transform: translateY(-2px); }
.hero.has-image .cta-secondary:hover { background: rgba(255, 255, 255, 0.12); }

.cta-band {
  text-align: center;
  background: var(--bg-dark);
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 24px; }
.cta-band button.cta { border: none; font-size: 1rem; cursor: pointer; }

section { padding: var(--section-padding) 0; }
section h2 {
  font-size: clamp(1.9rem, 2vw + 1.2rem, 2.6rem);
  margin-bottom: 40px;
  text-align: center;
}

/* ---------- About ---------- */
.about p {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.about.has-image .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  text-align: left;
}
.about.has-image h2 { text-align: left; margin-bottom: 20px; }
.about.has-image p { text-align: left; margin: 0; max-width: none; }
.about.has-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about.has-image .about-copy { order: 2; }
.about.has-image .about-media { order: 1; }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.service-card-body { padding: 28px; }
.service-card:not(:has(img)) .service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text); }
.service-card p { color: var(--text-secondary); }
.price-note { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-top: 12px; }

/* ---------- Menu ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
}
.menu-category h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.menu-item { margin-bottom: 18px; }
.menu-item-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.menu-item-name { font-weight: 600; }
.menu-item-row::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted var(--border);
  transform: translateY(-4px);
}
.menu-item-price { color: var(--accent); font-weight: 600; white-space: nowrap; }
.menu-item-desc { color: var(--text-secondary); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.gallery-grid figure { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; display: block; }
.gallery-grid figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg);
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-alt); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonials blockquote {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  text-align: left;
  font-style: normal;
}
.testimonials blockquote p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 16px;
}
.testimonials blockquote p::before { content: "\201C"; color: var(--accent); }
.testimonials blockquote p::after { content: "\201D"; color: var(--accent); }
.testimonials cite {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-item { max-width: 720px; margin: 0 auto 28px; }
.faq-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-secondary); }

/* ---------- Contact / footer ---------- */
.contact { background: var(--bg-dark); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact a { color: var(--primary-light); }
.hours { max-width: 300px; margin: 24px auto; text-align: left; }
.hours div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.footer-note { margin-top: 28px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Intake page ---------- */
.intake-hero {
  background: var(--bg-alt);
  padding: 56px 0 32px;
  text-align: center;
}
.intake-hero h1 { font-size: 2.1rem; margin-bottom: 14px; }
.intake-hero .subhead { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

.intake { padding-top: 40px; }
.intake form { max-width: 560px; margin: 0 auto; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.form-field input[type="file"] { font-size: 0.9rem; }
.form-row { display: flex; gap: 16px; }
.form-row .form-field { flex: 1; }
.form-row-3 .form-field:nth-child(2) { flex: 0.5; }
.form-row-3 .form-field:nth-child(3) { flex: 0.7; }
.hp-field { position: absolute; left: -9999px; }
.intake .cta { border: none; font-size: 1rem; cursor: pointer; width: 100%; }
.intake .cta:disabled { opacity: 0.7; cursor: default; }
.form-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.form-success { max-width: 560px; margin: 0 auto; text-align: center; }
.form-success h2 { color: var(--primary); margin-bottom: 12px; }

/* ---------- Portfolio page ---------- */
.portfolio-hero {
  background: var(--bg-alt);
  padding: 72px 0 40px;
  text-align: center;
}
.portfolio-hero h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem); margin-bottom: 16px; }
.portfolio-hero .subhead { color: var(--text-secondary); max-width: 620px; margin: 0 auto; font-size: 1.1rem; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.portfolio-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-card img { width: 100%; height: 220px; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--border); }
.portfolio-card-body { padding: 24px; }
.portfolio-card-industry {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.portfolio-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.portfolio-card p { color: var(--text-secondary); margin-bottom: 16px; }
.portfolio-card a.view-link { font-weight: 600; }

@media (max-width: 760px) {
  .about.has-image .wrap { grid-template-columns: 1fr; }
  .about.has-image .about-media { order: 1; }
  .about.has-image .about-copy { order: 2; }
}

@media (max-width: 600px) {
  .site-header nav a { margin-left: 14px; font-size: 0.85rem; }
  .hero h1 { font-size: 2.1rem; }
  .form-row { flex-direction: column; gap: 0; }
}
