/* Beauty by Dominique – Design System */

:root {
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-accent: #e8b4b8;
  --color-accent-dark: #c9958a;
  --color-text: #2a2a2a;
  --color-muted: #6e6e6e;
  --color-border: #ece8e4;

  --font-heading: "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(42, 42, 42, 0.06);
  --shadow-hover: 0 8px 32px rgba(42, 42, 42, 0.1);

  --header-height: 72px;
  --section-padding: clamp(4rem, 8vw, 7rem);
  --container: min(1120px, 100% - clamp(1.5rem, 5vw, 2.5rem));
  --focus-ring: 2px solid var(--color-accent-dark);
  --focus-offset: 3px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(201, 149, 138, 0.25);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.75rem 1rem;
  background: var(--color-text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

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

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

ul {
  list-style: none;
}

/* Typography */

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--color-muted);
  max-width: 36rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  text-wrap: pretty;
}

/* Layout */

.container {
  width: var(--container);
  margin-inline: auto;
  min-width: 0;
}

.section {
  padding-block: var(--section-padding);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-intro {
  margin-inline: auto;
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0) 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

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

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

.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.btn--primary {
  background: linear-gradient(135deg, #3a3234 0%, #2a2a2a 55%, #342c2e 100%);
  color: #faf8f6;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(42, 42, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #4a3f42 0%, #342c2e 55%, #3f3538 100%);
  box-shadow:
    0 14px 36px rgba(42, 42, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
  border-color: rgba(42, 42, 42, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(42, 42, 42, 0.04);
}

.btn--secondary:hover {
  background: #fff;
  border-color: var(--color-accent-dark);
  color: #5c4548;
  box-shadow: 0 10px 28px rgba(201, 149, 138, 0.18);
}

.btn--accent {
  background: linear-gradient(135deg, #f0c8cc 0%, #e8b4b8 48%, #dfa8a3 100%);
  color: #3f2f32;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 10px 28px rgba(232, 180, 184, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--accent:hover {
  background: linear-gradient(135deg, #f5d3d6 0%, #edbdc1 48%, #e5b0aa 100%);
  color: #342628;
  box-shadow:
    0 14px 34px rgba(232, 180, 184, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.header__cta {
  padding: 0.72rem 1.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.header--scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  display: block;
  width: auto;
  height: clamp(1.75rem, 4vw, 2.25rem);
  aspect-ratio: 1024 / 352;
}

.logo__img--footer {
  filter: brightness(0) invert(1);
  opacity: 0.92;
  height: 1.75rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__cta {
  display: inline-flex;
}

/* Hero */

.hero {
  padding-top: calc(var(--header-height) + clamp(1.5rem, 4vw, 2rem));
  padding-bottom: var(--section-padding);
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
  min-width: 0;
}

.hero__brand {
  margin: 0;
  line-height: 0;
}

.hero__logo {
  display: block;
  width: min(100%, 32rem);
  height: auto;
  aspect-ratio: 1024 / 352;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-muted);
  max-width: 28rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: min(70vh, 42rem);
  box-shadow: var(--shadow-hover);
  width: 100%;
  margin-inline: auto;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(42, 42, 42, 0.08));
  pointer-events: none;
}

/* Services */

.services__grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 0.75rem;
  margin-inline: calc(-1 * clamp(0.75rem, 3vw, 0rem));
  padding-inline: clamp(0rem, 3vw, 0.25rem);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.services__grid::-webkit-scrollbar {
  height: 5px;
}

.services__grid::-webkit-scrollbar-thumb {
  background: rgba(201, 149, 138, 0.35);
  border-radius: 100px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 min(17rem, 88vw);
  min-width: 0;
  min-height: 18rem;
  scroll-snap-align: start;
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 180, 184, 0.28);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 246, 247, 0.95) 100%);
  box-shadow:
    0 1px 2px rgba(42, 42, 42, 0.03),
    0 10px 28px rgba(201, 149, 138, 0.1);
  overflow: hidden;
  isolation: isolate;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e8b4b8 0%, #dfa8a3 55%, #c9958a 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 180, 184, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 149, 138, 0.45);
  box-shadow:
    0 2px 4px rgba(42, 42, 42, 0.04),
    0 18px 40px rgba(201, 149, 138, 0.18);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(232, 180, 184, 0.22);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: #8f6368;
}

.service-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.service-card__desc {
  flex: 1;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.service-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 180, 184, 0.35);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--color-accent-dark);
  transition: color 0.25s ease;
  min-width: 0;
}

.service-card__link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

.service-card__link:hover {
  color: #7a4f55;
}

.service-card__link svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(232, 180, 184, 0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover .service-card__link svg {
  transform: translateX(3px);
  background: rgba(232, 180, 184, 0.4);
}

/* Tagline */

.tagline-section {
  text-align: center;
  padding-block: clamp(5rem, 10vw, 8rem);
}

.tagline-section__text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  max-width: 28ch;
  margin-inline: auto;
  line-height: 1.4;
  text-wrap: balance;
}

.tagline-section__divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 2rem auto 0;
}

/* Footer */

.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 3rem 2rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}


