/* ============================
   Headquarters Hairstyling
   Downtown Waterville, ME
   ============================ */

:root {
  --gold: #c9a96e;
  --gold-light: #dcc497;
  --gold-dark: #a8873f;
  --black: #0e0e0e;
  --charcoal: #1a1a1a;
  --dark: #222;
  --mid: #3a3a3a;
  --steel: #888;
  --light: #d0d0d0;
  --cream: #f5f0e8;
  --white: #fafaf8;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ======= NAV ======= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid var(--gold) !important;
  border-radius: 4px;
  color: var(--gold) !important;
  transition: background 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

/* ======= HERO ======= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(201,169,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,169,110,0.08) 0%, transparent 60%),
    linear-gradient(160deg, #0e0e0e 0%, #1a1a1a 40%, #222 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(201,169,110,0.03) 60px,
      rgba(201,169,110,0.03) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(201,169,110,0.03) 60px,
      rgba(201,169,110,0.03) 61px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-line {
  display: block;
  font-size: clamp(36px, 10vw, 140px);
  color: var(--white);
  font-style: normal;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
  white-space: nowrap;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.7s forwards;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: var(--light);
  max-width: 480px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 0.85s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) 1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.2s forwards, float 2.5s ease-in-out infinite 1.5s;
}

/* ======= BUTTONS ======= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  min-height: 48px;
}

.btn--primary {
  background: var(--gold);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(201,169,110,0.4);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ======= SECTIONS ======= */

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ======= SERVICES ======= */

.services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 36px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--gold);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--charcoal);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.service-price {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--gold-dark);
  white-space: nowrap;
}

.service-card p {
  font-size: 15px;
  color: var(--steel);
  line-height: 1.6;
}

/* ======= REVIEWS ======= */

.reviews {
  padding: 100px 0;
  background: var(--charcoal);
}

.reviews .section-title {
  color: var(--white);
}

.reviews-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.rating-stars {
  display: flex;
  gap: 4px;
}

.rating-stars svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.star-partial {
  opacity: 0.5;
}

.rating-text {
  font-size: 15px;
  color: var(--steel);
  letter-spacing: 0.02em;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.review-card {
  background: var(--mid);
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: 12px;
  padding: 28px 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.review-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.review-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.review-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--light);
}

.review-source {
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ======= ABOUT ======= */

.about {
  padding: 100px 0;
  background: var(--charcoal);
}

.about .section-title {
  color: var(--white);
}

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-visual {
  position: relative;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
}

.about-streetview {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
}

.about-streetview iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.about-visual-caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 12px;
  font-weight: 400;
  color: var(--cream);
  background: rgba(14,14,14,0.7);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  z-index: 1;
}

.about-text p {
  font-size: 16px;
  color: var(--light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 32px;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ======= HOURS ======= */

.hours {
  padding: 100px 0;
  background: var(--cream);
}

.hours-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hours-text p {
  font-size: 16px;
  color: var(--steel);
  max-width: 500px;
}

.hours-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 15px;
}

.hours-row:last-of-type {
  border-bottom: none;
}

.hours-row span:first-child {
  font-weight: 500;
  color: var(--charcoal);
}

.hours-row span:last-child {
  color: var(--steel);
}

.hours-row--closed span:last-child {
  color: var(--gold-dark);
  font-weight: 500;
}

.hours-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-dark);
  transition: color 0.3s;
}

.hours-phone:hover {
  color: var(--gold);
}

/* ======= MAP ======= */

.map-section {
  padding: 100px 0;
  background: var(--white);
}

.map-subtitle {
  font-size: 16px;
  color: var(--steel);
  max-width: 480px;
  margin: 0 auto;
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  margin-bottom: 32px;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 350px;
}

.map-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======= FOOTER ======= */

.footer {
  padding: 80px 0 40px;
  background: var(--black);
  color: var(--light);
}

.footer-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.logo-mark--light {
  background: var(--gold);
  color: var(--black);
}

.logo-text--light {
  color: var(--white);
}

.footer-tagline {
  font-size: 14px;
  color: var(--steel);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a,
.footer-col address {
  display: block;
  font-size: 14px;
  color: var(--steel);
  margin-bottom: 6px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--mid);
}

/* ======= ANIMATIONS ======= */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ======= MOBILE (390px+) ======= */

@media (min-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-info {
    flex-direction: row;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 24px;
    transition: right 0.4s var(--ease);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .map-wrapper iframe {
    height: 450px;
  }

  .about-layout {
    flex-direction: row;
    align-items: center;
  }

  .about-visual {
    flex: 1;
    min-height: 400px;
  }

  .about-text {
    flex: 1;
  }

  .hours-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .hours-text {
    flex: 1;
  }

  .hours-card {
    flex: 1;
    max-width: 480px;
  }

  .footer-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }

  .service-card {
    padding: 44px 36px;
  }
}
