/* =====================================================================
   OLIVIA & CO. — SITE STYLES
   ---------------------------------------------------------------------
   Sections in this file:
     1. Colors & sizes   ← change the look of the whole site here
     2. Basics (text, links, page width)
     3. Header & footer
     4. Shared pieces (headings, ornaments, cards, buttons)
     5. Home page (availability, appointment steps, policies)
     6. Services page
     7. About page
     8. Booking page
     9. Phone & tablet adjustments
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. COLORS & SIZES
   Change a color here and it updates everywhere it's used.
   (The booking calendar picks up --paper, --ink and --gold too.)
   --------------------------------------------------------------------- */
:root {
  --cream: #faf6f1;      /* page background */
  --paper: #ffffff;      /* cards / boxes */
  --ink: #2a2420;        /* main text, dark buttons */
  --text-soft: #594d45;  /* body text inside cards */
  --muted: #7a6e66;      /* lighter gray-brown text */
  --gold: #b08d57;       /* ornaments, accents */
  --gold-soft: #e9dcc6;  /* soft gold lines and highlights */
  --accent: #a47b66;     /* rose-brown: hours and numbered steps */
  --line: #e7ddd1;       /* thin borders */
  --radius: 14px;        /* roundness of card corners */
}


/* ---------------------------------------------------------------------
   2. BASICS
   --------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--cream);
  color: var(--ink);
}

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

/* Headings use the elegant serif font */
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.1; letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h3 { font-size: 1.45rem; }

/* Keeps content centered with space on the sides */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }


/* ---------------------------------------------------------------------
   3. HEADER & FOOTER  (added to every page by site.js)
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;              /* stays at the top while scrolling */
  top: 0;
  z-index: 10;
  background: rgba(250, 246, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  letter-spacing: .03em;
  text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; gap: 22px; }
.nav a {
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a.active { color: var(--ink); border-bottom-color: var(--gold); }

.site-footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 48px 20px 28px;
}
.site-footer p { margin: 6px 0; font-size: .95rem; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer .first { font-style: italic; color: var(--gold-soft); margin-bottom: 12px; }
.site-footer small { display: block; margin-top: 26px; color: #a89c92; font-size: .8rem; }


/* ---------------------------------------------------------------------
   4. SHARED PIECES
   --------------------------------------------------------------------- */

/* Big title area at the top of each page */
.hero { text-align: center; padding: 72px 0 24px; }

/* Decorative symbol with a line on each side, e.g.  ——— ❧ ——— */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto;
  color: var(--gold);
  font-size: 1.3rem;
}
.ornament::before,
.ornament::after { content: ""; width: 70px; height: 1px; background: var(--gold-soft); }

.section { padding: 32px 0 56px; }
.lead { max-width: 620px; margin: 0 auto 36px; text-align: center; color: var(--muted); }

/* Cards: white boxes with a thin border */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.card .icon { color: var(--gold); font-size: 1.3rem; margin-bottom: 6px; }
.card h3 { margin-bottom: 12px; }
.card p + p { margin-top: 10px; }
.card ul { padding-left: 18px; }
.card li + li { margin-top: 8px; }

/* Cards with a centered button at the bottom (home page links) */
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feature p { flex: 1; margin-bottom: 20px; color: var(--muted); }

/* Buttons: dark pill by default, outlined with class="btn outline" */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--cream); }
.btn-full { width: 100%; }

/* "Ready to book?" block near the bottom of pages */
.cta { text-align: center; padding: 20px 0 64px; }
.cta p { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; margin-bottom: 18px; }


/* ---------------------------------------------------------------------
   5. HOME PAGE
   --------------------------------------------------------------------- */
