/* ============================================================
   The Barbershop Minehead — site styles
   Mobile-first, no framework
   ============================================================ */

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

:root {
  --navy:       #1a2535;
  --navy-mid:   #243044;
  --gold:       #b8842a;
  --gold-lt:    #d4a04e;
  --gold-pale:  #f5e6cc;
  --red:        #c0160f;
  --cream:      #f7f4ef;
  --white:      #ffffff;
  --text:       #2c2c2c;
  --text-mid:   #4a4a4a;
  --text-muted: #777;
  --border:     #e0d8cc;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow:     0 6px 28px rgba(0,0,0,0.13);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.2);
  --transition: 0.25s ease;
  --max-w:      1100px;
  --header-h:   72px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ────────────────────────────────────────
   TYPOGRAPHY HELPERS
──────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  font-weight: 700;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-family: 'Lato', sans-serif;
}
.eyebrow-gold { color: var(--gold-lt); }

/* ────────────────────────────────────────
   LAYOUT
──────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-cream { background: var(--cream); }
.section-dark  { background: var(--navy); }

.section-header-center { text-align: center; margin-bottom: 3rem; }

.section-heading {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.section-heading-light { color: var(--white); }

.section-sub-light {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ────────────────────────────────────────
   BUTTONS
──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  line-height: 1;
  font-family: 'Lato', sans-serif;
}

/* Shimmer sweep — slides across on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after {
  left: 130%;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover, .btn-gold:focus-visible {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  color: #111;
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 132, 42, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

/* ────────────────────────────────────────
   HEADER
──────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(26, 37, 53, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  height: var(--header-h);
}
#site-header.scrolled {
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.nav-logo span { color: var(--gold-lt); }
.nav-logo:hover span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  transition: color var(--transition), background var(--transition);
  font-family: 'Lato', sans-serif;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--white);
  background: rgba(255,255,255,0.07);
  outline: none;
}

.nav-links .nav-cta {
  background: var(--gold);
  color: var(--white);
  margin-left: 1rem;
  border-radius: 3px;
  padding: 0.5rem 1.1rem;
}
.nav-links .nav-cta:hover {
  background: var(--gold-lt);
  color: #111;
}

/* Hamburger — 44×44px minimum touch target */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ────────────────────────────────────────
   HERO
──────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* Push content below fixed header */
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/img/reception.jpg') center / cover no-repeat;
  filter: brightness(0.3) saturate(0.8);
  transform: scale(1.04);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem 5rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--gold-lt);
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  margin-bottom: 1.4rem;
}

.hero-content h1 {
  font-size: clamp(2.9rem, 8vw, 5.8rem);
  color: var(--white);
  margin-bottom: 1.3rem;
  line-height: 1.0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.sir    { color: var(--red); font-style: italic; }
.ellipsis { opacity: 0.7; }

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}
.hero-sub strong { color: rgba(255,255,255,0.95); font-weight: 700; }

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  animation: bounce 2.2s ease-in-out infinite;
  text-decoration: none;
  transition: color var(--transition);
}
.scroll-hint:hover { color: rgba(255,255,255,0.75); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ────────────────────────────────────────
   ABOUT
──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}

/* Circular portrait frame with layered gold rings */
.photo-frame {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 5px var(--cream),
    0 0 0 9px var(--gold),
    0 0 0 14px rgba(184, 132, 42, 0.2),
    var(--shadow-lg);
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}
.photo-frame::before,
.photo-frame::after { display: none; }

/* Portrait — rings expand and glow on hover */
.photo-frame:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 0 5px var(--cream),
    0 0 0 11px var(--gold-lt),
    0 0 0 22px rgba(184, 132, 42, 0.3),
    0 0 55px rgba(184, 132, 42, 0.15),
    var(--shadow-lg);
}

.photo-frame img {
  display: block;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.about-text .lead {
  font-size: 1.15rem;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 1.2rem;
  font-family: 'Playfair Display', serif;
}
.about-text p {
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-actions { margin-top: 1.8rem; }
.walk-in {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

/* ────────────────────────────────────────
   GALLERY
──────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-feature {
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.6s ease;
  filter: brightness(0.78) saturate(0.9);
}
.gallery-feature img { min-height: 400px; }
.gallery-item:not(.gallery-feature) img { min-height: 190px; }

/* Gold sheen overlay — fades in on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(184, 132, 42, 0.18) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.05);
}
.gallery-item:hover::after {
  opacity: 1;
}

/* ────────────────────────────────────────
   FIND US
──────────────────────────────────────── */
.find-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
}

.find-info h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1.4rem;
}

.find-info address {
  font-style: normal;
  color: var(--text-mid);
  line-height: 2;
  font-size: 1.05rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 2rem;
}
.find-info address strong { color: var(--navy); font-weight: 700; }

.find-call-btn { margin-bottom: 0.6rem; }

.find-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.social-link:hover { color: var(--gold); border-color: transparent; }

.find-map iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 3px;
  box-shadow: var(--shadow);
  display: block;
}

/* ────────────────────────────────────────
   FOOTER
──────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
}

.footer-logo {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 0.6rem;
}
.footer-logo span { color: var(--gold-lt); }

.footer-address {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.footer-address a { color: var(--gold-lt); text-decoration: none; }
.footer-address a:hover { text-decoration: underline; }

.footer-credits { font-size: 0.82rem; }
.footer-credits a { color: var(--gold-lt); text-decoration: none; }
.footer-credits a:hover { text-decoration: underline; }

/* ────────────────────────────────────────
   SCROLL MARGIN (offset for fixed header)
──────────────────────────────────────── */
#about, #gallery, #find-us {
  scroll-margin-top: var(--header-h);
}

/* ────────────────────────────────────────
   RESPONSIVE — tablet
──────────────────────────────────────── */
@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .about-photo {
    display: flex;
    justify-content: center;
  }
  .about-actions { display: flex; flex-direction: column; align-items: center; }

  .find-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .find-map iframe { height: 300px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-feature { grid-row: span 1; grid-column: span 2; }
  .gallery-feature img { min-height: 260px; }
}

/* ────────────────────────────────────────
   RESPONSIVE — mobile
──────────────────────────────────────── */
@media (max-width: 600px) {
  :root { --header-h: 60px; }

  .section { padding: 3.5rem 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  /* Nav links: tall enough to tap easily */
  .nav-links a { padding: 0.75rem 0.6rem; font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
  .nav-links .nav-cta { margin-left: 0; margin-top: 0.5rem; justify-content: center; }

  .hero-content h1 { font-size: 2.4rem; }

  /* Stack hero buttons vertically on phones */
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .hero-btns .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Full-width call buttons in About and Find Us */
  .about-actions .btn,
  .find-call-btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-feature { grid-column: span 1; }
  .gallery-feature img, .gallery-item img { min-height: 220px; }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .hero-content h1 { font-size: 2rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
