/* ============================================================
   assets/css/style.css — Gracefully Guthrie Nails
   ============================================================

   Table of Contents
   -----------------
   1.  CSS Variables
   2.  Reset & Base
   3.  Typography helpers
   4.  Buttons
   5.  Nav
   6.  Hero
   7.  Section helpers
   8.  Travel section
   9.  Services section
   10. Booking section
   11. Sticky CTA
   12. Modal
   13. Footer
   14. Animations
   15. Responsive
   ============================================================ */


/* ── 1. CSS Variables ─────────────────────────────────────── */
:root {
    --cream:          #FAF6F0;
    --cream-dark:     #F2ECE3;
    --blush:          #E8B4BC;
    --blush-light:    #F5DDE0;
    --rose:           #9B3A5A;
    --rose-dark:      #7A2744;
    --lavender:       #C4B7D6;
    --lavender-soft:  #EAE4F2;
    --sage:           #8A9E7E;
    --sage-dark:      #6B7F61;
    --text:           #3D2E2E;
    --text-light:     #7A6060;
    --white:          #FFFFFF;

    --radius-sm:   10px;
    --radius-md:   16px;
    --radius-lg:   20px;
    --radius-pill: 50px;

    --shadow-sm:  0 2px 8px  rgba(61,46,46,0.08);
    --shadow-md:  0 4px 20px rgba(61,46,46,0.12);
    --shadow-lg:  0 8px 32px rgba(61,46,46,0.16);

    --transition: 0.2s ease;
}


/* ── 2. Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; }
ul   { list-style: none; }

:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 3px;
}


/* ── 3. Typography helpers ────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.2;
}

.script { font-family: 'Dancing Script', cursive; }

.section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text);
    margin-bottom: 1rem;
}

.section-intro {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 580px;
    margin-bottom: 3rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}


/* ── 4. Buttons ───────────────────────────────────────────── */
.btn-primary,
.btn-outline {
    display: inline-block;
    border-radius: var(--radius-pill);
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--rose);
    color: var(--white);
    border-color: var(--rose);
    padding: 0.85rem 2.2rem;
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--rose-dark);
    border-color: var(--rose-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--rose);
    border-color: var(--rose);
    padding: 0.85rem 2rem;
}
.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--rose);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-full { width: 100%; }


/* ── 5. Nav ───────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250,246,240,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--blush-light);
    padding: 0.8rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 1.55rem;
    color: var(--rose);
    text-decoration: none;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--rose); }

.nav-links .nav-cta {
    background: var(--rose);
    color: var(--white) !important;
    padding: 0.5rem 1.3rem;
    border-radius: var(--radius-pill);
    transition: background var(--transition);
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
    background: var(--rose-dark);
}

/* Hamburger — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rose);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── 6. Hero ──────────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

/* Decorative corner flower SVGs */
.hero-flowers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-flowers svg        { position: absolute; opacity: 0.38; }
.hero-flowers .fl-tl     { top: 56px;  left:  -10px; width: 300px; }
.hero-flowers .fl-tr     { top: 56px;  right: -10px; width: 300px; transform: scaleX(-1); }
.hero-flowers .fl-bl     { bottom: 0;  left:  -10px; width: 200px; transform: scaleY(-1); }
.hero-flowers .fl-br     { bottom: 0;  right: -10px; width: 200px; transform: scale(-1,-1); }

.hero-badge {
    display: inline-block;
    background: var(--lavender-soft);
    border: 1px solid var(--lavender);
    color: var(--rose-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.4rem 1.3rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
    animation: fadeDown 0.7s ease both;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 9vw, 6.5rem);
    color: var(--text);
    line-height: 1.08;
    margin-bottom: 0.4rem;
    animation: fadeDown 0.7s 0.1s ease both;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.95rem, 2vw, 1.35rem);
    color: var(--rose);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 1.4rem;
    animation: fadeDown 0.7s 0.18s ease both;
}

.hero-desc {
    max-width: 540px;
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    animation: fadeDown 0.7s 0.26s ease both;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeDown 0.7s 0.34s ease both;
}

