/* =====================================================
   REVÈLA — Global Design System
   Hair · Health · Beauty · Slimming
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  /* — Brand Colors — */
  --magenta:       #C2286A;
  --magenta-light: #D43D7D;
  --magenta-dark:  #9C1E54;
  --forest:        #1B4D2E;
  --forest-light:  #236038;
  --leaf:          #4A8C29;
  --slate:         #4E6472;
  --gold:          #C4A35A;
  --gold-light:    #D9B96E;

  /* — Neutrals — */
  --cream:   #F9F7F4;
  --white:   #FFFFFF;
  --dark:    #000000;
  --dark-2:  #111111;
  --grey-1:  #F5F5F7;
  --grey-2:  #E8E8ED;
  --grey-3:  #C7C7CC;
  --grey-4:  #8E8E93;
  --grey-5:  #3A3A3C;

  /* — Typography — */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* — Layout — */
  --nav-height:    96px;
  --section-pad:   clamp(80px, 10vw, 130px);
  --container-max: 1300px;
  --container-pad: clamp(24px, 5vw, 80px);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     40px;

  /* — Easing — */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* — Transitions — */
  --t-fast: 0.18s var(--ease);
  --t-base: 0.35s var(--ease);
  --t-slow: 0.65s var(--ease);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* =====================================================
   TYPOGRAPHY SCALE
   ===================================================== */

.t-display {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.t-hero {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.2;
}

.t-h4 {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.t-body-lg {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.75;
  font-weight: 300;
}

.t-body {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.65;
  font-weight: 400;
}

.t-small {
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.t-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =====================================================
   LAYOUT
   ===================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

/* =====================================================
   COLOR UTILITIES
   ===================================================== */

.bg-cream   { background-color: var(--cream); }
.bg-dark    { background-color: var(--dark); }
.bg-dark-2  { background-color: var(--dark-2); }
.bg-forest  { background-color: var(--forest); }
.bg-magenta { background-color: var(--magenta); }

.text-magenta { color: var(--magenta); }
.text-forest  { color: var(--forest); }
.text-gold    { color: var(--gold); }
.text-white   { color: var(--white); }
.text-grey    { color: var(--grey-4); }

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--magenta);
  color: var(--white);
  box-shadow: 0 2px 20px rgba(194, 40, 106, 0.28);
}
.btn-primary:hover {
  background: var(--magenta-light);
  box-shadow: 0 6px 32px rgba(194, 40, 106, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--grey-3);
}
.btn-outline-dark:hover {
  border-color: var(--dark);
  background: var(--grey-1);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}
.btn-dark:hover { background: var(--dark-2); box-shadow: 0 6px 24px rgba(0,0,0,0.22); }

.btn-forest {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(27, 77, 46, 0.25);
}
.btn-forest:hover { background: var(--forest-light); box-shadow: 0 6px 24px rgba(27,77,46,0.35); }

/* =====================================================
   SECTION LABEL
   ===================================================== */

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-label span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta);
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--magenta);
  flex-shrink: 0;
}

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  will-change: opacity, transform;
}

[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-stagger].visible > *:nth-child(1) { transition-delay: 0.00s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(3) { transition-delay: 0.20s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(4) { transition-delay: 0.30s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(5) { transition-delay: 0.40s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(6) { transition-delay: 0.50s; opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(7) { transition-delay: 0.60s; opacity: 1; transform: none; }

/* =====================================================
   TICKER TAPE
   ===================================================== */

.ticker-wrap {
  overflow: hidden;
  background: var(--dark);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.ticker {
  display: flex;
  animation: ticker-scroll 35s linear infinite;
  width: max-content;
}

.ticker:hover { animation-play-state: paused; }

.ticker-item {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--magenta);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   PAGE HERO (shared across pages)
   ===================================================== */

.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-height);
}

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

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px var(--container-pad) 70px;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 36px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  padding-top: 28px;
  margin-bottom: -8px;
}

.footer-logo img {
  height: 160px;
  width: auto;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 18px;
  text-align: center;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  max-width: 290px;
  text-align: center;
  margin: 0 auto;
}

.footer-col {
  text-align: center;
  padding-top: 48px;
}

.footer-col + .footer-col {
  position: relative;
}

.footer-col + .footer-col::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--t-fast);
}

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

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--t-fast);
}

.footer-social a svg { flex-shrink: 0; }
.footer-social a:hover { color: var(--magenta-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  flex-wrap: wrap;
  gap: 12px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn { padding: 13px 24px; }
}

/* =====================================================
   DEVELOPER WATERMARK — davidmaree.xyz
   Remove this block once invoice is settled
   ===================================================== */

.dm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.dm-overlay.dm-visible {
  opacity: 1;
  pointer-events: all;
}

.dm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 360px;
  width: 100%;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dm-overlay.dm-visible .dm-card {
  transform: translateY(0) scale(1);
}

.dm-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.dm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.dm-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}

.dm-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #fff;
  line-height: 1;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.dm-msg {
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  max-width: 300px;
}

.dm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.dm-btn-primary {
  padding: 10px 22px;
  background: #fff;
  color: #0d1117;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.dm-btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.dm-btn-dismiss {
  padding: 10px 22px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.dm-btn-dismiss:hover {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 480px) {
  .dm-name { font-size: 34px; }
  .dm-photo { width: 88px; height: 88px; }
}
