/* ==========================================================================
   Iron & Oak Barbershop — stylesheet
   Palette: warm oak parchment, espresso ink, oxblood + brass accents.
   Type: Fraunces (display) / Work Sans (body).
   ========================================================================== */

:root {
  --bg: #f1e8d2;
  --bg-panel: #e6d9bb;
  --ink: #241c15;
  --ink-soft: #55483a;
  --espresso: #241c15;
  --espresso-soft: #362b21;
  --oxblood: #63101c;
  --oxblood-dark: #470a14;
  --brass: #8a6a45;
  --brass-light: #c9ad84;
  --sage: #8a6a45;
  --cream: #f7f0dc;
  --line: rgba(36, 28, 21, 0.18);
  --line-on-dark: rgba(243, 236, 220, 0.2);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1120px;
  --radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lede { font-size: 1.15rem; color: var(--ink-soft); }

a { color: inherit; }

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

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.section-dark { background: var(--espresso); color: var(--cream); }
.section-dark p { color: rgba(243, 236, 220, 0.78); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-panel { background: var(--bg-panel); }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--oxblood);
  font-size: 1rem;
  margin: 0 0 10px;
}
.section-dark .eyebrow { color: var(--brass-light); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1;
}
.btn-primary { background: var(--oxblood); color: var(--cream); }
.btn-primary:hover { background: var(--oxblood-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.section-dark .btn-outline { color: var(--cream); border-color: var(--line-on-dark); }
.section-dark .btn-outline:hover { background: var(--cream); color: var(--espresso); }
.btn-gold { background: var(--brass); color: var(--cream); }
.btn-gold:hover { background: var(--brass-light); }
.btn-whatsapp { background: #25d366; color: #0b2b18; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-whatsapp svg { width: 18px; height: 18px; }

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(36, 28, 21, 0.3);
  z-index: 150;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.whatsapp-float:hover { background: #1ebe5b; transform: translateY(-2px); }
.whatsapp-float svg { width: 27px; height: 27px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 2px;
}

/* Header — glassmorphism, single nav trigger on the right ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 220, 200, 0.62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(36, 28, 21, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; display: block; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }

/* Single nav cluster: Book Now + one menu trigger, right-aligned */
.main-nav { position: relative; display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 236, 220, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:hover { background: rgba(243, 236, 220, 0.85); }

/* The single dropdown panel — anchored under Book Now / the toggle */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: rgba(232, 220, 200, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 18px 36px rgba(36, 28, 21, 0.22);
  display: none;
  z-index: 80;
}
.nav-dropdown.open { display: block; }
.nav-dropdown .nav-links { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-dropdown .nav-links a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 4px;
}
.nav-dropdown .nav-links a:hover,
.nav-dropdown .nav-links a[aria-current="page"] { color: var(--oxblood); background: rgba(107, 39, 55, 0.08); }

@media (max-width: 480px) {
  .nav-dropdown { width: calc(100vw - 48px); }
}

/* Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--espresso);
  color: var(--cream);
  overflow: hidden;
  padding: 90px 0 76px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(36,28,21,0.96) 30%, rgba(36,28,21,0.75) 60%, rgba(36,28,21,0.55) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--cream); }
.hero .lede { color: rgba(243, 236, 220, 0.8); }
.hero-art {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 46%;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}
.hero-art svg { width: 100%; height: auto; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: flex; gap: 36px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--brass-light); }
.hero-stats div span { font-size: 0.85rem; color: rgba(243, 236, 220, 0.65); }

.hero-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.8s ease forwards 0.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.page-hero {
  background: var(--espresso);
  color: var(--cream);
  padding: 64px 0;
}
.page-hero h1 { color: var(--cream); margin-bottom: 8px; }
.page-hero p { color: rgba(243, 236, 220, 0.75); margin: 0; }

/* Feature rows (editorial, not boxed cards) ---------------------------- */
.feature-rows { display: flex; flex-direction: column; }
.feature-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.feature-rows .feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row .icon { width: 40px; height: 40px; color: var(--oxblood); }
.feature-row h3 { margin-bottom: 6px; }
.feature-row p { margin: 0; color: var(--ink-soft); }

/* Icon badge ------------------------------------------------------------ */
.icon-badge {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(107, 39, 55, 0.08);
  color: var(--oxblood);
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* Service menu list ------------------------------------------------------ */
.menu-group { margin-bottom: 56px; }
.menu-group h3 { color: var(--oxblood); margin-bottom: 20px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.menu-group .menu-list .menu-item:last-child { border-bottom: 1px solid var(--line); }
.menu-item .name-block { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.menu-item .name { font-family: var(--font-display); font-size: 1.15rem; }
.menu-item .duration { font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; }
.menu-item .leader { flex: 1; border-bottom: 1px dotted var(--ink-soft); margin: 0 8px 5px; min-width: 24px; }
.menu-item .price { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }
.menu-item-body { width: 100%; }
.menu-item-desc { margin: 6px 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.menu-item-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.menu-item-foot a { font-size: 0.85rem; font-weight: 600; color: var(--oxblood); text-decoration: none; }
.menu-item-foot a:hover { text-decoration: underline; }
.menu-item { flex-wrap: wrap; }

.pricing-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; }

/* Team --------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.team-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-panel);
}
.team-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Simple photo gallery (about page: shop, chairs, tools) */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; display: block; }
.gallery-grid figcaption { padding: 10px 14px; font-size: 0.82rem; color: var(--ink-soft); background: var(--bg); }
.team-body { padding: 22px; }
.team-role { color: var(--oxblood); font-weight: 600; font-size: 0.88rem; margin-bottom: 2px; }
.team-years { color: var(--ink-soft); font-size: 0.82rem; margin-bottom: 12px; }
.team-body p { font-size: 0.92rem; margin-bottom: 0; }

/* Values row */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* CTA banner ------------------------------------------------------------ */
.cta-banner {
  background: var(--oxblood);
  color: var(--cream);
  padding: 64px 0;
  text-align: left;
}
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h2 { color: var(--cream); margin-bottom: 4px; }
.cta-banner p { color: rgba(243, 236, 220, 0.8); margin: 0; }
.cta-banner .btn-outline { border-color: rgba(243, 236, 220, 0.6); color: var(--cream); }
.cta-banner .btn-outline:hover { background: var(--cream); color: var(--oxblood); }

/* Services preview on home ------------------------------------------- */
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.preview-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; background: var(--bg); }
.preview-card .icon { width: 30px; height: 30px; color: var(--oxblood); margin-bottom: 16px; }
.preview-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.preview-card .from { font-size: 0.85rem; color: var(--ink-soft); }

/* Booking / contact layout --------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}
.booking-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-error { font-size: 0.8rem; color: var(--oxblood); min-height: 1.1em; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

.contact-side { display: flex; flex-direction: column; gap: 28px; }
.info-block { display: flex; gap: 14px; }
.info-block .icon { width: 22px; height: 22px; color: var(--oxblood); flex-shrink: 0; margin-top: 2px; }
.info-block h3 { font-size: 1rem; margin-bottom: 4px; }
.info-block p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours-table td { padding: 6px 0; border-top: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { width: 100%; height: 220px; border: 0; display: block; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  text-decoration: none;
}
.social-row a svg { width: 18px; height: 18px; }
.social-row a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Confirmation panel ----------------------------------------------------- */
.confirm-panel { display: none; }
.confirm-panel.show { display: block; }
.booking-form.hide { display: none; }
.confirm-icon { width: 46px; height: 46px; color: var(--sage); margin-bottom: 16px; }
.confirm-summary { list-style: none; margin: 20px 0 28px; padding: 0; border-top: 1px solid var(--line); }
.confirm-summary li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.confirm-summary li span:first-child { color: var(--ink-soft); }
.confirm-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

/* How booking works (numbered — genuine sequence) ------------------------ */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass);
  border: 1px solid var(--line);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* Popup / modal ------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(36, 28, 21, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.overlay.open { display: flex; }
.modal-card {
  background: var(--bg);
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  border-top: 4px solid var(--oxblood);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer; color: var(--ink-soft);
  padding: 6px;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-card .promo-code {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  background: var(--bg-panel);
  border: 1px dashed var(--brass);
  padding: 8px 16px;
  border-radius: var(--radius);
  margin: 14px 0 22px;
}

/* Terms page ------------------------------------------------------------ */
.terms-body h2 { margin-top: 44px; font-size: 1.35rem; }
.terms-body h2:first-child { margin-top: 0; }
.terms-body p, .terms-body li { color: var(--ink-soft); }
.terms-body { max-width: 74ch; }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--espresso); color: rgba(243, 236, 220, 0.8); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-name small { color: rgba(243, 236, 220, 0.55); }
.footer-brand p { color: rgba(243, 236, 220, 0.6); font-size: 0.9rem; margin-top: 14px; }
.footer-col h4 { color: var(--cream); font-size: 0.9rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(243, 236, 220, 0.72); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(243, 236, 220, 0.55);
}
.footer-bottom a { color: rgba(243, 236, 220, 0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }
.footer-legal { display: flex; gap: 18px; }

/* Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { position: static; transform: none; width: 70%; margin: 40px auto 0; opacity: 0.85; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .values-grid, .steps-row, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  section { padding: 56px 0; }
  .preview-grid, .team-grid, .values-grid, .steps-row, .footer-grid, .gallery-grid { grid-template-columns: 1fr; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 24px; }
}