.training-banner {
    background: linear-gradient(135deg, var(--lavender-soft), var(--blush-light));
    border: 1px dashed var(--lavender);
    border-radius: var(--radius-md);
    padding: 1.4rem 2rem;
    max-width: 580px;
    margin-top: 3rem;
    animation: fadeDown 0.7s 0.42s ease both;
}
.training-banner h2 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 0.4rem;
}
.training-banner p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-light);
}


/* ── 7. Section helpers ───────────────────────────────────── */
section {
    padding: 5.5rem 2rem;
}
section > .container > .section-intro { margin-top: 0; }


/* ── 8. Travel section ────────────────────────────────────── */
#travel { background: var(--cream-dark); }

.travel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.travel-points  { display: flex; flex-direction: column; gap: 1.6rem; }
.travel-point   { display: flex; gap: 1.2rem; align-items: flex-start; }

.travel-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--blush-light);
    border: 1px solid var(--blush);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.travel-text h3 { font-size: 1.15rem; color: var(--text); margin-bottom: 0.25rem; }
.travel-text p  { font-size: 0.9rem; color: var(--text-light); }

.coverage-box {
    background: linear-gradient(145deg, var(--blush-light), var(--lavender-soft));
    border: 1px solid var(--blush);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
}
.coverage-box h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--rose);
    margin-bottom: 0.6rem;
}
.coverage-box > p { font-size: 0.9rem; color: var(--text-light); }

.coverage-list { text-align: left; margin-top: 1rem; }
.coverage-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
    border-bottom: 1px dotted var(--blush);
}
.coverage-list li:last-child { border-bottom: none; }
.coverage-list li::before {
    content: '✿';
    color: var(--blush);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.coverage-cta {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px dashed var(--blush);
}
.coverage-cta p { font-size: 0.83rem; color: var(--text-light); margin-bottom: 0.8rem; }


/* ── 9. Services section ──────────────────────────────────── */
#services { background: var(--white); }

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Price card */
.price-card {
    background: var(--cream);
    border: 1px solid var(--blush-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.price-card h2 { font-size: 1.5rem; color: var(--rose); margin-bottom: 0.2rem; }

.card-divider {
    height: 1px;
    background: linear-gradient(to right, var(--blush), transparent);
    margin: 1rem 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.58rem 0;
    border-bottom: 1px dotted var(--blush-light);
    font-size: 0.95rem;
}
.price-list li:last-child { border-bottom: none; }

.service-name { color: var(--text); }
.service-sub  { font-size: 0.78rem; color: var(--text-light); display: block; }

.service-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rose);
    margin-left: 1rem;
    white-space: nowrap;
}

.price-note {
    margin-top: 1.2rem;
    background: var(--blush-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--rose-dark);
    text-align: center;
}

/* Hours card */
.hours-card {
    background: linear-gradient(145deg, var(--rose), var(--rose-dark));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: var(--white);
}
.hours-card h2 { font-size: 1.5rem; color: var(--white); }
.hours-card .card-divider { background: linear-gradient(to right, rgba(255,255,255,0.35), transparent); }

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day    { color: rgba(255,255,255,0.75); }
.hours-list .time   { color: var(--white); font-weight: 600; }
.hours-list .closed { color: var(--blush-light); }

.hours-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.65);
}

.hours-phone {
    margin-top: 1.5rem;
    text-align: center;
}
.hours-phone a {
    color: var(--blush-light);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.hours-phone a:hover { color: var(--white); }
.hours-phone p { font-size: 0.78rem; margin-top: 0.3rem; opacity: 0.65; }

.services-cta { text-align: center; margin-top: 2.5rem; }


/* ── 10. Booking section ──────────────────────────────────── */
#booking { background: var(--cream-dark); }

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Google Calendar placeholder */
#google-calendar-container {
    background: var(--white);
    border: 2px dashed var(--blush);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
}
#google-calendar-container .cal-icon   { font-size: 3rem; opacity: 0.3; }
#google-calendar-container h3          { font-size: 1.3rem; color: var(--text-light); }
#google-calendar-container p           { font-size: 0.85rem; color: var(--text-light); max-width: 280px; }
#google-calendar-container .dev-note   { font-size: 0.72rem; opacity: 0.45; font-style: italic; }

.calendar-fallback {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}
.calendar-fallback a { color: var(--rose); font-weight: 700; text-decoration: none; }

