/* ==========================================================================
   Kaia's Restaurant & Bar - Main Theme Stylesheet
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    scroll-behavior: smooth;
    background-color: var(--kaias-bg, #0d0d0c);
    color: var(--kaias-fg, #f4f3f0);
}

body {
    background-color: var(--kaias-bg, #0d0d0c);
    color: var(--kaias-fg, #f4f3f0);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page, .site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

main, #content, .site-content {
    flex: 1 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-display, .site-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #f4f3f0;
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.text-gold {
    color: var(--kaias-gold, #e5a93b) !important;
}

.text-muted {
    color: var(--kaias-muted, #9e9b94) !important;
}

.eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kaias-gold, #e5a93b);
    display: block;
    margin-bottom: 0.5rem;
}

/* Layout Containers */
.kaias-container {
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: 100%;
}

.kaias-container-sm {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: 100%;
}

.kaias-container-md {
    max-width: 896px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: 100%;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(13, 13, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-brand a {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f4f3f0;
}

.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.main-navigation ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    color: #9e9b94;
    font-weight: 400;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #f4f3f0;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation a.active {
    color: var(--kaias-gold, #e5a93b) !important;
}

.header-btn {
    display: none;
    border-radius: 9999px;
    background-color: var(--kaias-gold, #e5a93b);
    color: #1a160d !important;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.header-btn:hover {
    opacity: 0.92;
}

@media (min-width: 768px) {
    .header-btn {
        display: inline-flex;
        align-items: center;
    }
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #f4f3f0;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: rgba(13, 13, 12, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    z-index: 99;
}

.mobile-nav-drawer.is-open {
    display: block;
}

.mobile-nav-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-drawer a {
    font-size: 1.125rem;
    color: #9e9b94;
    display: block;
}

.mobile-nav-drawer .current-menu-item > a,
.mobile-nav-drawer a.active {
    color: var(--kaias-gold, #e5a93b);
}

.mobile-nav-drawer .mobile-cta-btn {
    display: block;
    text-align: center;
    border-radius: 9999px;
    background-color: var(--kaias-gold, #e5a93b);
    color: #1a160d;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: #0d0d0c;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 13, 12, 0.35), rgba(13, 13, 12, 0.92) 70%, #0d0d0c 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1152px;
    margin: 0 auto;
    padding: 8rem 1.25rem 8rem 1.25rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 11rem 1.25rem 11rem 1.25rem;
    }
}

.hero-title {
    font-size: 3.75rem;
    line-height: 0.95;
    margin-top: 1rem;
    color: #f4f3f0;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-subtitle {
    margin-top: 1.5rem;
    max-width: 36rem;
    font-size: 1.125rem;
    color: #9e9b94;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        align-items: center;
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--kaias-gold, #e5a93b);
    color: #1a160d !important;
    font-weight: 600;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-outline-gold {
    display: inline-block;
    border: 1px solid rgba(229, 169, 59, 0.5);
    color: var(--kaias-gold, #e5a93b) !important;
    font-weight: 500;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.btn-outline-gold:hover {
    background-color: rgba(229, 169, 59, 0.1);
    border-color: var(--kaias-gold, #e5a93b);
}

.btn-glow {
    box-shadow: 0 20px 60px -20px rgba(229, 169, 59, 0.5);
}

/* Feature Bar */
.feature-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(19, 21, 27, 0.4);
    padding: 2rem 0;
}

.feature-bar-grid {
    display: grid;
    gap: 1rem;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .feature-bar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9e9b94;
    font-size: 1rem;
}

.feature-item svg {
    color: var(--kaias-gold, #e5a93b);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Cards & Grids */
.kaias-card {
    background-color: var(--kaias-card, #13151b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.kaias-card:hover {
    border-color: rgba(229, 169, 59, 0.25);
}

.kaias-card-body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .kaias-card-body {
        padding: 1.75rem;
    }
}

.event-img {
    width: 100%;
    height: 13rem;
    object-fit: cover;
    display: block;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: var(--kaias-gold, #e5a93b);
    margin-bottom: 0.75rem;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta svg {
    width: 16px;
    height: 16px;
}

.event-title {
    font-size: 1.5rem;
    color: #f4f3f0;
    margin-bottom: 0.75rem;
}

.event-desc {
    color: #9e9b94;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Menu Items */
.menu-item-card {
    background-color: var(--kaias-card, #13151b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.menu-item-card:hover {
    border-color: rgba(229, 169, 59, 0.25);
}

.menu-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.menu-item-title {
    font-size: 1.35rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: #f4f3f0;
}

.menu-item-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--kaias-gold, #e5a93b);
    white-space: nowrap;
}

.menu-item-desc {
    margin-top: 0.5rem;
    color: #9e9b94;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Forms */
.kaias-form-card {
    background-color: var(--kaias-card, #13151b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.75rem;
}

@media (min-width: 768px) {
    .kaias-form-card {
        padding: 2.25rem;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f4f3f0;
    margin-bottom: 0.5rem;
}

.form-label .optional {
    color: #9e9b94;
    font-weight: 400;
}

.form-control {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(13, 13, 12, 0.6);
    padding: 0.75rem 1rem;
    color: #f4f3f0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: rgba(158, 155, 148, 0.7);
}

.form-control:focus {
    border-color: var(--kaias-gold, #e5a93b);
    box-shadow: 0 0 0 1px var(--kaias-gold, #e5a93b);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239e9b94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-control option {
    background-color: #13151b;
    color: #f4f3f0;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper svg {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9e9b94;
    pointer-events: none;
}

.input-icon-wrapper .form-control {
    padding-left: 2.75rem;
}

.form-submit-btn {
    width: 100%;
    border-radius: 8px;
    background-color: var(--kaias-gold, #e5a93b);
    color: #1a160d;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: 0.5rem;
}

.form-submit-btn:hover {
    opacity: 0.92;
}

.form-footer-note {
    text-align: center;
    font-size: 0.875rem;
    color: #9e9b94;
    margin-top: 1rem;
}

.form-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    display: none;
    font-size: 0.95rem;
}

.form-alert.is-success {
    display: block;
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.form-alert.is-error {
    display: block;
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Contact Info Item */
.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item svg {
    color: var(--kaias-gold, #e5a93b);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-info-title {
    font-size: 1.25rem;
    color: #f4f3f0;
    margin-bottom: 0.5rem;
}

.contact-info-text {
    color: #9e9b94;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #9e9b94;
}

.contact-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #0d0d0c;
    margin-top: auto;
}

.footer-main {
    max-width: 1152px;
    margin: 0 auto;
    padding: 4rem 1.25rem;
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand h3 {
    font-size: 1.75rem;
    color: #f4f3f0;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #9e9b94;
    font-size: 0.95rem;
    max-width: 20rem;
    line-height: 1.6;
}

.footer-social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.footer-social-links a {
    color: #9e9b94;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.footer-social-links a:hover {
    color: var(--kaias-gold, #e5a93b);
}

.footer-social-links svg {
    width: 20px;
    height: 20px;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f4f3f0;
    margin-bottom: 1.25rem;
}

.footer-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #9e9b94;
    font-size: 0.95rem;
}

.footer-info-row {
    display: flex;
    gap: 0.75rem;
}

.footer-info-row svg {
    width: 20px;
    height: 20px;
    color: var(--kaias-gold, #e5a93b);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #9e9b94;
    font-size: 0.95rem;
}

.footer-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-reserve-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--kaias-gold, #e5a93b);
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.footer-reserve-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #9e9b94;
}

/* ==========================================================================
   Elementor Page Builder Compatibility & Overrides
   ========================================================================== */

.elementor-page .site-content {
    padding: 0;
}

.elementor-section {
    background-color: transparent;
}

.elementor-widget-heading .elementor-heading-title {
    color: inherit;
}

.elementor-kit-default {
    --e-global-color-primary: #e5a93b;
    --e-global-color-secondary: #f4f3f0;
    --e-global-color-text: #9e9b94;
    --e-global-color-accent: #e5a93b;
    --e-global-typography-primary-font-family: "Playfair Display";
    --e-global-typography-secondary-font-family: "Outfit";
    --e-global-typography-text-font-family: "Outfit";
    --e-global-typography-accent-font-family: "Playfair Display";
}

/* Helper Utility Classes for Elementor custom layouts */
.kaias-sec-border-b {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kaias-sec-border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kaias-sec-border-y {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kaias-grid-2 {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .kaias-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kaias-grid-3 {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .kaias-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
