:root {
  --bg: #0f0f10;
  --bg-soft: #171719;
  --panel: rgba(255, 255, 255, 0.06);
  --text: #f5f1ea;
  --muted: #cbbca6;
  --accent: #d5b06a;
  --accent-2: #8f6a31;
  --border: rgba(213, 176, 106, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: min(100vh, 100dvh);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(213, 176, 106, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
}

main,
.page-wrapper {
  width: 100%;
  max-width: none;
}

.clickable-contact-item {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clickable-contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(213, 176, 106, 0.07);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(15, 15, 16, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* LOGO (UPDATED) */
.logo,
.hero h1,
.intro h2,
.feature-card h3,
.card h3 {
   font-family: "Anton", sans-serif;
   letter-spacing: 0.05em;
   text-transform: uppercase;
   text-shadow: 0 4px 20px rgba(0,0,0,0.6);
   font-size: larger;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 64px; /* 🔥 adjust this to resize logo */
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* NAV */
.nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.nav a,
.cart-link {
  color: rgba(245, 241, 234, 0.86);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

/* ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: linear-gradient(135deg, var(--accent), #f0d3a0);
  color: #151515;
  box-shadow: var(--shadow);
}

.btn-outline,
.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* HERO */
.hero {
  position: relative;
  min-height: min(90dvh, 90vh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.home-hero .hero-image {
  z-index: 0;
  filter: brightness(1.2) saturate(1.05);
  object-position: right center;
}

.home-hero .hero-reveal {
  z-index: 1;
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}

.home-hero .hero-reveal-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-image: url("assets/logo.png");
  background-repeat: no-repeat;
  background-size: 200% 100%;
  will-change: transform, opacity;
}

.home-hero .hero-reveal-left {
  left: 0;
  background-position: left center;
  animation: heroWipeLeft 3.35s cubic-bezier(0.72, 0, 0.22, 1) 1.35s forwards;
}

.home-hero .hero-reveal-right {
  right: 0;
  background-position: right center;
  animation: heroWipeRight 3.35s cubic-bezier(0.72, 0, 0.22, 1) 1.35s forwards;
}

.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.18), rgba(10, 10, 10, 0.62)),
    linear-gradient(to right, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.04));
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 7rem 0 5rem;
  max-width: 720px;
  margin-right: auto;
}

.home-hero .hero-content .eyebrow,
.home-hero .hero-content h1,
.home-hero .hero-content .hero-copy,
.home-hero .hero-content .hero-actions {
  opacity: 0;
  transform: translateY(22px);
  animation: heroContentIn 0.8s ease forwards;
}

.home-hero .hero-content .eyebrow {
  animation-delay: 0s;
}

.home-hero .hero-content h1 {
  animation-delay: 0s;
}

.home-hero .hero-content .hero-copy {
  animation-delay: 0s;
}

.home-hero .hero-content .hero-actions {
  animation-delay: 0s;
}

@keyframes heroWipeLeft {
  0% {
    opacity: 1;
    width: 50%;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    width: 0;
  }
}

@keyframes heroWipeRight {
  0% {
    opacity: 1;
    width: 50%;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    width: 0;
  }
}

@keyframes heroContentIn {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 0.92;
  margin: 0;
}

.hero-copy {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 34rem;
  color: rgba(245, 241, 234, 0.9);
  margin: 1.25rem 0 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* SECTIONS */
.section {
  padding: 5rem 0;
}

.intro-grid,
.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.intro-grid {
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
}

.intro h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
  margin: 0 0 1rem;
}

.intro p,
.feature-card p,
.card li {
  color: rgba(245, 241, 234, 0.78);
  line-height: 1.75;
}

/* CARDS */
.card,
.feature-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.5rem;
}

.card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

/* FEATURES */
.features {
  padding-top: 0;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  padding: 1.75rem;
}

.feature-card h3 {
  font-size: 2rem;
  margin: 0 0 0.8rem;
}

.feature-card a,
.site-footer a {
  color: var(--accent);
  font-weight: 600;
}

/* FOOTER */
.site-footer {
  padding: 2rem 0 3rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  color: rgba(245, 241, 234, 0.72);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-wrap,
  .nav,
  .nav-actions,
  .footer-wrap {
    flex-wrap: wrap;
  }

  .intro-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 5rem;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    padding: 0.8rem 0;
  }

  .logo img {
    height: 48px; /* smaller logo on mobile */
  }

  .hero {
    min-height: min(78dvh, 78vh);
  }

  .section {
    padding: 4rem 0;
  }
}

.appointments-hero h1 {
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.appointments-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.appointments-main h2,
.appointments-sidebar h3 {
  margin-top: 0;
}

.appointment-form {
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.appointments-sidebar {
  display: grid;
  gap: 1rem;
}

@media (max-width: 900px) {
  .appointments-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group input[type="file"] {
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  border-radius: 14px;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  background: var(--accent);
  color: #151515;
  border: none;
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.form-group small {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
/* BOOKING MONTHS TAB */
.booking-months-list {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.booking-month-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.12);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.booking-month-row:hover {
  transform: translateY(-1px);
  border-color: rgba(212,175,55,0.32);
  background: rgba(212,175,55,0.05);
}

.booking-month-info {
  display: grid;
  gap: 4px;
}

.booking-month-info strong {
  color: var(--text);
  font-size: 1rem;
}

.booking-month-info small {
  color: var(--muted);
  font-size: 0.82rem;
}

.booking-month-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 86px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(212,175,55,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

.booking-month-row.is-open .booking-month-status {
  background: rgba(59,178,115,0.14);
  color: #b8f0d0;
  border-color: rgba(59,178,115,0.2);
}

.booking-month-row.is-closed .booking-month-status {
  background: rgba(210,87,87,0.14);
  color: #f3c3c3;
  border-color: rgba(210,87,87,0.2);
}

.booking-month-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.booking-month-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-month-switch {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(255,255,255,0.06);
  transition: background 160ms ease, border-color 160ms ease;
}

.booking-month-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.booking-month-toggle:checked + .booking-month-switch {
  background: rgba(212,175,55,0.18);
  border-color: rgba(212,175,55,0.42);
}

.booking-month-toggle:checked + .booking-month-switch::before {
  transform: translateX(24px);
  background: var(--gold);
  box-shadow: 0 0 14px rgba(212,175,55,0.45);
}

.booking-month-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.booking-months-help {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.12);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .booking-month-row {
    grid-template-columns: 1fr;
  }

  .booking-month-toggle-wrap {
    justify-content: space-between;
  }

  .booking-month-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
/* Dropdown styling */
.form-group select {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Dropdown options (inside the menu) */
.form-group select option {
  background-color: var(--bg-soft);
  color: var(--text);
}

.date-error {
  margin-top: 0.5rem;
  color: #ff8f8f;
  font-size: 0.95rem;
}

.date-error {
  margin-top: 0.5rem;
  color: #ff8f8f;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.invalid-date {
  border-color: #ff5f5f !important;
  box-shadow: 0 0 0 3px rgba(255, 95, 95, 0.15);
  animation: shakeField 0.35s ease;
}

@keyframes shakeField {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

/* CAROUSEL */
.about-carousel-section {
  padding: 3rem 0 !important;
}

.about-carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.about-carousel-head h2 {
  font-size: 1.8rem;
  margin: 0;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.about-carousel {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2rem;
  align-items: start;
}

.about-carousel-frame {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-carousel-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.about-carousel-copy strong {
  font-size: 1.3rem;
  color: var(--text);
}

.about-carousel-copy p {
  color: rgba(245, 241, 234, 0.75);
  line-height: 1.6;
  margin: 0;
}

.carousel-dots {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ABOUT PAGE */
.about-page {
  background-image: url("assets/background.png") !important;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* APPOINTMENTS PAGE */
.appointments-page {
  background-image: url("assets/background.png") !important;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
}

.contact-item span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.contact-item a,
.contact-item strong {
  color: var(--text);
}

.contact-item.full {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.booking-months-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.booking-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.14);
  background: rgba(255,255,255,0.025);
}

.booking-month-row span {
  font-weight: 700;
}

.booking-month-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.booking-month-toggle {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
  cursor: pointer;
}

@media (max-width: 900px) {
  .booking-months-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .booking-months-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .appointments-page .appointment-form {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .appointments-page .form-row {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 14px;
  }

  .appointments-page .form-group {
    width: 100%;
    min-width: 0;
  }

  .appointments-page .form-group input,
  .appointments-page .form-group select,
  .appointments-page .form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .appointments-page input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
    padding: 13px 14px;
  }
}

/* HARD MOBILE FIX: appointment date fields overflowing */
@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .appointments-page,
  .appointments-page main,
  .appointments-page .section,
  .appointments-page .container,
  .appointments-page .appointments-grid,
  .appointments-page .appointments-main,
  .appointments-page .appointment-form,
  .appointments-page .form-row,
  .appointments-page .form-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .appointments-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .appointments-page .appointments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .appointments-page .appointments-main.card,
  .appointments-page .appointments-sidebar .card {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .appointments-page .form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
  }

  .appointments-page .form-group {
    display: grid;
  }

  .appointments-page input,
  .appointments-page select,
  .appointments-page textarea {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .appointments-page input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 16px;
    line-height: 1.2;
    padding: 13px 12px;
  }

  .appointments-page input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.2em;
  }

  .appointments-page input[type="date"]::-webkit-calendar-picker-indicator {
    margin-right: 0;
    padding: 0;
  }
}

/* FINAL MOBILE CLAMP: keep native date controls inside the card */
@media (max-width: 700px) {
  .appointments-page .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  .appointments-page .appointments-main.card {
    width: 100% !important;
    max-width: calc(100vw - 24px) !important;
    padding-left: 14px;
    padding-right: 14px;
    overflow: hidden;
  }

  .appointments-page .appointment-form,
  .appointments-page .form-row,
  .appointments-page .form-group {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
  }

  .appointments-page .form-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .appointments-page .form-group input,
  .appointments-page .form-group select,
  .appointments-page .form-group textarea,
  .appointments-page input[type="date"] {
    inline-size: min(100%, calc(100vw - 52px)) !important;
    max-inline-size: min(100%, calc(100vw - 52px)) !important;
    min-inline-size: 0 !important;
    justify-self: stretch;
  }

  .appointments-page input[type="date"]::-webkit-datetime-edit,
  .appointments-page input[type="date"]::-webkit-date-and-time-value {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
}
