/* ============================================
   The Ugly Mug Coffee House — Styles
   Palette: Plum (#5B2C6F) + Amber (#D4A017)
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
    --plum-900: #1A0A2E;
    --plum-800: #2D1247;
    --plum-700: #3D1A5C;
    --plum-600: #5B2C6F;
    --plum-500: #7B3F90;
    --plum-400: #9B59B6;
    --plum-100: #F3E8F9;
    --plum-50:  #FBF5FD;

    --amber-600: #B8860B;
    --amber-500: #D4A017;
    --amber-400: #E8B830;
    --amber-300: #F0CC5C;
    --amber-100: #FDF6E3;
    --amber-50:  #FFFCF2;

    --cream: #FDF8F0;
    --warm-white: #FEFCF8;
    --dark: #1A0A2E;
    --text-dark: #1A0A2E;
    --text-muted: #5B4A6B;
    --text-light: #8B7A9B;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(91, 44, 111, 0.08);
    --shadow-md: 0 4px 20px rgba(91, 44, 111, 0.1);
    --shadow-lg: 0 8px 40px rgba(91, 44, 111, 0.15);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ---- Typography ---- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--plum-700);
    margin-bottom: 24px;
}

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

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--amber-500);
    color: var(--plum-900);
    border-color: var(--amber-500);
}

.btn-primary:hover {
    background: var(--amber-400);
    border-color: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--plum-700);
    border-color: var(--plum-600);
}

.btn-secondary:hover {
    background: var(--plum-700);
    color: #fff;
    transform: translateY(-2px);
}

.btn-light {
    background: var(--amber-500);
    color: var(--plum-900);
    border-color: var(--amber-500);
}

.btn-light:hover {
    background: var(--amber-400);
    border-color: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91, 44, 111, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--plum-700);
}

.logo-text {
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-500);
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    background: var(--plum-700);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.875rem !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
    background: var(--plum-600);
    transform: translateY(-1px);
}

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

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--plum-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--plum-900);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 10, 46, 0.88) 0%,
        rgba(91, 44, 111, 0.75) 50%,
        rgba(26, 10, 46, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    color: #fff;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.hero-headline em {
    font-style: italic;
    color: var(--amber-400);
}

.hero-description {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-secondary {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hero-actions .btn-secondary:hover {
    background: #fff;
    color: var(--plum-900);
    border-color: #fff;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(8px); }
    60% { transform: translateX(-50%) translateY(4px); }
}

/* ---- About ---- */
.about {
    padding: 120px 0;
    background: var(--warm-white);
}

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

.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image-wrap:hover img {
    transform: scale(1.03);
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(91, 44, 111, 0.12);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-700);
}

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

.stat-divider {
    width: 1px;
    background: rgba(91, 44, 111, 0.15);
    align-self: stretch;
}

/* ---- Menu ---- */
.menu {
    padding: 120px 0;
    background: var(--plum-50);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.menu-category {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(91, 44, 111, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.menu-category:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.category-icon {
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.5rem;
    color: var(--plum-700);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--amber-100);
}

.menu-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-items li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(91, 44, 111, 0.06);
}

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

.item-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--text-dark);
}

.item-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: right;
    flex-shrink: 0;
    max-width: 200px;
    line-height: 1.4;
}

.menu-note {
    margin-top: 48px;
    font-size: 0.9375rem;
    color: var(--text-light);
    font-style: italic;
}

/* ---- Gallery ---- */
.gallery {
    padding: 120px 0;
    background: var(--warm-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 16px;
    margin-top: 64px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

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

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

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

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

/* ---- Testimonial ---- */
.testimonial {
    padding: 120px 0;
    background: var(--plum-800);
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.testimonial-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    color: var(--amber-500);
    opacity: 0.4;
    margin-bottom: 32px;
}

.testimonial blockquote p {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    margin-bottom: 32px;
}

.testimonial-attribution {
    font-size: 0.9375rem;
    color: var(--amber-400);
    font-weight: 500;
}

/* ---- Visit ---- */
.visit {
    padding: 120px 0;
    background: var(--cream);
}

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

.visit-info .section-title {
    margin-bottom: 32px;
}

.visit-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-style: normal;
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.address-icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--plum-600);
}

.visit-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--plum-700);
    margin-bottom: 40px;
    transition: color 0.2s ease;
}

.visit-phone:hover {
    color: var(--amber-600);
}

.visit-phone svg {
    color: var(--amber-500);
}

.hours-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--plum-700);
    margin-bottom: 16px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(91, 44, 111, 0.08);
    font-size: 0.9375rem;
}

.hours-day {
    color: var(--text-dark);
    font-weight: 500;
}

.hours-time {
    color: var(--text-muted);
}

.visit-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 420px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--plum-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo {
    color: #fff;
}

.footer-brand .logo-icon path:first-child {
    stroke: #fff;
}

.footer-brand p,
.footer-brand a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand a:hover {
    color: var(--amber-400);
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--amber-400);
}

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.8;
}

.footer-copy p:last-child {
    margin-top: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

    .menu-grid {
        gap: 24px;
    }

    .gallery-grid {
        grid-template-rows: repeat(2, 220px);
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--warm-white);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 1.125rem;
    }

    .nav-cta {
        padding: 14px 28px !important;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(26, 10, 46, 0.5);
        z-index: 999;
    }

    .mobile-overlay.active {
        display: block;
    }

    .hero-content {
        padding: 100px 24px 80px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap {
        max-height: 400px;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

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

    .menu-category {
        padding: 28px;
    }

    .item-desc {
        max-width: 160px;
    }

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

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

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

    .gallery-item {
        height: 220px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }

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

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

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

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

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

    html {
        scroll-behavior: auto;
    }

    .scroll-indicator {
        animation: none;
    }

    .gallery-item img,
    .about-image-wrap img {
        transition: none;
    }
}

/* ---- Scroll reveal (progressive enhancement) ---- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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