/*
Theme Name: Primordia Massage
Author: Primordia Massage
Description: Classic theme for Primordia Massage — deep tissue, sports and myofascial release massage in Melbourne's inner north.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primordia
*/

:root {
    --cream: #f7f2ea;
    --sand: #efe6d9;
    --card: #fbf8f3;
    --ink: #2f362e;
    --olive: #48583f;
    --olive-deep: #38452f;
    --clay: #b0775a;
    --muted: #6c746a;
    --line: rgba(47, 54, 46, 0.14);
    --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
    --sans: "Karla", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, blockquote {
    font-family: var(--serif);
    font-weight: 300;
    font-optical-sizing: auto;
    margin: 0;
  }
  p { margin: 0; }
  a { color: inherit; }
  img, svg { display: block; max-width: 100%; }

  .container { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clay);
    font-weight: 500;
  }
  .eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  }
  .btn-primary { background: var(--olive); color: #f8f4ec; }
  .btn-primary:hover { background: var(--olive-deep); transform: translateY(-1px); }
  .btn-ghost { color: var(--ink); border-color: rgba(47, 54, 46, 0.26); }
  .btn-ghost:hover { background: rgba(47, 54, 46, 0.05); transform: translateY(-1px); }

  /* ---------- header ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 242, 234, 0.86);
    backdrop-filter: blur(14px) saturate(120%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
  }
  .site-header.scrolled { border-bottom-color: var(--line); }

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

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--serif);
    text-decoration: none;
    color: var(--ink);
    line-height: 1;
  }
  .brand-mark {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: none;
  }
  .brand-text { display: flex; flex-direction: column; gap: 3px; }
  .brand-name {
    font-size: 1.1rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .brand-sub {
    font-family: var(--sans);
    font-size: 0.52rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--clay);
  }

  .nav-links { display: flex; align-items: center; gap: 2rem; }
  .nav-links a {
    font-size: 0.88rem;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease;
  }
  .nav-links a:hover { color: var(--ink); }

  .nav .btn { padding: 0.68rem 1.35rem; font-size: 0.84rem; }
  /* the button inside the menu is for the mobile drawer only */
  .nav-links .btn { display: none; }

  .nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--ink);
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    margin: 5px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* ---------- hero ---------- */
  .hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem); }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    column-gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: clamp(1.75rem, 4vw, 2.6rem);
    align-items: start;
  }
  .hero-title,
  .hero-copy { min-width: 0; }

  .hero h1 {
    font-size: clamp(2.35rem, 4.75vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 1.3rem 0 0;
  }
  .hero h1 em { font-style: italic; color: var(--olive); }

  .hero .lede {
    max-width: 44ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.9rem 0 0; }

  .hero-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 2rem;
    margin-top: 0.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted);
  }
  .hero-meta span { display: flex; align-items: center; gap: 0.45rem; }
  .hero-meta span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--clay);
    opacity: 0.7;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    margin: 0 0 1.4rem;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    color: var(--ink);
  }
  .hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7ba36a;
    box-shadow: 0 0 0 4px rgba(123, 163, 106, 0.18);
  }

  /* ---------- sections ---------- */
  section { scroll-margin-top: 96px; }

  .section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
  .section-head { max-width: 60ch; margin-bottom: 2.75rem; }
  .section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin: 1rem 0 1rem;
    letter-spacing: -0.01em;
  }
  .section-head p { color: var(--muted); }

  .band { background: var(--sand); }

  /* ---------- services ---------- */
  .services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.15rem;
  }
  .service {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.75rem 1.6rem 1.55rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .service:hover {
    transform: translateY(-4px);
    border-color: rgba(72, 88, 63, 0.35);
    box-shadow: 0 26px 40px -32px rgba(47, 54, 46, 0.55);
  }
  .service h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
  .service p { color: var(--muted); font-size: 0.93rem; line-height: 1.68; flex: 1; }
  .service-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
  }
  .service-foot .time {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .service-foot .book {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clay);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
  }
  .service-foot .book:hover { opacity: 0.65; }

  .note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 1.75rem;
    padding: 1.1rem 1.35rem;
    border-left: 2px solid var(--clay);
    background: rgba(176, 119, 90, 0.06);
    border-radius: 0 10px 10px 0;
    font-size: 0.88rem;
    color: var(--muted);
  }
  .note strong { color: var(--ink); font-weight: 600; }

  /* ---------- philosophy ---------- */
  .philosophy {
    background: var(--olive-deep);
    color: #eee9df;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    position: relative;
    overflow: hidden;
  }
  .philosophy::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(60% 70% at 50% 0%, rgba(176, 119, 90, 0.22), transparent 70%),
      radial-gradient(50% 60% at 10% 100%, rgba(216, 199, 173, 0.14), transparent 70%);
  }
  .philosophy .container { position: relative; }

  .about-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
  }

  .portrait {
    margin: 0;
    position: relative;
    border-radius: 200px 200px 18px 18px;
    overflow: hidden;
    box-shadow: 0 44px 70px -46px rgba(0, 0, 0, 0.75);
  }
  .portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 24%;
    transform: scale(1.16);
    transform-origin: 50% 32%;
    filter: saturate(0.95) contrast(1.02);
  }
  .portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 200px 200px 18px 18px;
    background: linear-gradient(205deg, rgba(56, 69, 47, 0.22) 0%, rgba(56, 69, 47, 0.02) 45%, rgba(176, 119, 90, 0.16) 100%);
    pointer-events: none;
  }

  .philosophy .eyebrow { color: #c9a488; }
  .philosophy blockquote {
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
    line-height: 1.26;
    font-style: italic;
    max-width: 24ch;
    margin: 1.4rem 0 1.4rem;
  }
  .philosophy p {
    color: rgba(238, 233, 223, 0.72);
    max-width: 46ch;
    font-size: 0.98rem;
    line-height: 1.8;
  }
  .signature {
    margin-top: 1.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(238, 233, 223, 0.6);
  }

  /* ---------- steps ---------- */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .step .num {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--clay);
    letter-spacing: 0.1em;
  }
  .step h3 { font-size: 1.22rem; margin: 0.65rem 0 0.6rem; }
  .step p { color: var(--muted); font-size: 0.94rem; line-height: 1.72; }
  .step::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: var(--line);
    margin-top: 1.75rem;
  }

  /* ---------- testimonials ---------- */
  .focus {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(1.5rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
  }
  .focus li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.14rem;
  }
  .focus li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clay);
    flex: none;
  }
  .focus-note {
    margin-top: 1.75rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--muted);
  }

  /* ---------- booking ---------- */
  .booking { background: var(--sand); }
  .booking-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
  .booking h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin: 1rem 0 1.1rem;
  }
  .booking-copy p { color: var(--muted); margin-bottom: 1.5rem; max-width: 40ch; }
  .details { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
  .details li { display: grid; gap: 0.15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .details .label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .details .value { font-size: 0.96rem; }
  .details .value a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(47, 54, 46, 0.22);
    padding-bottom: 1px;
    transition: border-color 0.2s ease, color 0.2s ease;
  }
  .details .value a:hover { color: var(--olive-deep); border-color: var(--olive-deep); }

  .booking-embed {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 0.4rem;
    overflow: hidden;
    box-shadow: 0 30px 50px -44px rgba(47, 54, 46, 0.6);
  }
  .booking-embed .calendly-inline-widget { border-radius: 16px; overflow: hidden; }
  .length-switch { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
  .length-btn {
    flex: 1;
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    padding: 0.65rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .length-btn:hover { border-color: var(--olive); color: var(--ink); }
  .length-btn.is-active { background: var(--olive); border-color: var(--olive); color: #f7f2ea; }
  .length-btn:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
  .embed-fallback { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; }
  .embed-fallback a { color: var(--olive-deep); }

  /* ---------- footer ---------- */
  .site-footer { background: var(--ink); color: rgba(247, 242, 234, 0.78); padding: 3.5rem 0 2rem; }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.85fr 0.85fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(247, 242, 234, 0.14);
  }
  .site-footer .brand { color: #f7f2ea; }
  .site-footer .brand-sub { color: #c9a488; }
  .site-footer .tagline { margin-top: 0.9rem; font-size: 0.9rem; max-width: 34ch; line-height: 1.7; }
  .footer-col h4 {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(247, 242, 234, 0.5);
    margin: 0 0 1rem;
    font-weight: 500;
  }
  .footer-col p, .footer-col a { font-size: 0.9rem; line-height: 1.9; text-decoration: none; color: inherit; overflow-wrap: anywhere; }
  .footer-col a:hover { color: #f7f2ea; }
  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.5rem;
    font-size: 0.78rem;
    color: rgba(247, 242, 234, 0.5);
  }
  .footer-bottom a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(247, 242, 234, 0.22); padding-bottom: 1px; }
  .footer-bottom a:hover { color: rgba(247, 242, 234, 0.85); border-bottom-color: rgba(247, 242, 234, 0.5); }

  /* ---------- reveal ---------- */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: none; }

  /* ---------- responsive ---------- */
  @media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; align-items: start; }
    .hero-meta { margin-top: 0; }
    .booking-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .portrait { max-width: 360px; }
    .steps { grid-template-columns: 1fr; gap: 1.75rem; }
    .focus { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 760px) {
    .nav-links {
      position: absolute;
      top: 78px;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      background: var(--cream);
      border-bottom: 1px solid var(--line);
      padding: 0 1.5rem;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, padding 0.35s ease;
    }
    .nav-links a { padding: 0.85rem 0; width: 100%; font-size: 0.95rem; }
    .nav-links .btn { display: inline-block; margin: 0.9rem 0 1.3rem; width: auto; text-align: center; }
    .nav-links.open { max-height: 340px; padding: 0.5rem 1.5rem 0; }
    .nav-toggle { display: block; }
    .nav > .btn { display: none; }
    .row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-bottom { flex-direction: column; gap: 0.35rem; }
    .container { width: calc(100% - 2.5rem); }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
  }
