/* ═══════════════════════════════════════════════════════════════════════
   KALAVARA STUDIO — Design System & Styles
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ──────────────────────────────────────────────────── */
:root {
    --bg: #ffffff;
    --bg-secondary: #fafafa;
    --surface: #f5f5f5;
    --border: #e5e5e5;
    --text: #111111;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent: #c9a96e;
    --accent-hover: #b8955a;
    --accent-light: #f5ead8;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --max-width: 1200px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

img { max-width: 100%; }

/* ─── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

/* ─── Layout Utilities ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ─── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.navbar-logo {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.navbar-links a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.navbar-links a:hover {
    background: var(--surface);
    color: var(--text);
}

.navbar-links a.btn-accent {
    background: var(--accent);
    color: white;
}

.navbar-links a.btn-accent:hover {
    background: var(--accent-hover);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 0.875rem;
    font-weight: 500;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    cursor: pointer;
}

.navbar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
    .navbar-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        display: none;
        gap: 0.25rem;
    }
    .navbar-links.open { display: flex; }
    .navbar-toggle { display: flex; }
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.btn-dark {
    background: var(--text);
    color: white;
}
.btn-dark:hover { background: #333; }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }

.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Cards ──────────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card-hover {
    transition: all 0.2s;
}
.card-hover:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ─── Forms ──────────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.form-label span {
    font-weight: 400;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text);
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--error); }

.form-error {
    font-size: 0.8125rem;
    color: var(--error);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

textarea.form-input { resize: vertical; min-height: 100px; }

/* ─── Alerts / Messages ─────────────────────────────────────────────── */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

/* ─── Badges ────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge-success { background: rgba(34,197,94,0.1); color: #16a34a; }
.badge-warning { background: rgba(245,158,11,0.1); color: #d97706; }
.badge-error { background: rgba(239,68,68,0.1); color: #dc2626; }
.badge-info { background: rgba(59,130,246,0.1); color: #2563eb; }
.badge-muted { background: var(--surface); color: var(--text-secondary); }
.badge-accent { background: var(--accent-light); color: var(--accent-hover); }

/* ─── Page Wrapper ──────────────────────────────────────────────────── */
.page-wrapper {
    padding-top: 80px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.375rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ─── Grid Layouts ──────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Auth Pages ────────────────────────────────────────────────────── */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-secondary);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.auth-header .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
}

.auth-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* ─── Dashboard ──────────────────────────────────────────────────────── */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.dashboard-sidebar {
    width: 240px;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-secondary);
    min-width: 0;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.375rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: var(--surface);
    color: var(--text);
}

.sidebar-link.active {
    background: var(--accent-light);
    color: var(--accent-hover);
    font-weight: 600;
}

.sidebar-link .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .dashboard-layout { flex-direction: column; }
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 1rem;
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
    }
    .sidebar-section { display: flex; gap: 0.25rem; margin: 0; align-items: center; flex-shrink: 0; }
    .sidebar-section-title { display: none; }
    .sidebar-link { white-space: nowrap; padding: 0.5rem 0.75rem; }
}

/* ─── Membership Card ────────────────────────────────────────────────── */
.membership-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    background: white;
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: white;
    margin-bottom: 1rem;
}

/* ─── Quick Actions ──────────────────────────────────────────────────── */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.quick-action-btn:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.quick-action-btn .icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--accent);
}

.quick-action-btn span {
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 640px) {
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
    .quick-action-btn { padding: 1rem 0.5rem; }
}

/* ─── Booking Grid ──────────────────────────────────────────────────── */
.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
}

.date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.25rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.75rem;
}

.date-btn:hover {
    border-color: var(--accent);
}

.date-btn.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.date-btn .day-name {
    font-size: 0.625rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

.date-btn .day-num {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
}

.date-btn .peak-mark {
    font-size: 0.5625rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

.date-btn.selected .peak-mark { color: rgba(255,255,255,0.7); }

.time-grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 0.375rem;
}

.time-btn {
    padding: 0.5rem 0.25rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.time-btn:hover:not(:disabled) {
    border-color: var(--accent);
}

.time-btn.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.time-btn.booked,
.time-btn.past {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.time-btn.pending {
    background: #fff3cd;
    border-color: #ffe69c;
    color: #664d03;
    cursor: not-allowed;
}

.duration-btn {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.duration-btn:hover {
    border-color: var(--accent);
}

.duration-btn.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.duration-btn .sub {
    font-size: 0.6875rem;
    font-weight: 400;
    opacity: 0.7;
    display: block;
    margin-top: 0.125rem;
}

.duration-btn {
    position: relative;
}

.dur-badge {
    display: inline-block;
    background: #16a34a;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 99px;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.dur-badge-gold {
    background: var(--accent);
}

.dur-price {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #16a34a;
    margin-top: 0.25rem;
}

.duration-btn.selected .dur-price {
    color: rgba(255,255,255,0.85);
}

.duration-btn.selected .dur-badge,
.duration-btn.selected .dur-badge-gold {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* ─── Booking List ───────────────────────────────────────────────────── */
.booking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.booking-item:hover {
    border-color: var(--accent);
}

.booking-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.booking-item-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.booking-item-info .date {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.booking-item-info .time {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

/* ─── Pricing Table ─────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.pricing-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.12);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 1rem;
    border-radius: 0 0 8px 8px;
}

.pricing-tier-name {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Hero Section ──────────────────────────────────────────────────── */
.hero {
    padding: 8rem 0 5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-secondary) 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--accent-light);
    color: var(--accent-hover);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── Section Headers ────────────────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.0625rem;
}

/* ─── Portfolio Grid ────────────────────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

.portfolio-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }

.portfolio-item-label {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ─── Services Grid ─────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-card {
    padding: 1.75rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.2s;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.6);
    padding: 3rem 0 1.5rem;
}

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

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    text-align: center;
}

/* ─── Info Box ───────────────────────────────────────────────────────── */
.info-box {
    padding: 1.25rem;
    background: var(--accent-light);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: var(--radius-lg);
}

.info-box h4 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--accent-hover);
}

.info-box p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Stats Grid ─────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Table ──────────────────────────────────────────────────────────── */
.table-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    background: var(--bg-secondary);
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: var(--bg-secondary); }

.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ─── Utility Classes ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ─── Animations ─────────────────────────────────────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 0.8s linear infinite;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ─── Section Dividers ───────────────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 0 auto;
    max-width: var(--max-width);
}

/* ─── Admin Layout ──────────────────────────────────────────────────── */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 { font-size: 1.5rem; }
