/* ============================================
   AESTHETICS CLINIC — SHARED STYLESHEET
   Tone: Friendly Luxury | Green & White
   Font: DM Sans + Playfair Display
============================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap");

/* ---- CSS Variables ---- */
:root {
  --green-900: #0d3320;
  --green-800: #155534;
  --green-700: #1a6b42;
  --green-600: #228150;
  --green-500: #2a9d6f;
  --green-400: #4db88a;
  --green-300: #7ecfac;
  --green-200: #b6e8d3;
  --green-100: #e0f5ec;
  --green-50: #f2fbf7;

  --gold: #c9a84c;
  --gold-light: #f0d98b;

  --white: #ffffff;
  --off-white: #fafbf9;
  --gray-100: #f4f5f3;
  --gray-200: #e8ebe6;
  --gray-400: #9ba89a;
  --gray-600: #5a6659;
  --gray-800: #2c3329;
  --text: #1e2a1d;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(13, 51, 32, 0.07);
  --shadow-md: 0 6px 24px rgba(13, 51, 32, 0.1);
  --shadow-lg: 0 16px 48px rgba(13, 51, 32, 0.13);

  --transition: 0.25s ease;
  --max-width: 1160px;

  --header-h: 68px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Lato", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
input,
select,
textarea {
  font-family: inherit;
}

/* ---- Typography ---- */
.display {
  font-family: "Playfair Display", serif;
}
h1,
h2 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
}
h3,
h4 {
  line-height: 1.3;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--green-900);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: 72px 0;
}
.section-head {
  margin-bottom: 40px;
}
.section-head.centered {
  text-align: center;
}
.section-head.centered .section-sub {
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  min-height: 48px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(34, 129, 80, 0.28);
}
.btn-primary:hover {
  background: var(--green-700);
  box-shadow: 0 6px 22px rgba(34, 129, 80, 0.38);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--white);
  color: var(--green-700);
  border: 2px solid var(--green-300);
}
.btn-secondary:hover {
  background: var(--green-50);
  border-color: var(--green-500);
}
.btn-ghost {
  background: transparent;
  color: var(--green-700);
  padding: 12px 20px;
}
.btn-ghost:hover {
  background: var(--green-50);
}
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-whatsapp:hover {
  background: #1fba59;
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}
.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
  min-height: 40px;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  min-height: 54px;
}
.btn-full {
  width: 100%;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: var(--green-900);
  font-weight: 700;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green-600);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green-700);
  background: var(--green-50);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-toggle:hover {
  background: var(--gray-100);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  z-index: 999;
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-nav a:hover {
  background: var(--green-50);
  color: var(--green-700);
}
.mobile-nav .btn {
  margin-top: 8px;
}

/* ---- Floating WhatsApp ---- */
.floating-wa {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  text-decoration: none;
}
.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ---- Bottom Mobile Bar ---- */
.mobile-bar {
  height: 56px;
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: 6px 8px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}
.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 56px;
  justify-content: center;
}
.mobile-bar-btn.call {
  color: var(--green-700);
  background: var(--green-50);
}
.mobile-bar-btn.wa {
  color: white;
  background: #25d366;
}
.mobile-bar-btn.book {
  color: white;
  background: var(--green-600);
}
.mobile-bar-btn .icon {
  font-size: 1.3rem;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--green-100);
}
.card-body {
  padding: 20px;
}

/* ---- Tags / Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green {
  background: var(--green-100);
  color: var(--green-700);
}
.badge-gold {
  background: #fef6e0;
  color: #9a6b1a;
}

/* ---- Grid helpers ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---- Horizontal scroll row ---- */
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar {
  display: none;
}
.scroll-row > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  color: white;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: var(--green-300);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
  color: white;
}
.social-link:hover {
  background: var(--green-500);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.footer-contact-item .fi {
  color: var(--green-300);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Forms ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}
.form-label .req {
  color: #e05252;
  margin-left: 2px;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  min-height: 48px;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(42, 157, 111, 0.12);
}
.form-control::placeholder {
  color: var(--gray-400);
}
.form-control.error {
  border-color: #e05252;
}
.form-error {
  font-size: 0.8rem;
  color: #e05252;
  margin-top: 4px;
  display: none;
}
.form-control.error + .form-error {
  display: block;
}
.form-grid {
  grid-template-columns: 1fr 1fr;
  display: grid;
  gap: 20px;
}

/* ---- Page hero (sub pages) ---- */
.page-hero {
  padding: 120px 0 72px;
  background: linear-gradient(
    135deg,
    var(--green-900) 0%,
    var(--green-700) 60%,
    var(--green-500) 100%
  );
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container {
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: white;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Highlight chip ---- */
.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 20px;
}

/* ---- Map ---- */
.map-embed {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  aspect-ratio: 16/7;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Utility */
.text-center {
  text-align: center;
}
.text-white {
  color: white;
}
.mt-4 {
  margin-top: 16px;
}
.mt-6 {
  margin-top: 24px;
}
.mt-8 {
  margin-top: 32px;
}
.mb-4 {
  margin-bottom: 16px;
}
.pt-0 {
  padding-top: 0;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.gap-3 {
  gap: 12px;
}
.flex-wrap {
  flex-wrap: wrap;
}
.inline-block {
  display: inline-block;
}
.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-600);
  transition: gap var(--transition);
}
.view-more-link:hover {
  gap: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  section {
    padding: 56px 0;
  }
  .container {
    padding: 0 16px;
  }
  .mobile-bar {
    display: grid;
  }
  .floating-wa {
    bottom: 88px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .animate {
    opacity: 1 !important;
    transform: none !important;
  }

  .animate.visible {
    opacity: 1 !important;
    transform: none !important;
  }
}
#bookingForm button[type="submit"] {
  grid-column: 1 / -1;
  margin-top: 24px;
}

/* Image placeholder style */
.img-placeholder {
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-400);
  font-size: 2.5rem;
}
.treatment-card-img {
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.treatment-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.form-stage {
  display: none;
}
.form-stage.active {
  display: block;
}
.align-fix {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.align-fix .btn {
  flex-shrink: 0;
}
.form-actions {
  grid-column: 1 / -1;
  margin-top: 24px;
}
