/* ═══ CALENDÁRIO — Design Premium Casa da Lagoinha ═══ */

/* ─── TOKENS (mesmos do site principal) ─── */
:root {
 --ocean: #0077a8;
 --ocean-d: #005880;
 --ocean-l: #e0f4fb;
 --sand: #f0c84a;
 --sand-d: #d4a017;
 --coral: #ff6b6b;
 --text: #1a2332;
 --text-m: #4a5568;
 --text-l: #718096;
 --white: #ffffff;
 --off: #f8fbfd;
 --border: #e2ecf3;
 --r: 1rem;
 --r-lg: 1.5rem;
 --r-xl: 2rem;
 --shadow: 0 4px 24px rgba(0,119,168,.12);
 --shadow-lg: 0 16px 48px rgba(0,119,168,.18);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--off); overflow-x: hidden; line-height: 1.6; }
.serif { font-family: 'Playfair Display', Georgia, serif; }

/* ─── NAV (idêntica ao site) ─── */
.nav {
 position: fixed; top: 0; left: 0; right: 0; z-index: 100;
 display: flex; align-items: center; justify-content: space-between;
 padding: .9rem 2rem;
 background: rgba(255,255,255,.92);
 backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
 border-bottom: 1px solid var(--border);
 transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.nav-brand-icon {
 width: 2.2rem; height: 2.2rem; background: var(--ocean); border-radius: 50%;
 display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem;
}
.nav-brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-m); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ocean); }
.nav-cta {
 background: var(--ocean) !important; color: #fff !important;
 padding: .55rem 1.25rem !important; border-radius: var(--r) !important;
 font-weight: 600 !important; transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: var(--ocean-d) !important; transform: translateY(-1px); }
.admin-link { color: var(--text-l) !important; font-size: .82rem !important; opacity: .7; margin-left: .5rem; }
.admin-link:hover { opacity: 1; color: var(--ocean) !important; }

/* ─── HERO (gradiente + imagem de fundo como site principal) ─── */
.cal-hero {
 position: relative;
 min-height: 55vh;
 display: flex; align-items: center; justify-content: center;
 background: linear-gradient(160deg, rgba(0,55,85,.88) 0%, rgba(0,30,50,.82) 50%, rgba(0,55,85,.88) 100%),
             url('https://i.ibb.co/Myn4W4wv/62767-C4-A-428-A-4366-A9-EA-945-D9468-C0-C1.png') center/cover no-repeat;
 padding: 9rem 1.5rem 5rem;
 text-align: center;
 overflow: hidden;
}
.cal-hero::before {
 content: ''; position: absolute; inset: 0;
 background: radial-gradient(circle at 30% 50%, rgba(240,200,74,.08) 0%, transparent 60%);
 pointer-events: none;
}
.cal-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; animation: fadeUp .9s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.cal-hero-badge {
 display: inline-flex; align-items: center; gap: .5rem;
 background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
 backdrop-filter: blur(8px);
 color: #fff; font-size: .78rem; font-weight: 600;
 letter-spacing: .08em; text-transform: uppercase;
 padding: .4rem 1.1rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.cal-hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.8); } }

