/* ═══════════════════════════════════════════════════════════
   El Couzina — Layout (Header, Nav, Footer)
   Sticky header, modern restaurant style
   ═══════════════════════════════════════════════════════════ */

/* ─── Header ─────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-header);
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    border-bottom: 1px solid transparent;
    transition: background var(--duration) var(--ease),
                border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                transform 0.4s var(--ease-out-expo),
                height var(--duration) var(--ease);
}

.site-header.scrolled {
    background: var(--header-bg-scrolled);
    border-bottom-color: var(--header-border-scrolled);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

/* ─── Logo ───────────────────────────────────────────── */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--primary);
    transition: transform var(--duration) var(--ease-spring);
}

.site-logo:hover .site-logo-mark {
    transform: rotate(-8deg) scale(1.08);
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-logo-name {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text);
    letter-spacing: var(--tracking-tight);
}

.site-logo-tag {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-top: 2px;
}

/* ─── Primary Nav (desktop) ──────────────────────────── */
.nav-primary {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    padding: var(--space-3) var(--space-2);
    min-height: 44px;
    transition: color var(--duration) var(--ease), font-weight var(--duration) var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: var(--space-2);
    right: var(--space-2);
    width: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: width 0.35s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    width: calc(100% - var(--space-4));
}

.nav-link.active,
.nav-link[aria-current="page"] {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after,
.nav-link[aria-current="page"]::after {
    width: calc(100% - var(--space-4));
}

.nav-link:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Header actions ─────────────────────────────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    min-height: 44px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius);
    transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.header-phone:hover {
    color: var(--primary);
    background: rgba(27, 73, 101, 0.06);
}

.header-phone:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.header-phone svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Hide phone number text on tablet to declutter */
@media (max-width: 1279px) and (min-width: 1024px) {
    .header-phone span { display: none; }
    .header-phone { padding: var(--space-2); gap: 0; }
    .header-phone svg { width: 20px; height: 20px; }
}

/* ─── Hamburger ──────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--duration) var(--ease);
}

.hamburger:hover,
.hamburger:active {
    background: rgba(27, 73, 101, 0.08);
}

.hamburger:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    margin-left: auto;
    transform-origin: center;
    transition: all var(--duration) var(--ease);
}

.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 22px; }

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 22px;
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 22px;
}

/* ─── Mobile menu ────────────────────────────────────── */
.nav-mobile {
    position: fixed;
    top: var(--header-height-mobile);
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: calc(100vh - var(--header-height-mobile));
    background: var(--bg);
    z-index: var(--z-overlay);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right var(--duration-slow) var(--ease);
    box-shadow: -16px 0 40px rgba(0,0,0,0.1);
}

.nav-mobile.open { right: 0; }

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.nav-mobile-links a {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    padding: var(--space-3) 0;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: color var(--duration) var(--ease);
}

.nav-mobile-links a:hover,
.nav-mobile-links a.active {
    color: var(--primary);
}

.nav-mobile-cta {
    margin-top: var(--space-8);
}

.nav-mobile-footer {
    margin-top: auto;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.nav-mobile-phone {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: var(--space-2);
}

.nav-mobile-address {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-overlay) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease);
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ─── Main offset ────────────────────────────────────── */
main {
    padding-top: var(--header-height);
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.footer-brand {
    max-width: 320px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-brand-mark {
    width: 48px;
    height: 48px;
    color: var(--primary-light);
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-on-dark);
    letter-spacing: var(--tracking-tight);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: rgba(255, 248, 240, 0.6);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.footer-socials {
    display: flex;
    gap: var(--space-3);
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 248, 240, 0.08);
    color: rgba(255, 248, 240, 0.75);
    transition: all var(--duration) var(--ease);
}

.footer-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--accent);
    margin-bottom: var(--space-5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    font-size: var(--text-sm);
    color: rgba(255, 248, 240, 0.7);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-hours-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: rgba(255, 248, 240, 0.7);
}

.footer-hours-day {
    color: rgba(255, 248, 240, 0.9);
    font-weight: 500;
    white-space: nowrap;
}

.footer-address {
    font-style: normal;
    font-size: var(--text-sm);
    color: rgba(255, 248, 240, 0.7);
    line-height: var(--leading-relaxed);
}

.footer-address a {
    color: rgba(255, 248, 240, 0.9);
    font-weight: 500;
    display: block;
    margin-top: var(--space-2);
}

.footer-address a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 248, 240, 0.08);
    font-size: var(--text-xs);
    color: rgba(255, 248, 240, 0.4);
}

.footer-bottom a {
    color: rgba(255, 248, 240, 0.5);
}

.footer-bottom a:hover {
    color: rgba(255, 248, 240, 0.8);
}

.halal-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(85, 107, 47, 0.25);
    color: var(--secondary-light);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.halal-badge::before {
    content: '✓';
    font-weight: 700;
}
