/* ============================================
   DILWORTH COFFEE — Custom Styles
   Charcoal (#2A2A2A) + Coral (#C85A3C)
   ============================================ */

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

:root {
    --charcoal: #2A2A2A;
    --charcoal-light: #3D3D3D;
    --charcoal-dark: #1A1A1A;
    --coral: #C85A3C;
    --coral-light: #D4755C;
    --coral-dark: #A84830;
    --off-white: #FAFAF8;
    --warm-white: #F5F3F0;
    --cream: #EDEBE7;
    --text-primary: #2A2A2A;
    --text-secondary: #6B6B6B;
    --text-light: #9A9A9A;
    --border: #E5E3DF;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-primary);
    background-color: var(--off-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--charcoal);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.logo-icon {
    color: var(--coral);
}

.navbar:not(.scrolled) .logo {
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

.navbar:not(.scrolled) .nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--coral);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--coral);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--charcoal);
    transition: var(--transition);
    transform-origin: center;
}

.navbar:not(.scrolled) .nav-toggle span {
    background: #fff;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.82) 0%,
        rgba(42, 42, 42, 0.70) 50%,
        rgba(42, 42, 42, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: 4rem;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-headline .accent {
    color: var(--coral);
    font-style: italic;
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--coral);
    color: #fff;
    border: 1px solid var(--coral);
}

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 90, 60, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ============================================
   SECTION COMMON
   ============================================ */
section {
    padding: 8rem 0;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-title .accent-italic {
    color: var(--coral);
    font-style: italic;
}

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

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--off-white);
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--coral);
    z-index: -1;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--coral);
    font-weight: 400;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ============================================
   MENU
   ============================================ */
.menu {
    background: var(--warm-white);
}

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

.menu-category {
    padding: 2.5rem;
    background: var(--off-white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.menu-category:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.category-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--charcoal);
}

.category-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.menu-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

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

.item-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--charcoal);
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

.item-price {
    font-size: 0.9rem;
    color: var(--coral);
    font-weight: 400;
    text-align: right;
}

/* ============================================
   FEATURE
   ============================================ */
.feature {
    background: var(--charcoal-dark);
    color: #fff;
    padding: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.feature-image {
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-content {
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content .section-eyebrow {
    color: var(--coral);
}

.feature-content .section-title {
    color: #fff;
}

.feature-points {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-point {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.point-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--coral);
    font-weight: 400;
    line-height: 1;
    min-width: 40px;
}

.point-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.point-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
    background: var(--off-white);
}

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

.visit-info {
    padding: 2rem 0;
}

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

.visit-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.detail-link {
    font-size: 1.1rem;
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition-fast);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.detail-link:hover {
    color: var(--coral);
    border-color: var(--coral);
}

.visit-map {
    min-height: 400px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    filter: grayscale(30%) contrast(1.05);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--warm-white);
}

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

.contact-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--charcoal);
    font-size: 1rem;
    font-weight: 400;
    transition: color var(--transition-fast);
}

.contact-method:hover {
    color: var(--coral);
}

.contact-method svg {
    color: var(--coral);
}

/* Form */
.contact-form-wrapper {
    background: var(--off-white);
    border: 1px solid var(--border);
    padding: 2.5rem;
}

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

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

.form-group label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--off-white);
    border: 1px solid var(--border);
    padding: 0.875rem 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(200, 90, 60, 0.08);
    border: 1px solid rgba(200, 90, 60, 0.2);
    color: var(--coral-dark);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1.25rem;
}

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

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
}

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--coral);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .feature-grid,
    .visit-grid,
    .contact-grid {
        gap: 3rem;
    }

    .feature-content {
        padding: 4rem 3rem;
    }
}

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

    .container {
        padding: 0 1.5rem;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--off-white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right var(--transition);
    }

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

    .nav-links a {
        color: var(--charcoal) !important;
        font-size: 1.1rem;
    }

    /* Hero */
    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding-top: 6rem;
    }

    .hero-scroll {
        display: none;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image img {
        height: 350px;
    }

    .about-image::before {
        top: -10px;
        left: -10px;
    }

    /* Menu */
    .menu-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .menu-category {
        padding: 2rem;
    }

    /* Feature */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-image {
        min-height: 300px;
    }

    .feature-content {
        padding: 4rem 1.5rem;
    }

    /* Visit */
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

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

    html {
        scroll-behavior: auto;
    }

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