.cal-hero-title {
 font-family: 'Playfair Display', serif;
 font-size: clamp(2rem, 5vw, 3.5rem);
 font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 1rem;
 text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.cal-hero-title em { font-style: normal; color: var(--sand); }
.cal-hero-sub {
 font-size: clamp(.95rem, 2vw, 1.15rem);
 color: rgba(255,255,255,.88); line-height: 1.65; max-width: 540px; margin: 0 auto;
}

/* ─── MAIN CONTAINER ─── */
.cal-main { max-width: 1050px; margin: -3rem auto 4rem; padding: 0 1.5rem; position: relative; z-index: 2; }

/* ─── CALENDAR CARD ─── */
.cal-card {
 background: var(--white); border-radius: var(--r-xl); padding: 2.5rem;
 box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}

/* Month Navigation */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.cal-nav-btn {
 width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
 background: var(--off); color: var(--ocean); font-size: 1.1rem; font-weight: 600;
 cursor: pointer; display: flex; align-items: center; justify-content: center;
 transition: all .2s;
}
.cal-nav-btn:hover { background: var(--ocean); color: #fff; border-color: var(--ocean); transform: scale(1.05); }
.cal-month-label {
 font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--text);
}

/* Legend */
.cal-legend {
 display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
 padding: 1rem 1.25rem; background: var(--off); border-radius: var(--r); margin-bottom: 1.5rem;
 border: 1px solid var(--border);
}
.cal-legend-item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 500; color: var(--text-m); }
.cal-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-dot.available { background: #4ade80; }
.cal-dot.occupied { background: var(--coral); }
.cal-dot.selected { background: var(--ocean); }
.cal-dot.pending { background: var(--sand); }

/* Calendar Grid */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-weekday {
 font-weight: 600; text-align: center; padding: .75rem .5rem;
 font-size: .78rem; color: var(--text-l); text-transform: uppercase; letter-spacing: .06em;
}
.cal-day {
 aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
 border-radius: 12px; cursor: pointer; font-size: .95rem; font-weight: 500;
 border: 2px solid transparent; transition: all .15s ease; position: relative;
}
.cal-day:hover:not(.empty):not(.occupied) { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,119,168,.12); z-index: 1; }
.cal-day.empty { cursor: default; }
.cal-day.available { background: #dcfce7; color: #166534; }
.cal-day.available:hover { background: #bbf7d0; border-color: #4ade80; }
.cal-day.occupied { background: #fee2e2; color: #991b1b; cursor: not-allowed; opacity: .6; }
.cal-day.selected { background: var(--ocean); color: #fff; border-color: var(--ocean-d); font-weight: 700; box-shadow: 0 4px 16px rgba(0,119,168,.25); }
.cal-day.pending { background: #fef3c7; color: #92400e; }
.cal-day.today { font-weight: 700; }
.cal-day.today::after { content: ''; position: absolute; bottom: 6px; width: 6px; height: 6px; background: var(--ocean); border-radius: 50%; }
.cal-day.today.selected::after { background: #fff; }

/* ─── BOOKING FORM ─── */
.cal-form-card {
 background: var(--white); border-radius: var(--r-xl); padding: 2.5rem;
 box-shadow: var(--shadow); border: 1px solid var(--border); margin-top: 1.5rem;
}
.cal-form-card.hidden { display: none; }
.cal-form-title {
 font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
 color: var(--ocean); margin-bottom: 1.25rem;
}
.cal-selected-info {
 background: var(--ocean-l); padding: 1rem 1.25rem; border-radius: var(--r);
 margin-bottom: 1.75rem; font-weight: 600; color: var(--ocean-d);
 text-align: center; font-size: 1rem; border: 1px solid rgba(0,119,168,.1);
}
.cal-field { margin-bottom: 1.25rem; }
.cal-field label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9rem; color: var(--text); }
.cal-field input, .cal-field textarea {
 width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--border); border-radius: var(--r);
 font-size: 1rem; font-family: 'Inter', sans-serif; transition: border-color .2s, box-shadow .2s; background: var(--white);
}
.cal-field input:focus, .cal-field textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(0,119,168,.1); }
.cal-field input::placeholder, .cal-field textarea::placeholder { color: var(--text-l); }
.cal-submit {
 display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
 background: var(--sand); color: #1a1a1a; font-weight: 700; font-size: 1rem;
 padding: 1rem 2.2rem; border-radius: var(--r); border: none; cursor: pointer; width: 100%;
 box-shadow: 0 8px 30px rgba(240,200,74,.45);
 transition: background .2s, transform .15s, box-shadow .2s;
}
.cal-submit:hover { background: var(--sand-d); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(240,200,74,.55); }
.cal-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.cal-msg { margin-top: 1rem; padding: 1rem; border-radius: var(--r); text-align: center; font-weight: 500; }
.cal-msg.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.cal-msg.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ─── FOOTER ─── */
.cal-footer {
 text-align: center; padding: 3rem 1.5rem; color: var(--text-l); font-size: .88rem;
 border-top: 1px solid var(--border); background: var(--white);
}
.cal-footer a { color: var(--ocean); text-decoration: none; font-weight: 500; }
.cal-footer a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
 .nav { padding: .75rem 1rem; }
 .nav-links { display: none; }
 .cal-hero { padding: 7rem 1rem 3.5rem; min-height: 45vh; }
 .cal-hero-title { font-size: 1.8rem; }
 .cal-main { margin-top: -1.5rem; padding: 0 1rem; }
 .cal-card { padding: 1.5rem; border-radius: var(--r-lg); }
 .cal-grid { gap: 4px; }
 .cal-day { font-size: .85rem; border-radius: 8px; }
 .cal-legend { gap: 1rem; padding: .75rem; }
 .cal-legend-item { font-size: .75rem; }
 .cal-month-label { font-size: 1.2rem; }
 .cal-form-card { padding: 1.5rem; }
}
@media (max-width: 480px) {
 .cal-grid { gap: 3px; }
 .cal-day { font-size: .8rem; }
}