/* Beauty Salon Shpresa — Bagira-inspired layout */

:root {
  --cream: #f9f5ef;
  --cream-deep: #f0e8dc;
  --sand: #d4c4b0;
  --clay: #a8896a;
  --clay-dark: #8b6f52;
  --ink: #2a2420;
  --ink-soft: #5c534c;
  --white: #fffcf8;
  --radius-pill: 999px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 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-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 40%, transparent);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo span {
  font-weight: 400;
  opacity: 0.55;
}

.nav {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
  position: relative;
}

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

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-contact {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-phone {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--clay-dark);
}

.ig-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sand);
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.ig-link:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--white);
}

.ig-link svg {
  width: 16px;
  height: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--clay);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--clay-dark);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--clay) 35%, transparent);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--sand);
}

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

.btn-arrow::after {
  content: "→";
  font-size: 1.05em;
}

/* —— Hero —— */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: -8%;
  top: 10%;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--cream-deep) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeUp 0.9s var(--ease) both;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 28ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 22ch;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  animation: fadeUp 1s var(--ease) 0.15s both;
}

.arch-wrap {
  position: relative;
  width: 100%;
}

.arch-text {
  position: absolute;
  inset: -8% -6% auto -6%;
  width: 112%;
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 2;
}

.arch-text text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  fill: var(--ink-soft);
  text-transform: uppercase;
}

.arch-frame {
  aspect-ratio: 3 / 4.2;
  border-radius: 50% 50% 1.5rem 1.5rem / 38% 38% 1.5rem 1.5rem;
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--ink) 8%, transparent);
}

.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease);
}

.arch-frame:hover img {
  transform: scale(1.04);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.section-sub {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-inline: auto;
  font-size: 0.95rem;
}

/* —— Services —— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.service-card {
  text-align: center;
}

.service-arch {
  aspect-ratio: 3 / 4;
  border-radius: 50% 50% 0.75rem 0.75rem / 36% 36% 0.75rem 0.75rem;
  overflow: hidden;
  background: var(--cream-deep);
  margin-bottom: 1rem;
}

.service-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-card:hover .service-arch img {
  transform: scale(1.06);
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.services-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-inline: auto;
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-visual {
  position: relative;
  width: min(100%, 380px);
  margin-inline: auto;
}

.about-content .section-title {
  text-align: left;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 1.25rem;
}

.about-content .section-label {
  text-align: left;
}

.about-text {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
  margin-bottom: 2rem;
}

.features li {
  font-size: 0.9rem;
  color: var(--ink);
  padding-left: 1.15rem;
  position: relative;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}

.about-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.about-mini figure {
  overflow: hidden;
  border-radius: 0.65rem;
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
}

.about-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* —— Gallery preview —— */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4 / 5;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--cream-deep);
}

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

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

.gallery-item--arch {
  border-radius: 50% 50% 0.75rem 0.75rem / 32% 32% 0.75rem 0.75rem;
}

.gallery-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Full gallery page */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}

.gallery-page-grid .gallery-item:nth-child(3n) {
  border-radius: 50% 50% 0.75rem 0.75rem / 28% 28% 0.75rem 0.75rem;
}

/* —— Reviews —— */
.reviews {
  text-align: center;
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.stars {
  color: var(--clay);
  letter-spacing: 0.15em;
  font-size: 1.25rem;
}

.rating-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.rating-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--ink-soft);
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--sand) 50%, transparent);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.35rem;
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: var(--ink);
}

.contact-item a:hover {
  color: var(--clay-dark);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hours-table tr td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--cream-deep);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--ink-soft);
}

.hours-table .closed {
  color: #b07070;
}

.map-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--sand) 50%, transparent);
  background: var(--cream-deep);
  min-height: 360px;
  aspect-ratio: 4 / 3;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  min-height: 360px;
}

.map-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--cream) 85%, white);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
  color: var(--cream);
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 28ch;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.55;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.92rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cream) 25%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  opacity: 1;
}

.footer-social a:hover {
  background: var(--clay);
  border-color: var(--clay);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 1;
  transition: opacity 0.2s;
}

.footer-bottom a:hover {
  opacity: 0.85;
}

/* —— Motion —— */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--sand);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 6%, transparent);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--cream-deep);
  }

  .header-contact .header-phone {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
  }

  .hero-lead,
  .hero-note {
    margin-inline: auto;
    max-width: 36ch;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    width: min(72%, 320px);
  }

  .about-content .section-title,
  .about-content .section-label {
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .features {
    max-width: 420px;
    margin-inline: auto;
  }

  .about-cta {
    justify-content: center;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid .gallery-item:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.75rem;
  }

  .about-mini,
  .features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
