/* ========================================
   PURPLE ORCHID CAFE & LOUNGE
   Stylesheet
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: #3D3D3D;
    background-color: #FAFAF8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* --- Focus --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #3D3D3D;
    color: #FAFAF8;
    padding: 0.5rem 1rem;
    z-index: 1000;
    font-size: 0.875rem;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.15;
    color: #2A2A2A;
}

.em, em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
}

.text-coral {
    color: #E07A5F;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--primary {
    background: #E07A5F;
    color: #FAFAF8;
    border-color: #E07A5F;
}

.btn--primary:hover,
.btn--primary:focus {
    background: #C9664D;
    border-color: #C9664D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.25);
}

.btn--ghost {
    background: transparent;
    color: #2A2A2A;
    border-color: #3D3D3D;
}

.btn--ghost:hover,
.btn--ghost:focus {
    background: #3D3D3D;
    color: #FAFAF8;
}

.btn--outline {
    background: transparent;
    color: #E07A5F;
    border-color: #E07A5F;
}

.btn--outline:hover,
.btn--outline:focus {
    background: #E07A5F;
    color: #FAFAF8;
}

.btn--full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(61, 61, 61, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #2A2A2A;
    letter-spacing: 0.02em;
}

.logo-icon {
    flex-shrink: 0;
}

/* --- Navigation --- */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3D3D3D;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #E07A5F;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link:hover,
.nav-link:focus {
    color: #E07A5F;
}

.nav-link--cta {
    color: #E07A5F;
}

.nav-link--cta::after {
    background: #E07A5F;
}

/* --- Nav Toggle --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #3D3D3D;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #FAFAF8;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.125rem;
    }
}

/* --- Hero --- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #FAFAF8;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    flex: 1;
    padding: 4rem 0 0;
}

.hero-content {
    padding-right: 1rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #E07A5F;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    color: #2A2A2A;
}

.hero-headline .hero-em {
    color: #E07A5F;
}

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.75;
    color: #5A5A5A;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.hero-img-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 780;
    object-fit: cover;
}

.hero-accent {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 120px;
    height: 120px;
    border: 1px solid #E07A5F;
    border-radius: 2px;
    z-index: -1;
    opacity: 0.5;
}

.hero-line {
    height: 1px;
    background: linear-gradient(to right, #E07A5F, transparent);
    margin: 0 auto;
    max-width: 400px;
    opacity: 0.4;
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        order: 2;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-accent {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 72px;
    }

    .hero-grid {
        padding: 2rem 0 3rem;
    }

    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* --- Section Shared --- */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #E07A5F;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #2A2A2A;
}

