/* ═══════════════════════════════════════════════════════════
   Bruno's Barbershop of Natick — style.css
   Palette: Deep espresso · Warm cream · Antique gold
   ═══════════════════════════════════════════════════════════ */

:root {
  --dark:   #16100e;
  --espresso: #231916;
  --brown:  #3d2b1f;
  --gold:   #b8860b;
  --gold-lt:#d4a520;
  --cream:  #f7f1e3;
  --warm:   #fdfaf4;
  --text:   #2a2118;
  --muted:  #6b5e52;
  --border: #e8ddd0;
}

/* ─── BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--warm);
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }

img { max-width: 100%; height: auto; }

/* ─── SHARED SECTION HELPERS ───────────────────────────── */
.section-header { margin-bottom: 0; }

.eyebrow-label {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.eyebrow-label.light { color: var(--gold-lt); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title.light { color: #fff; }

.section-sub {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 0;
}
.section-sub a { color: var(--gold); }

/* ─── NAVBAR ───────────────────────────────────────────── */
#mainNav {
  background: var(--espresso);
  padding: .8rem 0;
  transition: background .3s;
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 2px;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .03em;
  white-space: nowrap;
}

.navbar-nav .nav-link {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(247,241,227,.8) !important;
  padding: .4rem .7rem !important;
  transition: color .2s;
}
.navbar-nav .nav-link:hover { color: var(--gold-lt) !important; }

.btn-book-nav {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--espresso) !important;
  background: var(--gold);
  border: none;
  padding: .45rem 1.25rem;
  border-radius: 2px;
  transition: background .2s, transform .15s;
}
.btn-book-nav:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('img/hero.webp') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,.38) 0%, rgba(0,0,0,.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.30) 0%, rgba(0,0,0,.10) 45%, rgba(0,0,0,.50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-content {
  background: rgba(0,0,0,.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(184,134,11,.25);
  border-radius: 4px;
  padding: 3rem 4rem;
  max-width: 700px;
  width: 100%;
}

.hero-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.8);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,.95), 0 0 60px rgba(0,0,0,.8);
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3.5vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,.95), 0 0 40px rgba(0,0,0,.85);
}

.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 1rem 0;
}
.hero-rule span {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold-lt);
}
.hero-rule i { color: var(--gold-lt); font-size: .6rem; }

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: rgba(255,255,255,.92);
  margin-bottom: .5rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.9);
}

.hero-motto {
  font-size: .82rem;
  font-weight: 300;
  letter-spacing: .05em;
  color: rgba(247,241,227,.75);
  margin-bottom: 0;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.9);
}

.btn-hero-primary {
  background: var(--gold);
  color: var(--dark) !important;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .75rem 2rem;
  border-radius: 2px;
  border: none;
  transition: background .2s, transform .15s;
}
.btn-hero-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background: transparent;
  color: #fff !important;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 1.75rem;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.5);
  transition: border-color .2s, background .2s;
}
.btn-hero-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}

/* ─── SERVICES ──────────────────────────────────────────── */
.section-services {
  background: var(--warm);
  padding: 6rem 0;
}

.services-grid {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.service-cell {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: background .2s, box-shadow .2s;
  position: relative;
}

/* remove right border on last in row */
.col-4:nth-child(3n) .service-cell { border-right: none; }
/* remove bottom border on last row */
.col-4:nth-child(n+7) .service-cell { border-bottom: none; }

.service-cell:hover {
  background: var(--cream);
  box-shadow: inset 3px 0 0 var(--gold);
}

.featured-cell { background: var(--espresso) !important; }
.featured-cell .service-num { color: rgba(184,134,11,.6); }
.featured-cell .service-name { color: var(--cream); }
.featured-cell .service-desc { color: rgba(247,241,227,.6); }

.service-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(184,134,11,.2);
  margin-bottom: .5rem;
  transition: color .2s;
}
.service-cell:hover .service-num { color: var(--gold); }

.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

.service-desc {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.btn-gold-outline {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold) !important;
  border: 1.5px solid var(--gold);
  background: transparent;
  padding: .75rem 2.25rem;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--dark) !important;
}

/* ─── GALLERY ───────────────────────────────────────────── */
.section-gallery {
  background: var(--espresso);
  padding: 5rem 0 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.gallery-cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, filter .4s ease;
  filter: grayscale(15%);
}

.gallery-cell:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

/* ─── ABOUT ─────────────────────────────────────────────── */
.section-about {
  background: var(--cream);
  padding: 7rem 0;
}

.about-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.about-img-wrap img {
  border-radius: 4px;
  display: block;
  width: 100%;
  object-fit: cover;
  max-height: 560px;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--gold);
  color: #fff;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.badge-est { font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.badge-year { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; }

.about-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.about-motto {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  border-left: 3px solid var(--gold);
  padding: .75rem 1.25rem;
  background: rgba(184,134,11,.06);
  border-radius: 0 4px 4px 0;
}
.about-motto p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--brown);
  margin: 0;
}
.motto-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  line-height: .8;
  color: var(--gold);
  flex-shrink: 0;
}