.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 24rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color 0.2s ease;
  padding-block: 0.15rem;
}

.footer__links a:focus-visible,
.footer__legal a:focus-visible,
.footer__social a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.footer__links a:hover {
  color: #fff;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s, border-color 0.2s;
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a:hover {
  color: #fff;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  padding-left: calc(1rem + env(safe-area-inset-left));
  padding-right: calc(1rem + env(safe-area-inset-right));
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -12px 40px rgba(42, 42, 42, 0.08);
  transform: translateY(100%);
  opacity: 0;
  overscroll-behavior: contain;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.cookie-banner__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.35rem;
}

.cookie-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.cookie-banner__text {
  color: var(--color-muted);
  font-size: 0.92rem;
  max-width: 42rem;
  line-height: 1.65;
}

.cookie-banner__text a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: var(--color-text);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner__btn {
  flex: 1 1 10rem;
}

body.cookie-banner-open .sticky-cta {
  display: none !important;
}

body.cookie-banner-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }

  .cookie-banner__actions {
    flex-wrap: nowrap;
  }

  .cookie-banner__btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.cookie-banner-open {
    overflow: auto;
  }
}

/* Sticky CTA */

.sticky-cta {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta--visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  width: 100%;
}

/* Fade-in animation */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal pages */

.legal-page {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: var(--section-padding);
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page address {
  color: var(--color-muted);
  margin-bottom: 1rem;
  font-style: normal;
}

.legal-page a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: var(--color-text);
}

.legal-page ul {
  color: var(--color-muted);
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-page ul li {
  margin-bottom: 0.35rem;
}

.legal-page code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(42, 42, 42, 0.06);
}

/* Responsive */

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }

  .header__cta {
    padding: 0.65rem 1rem;
    font-size: 0.62rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  .hero__image-wrap {
    order: -1;
    max-height: min(55vh, 28rem);
  }

  .footer__grid {
    text-align: center;
  }

  .footer__brand p {
    margin-inline: auto;
  }

  .footer__links {
    align-items: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }
}

@media (min-width: 640px) {
  .services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  .service-card {
    flex: unset;
    min-width: 0;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
  }

  .hero__logo {
    width: min(100%, 36rem);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }

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

  .sticky-cta {
    display: none;
  }
}

@media (min-width: 1280px) {
  .services__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .service-card {
    min-height: 19rem;
  }
}

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

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cookie-banner {
    transition: none;
  }

  .service-card,
  .service-card::before,
  .service-card__link svg,
  .btn,
  .btn::before,
  .header {
    transition: none;
  }

  .service-card:hover,
  .btn:hover {
    transform: none;
  }

  .service-card:hover .service-card__link svg {
    transform: none;
  }
}
