/* ==========================================================================
   Veha Beauty Studio
   Values are taken from the 1600px Figma frame; clamp() scales them below it.
   ========================================================================== */

:root {
  /* Colors */
  --rose-700: #b05860;
  --rose-500: #cc8398;
  --rose-300: #dfb5c1;
  --blush-50: #f9f1f2;
  --ink: #333333;
  --white: #ffffff;
  --placeholder-1: #e5e5e5;
  --placeholder-2: #ececec;
  --placeholder-3: #d6d3d3;

  /* Type */
  --font-display: "Playfair", Georgia, "Times New Roman", serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(36px, 4vw, 64px);
  --fs-h2: clamp(28px, 3vw, 48px);
  --fs-visit: clamp(26px, 2.5vw, 40px);
  --fs-feature: clamp(20px, 2.375vw, 38px);
  --fs-btn-lg: clamp(18px, 2.375vw, 38px);
  --fs-35: clamp(18px, 2.1875vw, 35px);
  --fs-eyebrow: clamp(16px, 2vw, 32px);
  --fs-eyebrow-sm: clamp(14px, 1.75vw, 28px);
  --fs-lead: clamp(17px, 2vw, 32px);
  --fs-lead-lg: clamp(17px, 2.1875vw, 35px);
  --fs-card: clamp(16px, 1.5625vw, 25px);
  --fs-legal: clamp(12px, 1.125vw, 18px);

  /* Radii */
  --radius-card: 11px;
  --radius-pill: 32px;

  /* Shadows */
  --shadow-btn: 0 3px 15.6px 3px rgba(0, 0, 0, 0.25);
  --shadow-btn-header: 0 4px 2.2px rgba(0, 0, 0, 0.25);
  --shadow-about: 0 4px 12.3px 3px rgba(0, 0, 0, 0.25);
  --shadow-service: 0 3px 15px -2px rgba(0, 0, 0, 0.25);
  --shadow-icon: 0 5px 11px 0 rgba(0, 0, 0, 0.25);
  --shadow-gallery: 0 4px 17.9px 3px rgba(0, 0, 0, 0.25);
  --shadow-why: 2px 2px 22px 2px rgba(0, 0, 0, 0.25);
  --shadow-contact: 3px 5px 24.7px 3px rgba(0, 0, 0, 0.25);
  --shadow-map: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* Base ------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--rose-700);
  outline-offset: 3px;
}

/* Playfair, set at the optical size used in the design */
h1,
h2,
h3,
.eyebrow,
.nav__link,
.btn,
.feature {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 12;
  line-height: 1.2;
}

/* Shared components ------------------------------------------------------- */

.eyebrow {
  color: var(--ink);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
}

.eyebrow--rose {
  color: var(--rose-700);
  font-size: var(--fs-eyebrow-sm);
}

.section-title {
  color: var(--rose-700);
  font-size: var(--fs-h2);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.66;
}

.lead--lg {
  font-size: var(--fs-lead-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(48px, 4.5625vw, 73px);
  padding: 0 clamp(20px, 2.5625vw, 41px);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: var(--fs-35);
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, filter 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--rose-700);
}

.btn--secondary {
  background: var(--rose-500);
}

.btn--lg {
  font-size: var(--fs-btn-lg);
}

.btn--wide {
  padding: 0 clamp(20px, 2.25vw, 36px);
}

.icon-circle {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 3.625vw, 58px);
  height: clamp(44px, 3.625vw, 58px);
  border-radius: 50%;
  background: var(--rose-700);
}

.icon-circle--lg {
  width: clamp(48px, 3.75vw, 60px);
  height: clamp(48px, 3.75vw, 60px);
}

.text-ink {
  color: var(--ink);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: clamp(72px, 6.5vw, 104px);
  padding: 0 clamp(16px, 5.0625vw, 81px) 0 clamp(16px, 2.1875vw, 35px);
  background: var(--blush-50);
}

.logo img {
  width: clamp(100px, 10.3125vw, 165px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.75vw, 44px);
  margin-left: auto;
}

.nav__link {
  position: relative;
  color: var(--ink);
  font-size: var(--fs-35);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--rose-700);
}