.section-subtitle {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.75;
    color: #5A5A5A;
    max-width: 560px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* --- Intro --- */
.intro {
    padding: 8rem 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.intro-text .section-title {
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #5A5A5A;
    margin-bottom: 1.25rem;
}

.intro-image {
    border-radius: 2px;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 960px) {
    .intro {
        padding: 5rem 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-text {
        order: 2;
    }

    .intro-image {
        order: 1;
    }
}

/* --- Divider --- */
.divider-section {
    padding: 5rem 0;
    background: #2A2A2A;
}

.divider-inner {
    text-align: center;
}

.divider-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    font-style: italic;
    color: #FAFAF8;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.4;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: #E07A5F;
    margin: 0 auto;
    opacity: 0.7;
}

/* --- Menu --- */
.menu {
    padding: 8rem 0;
    background: #FAFAF8;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.menu-card {
    background: #FFFFFF;
    border: 1px solid rgba(61, 61, 61, 0.08);
    border-radius: 4px;
    padding: 2.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.menu-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.menu-card-icon {
    width: 44px;
    height: 44px;
    color: #E07A5F;
    margin-bottom: 1.5rem;
}

.menu-card-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #2A2A2A;
}

.menu-card-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: #5A5A5A;
    margin-bottom: 1.5rem;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.menu-list li {
    font-size: 0.875rem;
    font-weight: 300;
    color: #3D3D3D;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid rgba(61, 61, 61, 0.06);
}

.menu-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-list li span {
    display: block;
}

@media (max-width: 768px) {
    .menu {
        padding: 5rem 0;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Gallery --- */
.gallery {
    padding: 8rem 0;
    background: #F5F4F0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1.25rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item--wide {
    grid-column: span 7;
}

.gallery-item:not(.gallery-item--wide) {
    grid-column: span 5;
}

.gallery-item:nth-child(2) {
    grid-column: span 5;
}

.gallery-item:nth-child(3) {
    grid-column: span 7;
}

.gallery-item:nth-child(4) {
    grid-column: span 5;
}

.gallery-item:nth-child(5) {
    grid-column: span 7;
}

@media (max-width: 960px) {
    .gallery {
        padding: 5rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item,
    .gallery-item--wide,
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }
}

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

    .gallery-item,
    .gallery-item--wide,
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }

    .gallery-item img {
        aspect-ratio: 4 / 3;
    }
}

/* --- Visit --- */
.visit {
    padding: 8rem 0;
    background: #FAFAF8;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-info .section-title {
    margin-bottom: 2.5rem;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.visit-detail {
    border-bottom: 1px solid rgba(61, 61, 61, 0.1);
    padding-bottom: 2rem;
}

.visit-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.visit-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E07A5F;
    margin-bottom: 0.625rem;
}

.visit-detail-value {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: #3D3D3D;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
}

.hours-row span:first-child {
    color: #5A5A5A;
}

.hours-row span:last-child {
    color: #3D3D3D;
    font-weight: 400;
}

.visit-link {
    color: #E07A5F;
    transition: color 0.3s ease;
}

.visit-link:hover {
    color: #C9664D;
}

.visit-map {
    border-radius: 4px;
    overflow: hidden;
    min-height: 480px;
    background: #E8E6E1;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

@media (max-width: 960px) {
    .visit {
        padding: 5rem 0;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .visit-map {
        min-height: 320px;
    }

    .visit-map iframe {
        min-height: 320px;
    }
}

/* --- Contact --- */
.contact {
    padding: 8rem 0;
    background: #2A2A2A;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-text .section-title {
    color: #FAFAF8;
    margin-bottom: 1.25rem;
}

.contact-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(250, 250, 248, 0.65);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250, 250, 248, 0.55);
}

.form-input {
    background: rgba(250, 250, 248, 0.06);
    border: 1px solid rgba(250, 250, 248, 0.15);
    border-radius: 2px;
    padding: 0.875rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #FAFAF8;
    transition: border-color 0.3s ease, background 0.3s ease;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: rgba(250, 250, 248, 0.35);
}

.form-input:focus {
    outline: none;
    border-color: #E07A5F;
    background: rgba(250, 250, 248, 0.08);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #2A2A2A;
    color: #FAFAF8;
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 1.25rem;
    background: rgba(224, 122, 95, 0.15);
    border: 1px solid rgba(224, 122, 95, 0.3);
    border-radius: 2px;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #E07A5F;
}

.form-success.is-visible {
    display: block;
}

@media (max-width: 960px) {
    .contact {
        padding: 5rem 0;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- Footer --- */
.site-footer {
    background: #222222;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(250, 250, 248, 0.08);
}

.footer-brand .logo-text {
    color: #FAFAF8;
    font-size: 1.375rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    font-weight: 300;
    color: rgba(250, 250, 248, 0.5);
    margin-top: 1rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-nav-label,
.footer-contact .footer-nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 250, 248, 0.4);
    margin-bottom: 1.25rem;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-list a {
    font-size: 0.9375rem;
    font-weight: 300;
    color: rgba(250, 250, 248, 0.65);
    transition: color 0.3s ease;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus {
    color: #E07A5F;
}

.footer-address {
    font-size: 0.9375rem;
    font-weight: 300;
    color: rgba(250, 250, 248, 0.65);
    line-height: 1.8;
}

.footer-link {
    color: rgba(250, 250, 248, 0.65);
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: #E07A5F;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(250, 250, 248, 0.3);
}

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
