/* ===========================================================================
   Ayurveda with Vaidya Neha — site styles.
   Hand-rolled, no build step needed. Edit this file directly to tweak
   colours, spacing, or component looks. CSS variables at the top control
   the palette site-wide.
   =========================================================================== */

:root {
  /* Brand palette — pulled from the original site */
  --brand:        #8B6F47;
  --brand-dark:   #6F5836;
  --brand-light:  #A88A5F;
  --brand-cream:  #FBF7F0;
  --brand-surface:#F4EFE5;
  --brand-gold:   #B8843C;
  --brand-ink:    #2C1810;

  /* Layout */
  --page-max:     1200px;
  --radius:       16px;
  --radius-sm:    10px;

  /* Typography */
  --font-serif:   "Playfair Display", Georgia, serif;
  --font-sans:    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* --- Reset / baseline --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body  { margin: 0; font-family: var(--font-sans); color: var(--brand-ink); background: var(--brand-cream); line-height: 1.6; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); margin: 0 0 0.4em; line-height: 1.25; }
p     { margin: 0 0 1em; }

/* --- Layout ------------------------------------------------------------- */
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.section       { padding: 64px 0; }
.section--alt  { background: rgba(244, 239, 229, 0.5); }
.section--dark { background: var(--brand-dark); color: rgba(251, 247, 240, 0.9); }