.nav__underline {
  position: absolute;
  left: -2.5px;
  top: calc(100% + 1px);
  width: calc(100% + 4px);
  height: 5px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.nav__link.is-active .nav__underline {
  opacity: 1;
}

.btn--header {
  min-width: clamp(120px, 15vw, 240px);
  min-height: clamp(44px, 4.375vw, 70px);
  margin-left: clamp(16px, 2.5vw, 40px);
  box-shadow: var(--shadow-btn-header);
}

.nav-toggle {
  display: none;
}

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

.hero {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: clamp(40px, 4.5vw, 72px) clamp(16px, 12.1875vw, 195px) 40px clamp(16px, 10.0625vw, 161px);
  background: var(--white);
}

.hero__bg {
  position: absolute;
  top: -10.3125vw;
  left: -5.4375%;
  width: 106.4375%;
  max-width: none;
  min-height: calc(100% + 10.3125vw);
  object-fit: cover;
  opacity: 0.82;
  transform: scaleX(-1);
  pointer-events: none;
}

.hero__content {
  position: relative;
  width: 42.125vw;
  max-width: 674px;
}

.hero__title {
  max-width: 577px;
  margin: 4px 0 2px;
  color: var(--rose-700);
  font-size: var(--fs-hero);
}

.hero__title span {
  display: block;
}

.hero .lead {
  margin-bottom: 23px;
}

.hero__media {
  position: absolute;
  top: -0.75vw;
  left: 54.5%;
  width: 33.3125%;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 533 / 729;
  object-fit: cover;
  object-position: left center;
}

/* About ------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 547fr 667fr;
  align-items: start;
  column-gap: clamp(32px, 8.375vw, 134px);
  padding: clamp(40px, 3.375vw, 54px) clamp(16px, 6vw, 96px) clamp(32px, 2.75vw, 44px) clamp(16px, 9.75vw, 156px);
  background: var(--blush-50);
}

.about__media {
  overflow: hidden;
  aspect-ratio: 547 / 516;
  border-radius: var(--radius-card);
  background: var(--placeholder-1);
  box-shadow: var(--shadow-about);
}

.about__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transform: translateY(-2.925%);
}

.about .eyebrow,
.about .section-title {
  margin-bottom: 22px;
}

.about .lead {
  margin-bottom: 28px;
}

/* Services ---------------------------------------------------------------- */

.services {
  padding: clamp(32px, 2.125vw, 34px) clamp(16px, 3.25vw, 52px) clamp(40px, 4.25vw, 68px);
  background: var(--white);
  text-align: center;
}

.services__intro {
  max-width: 667px;
  margin: 9px auto 20px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.25vw, 36px);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: clamp(220px, 16.5625vw, 265px);
  padding: 17px 11px 24px;
  border-radius: var(--radius-card);
  background: var(--rose-300);
  box-shadow: var(--shadow-service);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 5.5vw, 88px);
  height: clamp(72px, 5.5vw, 88px);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-icon);
}

.service-card__title {
  margin-top: 15px;
  color: var(--ink);
  font-size: var(--fs-35);
}

.service-card__text {
  max-width: 325px;
  margin-top: 4px;
  font-size: var(--fs-card);
  line-height: 1.46;
}

/* Gallery ----------------------------------------------------------------- */

.gallery {
  padding: clamp(32px, 2.9375vw, 47px) clamp(16px, 5.0625vw, 81px) clamp(40px, 3.9375vw, 63px) clamp(16px, 3.875vw, 62px);
  background: var(--blush-50);
}

.gallery__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(0px, 3.6875vw, 59px) 27px -8px;
}

.gallery__intro {
  max-width: 538px;
  margin-top: 8px;
}

.gallery__header .btn {
  margin-top: 7px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2.1875vw, 35px);
}

