/* =========================================================
   Eftimia's HairCut — Demo Website
   Design tokens
   ========================================================= */

:root {
  --ivory: #f7f2ec;
  --ivory-deep: #efe4d5;
  --charcoal: #2a2522;
  --charcoal-soft: #5a5148;
  --champagne: #b6905a;
  --champagne-soft: #ddc9a8;
  --rose: #b3777a;
  --graphite: #211d1a;
  --line: rgba(42, 37, 34, 0.14);
  --line-on-dark: rgba(247, 242, 236, 0.16);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --max-width: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--charcoal);
}

p { margin: 0; }

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

section { position: relative; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--champagne); color: var(--charcoal); }

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-secondary:hover { background: var(--charcoal); color: var(--ivory); }

.btn-on-dark {
  background: var(--champagne-soft);
  color: var(--graphite);
}
.btn-on-dark:hover { background: var(--ivory); }

.btn-outline-on-dark {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-on-dark);
}
.btn-outline-on-dark:hover { border-color: var(--ivory); }

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-scrolled {
  background: rgba(247, 242, 236, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.main-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a:hover { color: var(--charcoal); }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--champagne);
  transition: width 0.25s ease;
}

.main-nav a:hover::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 24px;
  position: relative;
  padding: 0;
}

.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* =========================================================
   Demo badge
   ========================================================= */

.demo-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  background: rgba(42, 37, 34, 0.86);
  color: var(--ivory);
  font-size: 0.72rem;
  padding: 7px 13px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding-top: 120px;
  overflow: hidden;
  background: var(--ivory);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 120px);
  padding-bottom: 60px;
}

.hero-copy {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-in 0.9s ease 0.15s forwards;
}

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.6rem);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--charcoal-soft);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 46px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-rating {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hero-rating .rating-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.stars {
  color: var(--champagne);
  letter-spacing: 2px;
}

.hero-rating-label {
  display: block;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

.hero-address {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: 0 0 0 140px;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Trust / Reviews
   ========================================================= */

.trust {
  background: var(--ivory-deep);
  padding: 90px 0;
}

.trust-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 56px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.trust-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.trust-score {
  text-align: right;
}

.trust-score .rating-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
}

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

.review blockquote {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--charcoal);
  position: relative;
  padding-left: 34px;
}

.review blockquote::before {
  content: "\201E";
  position: absolute;
  left: -6px;
  top: -6px;
  font-size: 2.6rem;
  color: var(--rose);
  font-family: var(--font-display);
}

.review cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

/* =========================================================
   About
   ========================================================= */

.about {
  padding: 110px 0;
}

.about .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.about-label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 14px;
}

.about h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  max-width: 420px;
}

.about-copy p {
  font-size: 1.08rem;
  color: var(--charcoal-soft);
  max-width: 520px;
}

.about-copy p + p { margin-top: 20px; }

/* =========================================================
   Services
   ========================================================= */

.services {
  background: var(--ivory-deep);
  padding: 110px 0;
}

.section-head {
  margin-bottom: 60px;
  max-width: 560px;
}

.section-head .about-label { margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}

.service-row:hover { padding-left: 10px; }

.service-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.service-desc {
  color: var(--charcoal-soft);
  font-size: 0.98rem;
  max-width: 440px;
}

.service-cta {
  justify-self: end;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 22px;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.service-cta:hover { background: var(--charcoal); color: var(--ivory); }

/* =========================================================
   Gallery
   ========================================================= */

.gallery { padding: 110px 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 2; }
.gallery-item:nth-child(3) { grid-column: span 1; }
.gallery-item:nth-child(4) { grid-column: span 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.045); }

.gallery-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

/* =========================================================
   Instagram
   ========================================================= */

.instagram {
  background: var(--graphite);
  color: var(--ivory);
  padding: 100px 0;
  text-align: center;
}

.instagram h2 {
  color: var(--ivory);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.instagram-handle {
  font-size: 1.05rem;
  color: var(--champagne-soft);
  margin-bottom: 34px;
  display: block;
}

/* =========================================================
   Opening hours
   ========================================================= */

.hours { padding: 110px 0; }

.hours .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.hours-table {
  border-top: 1px solid var(--line);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  color: var(--charcoal-soft);
}

.hours-row .day { color: var(--charcoal); font-weight: 600; }

.hours-row.is-today {
  color: var(--charcoal);
}
.hours-row.is-today .day { color: var(--champagne); }

.hours-row .closed { font-style: italic; }

.hours-note {
  align-self: start;
  padding-top: 6px;
}

.hours-note p {
  color: var(--charcoal-soft);
  font-size: 1.02rem;
  max-width: 380px;
}

/* =========================================================
   CTA / Contact
   ========================================================= */

.cta-section {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 120px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--ivory);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}

.cta-section p {
  color: var(--champagne-soft);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* =========================================================
   Location
   ========================================================= */

.location { padding: 110px 0; }

.location .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.location-details address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.location-details .about-label { margin-bottom: 14px; }
.location-details h2 { margin-bottom: 22px; font-size: clamp(2rem, 3.4vw, 2.6rem); }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--graphite);
  color: var(--champagne-soft);
  padding: 70px 0 110px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-on-dark);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 14px;
  display: block;
}

.footer-col h3 {
  color: var(--ivory);
  font-size: 1rem;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 8px; }

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}

/* =========================================================
   Mobile sticky nav
   ========================================================= */

.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

.mobile-tabbar ul {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-tabbar li { flex: 1; }

.mobile-tabbar a {
  display: block;
  text-align: center;
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.mobile-tabbar li:first-child a {
  background: var(--charcoal);
  color: var(--ivory);
}

.mobile-tabbar li:last-child a {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 860px) {
  .header-phone { display: inline; }
}

@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; min-height: 320px; border-radius: 0 0 60px 60px; margin: 0 -28px; }
  .hero { padding-top: 96px; }
  .reviews { grid-template-columns: 1fr; gap: 40px; }
  .about .container,
  .hours .container,
  .location .container { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: span 2; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  body.nav-open .main-nav {
    display: block;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--ivory);
    padding: 110px 32px 40px;
    z-index: 99;
  }

  body.nav-open .main-nav ul {
    flex-direction: column;
    gap: 26px;
  }

  body.nav-open .main-nav a { font-size: 1.4rem; }

  .header-cta .btn-secondary { display: none; }

  .mobile-tabbar { display: block; }
  body { padding-bottom: 78px; }

  .trust, .about, .services, .gallery, .instagram, .hours, .cta-section, .location {
    padding: 70px 0;
  }

  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .service-cta { justify-self: start; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-col:first-child { grid-column: span 1; }

  .demo-badge { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 2.6rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item:nth-child(1) { grid-column: span 1; }
}
