/* ═══════════════════════════════════════════════════════════
   COLLO ROSSO DERMATOLOGY — Shared Stylesheet
   Drop logo.png into /images/ and it auto-activates.
═══════════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; }
ul[role="list"] { list-style: none; }

/* ─── DESIGN TOKENS — NAVY PALETTE ─── */
:root {
  /* Backgrounds */
  --navy:          #08101E;   /* deepest navy */
  --navy-mid:      #0D1A2E;   /* main sections */
  --navy-light:    #142038;   /* cards / elevated */
  --navy-border:   rgba(180,210,255,0.07);

  /* Text & neutrals */
  --cream:         #F5EEE2;
  --cream-dark:    #E6DDD0;
  --cream-muted:   #A8A09A;
  --near-black:    #060C18;

  /* Accents */
  --rosso:         #B8242B;
  --rosso-hover:   #CC3039;
  --maroon:        #6D1520;   /* prefooter / deep-red background */
  --gold:          #B8945A;
  --gold-light:    #D4AD78;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-v:    clamp(80px, 10vw, 130px);
  --wrap:         min(1200px, 92vw);

  /* Motion */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ─── LAYOUT ─── */
.wrap { max-width: var(--wrap); margin: 0 auto; }
.sec  { padding: var(--section-v) 0; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.in   { opacity: 1; transform: none; }
.reveal-d1   { transition-delay: 0.10s; }
.reveal-d2   { transition-delay: 0.22s; }
.reveal-d3   { transition-delay: 0.34s; }
.reveal-d4   { transition-delay: 0.48s; }

/* ─── TYPOGRAPHY HELPERS ─── */
.sec-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.sec-label-rosso { color: var(--rosso); }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.sec-title-dark { color: var(--near-black); }
.sec-head { margin-bottom: 60px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: none;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s, color 0.25s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-rosso  { background: var(--rosso); color: #fff; }
.btn-rosso:hover { background: var(--rosso-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,238,226,0.28);
}
.btn-outline:hover { border-color: var(--cream); background: rgba(245,238,226,0.05); }
.btn-gold   { background: var(--gold); color: var(--near-black); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost-dark {
  background: transparent;
  color: var(--near-black);
  border: 1px solid rgba(9,15,12,0.2);
}
.btn-ghost-dark:hover { background: rgba(9,15,12,0.06); }
.btn-ghost-cream {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,238,226,0.22);
}
.btn-ghost-cream:hover { background: rgba(245,238,226,0.06); border-color: rgba(245,238,226,0.5); }
.btn-arrow::after { content: '→'; font-size: 14px; font-weight: 400; }
.btn-sm { padding: 11px 20px; font-size: 10.5px; }

/* ─── FORMS ─── */
.form-row { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(245,238,226,0.055);
  border: 1px solid rgba(245,238,226,0.13);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  border-radius: 0;
}
.form-input::placeholder { color: rgba(245,238,226,0.25); }
.form-input:focus        { border-color: rgba(184,148,90,0.5); }
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8945A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
textarea.form-input  { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-note {
  font-size: 10.5px;
  color: rgba(245,238,226,0.3);
  margin-top: 12px;
  line-height: 1.55;
}
.form-note a { color: var(--gold); }

/* Light form variants (on cream sections) */
.form-light .form-input {
  background: rgba(9,15,12,0.04);
  border-color: rgba(9,15,12,0.14);
  color: var(--near-black);
}
.form-light .form-input::placeholder { color: rgba(9,15,12,0.3); }
.form-light .form-input:focus        { border-color: rgba(184,36,43,0.4); }
.form-light select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8242B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.form-light .form-label { color: var(--rosso); }
.form-light .form-note  { color: rgba(9,15,12,0.38); }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
  padding: 20px 0;
  transition: background 0.4s var(--ease), padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,16,30,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 13px 0;
  border-bottom-color: var(--navy-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.nav-logo { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1; text-decoration: none; }
.nav-logo-img { height: 40px; width: auto; object-fit: contain; display: block; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; gap: 3px; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-logo-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(245,238,226,0.58);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a.active {
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--rosso);
}

/* Actions */
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-family: var(--font-display);
  font-size: 16px;
  color: rgba(245,238,226,0.52);
  transition: color 0.2s;
}
.nav-phone:hover { color: var(--cream); }
.nav-portal-btn {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,148,90,0.32);
  padding: 8px 16px;
  transition: all 0.2s;
  display: inline-block;
}
.nav-portal-btn:hover { background: rgba(184,148,90,0.1); border-color: var(--gold); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: all 0.3s; }

/* Mobile Nav */
.mob-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 490;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mob-nav.open { opacity: 1; pointer-events: all; }
.mob-nav-close {
  position: absolute;
  top: 22px; right: 24px;
  background: none; border: none;
  color: var(--cream); font-size: 28px; line-height: 1;
}
.mob-nav ul { list-style: none; }
.mob-nav ul li + li { margin-top: 4px; }
.mob-nav ul a {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  color: var(--cream);
  display: block;
  padding: 6px 0;
  transition: color 0.2s;
}
.mob-nav ul a:hover,
.mob-nav ul a.active { color: var(--gold); }
.mob-nav-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--navy-border);
}
.mob-nav-footer a {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════
   CREDENTIALS TICKER
══════════════════════════════════════════════ */
.ticker {
  background: var(--near-black);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: 13px 0;
  overflow: hidden;
  user-select: none;
}
.ticker-track {
  display: flex;
  animation: scroll-left 32s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 38px;
  flex-shrink: 0;
}
.ticker-abbr {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.ticker-full {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(245,238,226,0.36);
}
.ticker-sep { font-size: 10px; color: var(--rosso); opacity: 0.45; margin: 0 8px; }

/* ══════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════ */
.page-hero {
  background: var(--navy-mid);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--navy-border);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(184,148,90,0.045) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 30%, rgba(184,36,43,0.03) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero-mono {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(150px, 18vw, 280px);
  font-weight: 700;
  color: rgba(180,210,255,0.028);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 600;
  line-height: 0.97;
  letter-spacing: -0.025em;
  color: var(--cream);
}
.page-hero-title em { font-style: italic; color: var(--gold-light); }
.page-hero-sub {
  max-width: 540px;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.72;
  color: rgba(245,238,226,0.55);
  font-weight: 300;
}

/* ══════════════════════════════════════════════
   PRE-FOOTER CONTACT STRIP
══════════════════════════════════════════════ */
.prefooter {
  background: var(--maroon);
  padding: 52px 0;
}
.prefooter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.prefooter-left h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.prefooter-left p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
}
.prefooter-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.prefooter-contact-item {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.prefooter-contact-item .label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.prefooter-contact-item .val {
  font-family: var(--font-display);
  font-size: 19px;
  color: #fff;
  transition: opacity 0.2s;
}
.prefooter-contact-item .val:hover { opacity: 0.8; }
.prefooter-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}
.btn-white {
  background: #fff;
  color: var(--rosso);
  border: none;
}
.btn-white:hover { background: var(--cream); transform: translateY(-1px); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  padding: 72px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 56px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-img { height: 36px; width: auto; object-fit: contain; flex-shrink: 0; display: block; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: block;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15.5px;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245,238,226,0.32);
  font-weight: 300;
  max-width: 260px;
  margin-bottom: 22px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(245,238,226,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  color: rgba(245,238,226,0.35);
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 {
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a {
  font-size: 13px; color: rgba(245,238,226,0.38); font-weight: 300; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--navy-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copy { font-size: 11.5px; color: rgba(245,238,226,0.22); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { font-size: 11.5px; color: rgba(245,238,226,0.22); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(245,238,226,0.5); }
.footer-disclaimer {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(245,238,226,0.04);
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(245,238,226,0.17);
  max-width: 800px;
}

/* ══════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════ */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(6,12,24,0.9);
  z-index: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--navy-light);
  border: 1px solid rgba(245,238,226,0.09);
  width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.35s var(--ease-out);
  position: relative;
}
.modal-bg.open .modal-box { transform: none; }
.modal-head {
  padding: 34px 38px 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.modal-title {
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  color: var(--cream); line-height: 1.1;
}
.modal-x {
  background: none; border: none;
  color: rgba(245,238,226,0.4); font-size: 26px; line-height: 1; padding: 2px;
  transition: color 0.2s; flex-shrink: 0;
}
.modal-x:hover { color: var(--cream); }
.modal-body { padding: 20px 38px 38px; }
.modal-desc {
  font-size: 14.5px; color: rgba(245,238,226,0.48); line-height: 1.72;
  margin-bottom: 26px; font-weight: 300;
}
.modal-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.modal-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: rgba(245,238,226,0.62);
}
.modal-list li::before {
  content: ''; width: 5px; height: 5px; background: var(--gold); border-radius: 50%;
  margin-top: 7px; flex-shrink: 0;
}
.modal-list-dim li { opacity: 0.45; }
.modal-sec-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 20px 0 10px;
}
.modal-form-note {
  font-size: 10.5px; color: rgba(245,238,226,0.22); margin-top: 14px; line-height: 1.55;
}
.modal-form-note a { color: var(--gold); }

/* ══════════════════════════════════════════════
   COMING SOON BADGE
══════════════════════════════════════════════ */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,148,90,0.1);
  border: 1px solid rgba(184,148,90,0.25);
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  pointer-events: none;
  user-select: none;
}
.coming-soon-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.6;
}

/* ══════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════ */
.divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 28px 0;
}
.divider-rosso { background: var(--rosso); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .prefooter-inner { flex-direction: column; align-items: flex-start; }
  .prefooter-contact-item { text-align: left; }
}
@media (max-width: 720px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger             { display: flex; }
  .footer-top             { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom          { flex-direction: column; align-items: flex-start; }
  .prefooter-right        { flex-direction: column; align-items: flex-start; gap: 10px; }
  .prefooter-divider      { display: none; }
  .modal-head { padding: 26px 26px 0; }
  .modal-body { padding: 18px 26px 32px; }
}

/* ─── Utilities ─── */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.text-gold   { color: var(--gold); }
.text-rosso  { color: var(--rosso); }
.text-muted  { color: var(--cream-muted); }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }
