/* =========================================================
   SOLEIL SKIN CLINIC: BASE STYLES
   Shared by every page: brand tokens, type, buttons, header,
   menu, CTA band, footer and the WhatsApp button.
   ========================================================= */

/* =========================
   BRAND FONT  (TAN Aegean, same family as the logo)
   ========================= */
@font-face {
  font-family: "TAN Aegean";
  src: url("../fonts/tan-aegean.woff2") format("woff2"),
       url("../fonts/tan-aegean.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================
   COLOUR TOKENS
   ========================= */
:root {
  --cream: #F9EEDF;  /* Sweet Corn - page background */
  --ivory: #FCF6EE;  /* lighter surface */
  --sand:  #F1E4D1;  /* deeper surface */
  --taupe: #AC9D88;  /* Incense */
  --beige: #E2D6C5;  /* Pastel Rose Tan */
  --gold:  #8E7645;  /* Marzipan */
  --olive: #666C47;  /* Olive Sage */
  --merlot: #461511; /* Deep Merlot */
  --text:  #3F2115;  /* Earthy Umber */
  --footer: #2E1A12; /* footer background */

  --ink-soft: rgba(63, 33, 21, 0.74);
  --ink-mute: rgba(63, 33, 21, 0.55);
  --line: rgba(63, 33, 21, 0.14);

  --serif: "TAN Aegean", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* =========================
   BASE
   ========================= */
/* The window scrolls normally (no inner scroll box), with no rubber-band
   bounce past the ends. If a browser still bounces, the area above the page
   shows cream and the area below the footer shows the footer colour. */
html {
  background: linear-gradient(var(--cream) 50%, var(--footer) 50%);
  overscroll-behavior-y: none;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  font-family: var(--sans);
  font-weight: 300;
  background-color: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img {
  max-width: 100%;
}

/* =========================
   SCROLL REVEAL
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1000ms ease, transform 1000ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================
   SHARED TYPE & BUTTONS
   ========================= */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: 54px;
  line-height: 1.08;
  color: var(--text);
}

.section-lede {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  box-sizing: border-box;
}

.btn-dark {
  background: var(--text);
  color: var(--cream);
  border-color: var(--text);
}

.btn-dark:hover {
  background: var(--merlot);
  border-color: var(--merlot);
}

.btn-outline {
  color: var(--text);
  border-color: rgba(63, 33, 21, 0.4);
}

.btn-outline:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--cream);
}

.btn-light {
  background: var(--cream);
  color: var(--text);
  border-color: var(--cream);
}

.btn-light:hover {
  background: transparent;
  color: var(--cream);
}

.btn-ghost-light {
  color: var(--cream);
  border-color: rgba(249, 238, 223, 0.55);
}

.btn-ghost-light:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--text);
}

/* =========================
   HEADER
   ========================= */
header.top-bar {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  box-sizing: border-box;
  background: rgba(249, 238, 223, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.logo {
  height: 34px;
  margin: 0;
  transition: opacity 0.3s ease;
}

.logo-link:hover .logo {
  opacity: 0.75;
}

.burger-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px 0;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.top-nav .nav-link {
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.top-nav .nav-link:hover,
.top-nav .nav-link.active {
  opacity: 1;
}

.top-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.top-nav .nav-link:hover::after,
.top-nav .nav-link.active::after {
  width: 100%;
}

/* Book Appointment: quiet outlined button */
.top-nav .nav-cta {
  padding: 11px 22px;
  border: 1px solid rgba(63, 33, 21, 0.45);
  opacity: 1;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.top-nav .nav-cta::after {
  display: none;
}

.top-nav .nav-cta:hover,
.top-nav .nav-cta.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--cream);
}

@media (max-width: 900px) {
  .top-nav { display: none; }
  .burger-btn { display: block; }
  header.top-bar { padding: 16px 24px; }
  .logo { height: 30px; }
}

@media (min-width: 901px) {
  .burger-btn { display: none; }
}

/* =========================
   OVERLAY MENU (mobile)
   ========================= */
.overlay-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--cream);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.close-btn {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  color: var(--text);
}

.menu-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.menu-content a {
  position: relative;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 34px;
  color: var(--text);
  padding: 4px 0;
  transition: opacity 0.3s ease;
}

.menu-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width 0.35s ease;
}

.menu-content a:hover::after {
  width: 100%;
}

.overlay-menu.active .menu-content a {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.5s ease forwards;
}

.overlay-menu.active .menu-content a:nth-child(1) { animation-delay: 0.10s; }
.overlay-menu.active .menu-content a:nth-child(2) { animation-delay: 0.18s; }
.overlay-menu.active .menu-content a:nth-child(3) { animation-delay: 0.26s; }
.overlay-menu.active .menu-content a:nth-child(4) { animation-delay: 0.34s; }
.overlay-menu.active .menu-content a:nth-child(5) { animation-delay: 0.42s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   CTA BAND
   ========================= */
.location-cta {
  background: var(--text);
  padding: 120px 48px;
  text-align: center;
}

.cta-content {
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.12;
  color: var(--cream);
}

.cta-content p {
  margin: 0 0 40px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(249, 238, 223, 0.72);
}

.cta-button {
  display: inline-block;
  padding: 17px 38px;
  background: var(--cream);
  color: var(--text);
  border: 1px solid var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s ease, color 0.35s ease;
}

.cta-button:hover {
  background: transparent;
  color: var(--cream);
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  background: var(--footer);
  padding: 48px 48px 24px;
  color: var(--cream);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  grid-template-areas: "brand cols socials";
  align-items: center;
  gap: 48px;
}

.footer-brand { grid-area: brand; display: flex; }
.footer-cols { grid-area: cols; }
.footer-socials { grid-area: socials; }

.footer-logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-title {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
}

.footer-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(249, 238, 223, 0.78);
}

.footer-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249, 238, 223, 0.25);
  border-radius: 50%;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.footer-socials a:hover {
  border-color: rgba(249, 238, 223, 0.6);
  background: rgba(249, 238, 223, 0.06);
}

.footer-socials img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-rights {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(249, 238, 223, 0.12);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(249, 238, 223, 0.5);
  text-align: center;
}

/* Phone/tablet: logo + socials on one row, address and hours side by side */
@media (max-width: 900px) {
  .site-footer {
    padding: 32px 24px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand socials"
      "cols  cols";
    gap: 24px 16px;
  }

  .footer-logo {
    height: 32px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(249, 238, 223, 0.12);
  }

  .footer-text {
    font-size: 13px;
  }

  .footer-rights {
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
    padding-right: 64px; /* keep clear of the WhatsApp button */
    text-align: left;
    font-size: 10px;
  }
}

/* =========================
   WHATSAPP FLOAT
   ========================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background-color: var(--text);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249, 238, 223, 0.28);
  box-shadow: 0 10px 30px rgba(46, 26, 18, 0.25);
  z-index: 100000;
  transition: background 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
  background-color: var(--merlot);
  transform: translateY(-2px);
}

.whatsapp-float svg,
.whatsapp-float img {
  width: 24px;
  height: 24px;
}

.wa-tooltip {
  position: absolute;
  right: 66px;
  background: var(--text);
  color: var(--cream);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .section-head {
    margin-bottom: 48px;
  }

  .section-title {
    font-size: 42px;
  }

  .location-cta {
    padding: 88px 24px;
  }

  .cta-content h2 {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 32px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .wa-tooltip {
    display: none;
  }
}

