/* ============================================================
   reNEWed Brew Coffee Company — style.css
   Design system: espresso + cream + sage, Lora serif + Caveat script
   Mobile-first, 375px → desktop
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
    --rn-espresso:    #2a1810;
    --rn-espresso-dk: #1a0e08;
    --rn-cream:       #f4eee5;
    --rn-cream-lt:    #faf7f2;
    --rn-tan:         #c9a980;
    --rn-tan-lt:      #dfc5a0;
    --rn-sage:        #8aa57a;
    --rn-sage-dk:     #6b8661;
    --rn-rust:        #b86948;
    --rn-rust-lt:     #d08060;
    --rn-warm-gray:   #7a6e62;
    --rn-border:      #e0d4c4;

    --font-display: 'Lora', Georgia, serif;
    --font-script:  'Caveat', cursive;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --banner-h: 40px;
    --header-h: 64px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm:  0 1px 3px rgba(42,24,16,0.10);
    --shadow-md:  0 4px 16px rgba(42,24,16,0.12);
    --shadow-lg:  0 12px 40px rgba(42,24,16,0.18);

    --transition: 0.2s ease;
}

/* ── FOCUS INDICATORS (keyboard navigation) ── */
:focus-visible {
    outline: 2px solid var(--rn-tan);
    outline-offset: 3px;
    border-radius: 2px;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible {
    outline: 2px solid var(--rn-tan);
    outline-offset: 3px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--banner-h) + var(--header-h) + 8px);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--rn-espresso);
    background-color: var(--rn-cream-lt);
    -webkit-font-smoothing: antialiased;
}

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

address {
    font-style: normal;
}

a {
    color: var(--rn-rust);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--rn-rust-lt);
}

/* ── CONTAINER ── */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 640px) {
    .container { padding: 0 32px; }
}

@media (min-width: 1024px) {
    .container { padding: 0 48px; }
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--rn-rust);
    color: #fff;
    border-color: var(--rn-rust);
}

.btn-primary:hover {
    background-color: var(--rn-rust-lt);
    border-color: var(--rn-rust-lt);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--rn-espresso);
    border-color: var(--rn-espresso);
}

.btn-outline:hover {
    background-color: var(--rn-espresso);
    color: var(--rn-cream);
}

.btn-sage {
    background-color: var(--rn-sage);
    color: #fff;
    border-color: var(--rn-sage);
}

.btn-sage:hover {
    background-color: var(--rn-sage-dk);
    border-color: var(--rn-sage-dk);
    color: #fff;
}

/* ── SECTION SHARED TYPOGRAPHY ── */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rn-tan);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--rn-espresso);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--rn-warm-gray);
    max-width: 520px;
    line-height: 1.7;
}

/* ── IMAGE PLACEHOLDERS ── */
.img-placeholder {
    position: relative;
    background-color: var(--rn-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(42,24,16,0.05) 0px,
        rgba(42,24,16,0.05) 1px,
        transparent 1px,
        transparent 18px
    );
}

.placeholder-caption {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rn-espresso);
    text-align: center;
    line-height: 1.6;
    padding: 14px 18px;
    background: rgba(244,238,229,0.88);
    border: 1px dashed var(--rn-tan);
    border-radius: var(--radius-sm);
}

/* ======================================================
   MOCKUP BANNER
   ====================================================== */
.mockup-banner {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: var(--rn-espresso-dk);
    color: var(--rn-tan);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 10px 16px;
    line-height: 1.4;
    min-height: var(--banner-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mockup-banner a {
    color: var(--rn-tan-lt);
    text-decoration: underline;
    white-space: nowrap;
}

.mockup-banner a:hover {
    color: #fff;
}

/* ======================================================
   STICKY HEADER / NAV
   ====================================================== */
.site-header {
    position: sticky;
    top: var(--banner-h);
    z-index: 100;
    background: var(--rn-cream-lt);
    border-bottom: 1px solid var(--rn-border);
    height: var(--header-h);
    transition: box-shadow var(--transition);
}

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

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

/* Logo */
.logo-link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    color: var(--rn-espresso);
}

.logo-wordmark {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rn-espresso);
    line-height: 1;
}