.btn-dark-primary {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream) !important;
  background: var(--espresso);
  border: none;
  padding: .8rem 2rem;
  border-radius: 2px;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-dark-primary:hover {
  background: var(--brown);
  transform: translateY(-1px);
}

/* ─── CONTACT ───────────────────────────────────────────── */
.section-contact {
  background: var(--espresso);
  padding: 6rem 0;
}

.contact-block {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 1.75rem;
}

.contact-block-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-lt);
  margin-bottom: 1rem;
}

.hours-table {
  width: 100%;
  font-size: .85rem;
  border-collapse: collapse;
}
.hours-table td { padding: .35rem 0; }
.hours-table td:last-child { text-align: right; }
.closed-row td { color: rgba(247,241,227,.35); }
.open-row td { color: rgba(247,241,227,.85); }
.open-row td:first-child { font-weight: 600; color: var(--gold-lt); }

.hours-note {
  font-size: .78rem;
  color: rgba(247,241,227,.5);
  margin-top: 1rem;
  margin-bottom: 0;
}
.hours-note a { color: var(--gold); }

.contact-address {
  font-size: .95rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: .75rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .88rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(247,241,227,.7);
  margin-bottom: .4rem;
}
.contact-list li i { color: var(--gold); font-size: .9rem; flex-shrink: 0; }
.contact-list li a { color: rgba(247,241,227,.85); }
.contact-list li a:hover { color: var(--gold-lt); }

.contact-socials {
  display: flex;
  gap: .75rem;
}
.contact-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: rgba(247,241,227,.7);
  font-size: .95rem;
  transition: border-color .2s, color .2s;
}
.contact-socials a:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
}

.map-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.map-frame iframe { display: block; }

.btn-gold-lg {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--dark) !important;
  border: none;
  padding: .85rem 2.25rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background .2s, transform .15s;
}
.btn-gold-lg:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
}

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid rgba(184,134,11,.3);
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-lt);
  margin-bottom: .25rem;
}
.footer-addr,
.footer-phone {
  font-size: .82rem;
  color: rgba(247,241,227,.5);
  margin-bottom: .25rem;
}
.footer-phone a { color: rgba(247,241,227,.5); }
.footer-phone a:hover { color: var(--gold-lt); }

.footer-socials {
  display: flex;
  gap: .75rem;
  justify-content: center;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(184,134,11,.3);
  border-radius: 50%;
  color: rgba(247,241,227,.5);
  font-size: 1rem;
  transition: all .2s;
}
.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
}

.footer-est {
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem;
  font-style: italic;
  color: rgba(184,134,11,.5);
  margin: 0;
}

.powered-link {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .05em;
  color: rgba(247,241,227,.35) !important;
  transition: color .2s;
}
.powered-link:hover { color: var(--gold-lt) !important; }
.powered-link strong { font-weight: 600; color: rgba(247,241,227,.5); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-size: .75rem;
  color: rgba(247,241,227,.3);
  margin: 0;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .nav-brand-text { font-size: .95rem; }

  .hero-content { padding: 2.5rem 2rem; }

  .section-services { padding: 4.5rem 0; }
  .section-about    { padding: 5rem 0; }
  .section-contact  { padding: 4.5rem 0; }

  .about-badge { width: 72px; height: 72px; left: -1rem; bottom: -1rem; }
  .badge-year { font-size: 1.25rem; }
}

@media (max-width: 767.98px) {
  .hero-content { padding: 2rem 1.5rem; margin: 0 1rem; }
  .hero-title   { font-size: 2.4rem; }

  .services-grid .col-4 {
    /* Switch to 2-col on mobile — but grid rule: we have 9 cells.
       9 / 2 is not clean, so stack to 1-col on very small screens. */
    flex: 0 0 50%;
    max-width: 50%;
  }
  /* The 9th item spans full width at 2-col to avoid orphan */
  .services-grid .col-4:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .services-grid .col-4:last-child .service-cell {
    border-right: none;
  }
  /* Re-apply bottom border rules for mobile */
  .services-grid .col-4:nth-child(3n) .service-cell { border-right: 1px solid var(--border); }
  .services-grid .col-4:nth-child(n+7) .service-cell { border-bottom: 1px solid var(--border); }
  .services-grid .col-4:nth-child(2n) .service-cell { border-right: none; }

  .service-cell { padding: 1.75rem 1.25rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  /* Hide last gallery cell on 2-col to keep even grid */
  .gallery-cell:last-child { display: none; }

  .about-badge { display: none; }
  .section-about { padding: 4rem 0; }

  .footer-name { font-size: 1rem; }
}

@media (max-width: 575.98px) {
  .hero-content { padding: 1.75rem 1.25rem; }
  .hero-title   { font-size: 2rem; }
  .hero-tagline { font-size: .95rem; }

  .services-grid .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .services-grid .col-4:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .services-grid .col-4 .service-cell { border-right: none !important; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-cell:last-child { display: none; }
}
