/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
    --white:       #ffffff;
    --off-white:   #f9f7f5;
    --cream:       #f4f0eb;
    --blue-1:      #ddeef8;
    --blue-2:      #b8d8f0;
    --blue-3:      #7ab8df;
    --blue-4:      #4a96c8;
    --blue-dark:   #2d6e96;
    --text:        #2a2a2a;
    --text-light:  #6b6b6b;
    --text-muted:  #a0a0a0;
    --border:      #e8e0d8;
    --shadow:      rgba(74, 150, 200, 0.12);
    --shadow-md:   rgba(74, 150, 200, 0.2);
    --radius:      12px;
    --radius-lg:   20px;
    --transition:  0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ─── FLORAL SVG PATTERN ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(184,216,240,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(184,216,240,0.14) 0%, transparent 45%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg opacity='0.07' fill='%234a96c8'%3E%3Ccircle cx='40' cy='40' r='4'/%3E%3Cellipse cx='40' cy='30' rx='5' ry='10'/%3E%3Cellipse cx='50' cy='40' rx='10' ry='5'/%3E%3Cellipse cx='40' cy='50' rx='5' ry='10'/%3E%3Cellipse cx='30' cy='40' rx='10' ry='5'/%3E%3Ccircle cx='140' cy='120' r='3'/%3E%3Cellipse cx='140' cy='111' rx='4' ry='9'/%3E%3Cellipse cx='149' cy='120' rx='9' ry='4'/%3E%3Cellipse cx='140' cy='129' rx='4' ry='9'/%3E%3Cellipse cx='131' cy='120' rx='9' ry='4'/%3E%3Ccircle cx='170' cy='30' r='2'/%3E%3Cellipse cx='170' cy='24' rx='3' ry='6'/%3E%3Cellipse cx='176' cy='30' rx='6' ry='3'/%3E%3Cellipse cx='170' cy='36' rx='3' ry='6'/%3E%3Cellipse cx='164' cy='30' rx='6' ry='3'/%3E%3Ccircle cx='80' cy='160' r='3'/%3E%3Cellipse cx='80' cy='152' rx='3' ry='8'/%3E%3Cellipse cx='88' cy='160' rx='8' ry='3'/%3E%3Cellipse cx='80' cy='168' rx='3' ry='8'/%3E%3Cellipse cx='72' cy='160' rx='8' ry='3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: auto, auto, 200px 200px;
    pointer-events: none;
    z-index: 0;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.4rem; }
a  { color: var(--blue-4); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

/* ─── LAYOUT ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
section { padding: 5rem 0; }

/* ─── HEADER ─── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; gap: 2rem; height: 68px;
}
.logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; font-weight: 500; color: var(--text);
}
.logo-flower { color: var(--blue-4); font-size: 1.2rem; }
.main-nav { display: flex; gap: 1.8rem; margin-left: auto; }
.main-nav a {
    font-size: 0.85rem; font-weight: 400; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-light);
    transition: color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--blue-4); }
.header-auth { display: flex; gap: 0.75rem; align-items: center; margin-left: 1rem; }
.user-greeting { font-size: 0.85rem; color: var(--text-light); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.65rem 1.6rem; border-radius: 50px;
    font-family: 'Jost', sans-serif; font-size: 0.85rem;
    font-weight: 400; letter-spacing: 0.05em;
    cursor: pointer; border: none; transition: all var(--transition);
}
.btn-primary {
    background: var(--blue-4); color: #fff;
    box-shadow: 0 4px 16px var(--shadow-md);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
    background: transparent; color: var(--blue-4);
    border: 1.5px solid var(--blue-2);
}
.btn-outline:hover { background: var(--blue-1); border-color: var(--blue-4); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-ghost {
    background: var(--blue-1); color: var(--blue-dark);
    border: none;
}
.btn-ghost:hover { background: var(--blue-2); }

/* ─── HERO ─── */
.hero {
    min-height: 88vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--blue-1) 100%);
    position: relative; overflow: hidden;
}
.hero::after {
    content: '✿';
    position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
    font-size: clamp(8rem, 18vw, 16rem);
    color: var(--blue-2); opacity: 0.45;
    line-height: 1; pointer-events: none;
    font-family: serif;
}
.hero-content { max-width: 600px; }
.hero-tag {
    display: inline-block; margin-bottom: 1.2rem;
    background: var(--blue-1); color: var(--blue-dark);
    padding: 0.35rem 1rem; border-radius: 50px;
    font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 1.2rem; color: var(--text); }
