/* =============================================
   DESIGN SYSTEM — Dott. Santolo D'Antonio
   ============================================= */

:root {
  /* Brand colors */
  --c-bg:           #FAF8F5;
  --c-bg-alt:       #F5EDE4;
  --c-card:         #FDF6EF;
  --c-dark:         #1E1A17;
  --c-dark-2:       #2C2520;
  --c-dark-3:       #3D302A;
  --c-rose:         #C8917A;
  --c-rose-dark:    #A0705A;
  --c-rose-light:   #E5C4B8;
  --c-gold:         #C9A96E;
  --c-gold-light:   #E8D5A8;
  --c-gold-pale:    #F5EDD8;
  --c-text:         #1E1A17;
  --c-text-muted:   #6B5E55;
  --c-text-light:   #9A8A80;
  --c-border:       rgba(200, 145, 122, 0.18);
  --c-border-gold:  rgba(201, 169, 110, 0.25);
  --c-white:        #FFFFFF;

  /* Typography */
  --f-serif: 'Cormorant Garamond', 'Georgia', serif;
  --f-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid font scale */
  --fs-xs:   clamp(0.70rem,  1.2vw, 0.80rem);
  --fs-sm:   clamp(0.82rem,  1.5vw, 0.93rem);
  --fs-base: clamp(0.95rem,  1.8vw, 1.05rem);
  --fs-md:   clamp(1.05rem,  2.0vw, 1.20rem);
  --fs-lg:   clamp(1.20rem,  2.5vw, 1.50rem);
  --fs-xl:   clamp(1.50rem,  3.0vw, 2.00rem);
  --fs-2xl:  clamp(2.00rem,  4.5vw, 3.00rem);
  --fs-3xl:  clamp(2.50rem,  6.0vw, 4.50rem);
  --fs-4xl:  clamp(3.00rem,  7.0vw, 6.00rem);
  --fs-hero: clamp(3.50rem,  9.0vw, 8.00rem);

  /* Fluid spacing */
  --sp-1:  clamp(0.25rem, 0.5vw,  0.50rem);
  --sp-2:  clamp(0.50rem, 1.0vw,  0.75rem);
  --sp-3:  clamp(0.75rem, 1.5vw,  1.00rem);
  --sp-4:  clamp(1.00rem, 2.0vw,  1.50rem);
  --sp-5:  clamp(1.50rem, 3.0vw,  2.00rem);
  --sp-6:  clamp(2.00rem, 4.0vw,  3.00rem);
  --sp-7:  clamp(3.00rem, 6.0vw,  5.00rem);
  --sp-8:  clamp(4.00rem, 8.0vw,  8.00rem);
  --sp-9:  clamp(5.00rem, 10.0vw, 12.00rem);

  /* Layout */
  --max-w:  1280px;
  --nav-h:  92px;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs:   0 1px 4px  rgba(30, 26, 23, 0.06);
  --sh-sm:   0 2px 12px rgba(30, 26, 23, 0.08);
  --sh-md:   0 8px 30px rgba(30, 26, 23, 0.12);
  --sh-lg:   0 20px 60px rgba(30, 26, 23, 0.16);
  --sh-gold: 0 8px 30px rgba(201, 169, 110, 0.30);
  --sh-rose: 0 8px 30px rgba(200, 145, 122, 0.30);

  /* Transitions */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --tr-fast:  0.18s var(--ease);
  --tr-base:  0.35s var(--ease);
  --tr-slow:  0.55s var(--ease);
}