.logo-wordmark .logo-new {
    color: var(--rn-rust);
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rn-warm-gray);
    padding-bottom: 2px;
}

/* Desktop nav */
.site-nav {
    display: none;
    gap: 32px;
    align-items: center;
}

.site-nav a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rn-espresso);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}

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

.site-nav a:hover {
    color: var(--rn-rust);
}

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

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

/* Mobile hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--rn-espresso);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

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

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

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

/* Mobile nav open state */
@media (max-width: 767px) {
    .site-header {
        position: sticky;
    }

    .site-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--rn-cream-lt);
        border-bottom: 1px solid var(--rn-border);
        box-shadow: var(--shadow-md);
        padding: 12px 0 20px;
        transform: translateY(-4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition), transform var(--transition);
    }

    .site-nav.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .site-nav a {
        padding: 14px 24px;
        font-size: 0.88rem;
    }

    .site-nav a::after {
        display: none;
    }
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    max-height: 640px;
    background-color: var(--rn-espresso);
}

.hero-img .placeholder-caption {
    background: rgba(42,24,16,0.72);
    border-color: var(--rn-tan);
    color: var(--rn-cream);
}

@media (max-width: 640px) {
    .hero-img {
        aspect-ratio: 4 / 5;
        max-height: 560px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
        to top,
        rgba(26,14,8,0.85) 0%,
        rgba(26,14,8,0.40) 45%,
        rgba(26,14,8,0.10) 75%,
        transparent 100%
    );
    padding-bottom: 48px;
}

.hero-content {
    color: #fff;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rn-tan-lt);
    margin-bottom: 12px;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 8px;
}

.hero-heading .brand-new {
    color: var(--rn-tan-lt);
}

.hero-tagline {
    font-family: var(--font-script);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
    line-height: 1.3;
}

/* ======================================================
   MENU TEASER
   ====================================================== */
.menu-section {
    padding: 80px 0 64px;
    background: var(--rn-cream-lt);
}

.section-header {
    margin-bottom: 48px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

@media (min-width: 640px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.menu-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--rn-border);
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: default;
}

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

.menu-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.menu-card-img .placeholder-caption {
    font-size: 0.72rem;
    padding: 10px 12px;
}

.menu-card-body {
    padding: 18px 20px 22px;
}

.menu-card-category {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rn-tan);
    margin-bottom: 6px;
}

.menu-card-name {
    font-family: var(--font-script);
    font-size: 1.65rem;
    color: var(--rn-espresso);
    line-height: 1.2;
    margin-bottom: 8px;
}

.menu-card-desc {
    font-size: 0.85rem;
    color: var(--rn-warm-gray);
    line-height: 1.55;
}

.menu-card-price {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rn-rust);
    background: rgba(184,105,72,0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

.menu-cta {
    margin-top: 48px;
    padding: 32px 40px;
    background: var(--rn-espresso);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

@media (min-width: 640px) {
    .menu-cta {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.menu-cta-text {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--rn-cream);
    line-height: 1.3;
}

/* ======================================================
   ABOUT
   ====================================================== */
.about-section {
    padding: 80px 0;
    background: var(--rn-cream);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 768px) {
    .about-inner {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .about-inner {
        grid-template-columns: 3fr 2fr;
    }
}

.about-lead {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--rn-espresso);
    margin-bottom: 20px;
}

.about-body {
    font-size: 1rem;
    color: var(--rn-warm-gray);
    line-height: 1.78;
}

.about-body + .about-body {
    margin-top: 14px;
}

.about-body em {
    color: var(--rn-espresso);
    font-style: italic;
}

/* Ghost-domain rescue callout */
.rescue-callout {
    margin-top: 28px;
    padding: 18px 22px;
    background: var(--rn-rust);
    color: #fff;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    position: relative;
}

.rescue-callout::before {
    content: '★ ';
    font-size: 0.9rem;
    opacity: 0.85;
}

.rescue-callout a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.rescue-callout a:hover {
    color: #fff;
}

.about-photo-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--rn-border);
}

.about-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 280px;
    background-color: var(--rn-espresso);
}