/* Callback form */
.callback-card {
    background: var(--white);
    border: 1px solid var(--blush-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.callback-card h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.1rem;
    color: var(--rose);
    margin-bottom: 0.2rem;
}
.callback-card > p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.6rem;
}

/* Form elements (shared by page form and modal) */
.form-group        { margin-bottom: 1.15rem; }
.form-group label  {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.38rem;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--blush-light);
    border-radius: var(--radius-sm);
    background: var(--cream);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--rose); }
.form-group input.is-invalid,
.form-group textarea.is-invalid { border-color: #C0392B; }
.form-group textarea { resize: vertical; min-height: 82px; }

.field-error {
    display: block;
    font-size: 0.78rem;
    color: #C0392B;
    margin-top: 0.28rem;
}

.consent-row {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.consent-row input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--rose);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}
.consent-row label {
    font-size: 0.82rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1.5;
}

/* Honeypot — visually hidden, accessible to no one */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* Alerts */
.alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}
.alert-success { background: #EDF7ED; border: 1px solid #B0D9B0; color: #2E7D32; }
.alert-error   { background: #FFF0F0; border: 1px solid #F0B0B0; color: #B00000; }
.alert ul      { padding-left: 1.2rem; margin-top: 0.3rem; }


/* ── 11. Sticky CTA ───────────────────────────────────────── */
#sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    display: none;
    animation: fadeUp 0.3s ease both;
}
#sticky-cta button {
    background: var(--rose);
    color: var(--white);
    border: none;
    padding: 0.95rem 1.9rem;
    border-radius: var(--radius-pill);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(155,58,90,0.4);
    transition: transform var(--transition), box-shadow var(--transition);
}
#sticky-cta button:hover { transform: translateY(-3px); box-shadow: 0 7px 28px rgba(155,58,90,0.5); }


/* ── 12. Modal ────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61,46,46,0.55);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.is-open          { opacity: 1; visibility: visible; }
.modal-overlay.is-open .modal   { transform: scale(1) translateY(0); }

.modal {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: scale(0.95) translateY(18px);
    transition: transform 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.3rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: color var(--transition);
}
.modal-close:hover { color: var(--rose); }
.modal h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--rose);
    margin-bottom: 0.2rem;
}
.modal .modal-sub { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1.5rem; }


/* ── 13. Footer ───────────────────────────────────────────── */
footer {
    background: var(--text);
    color: rgba(255,255,255,0.8);
    padding: 3.5rem 2rem 2rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}
.footer-logo {
    font-size: 2rem;
    color: var(--blush-light);
    text-decoration: none;
    display: block;
    margin-bottom: 0.7rem;
}
.footer-brand p { font-size: 0.85rem; opacity: 0.65; line-height: 1.75; }
.footer-insta   {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--blush-light);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-insta:hover { color: var(--white); }

.footer-col h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 1rem;
}
.footer-col li   { font-size: 0.85rem; padding: 0.22rem 0; opacity: 0.7; }
.footer-col a    { text-decoration: none; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-col a:hover { color: var(--blush-light); }

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.76rem;
    opacity: 0.45;
}


/* ── 14. Animations ───────────────────────────────────────── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── 15. Responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
    /* Nav: show hamburger, hide links by default */
    nav { padding: 0.8rem 1.3rem; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250,246,240,0.98);
        border-top: 1px solid var(--blush-light);
        padding: 1rem 1.5rem 1.5rem;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a  { display: block; padding: 0.6rem 0; }
    .nav-links .nav-cta {
        margin-top: 0.5rem;
        display: inline-block;
        padding: 0.5rem 1.3rem;
    }

    /* Layouts */
    .travel-grid,
    .services-grid,
    .booking-grid,
    .footer-inner { grid-template-columns: 1fr; }

    section { padding: 3.5rem 1.3rem; }

    .hero-title { font-size: clamp(2.8rem, 13vw, 5rem); }

    #sticky-cta { bottom: 1.2rem; right: 1.2rem; }

    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-outline { width: 100%; max-width: 280px; }

    .callback-card,
    .price-card,
    .hours-card { padding: 1.8rem 1.4rem; }
}