@media (max-width: 640px) {
  :root { --nav-h: 76px; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.70;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageIn 0.5s ease both;
}

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

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* Utility classes */
.serif       { font-family: var(--f-serif); }
.italic      { font-style: italic; }
.fw-300      { font-weight: 300; }
.fw-500      { font-weight: 500; }
.fw-600      { font-weight: 600; }
.muted       { color: var(--c-text-muted); }
.light-txt   { color: var(--c-text-light); }
.caps        { text-transform: uppercase; letter-spacing: 0.14em; }
.gold-txt    { color: var(--c-gold); }
.rose-txt    { color: var(--c-rose); }
.white-txt   { color: var(--c-white); }

.gradient-txt {
  background: linear-gradient(120deg, var(--c-gold) 0%, var(--c-rose) 55%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--narrow { max-width: 820px; }
.container--wide   { max-width: 1440px; }

.section    { padding-block: var(--sp-8); }
.section-sm { padding-block: var(--sp-6); }
.section-lg { padding-block: var(--sp-9); }

/* Responsive grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }

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

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { flex-direction: column; }
.gap-sm       { gap: var(--sp-3); }
.gap-md       { gap: var(--sp-5); }
.gap-lg       { gap: var(--sp-6); }

/* =============================================
   DIVIDERS & DECORATIVE
   ============================================= */
.divider {
  width: 60px;
  height: 1px;
  background: var(--c-gold);
  margin-block: var(--sp-4);
}
.divider--center { margin-inline: auto; }
.divider--rose   { background: var(--c-rose); }
.divider--long   { width: 120px; }
.divider--animated {
  width: 0;
  transition: width 1.2s var(--ease-out);
}
.divider--animated.visible { width: 60px; }
.divider--long.divider--animated.visible { width: 120px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-rose);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--c-rose);
  flex-shrink: 0;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.70s var(--ease-out), transform 0.70s var(--ease-out);
}
.reveal.visible           { opacity: 1; transform: translateY(0); }
.reveal-d1                { transition-delay: 0.10s; }
.reveal-d2                { transition-delay: 0.20s; }
.reveal-d3                { transition-delay: 0.30s; }
.reveal-d4                { transition-delay: 0.40s; }
.reveal-d5                { transition-delay: 0.50s; }
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.70s var(--ease-out), transform 0.70s var(--ease-out);
}
.reveal-left.visible      { opacity: 1; transform: translateX(0); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 2.2em;
  font-family: var(--f-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--r-full);
  transition: var(--tr-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shine sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s var(--ease);
}
.btn:hover::after { left: 125%; }

.btn--primary {
  background: var(--c-rose);
  color: var(--c-white);
  box-shadow: var(--sh-rose);
}
.btn--primary:hover {
  background: var(--c-rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(200, 145, 122, 0.42);
}

.btn--gold {
  background: linear-gradient(135deg, var(--c-gold) 0%, #B8924A 100%);
  color: var(--c-dark);
  box-shadow: var(--sh-gold);
  font-weight: 600;
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(201, 169, 110, 0.48);
}

.btn--outline {
  border: 1.5px solid var(--c-rose);
  color: var(--c-rose);
  background: transparent;
}
.btn--outline:hover {
  background: var(--c-rose);
  color: var(--c-white);
  transform: translateY(-2px);
}

.btn--ghost-light {
  border: 1.5px solid rgba(255,255,255,0.38);
  color: var(--c-white);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}
.btn--ghost-light:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: rgba(201,169,110,0.10);
}

.btn--lg  { padding: 1.0em 2.8em;  font-size: var(--fs-md); }
.btn--sm  { padding: 0.55em 1.4em; font-size: var(--fs-xs); }

.btn .arrow { display: inline-block; transition: transform var(--tr-fast); }
.btn:hover .arrow { transform: translateX(4px); }

/* =============================================
   PLACEHOLDER IMAGE BOXES
   ============================================= */
.img-ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--c-dark) 0%, var(--c-dark-3) 60%, var(--c-dark-2) 100%);
}
.img-ph--rose {
  background: linear-gradient(140deg, var(--c-dark) 0%, #6B3A30 55%, var(--c-rose-dark) 100%);
}
.img-ph--gold {
  background: linear-gradient(140deg, var(--c-dark-2) 0%, #7A5A2A 55%, var(--c-gold) 100%);
}
.img-ph--warm {
  background: linear-gradient(140deg, #3D2C28 0%, #6B4A40 50%, #8A6055 100%);
}

/* Shimmer sweep on hover */
.img-ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.06) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 150% 0;
  transition: background-position 0.7s ease;
  pointer-events: none;
}
.img-ph:hover::after { background-position: -50% 0; }

/* =============================================
   TEXT SPACING UTILITIES
   ============================================= */
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes growLine {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.65; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes bounceIn {
  0%   { transform: scale(0);   opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes heroGradient {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =============================================
   RESPONSIVE VISIBILITY
   ============================================= */
.hide-mobile  { display: initial; }
.show-mobile  { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}