.about-img .placeholder-caption {
    background: rgba(42,24,16,0.72);
    border-color: var(--rn-tan);
    color: var(--rn-cream);
}

/* ======================================================
   VISIT (hours + map)
   ====================================================== */
.visit-section {
    padding: 80px 0;
    background: var(--rn-cream-lt);
}

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

@media (min-width: 768px) {
    .visit-inner {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.address-block {
    margin-bottom: 40px;
}

.address-block h3 {
    margin-bottom: 8px;
}

.address-block address {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--rn-espresso);
    margin-bottom: 10px;
}

.address-note {
    font-size: 0.85rem;
    color: var(--rn-warm-gray);
    font-style: italic;
    margin-top: 6px;
}

.parking-note {
    font-size: 0.85rem;
    color: var(--rn-warm-gray);
    font-style: italic;
    margin-top: 8px;
}

/* Hours table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.hours-table td {
    padding: 9px 0;
    border-bottom: 1px solid var(--rn-border);
    color: var(--rn-espresso);
}

.hours-table td:first-child {
    font-weight: 600;
    width: 110px;
}

.hours-val {
    color: var(--rn-warm-gray);
}

.hours-row--highlight td {
    color: var(--rn-rust);
    font-weight: 600;
}

/* Map */
.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--rn-border);
}

.visit-map iframe {
    display: block;
    width: 100%;
    height: 400px;
}

@media (max-width: 640px) {
    .visit-map iframe {
        height: 280px;
    }
}

/* ======================================================
   CONTACT
   ====================================================== */
.contact-section {
    padding: 80px 0;
    background: var(--rn-espresso);
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.012) 0px,
        rgba(255,255,255,0.012) 1px,
        transparent 1px,
        transparent 4px
    );
}

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

@media (min-width: 768px) {
    .contact-inner {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.contact-text .section-label {
    color: var(--rn-tan-lt);
}

.contact-text .section-title {
    color: var(--rn-cream);
}

.contact-lead {
    font-size: 1.05rem;
    color: rgba(244,238,229,0.72);
    margin-top: 8px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
    width: 20px;
    color: var(--rn-tan);
    margin-top: 3px;
}

.contact-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rn-tan);
    margin-bottom: 3px;
}

.contact-value {
    font-size: 1rem;
    color: var(--rn-cream);
    font-weight: 500;
}

a.contact-value:hover {
    color: var(--rn-tan-lt);
}

/* Social row */
.social-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--rn-cream);
    padding: 10px 18px;
    border: 1.5px solid rgba(201,169,128,0.4);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-link:hover {
    border-color: var(--rn-tan);
    color: var(--rn-tan-lt);
    background: rgba(201,169,128,0.1);
}

.contact-cta {
    align-self: flex-start;
}

/* ======================================================
   FOOTER
   ====================================================== */
.site-footer {
    background: var(--rn-espresso-dk);
    color: rgba(244,238,229,0.6);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

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

.footer-wordmark {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--rn-cream);
}

.footer-wordmark .logo-new {
    color: var(--rn-tan);
}

.footer-tagline {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: rgba(244,238,229,0.45);
    line-height: 1.2;
}

.footer-legal {
    text-align: right;
    font-size: 0.78rem;
    line-height: 1.7;
}

@media (max-width: 639px) {
    .footer-legal {
        text-align: left;
    }
}

.footer-credit {
    color: rgba(244,238,229,0.35);
}

.footer-credit a {
    color: var(--rn-tan);
}

.footer-credit a:hover {
    color: var(--rn-tan-lt);
}
