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

/* --- VARIABLES (ANELIM IDENTITY) --- */
:root {
    /* Palette: Structure & Freedom */
    --background: #fcfbf9;   /* Warm Paper White */
    --foreground: #262626;   /* Deep Charcoal */
    
    --primary: #333333;      /* Ink */
    --secondary: #e6e5e3;    /* Stone */
    --muted: #f0f0f0;        /* Light Mist */
    --muted-foreground: #737373;
    
    --border: #d4d4d4;
    --accent: #d6d3d1;
    
    --emerald: #059669;      /* System Success */
    --destructive: #dc2626;  /* System Error */

    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Outfit', sans-serif;

    /* Spacing */
    --container-padding: 2rem;
    --max-width: 1200px;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: 0.02em;
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* --- UTILITIES --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-serif { font-family: var(--font-serif); }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.2em; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.text-muted { color: var(--muted-foreground); }
.font-bold { font-weight: 600; }

.hidden { display: none !important; }
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--foreground);
    color: var(--background);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 1px solid var(--foreground);
}

.btn:hover {
    background: transparent;
    color: var(--foreground);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--foreground);
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* --- LAYOUT COMPONENTS --- */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    transition: all 0.4s;
}

.navbar.scrolled {
    background: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    letter-spacing: 0.2em;
    line-height: 1;
}

.brand-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--muted-foreground);
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--muted-foreground);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--foreground);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--foreground);
}

.mobile-toggle { display: none; }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--background);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.open { transform: translateY(0); }
.mobile-link { font-family: var(--font-serif); font-size: 2rem; }

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* --- PAGE SPECIFIC --- */

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 6rem;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero-visual {
    height: 600px;
    background: var(--secondary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forms (Booking) */
.form-section {
    max-width: 900px;
    margin: 100px auto 50px;
    border: 1px solid var(--border);
    padding: 3rem;
    background: #fff;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

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

.summary-card {
    background: rgba(230, 229, 227, 0.3);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.slot-btn {
    padding: 1rem;
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.2s;
}

.slot-btn:hover, .slot-btn.selected {
    background: var(--foreground);
    color: var(--background);
    border-color: var(--foreground);
}

.input-group { margin-bottom: 1.5rem; }
.input-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.input-field {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
}
.input-field:focus { outline: 1px solid var(--foreground); }

/* Admin */
.admin-card {
    border: 1px solid var(--border);
    padding: 1.5rem;
    background: #fff;
    margin-bottom: 1rem;
}

.appointment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.appointment-row:hover { border-color: var(--foreground); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero-grid, .footer-grid, .booking-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-title { font-size: 3.5rem; }
    .form-section { padding: 1.5rem; }
}