.hero h1 em { font-style: italic; color: var(--blue-4); }
.hero-desc {
    font-size: 1.05rem; color: var(--text-light);
    margin-bottom: 2rem; max-width: 480px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── SECTION TITLES ─── */
.section-tag {
    display: inline-block; background: var(--blue-1); color: var(--blue-dark);
    padding: 0.3rem 0.9rem; border-radius: 50px;
    font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.section-title { margin-bottom: 0.5rem; }
.section-sub { color: var(--text-light); max-width: 480px; }

/* ─── SERVICES ─── */
#services { background: var(--off-white); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; margin-top: 3rem;
}
.service-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px var(--shadow-md); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; color: var(--text-light); }
.service-price {
    margin-top: 1rem; font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; color: var(--blue-4); font-weight: 500;
}

/* ─── BOOKING SECTION ─── */
#booking { background: var(--white); }
.booking-wrapper { margin-top: 3rem; }
.week-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.week-nav h3 { font-size: 1.1rem; }
.week-nav-btns { display: flex; gap: 0.5rem; }
.week-nav-btns button {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1.5px solid var(--blue-2); background: var(--white);
    color: var(--blue-4); font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.week-nav-btns button:hover { background: var(--blue-1); border-color: var(--blue-4); }

/* Calendar grid */
.calendar-grid {
    display: grid;
    grid-template-columns: 90px repeat(3, 1fr);
    gap: 0; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px var(--shadow);
}
.cal-header-cell {
    background: var(--blue-4); color: #fff;
    padding: 1rem 0.5rem; text-align: center;
    font-family: 'Cormorant Garamond', serif; font-size: 1rem;
}
.cal-header-cell.time-col { background: var(--blue-dark); }
.cal-header-cell .day-name { font-weight: 500; font-size: 1rem; display: block; }
.cal-header-cell .day-date { font-size: 0.8rem; opacity: 0.85; display: block; font-family: 'Jost', sans-serif; font-weight: 300; }

.cal-time-cell {
    background: var(--off-white);
    padding: 0.6rem 0.5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; color: var(--text-light);
    text-align: center; line-height: 1.3;
    border-top: 1px solid var(--border);
}
.cal-slot {
    padding: 0.5rem; border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    background: var(--white);
    transition: background var(--transition);
    min-height: 68px; display: flex; align-items: center; justify-content: center;
}
.cal-slot.unavailable {
    background: var(--off-white);
    cursor: default;
}
.slot-btn {
    width: 100%; padding: 0.55rem 0.5rem;
    border-radius: 8px; border: 1.5px solid var(--blue-2);
    background: var(--blue-1); color: var(--blue-dark);
    font-family: 'Jost', sans-serif; font-size: 0.78rem;
    cursor: pointer; transition: all var(--transition); line-height: 1.3;
}
.slot-btn:hover { background: var(--blue-3); border-color: var(--blue-4); color: #fff; }
.slot-booked {
    font-size: 0.78rem; color: var(--text-muted);
    text-align: center; line-height: 1.4;
}
.dot-booked { display: block; font-size: 1.2rem; color: var(--blue-3); }

/* ─── MODAL ─── */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.35); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2.5rem; max-width: 480px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative; animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity:0; transform: translateY(20px) scale(0.97); } to { opacity:1; transform: none; } }
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.4rem;
    cursor: pointer; color: var(--text-light); line-height: 1;
}
.modal h3 { margin-bottom: 0.4rem; }
.modal-slot-info {
    background: var(--blue-1); color: var(--blue-dark);
    border-radius: 8px; padding: 0.6rem 1rem;
    font-size: 0.9rem; margin-bottom: 1.5rem;
}
.booking-options { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.booking-option-btn {
    padding: 1rem 1.2rem; border-radius: var(--radius);
    border: 1.5px solid var(--border); background: var(--white);
    text-align: left; cursor: pointer; transition: all var(--transition);
    font-family: 'Jost', sans-serif;
}
.booking-option-btn:hover { border-color: var(--blue-4); background: var(--blue-1); }
.booking-option-btn .opt-title { font-size: 0.95rem; color: var(--text); display: block; }
.booking-option-btn .opt-sub { font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 0.2rem; }
.modal-notice {
    font-size: 0.82rem; color: var(--text-muted);
    background: var(--cream); padding: 0.7rem 1rem; border-radius: 8px;
    margin-top: 0.75rem;
}
.modal-notice strong { color: var(--text-light); }

/* Guest booking form */
.guest-form { display: none; flex-direction: column; gap: 0; }
.guest-form.visible { display: flex; }
.phone-notice {
    background: var(--blue-1); color: var(--blue-dark);
    border-radius: 8px; padding: 0.7rem 1rem;
    font-size: 0.83rem; margin-bottom: 1rem;
    border-left: 3px solid var(--blue-4);
}

/* ─── ALERT / TOAST ─── */
.alert {
    padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem;
    font-size: 0.88rem;
}
.alert-error { background: #fde8e8; color: #c0392b; }
.alert-success { background: #e8f5ee; color: #1e7e45; }
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--text); color: #fff; padding: 0.85rem 1.6rem;
    border-radius: 50px; font-size: 0.88rem; z-index: 300;
    opacity: 0; transition: all 0.3s ease; pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #1e7e45; }
.toast.error   { background: #c0392b; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
    display: block; font-size: 0.82rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-light); margin-bottom: 0.4rem;
}
.form-group input {
    width: 100%; padding: 0.7rem 1rem;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-family: 'Jost', sans-serif; font-size: 0.95rem;
    background: var(--white); color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus {
    border-color: var(--blue-4);
    box-shadow: 0 0 0 3px rgba(74,150,200,0.15);
}
.hint { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* ─── AUTH PAGES ─── */
.auth-main {
    min-height: calc(100vh - 68px - 200px);
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1.5rem; background: var(--off-white);
}
.auth-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2.5rem 2rem; max-width: 420px; width: 100%;
    box-shadow: 0 8px 40px var(--shadow-md);
    border: 1px solid var(--border); position: relative; overflow: hidden;
}
.auth-flower {
    position: absolute; top: -20px; right: -20px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, var(--blue-1) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.auth-card h2 { margin-bottom: 0.3rem; }
.auth-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-switch { text-align: center; font-size: 0.85rem; color: var(--text-light); margin-top: 1rem; }

/* ─── ABOUT / GALLERY ─── */
#about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 2rem; }
.about-img-placeholder {
    aspect-ratio: 4/5; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: var(--blue-4);
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-light); margin-bottom: 1rem; }

/* ─── CONTACT ─── */
#contact { background: var(--off-white); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.contact-card {
    background: var(--white); border-radius: var(--radius);
    padding: 1.6rem; border: 1px solid var(--border);
    text-align: center;
}
.contact-card .cc-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.contact-card h4 { font-family: 'Jost', sans-serif; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.contact-card p { color: var(--text-light); font-size: 0.95rem; }

/* ─── FOOTER ─── */
.site-footer {
    background: var(--text); color: rgba(255,255,255,0.6);
    padding: 2.5rem 1.5rem; text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.site-footer .logo-text { color: rgba(255,255,255,0.9); }
.site-footer .logo-flower { color: var(--blue-3); }
.footer-copy { font-size: 0.8rem; margin-top: 0.75rem; }

/* ─── DEV BANNER ─── */
.dev-banner {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--blue-1) 0%, #e8f0f8 50%, var(--blue-1) 100%);
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--blue-dark); letter-spacing: 0.04em;
    border-top: 1px solid var(--blue-2);
    position: relative; overflow: hidden;
    text-align: center; padding: 1rem 2rem;
}
.dev-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg opacity='0.12' fill='%234a96c8'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3Cellipse cx='20' cy='13' rx='3' ry='7'/%3E%3Cellipse cx='27' cy='20' rx='7' ry='3'/%3E%3Cellipse cx='20' cy='27' rx='3' ry='7'/%3E%3Cellipse cx='13' cy='20' rx='7' ry='3'/%3E%3Ccircle cx='90' cy='80' r='2'/%3E%3Cellipse cx='90' cy='74' rx='2' ry='6'/%3E%3Cellipse cx='96' cy='80' rx='6' ry='2'/%3E%3Cellipse cx='90' cy='86' rx='2' ry='6'/%3E%3Cellipse cx='84' cy='80' rx='6' ry='2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    pointer-events: none;
}
.dev-icon { font-size: 1.4rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); gap: 1rem; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .header-auth { display: none; }
    .hero::after { opacity: 0.2; }
    .about-grid { grid-template-columns: 1fr; }
    .calendar-grid { grid-template-columns: 70px repeat(3, 1fr); font-size: 0.75rem; }
    .cal-header-cell .day-name { font-size: 0.85rem; }
    .slot-btn { font-size: 0.7rem; padding: 0.4rem; }
}