.policy-intro {
  max-width: 620px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

#Policies .card { margin-bottom: 12px; }

/* Availability card */
.availability-card { text-align: center; }
.availability-card .ornament { margin: 12px auto 20px; }
.availability-group { padding: 14px 0; }
.availability-group h4 {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Jost", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
}
.availability-group p {
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  line-height: 1.3;
}
.availability-divider { width: 75%; margin: 12px auto; border: none; border-top: 1px solid var(--line); }

/* "Before Your Appointment" card with numbered steps */
#Policies .prep-card { margin-top: 12px; margin-bottom: 24px; padding: 32px; }

.prep-heading,
.policy-heading { display: flex; align-items: center; }
.prep-heading { justify-content: center; gap: 10px; margin-bottom: 28px; }
.prep-heading h3 { margin-bottom: 0; font-size: 30px; line-height: 1.2; }
.prep-heading .icon,
.policy-heading .icon { margin-bottom: 0; line-height: 1; }

.card .prep-list { list-style: none; counter-reset: step; padding: 0; }   /* numbers count up automatically */
.prep-list li {
  position: relative;
  counter-increment: step;
  padding-left: 52px;
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}
.prep-list li:last-child { margin-bottom: 0; }
.prep-list li::before {                                            /* the round number badge */
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.prep-list strong { font-weight: 600; }

/* Four policy cards in two columns */
/* Booking policy cards in two columns */
.booking-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#Policies .booking-policy-grid .card { margin-bottom: 0; }
.booking-policy-card { padding: 30px; }

/* Center the final Appointment Location card */
.booking-policy-grid > .booking-policy-card:last-child {
  grid-column: 1 / -1;
  width: calc((100% - 20px) / 2);
  justify-self: center;
}
.policy-heading { gap: 12px; margin-bottom: 18px; }
.policy-heading .icon { font-size: 22px; }
.policy-heading h3 { margin-bottom: 0; font-size: 29px; line-height: 1.2; }
.booking-policy-card p { color: var(--text-soft); font-size: 16px; line-height: 1.75; }
.booking-policy-card p + p { margin-top: 14px; }
.booking-policy-card strong { color: var(--ink); font-weight: 600; }

.thanks {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-style: italic;
}

/* "My Services" and "Ready to Book?" cards */
.homepage-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }


/* ---------------------------------------------------------------------
   6. SERVICES PAGE
   --------------------------------------------------------------------- */

/* Dropdown categories (the animation itself is in OS_Services.html) */
.category {
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.category summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  transition: background .25s;
}
.category summary:hover { background: var(--cream); }
.category summary::-webkit-details-marker { display: none; }
.category summary .sym { margin-right: 10px; color: var(--gold); }

/* The + in the corner turns into × when open */
.category summary::after {
  content: "+";
  color: var(--gold);
  font-family: "Jost", sans-serif;
  font-size: 1.5rem;
  transition: transform .38s cubic-bezier(.25, .8, .25, 1);
}
.category[open] summary::after { transform: rotate(45deg); }
.category.closing summary::after { transform: rotate(0deg); }

.cat-body { padding: 0 24px 22px; overflow: hidden; }

.style-group { padding: 16px 0; border-top: 1px solid var(--line); }
.style-head h4 { font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-weight: 600; }

/* "Recommended Hair" box */
.hair-info {
  margin: 16px 0 22px;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.hair-info p { margin: 0 0 12px; color: var(--text-soft); font-size: 15px; line-height: 1.7; }
.hair-info p:last-child { margin-bottom: 0; }
.hair-info strong { color: var(--ink); font-weight: 600; }
.hair-info .hair-note { color: var(--muted); font-size: 14px; }

/* One size line:   Name ............ $165    Est. 8–10 hrs */
.size-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 135px;
  gap: 4px 16px;
  align-items: center;
  margin-top: 8px;
  padding: 10px 0 10px 14px;
  border-left: 2px solid var(--gold-soft);
}
.size-row .name  { grid-area: 1 / 1; font-weight: 500; }
.size-row .price { grid-area: 1 / 2; font-weight: 500; text-align: right; white-space: nowrap; }
.size-row .time  { grid-area: 1 / 3; color: var(--muted); font-size: .88rem; text-align: right; white-space: nowrap; }
.size-row .desc  { grid-area: 2 / 1; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.note { margin-top: 20px; text-align: center; color: var(--muted); font-size: .9rem; }


/* ---------------------------------------------------------------------
   7. ABOUT PAGE
   --------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--gold-soft); }
.about blockquote {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-style: italic;
}


/* ---------------------------------------------------------------------
   8. BOOKING PAGE
   --------------------------------------------------------------------- */
.form { max-width: 640px; margin: 0 auto; }

/* Section titles inside the form ("✾ Your Service", "✾ Your Details"...) */
.form-step { margin: 8px 0 18px; }
.form-step:not(:first-child) { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }

/* Inputs and dropdowns */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); }
.field select:disabled { opacity: .55; }
.field-hint { margin-top: 8px; color: var(--muted); font-size: .85rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }   /* two fields side by side */

