/* ==========================================================================
   Sinergia Beauté — Hair Color Studio
   Design tokens: shadcn/ui-inspired neutral system + a plum/rose accent
   pulled from the studio's own color-work photography.
   ========================================================================== */

:root {
  --background: #faf7f5;
  --surface: #ffffff;
  --foreground: #201a1c;
  --muted: #f1eae6;
  --muted-foreground: #7a7170;
  --border: #e6dcd7;
  --primary: #5f3049;
  --primary-foreground: #fbf3f6;
  --accent: #c98a9c;
  --accent-soft: #f2e2e6;
  --ring: #5f3049;
  --radius-sm: 0.6rem;
  --radius: 1.1rem;
  --radius-lg: 1.75rem;
  --shadow-sm: 0 1px 2px rgba(32, 20, 24, 0.06);
  --shadow: 0 8px 24px -8px rgba(32, 20, 24, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(32, 20, 24, 0.25);
  --container: 1180px;
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.muted {
  color: var(--muted-foreground);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

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

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.1rem 0;
  transition: background 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.scrolled {
  background: rgba(250, 247, 245, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.brand-logo {
  height: 20px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: var(--foreground);
  padding: 0.25rem 0;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.lang-toggle button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.45;
  filter: grayscale(0.5);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.lang-toggle button svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-toggle button.active {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

.lang-pill {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
}

.menu-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--foreground);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--surface);
  padding: 6.5rem 1.5rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.mobile-nav.open {
  display: flex;
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #17111a;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 17, 26, 0.15) 0%,
    rgba(23, 17, 26, 0.35) 45%,
    rgba(23, 17, 26, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fbf3f6;
  width: 100%;
  padding-bottom: 4.5rem;
}

.hero-content .eyebrow {
  color: #e7c7d3;
}

.hero-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.5rem, 15vw, 11rem);
  line-height: 0.9;
  margin: 0.4rem 0 1rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 480px;
  font-size: 1.05rem;
  color: #e9dee2;
}

.hero-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cbb7c0;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------------------------------- Sections ---------------------------------- */

section {
  position: relative;
}

.section {
  padding: 6.5rem 0;
}

.section-tight {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 0.6rem 0 1rem;
}

/* Philosophy / About */

.philosophy {
  background: var(--surface);
}

.philosophy .grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-copy p {
  color: var(--muted-foreground);
  font-size: 1.02rem;
  max-width: 480px;
}

.philosophy-stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 2.2rem;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--primary);
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.philosophy-media {
  position: relative;
}

.philosophy-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.philosophy-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  bottom: -1.75rem;
  left: -1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 230px;
}

.floating-card .dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.floating-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.floating-card b {
  font-size: 0.86rem;
}

/* Products */

.products {
  background: var(--surface);
}

.products .grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.products-copy p {
  color: var(--muted-foreground);
  font-size: 1.02rem;
  max-width: 460px;
}

.products-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.products-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--muted);
  border: 1px solid var(--border);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.product-card-label {
  padding: 1.1rem 1.2rem;
}

.product-card-label b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.product-card-label span {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* Services */

.services {
  background: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Portfolio */

.portfolio {
  background: var(--surface);
}

.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-tag {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: rgba(250, 247, 245, 0.92);
  color: var(--foreground);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

/* Shade palette */

.palette {
  background: var(--muted);
}

.palette-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.palette-rows {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 3rem;
}

.palette-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.7rem;
}

.swatch {
  position: relative;
  aspect-ratio: 1 / 1.9;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.06) 22%,
    rgba(255, 255, 255, 0) 45%,
    rgba(0, 0, 0, 0.14) 100%
  );
}

.palette-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

/* Footer */

.site-footer {
  background: #17111a;
  color: #ede2e6;
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(237, 226, 230, 0.14);
}

.footer-brand .brand-logo {
  height: 18px;
  margin-bottom: 1.1rem;
}

.footer-brand p {
  max-width: 280px;
  color: rgba(237, 226, 230, 0.6);
  font-size: 0.88rem;
}

.footer-col h4 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 226, 230, 0.5);
  margin: 0 0 1.1rem;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
  color: #ede2e6;
  transition: color 0.2s ease;
}

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

.footer-col address {
  font-style: normal;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(237, 226, 230, 0.65);
  margin: 0 0 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.78rem;
  color: rgba(237, 226, 230, 0.45);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------------------------------- Utilities ---------------------------------- */

[data-animate],
[data-reveal],
[data-reveal-item] {
  opacity: 0;
}

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .philosophy .grid,
  .products .grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .section {
    padding: 4.5rem 0;
  }

  .palette-row {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-bottom-row {
    align-items: flex-start;
  }

  .floating-card {
    left: 1rem;
    bottom: -1.4rem;
    max-width: 190px;
  }

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

@media (max-width: 560px) {
  .service-grid,
  .portfolio-grid,
  .product-cards {
    grid-template-columns: 1fr;
  }
}