.gallery__item {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  background: var(--placeholder-2);
  box-shadow: var(--shadow-gallery);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* Why --------------------------------------------------------------------- */

.why {
  display: grid;
  grid-template-columns: 885fr 596fr;
  align-items: start;
  padding: clamp(32px, 2.875vw, 46px) clamp(16px, 3.875vw, 62px) clamp(32px, 2.875vw, 46px) clamp(16px, 3.5625vw, 57px);
  background: var(--blush-50);
}

.why__content {
  padding-top: 12px;
}

.why__title {
  max-width: 608px;
  margin: 24px 0 51px;
  line-height: 1.31;
}

.why__features {
  display: grid;
  grid-template-columns: minmax(0, 446px) 1fr;
  row-gap: clamp(24px, 4.125vw, 66px);
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 16px;
  font-size: var(--fs-feature);
  line-height: 1.201;
}

.why__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 596 / 449;
  border-radius: clamp(60px, 9.375vw, 150px);
  background: var(--placeholder-3);
  box-shadow: var(--shadow-why);
}

.why__media img {
  position: absolute;
  top: -2.895%;
  left: -1.846%;
  width: 102.35%;
  max-width: none;
  height: 107.13%;
  object-fit: cover;
}

/* Contact ----------------------------------------------------------------- */

.contact {
  padding: clamp(24px, 3.625vw, 58px) clamp(16px, 5.0625vw, 81px);
  background: var(--rose-300);
}

.contact__card {
  display: grid;
  grid-template-columns: 639fr 687fr;
  padding: clamp(24px, 2.375vw, 38px) clamp(20px, 2vw, 32px) clamp(24px, 2.5625vw, 41px) clamp(20px, 5vw, 80px);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-contact);
}

.contact__intro {
  max-width: 538px;
  margin: 10px 0 33px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: var(--fs-lead);
  line-height: 1.66;
  overflow-wrap: anywhere;
}

.contact__list a {
  text-decoration: none;
}

.contact__list a:hover {
  color: var(--rose-700);
}

.contact__visit {
  text-align: center;
}

.contact__visit-title {
  margin: 7px 0 10px;
  color: var(--ink);
  font-size: var(--fs-visit);
}

.contact__map {
  display: block;
  overflow: hidden;
  aspect-ratio: 687 / 422;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-map);
}

.contact__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-top: 17px;
}

.socials a {
  display: block;
  transition: transform 0.15s ease;
}

.socials a:hover {
  transform: translateY(-2px);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--blush-50);
}

.site-footer__top {
  display: flex;
  align-items: center;
  min-height: clamp(88px, 7.8125vw, 125px);
  padding: 0 clamp(16px, 3.125vw, 50px) 0 clamp(16px, 1.875vw, 30px);
}

.logo--footer {
  margin-bottom: 8px;
}

.nav--footer {
  margin-right: clamp(16px, 3vw, 48px);
}

.site-footer__legal {
  padding: 1.5px 16px;
  background: var(--rose-700);
  color: var(--white);
  font-size: var(--fs-legal);
  line-height: 1.66;
  text-align: center;
}

/* Tablet ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .nav-toggle {
    order: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: 12px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--rose-700);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-header .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px 28px;
    background: var(--blush-50);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  }

  .site-header .nav.is-open {
    display: flex;
  }

  .site-header .nav__link {
    font-size: 22px;
  }

  .btn--header {
    margin-left: auto;
    font-size: 18px;
  }

  .hero {
    flex-direction: column;
    gap: 32px;
    padding-right: 16px;
  }

  .hero__content {
    width: auto;
  }

  .hero__media {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 420px;
    margin: 0 auto -40px;
  }

  .hero__media img {
    aspect-ratio: 533 / 600;
    object-position: left top;
  }

  .about,
  .why {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .about__media {
    max-width: 547px;
  }

  .why__media {
    max-width: 596px;
  }

  .services__grid,
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__header {
    flex-direction: column;
    margin: 0 0 24px;
  }

  .contact__card {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .contact__list {
    gap: 20px;
  }

  .site-footer__top {
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px 24px;
  }

  .logo--footer {
    margin-bottom: 0;
  }

  .nav--footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin: 0;
  }

  .nav--footer .nav__link {
    font-size: 20px;
  }
}

/* Phone ------------------------------------------------------------------- */

@media (max-width: 560px) {
  .btn--header {
    min-width: 0;
    padding: 0 18px;
  }

  .services__grid,
  .why__features {
    grid-template-columns: 1fr;
  }

  .why__features {
    row-gap: 20px;
  }

  .socials {
    gap: 28px;
  }
}