/* Add-on checkboxes */
.addon-list { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; }
.field label.addon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--ink);
  font-size: .95rem;
  letter-spacing: 0;
  text-transform: none;
}
.addon + .addon { border-top: 1px solid var(--line); }
.addon input { flex: none; width: 17px; height: 17px; accent-color: var(--ink); }
.addon-name { flex: 1; }
.addon-price { color: var(--muted); font-size: .9rem; }

/* Price summary box */
.booking-summary {
  margin: 34px 0 24px;
  padding: 4px 24px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.booking-summary .form-step { margin-top: 0; padding-top: 18px; border-top: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.summary-row > :last-child { white-space: nowrap; }
.summary-divider { margin: 16px 0; border: 0; border-top: 1px solid var(--line); }
.summary-total { font-family: "Cormorant Garamond", serif; font-size: 1.45rem; font-weight: 600; }
.summary-note { margin-top: 12px; color: var(--muted); font-size: .85rem; line-height: 1.7; }

/* "I agree to the policies" checkbox */
.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.check input { margin-top: 5px; accent-color: var(--ink); }

.form-msg { margin-top: 16px; text-align: center; color: var(--muted); font-size: .92rem; }
.form-msg .btn { margin-top: 4px; }

/* Calendly calendar box and the "You're booked!" message */
.calendly-box {
  min-width: 280px;
  height: 720px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.booking-done {
  margin-top: 20px;
  padding: 28px 20px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.booking-done h3 { margin-bottom: 10px; }
.booking-done p { margin-bottom: 14px; color: var(--muted); }


/* ---------------------------------------------------------------------
   9. PHONE & TABLET ADJUSTMENTS
   --------------------------------------------------------------------- */

/* Tablets and phones (720px wide or less) */
@media (max-width: 720px) {
  .site-header .wrap { justify-content: center; }
  .nav { gap: 16px; justify-content: center; }
  .booking-policy-grid > .booking-policy-card:last-child {
  width: 100%;
}

  .booking-policy-grid,
  .homepage-links,
  .about,
  .row-2 { grid-template-columns: 1fr; }          /* stack into one column */
  .homepage-links { gap: 16px; }

  #Policies .prep-card,
  .booking-policy-card { padding: 24px 20px; }
  .prep-heading h3,
  .policy-heading h3 { font-size: 25px; }
  .prep-list li,
  .booking-policy-card p { font-size: 15px; }
}

/* Phones (600px wide or less) */
@media (max-width: 600px) {
  .size-row { grid-template-columns: minmax(0, 1fr) 75px 110px; column-gap: 8px; }
  .size-row .time { font-size: 12px; }

  .booking-summary { padding: 4px 16px 18px; }
  .calendly-box { height: 1000px; margin-left: -10px; margin-right: -10px; }
}

/* Small phones (480px wide or less) */
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }

  .booking-policy-grid { gap: 14px; }
  #Policies .prep-card,
  #Policies .booking-policy-grid .card { padding: 22px 18px; }
  .prep-heading h3,
  .policy-heading h3 { font-size: 24px; }
  .prep-list li,
  .booking-policy-card p { font-size: 15px; line-height: 1.7; }
  .prep-list li { padding-left: 44px; margin-bottom: 18px; }
  .prep-list li::before { width: 30px; height: 30px; font-size: 14px; }
}
[hidden] {
  display: none !important;
}