.grid       { display: grid; gap: 24px; }
.grid-2     { grid-template-columns: 1fr; }
.grid-3     { grid-template-columns: 1fr; }
.grid-4     { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.text-center { text-align: center; }
.muted       { color: rgba(44, 24, 16, 0.65); }
.flex-between{ display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 32px; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background-color .2s, color .2s, transform .1s;
}
.btn:active     { transform: translateY(1px); }
.btn--primary   { background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline   { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--small     { padding: 8px 18px; font-size: 14px; }
.btn--block     { display: block; width: 100%; }

/* --- Top bar (brown band with email/phone/location) ------------------- */
.topbar { background: var(--brand); color: #fff; font-size: 14px; }
.topbar .container {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding-top: 10px; padding-bottom: 10px;
}
@media (min-width: 768px) {
  .topbar .container { flex-direction: row; justify-content: space-between; }
}
.topbar a { color: inherit; }
.topbar a:hover { color: var(--brand-cream); }
.topbar .item { display: inline-flex; align-items: center; gap: 8px; }
/* On phones the same info is in the mobile menu and the footer — don't stack a tall brown band on top of the header. */
@media (max-width: 640px) { .topbar { display: none; } }

/* --- Header / nav ------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.95);
  backdrop-filter: saturate(120%) blur(6px);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.header__logo { display: block; flex-shrink: 0; }
.header__logo img  { height: 64px; width: auto; display: block; max-width: 240px; object-fit: contain; }
@media (max-width: 640px) {
  .header__logo img { height: 48px; max-width: 200px; }
  .header .container { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
}
@media (max-width: 380px) {
  .header__logo img { height: 40px; max-width: 160px; }
}

.nav { display: none; gap: 28px; align-items: center; }
.nav a { color: var(--brand-ink); position: relative; padding: 8px 0; }
.nav a:hover, .nav a.is-active { color: var(--brand-gold); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--brand-gold);
}
@media (min-width: 1024px) { .nav { display: flex; } }

.nav-actions { display: none; gap: 12px; align-items: center; }
@media (min-width: 1024px) { .nav-actions { display: flex; } }

/* Services dropdown (hover) */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  margin-top: 8px; background: #fff; border: 1px solid rgba(139, 111, 71, .12);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.08);
  min-width: 240px; padding: 8px 0; opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.has-dropdown:hover .dropdown { opacity: 1; pointer-events: auto; }
.dropdown a { display: block; padding: 10px 20px; font-size: 14px; }
.dropdown a:hover { background: var(--brand-cream); color: var(--brand-gold); }

/* Mobile burger */
.burger { display: inline-flex; padding: 8px; background: transparent; border: 0; color: var(--brand-ink); }
@media (min-width: 1024px) { .burger { display: none; } }

.mobile-menu { display: none; border-top: 1px solid rgba(139, 111, 71, .1); background: var(--brand-cream); }
.mobile-menu.is-open { display: block; }
.mobile-menu nav { padding: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu nav .sub { padding-left: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  min-height: 60vh;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 36px;
}
.hero__cta {
  display: inline-block; max-width: 420px; width: calc(100% - 32px);
  background: var(--brand); color: #fff; text-align: center;
  padding: 16px 28px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transform: translateY(50%);
}
.hero__cta:hover { background: var(--brand-dark); }

/* --- Section eyebrow (small uppercase title with gold lines) ----------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: .3em; font-size: 13px;
  font-weight: 600; color: var(--brand-gold);
}
.eyebrow::before, .eyebrow::after {
  content: ""; height: 1px; width: 40px; background: rgba(184, 132, 60, .55);
}

.section-title { font-size: 32px; margin-top: 12px; color: var(--brand-ink); }
@media (min-width: 768px) { .section-title { font-size: 40px; } }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden; transition: box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.card__img  { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; text-align: center; }
.card__title { color: var(--brand-gold); font-size: 20px; margin-bottom: 8px; }
.card__text  { color: rgba(44, 24, 16, .8); flex: 1; }
.card__actions { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 20px; }
.card__readmore { color: var(--brand-gold); font-weight: 600; font-size: 14px; }
.card__readmore:hover { text-decoration: underline; }

/* --- Process steps ----------------------------------------------------- */
.step {
  background: #fff; border: 1px solid rgba(139, 111, 71, .1);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.step__num {
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--brand); color: #fff; display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 20px; margin-bottom: 16px;
}

/* --- Forms -------------------------------------------------------------- */
.form-card {
  background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 32px; max-width: 480px; margin: 0 auto;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px; font-size: 16px;
  border: 1px solid rgba(139, 111, 71, .2);
  border-radius: var(--radius-sm); background: #fff; color: var(--brand-ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(184, 132, 60, .15);
}
.field .hint { font-size: 12px; color: rgba(44, 24, 16, .55); margin-top: 4px; }
.field--row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field--row { grid-template-columns: 1fr 1fr; } }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 12px; }
.alert--error   { background: #FEE2E2; color: #991B1B; }
.alert--success { background: #DCFCE7; color: #166534; }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--brand-dark); color: rgba(251, 247, 240, .9); padding: 56px 0 0; margin-top: 64px; }
.footer h4 { color: #fff; font-size: 20px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--brand-gold); }
.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0;
  font-size: 12px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.footer__logo { background: rgba(255, 255, 255, .95); padding: 8px; border-radius: 6px; display: inline-block; }
.footer__logo img { height: 64px; width: auto; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .3);
}
.socials a:hover { background: var(--brand-gold); border-color: var(--brand-gold); color: #fff; }

/* --- Page hero (inner pages) ------------------------------------------- */
.page-hero {
  background: var(--brand-surface);
  border-bottom: 1px solid rgba(139, 111, 71, .1);
  padding: 56px 0; text-align: center;
}
@media (min-width: 768px) { .page-hero { padding: 80px 0; } }
.page-hero h1 { font-size: 36px; color: var(--brand-ink); margin-top: 16px; }
@media (min-width: 768px) { .page-hero h1 { font-size: 48px; } }

/* --- Tables (admin) ---------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid rgba(139, 111, 71, .1); vertical-align: top; }
.table thead { background: rgba(244, 239, 229, .6); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; text-transform: capitalize; }
.badge--pending   { background: #FEF3C7; color: #92400E; }
.badge--confirmed { background: #DCFCE7; color: #166534; }
.badge--cancelled { background: #FEE2E2; color: #991B1B; }

/* --- Utility ----------------------------------------------------------- */
.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;
}
