/* ===================================
   Starkey Coffee — Custom Styles
   =================================== */

/* CSS Custom Properties */
:root {
    --green-50: #f2f7f2;
    --green-100: #e3efe3;
    --green-200: #c5dfc5;
    --green-300: #8fc58f;
    --green-400: #5fa85f;
    --green-500: #3d8b3d;
    --green-600: #2d6e2d;
    --green-700: #245724;
    --green-800: #1e451e;
    --green-900: #173517;
    
    --off-white: #fafaf7;
    --cream: #f5f5ef;
    --warm-white: #fefdf9;
    --sand: #e8e4d8;
    --warm-gray: #8a8578;
    --dark: #1a1f1a;
    --dark-soft: #2d332d;
    
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(26, 31, 26, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 31, 26, 0.08);
    --shadow-lg: 0 8px 40px rgba(26, 31, 26, 0.12);
    --shadow-xl: 0 16px 60px rgba(26, 31, 26, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

.accent {
    color: var(--green-600);
    font-style: italic;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--green-400);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 560px;
    margin: 0 auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-600);
    color: #fff;
    box-shadow: 0 4px 16px rgba(45, 110, 45, 0.3);
}

.btn-primary:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(45, 110, 45, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--sand);
}

.btn-ghost:hover {
    border-color: var(--green-400);
    color: var(--green-700);
    background: var(--green-50);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.875rem;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 228, 216, 0.5);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 250, 247, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--dark);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--warm-gray);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--green-600);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-400);
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 247, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--dark);
    transition: color var(--transition);
}

.mobile-link:hover {
    color: var(--green-600);
}

.mobile-cta {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--green-50) 50%, var(--cream) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(143, 197, 143, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 228, 216, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--green-200);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--green-700);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--warm-gray);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--green-600);
}

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

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

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-image-accent {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: #fff;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.floating-card-icon {
    width: 40px;
    height: 40px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
}

.floating-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.floating-card-text {
    font-size: 0.8rem;
    color: var(--warm-gray);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--off-white);
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--off-white);
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--off-white);
}

.about-img-secondary img {
    width: 280px;
    height: 240px;
    object-fit: cover;
}

.about-pattern {
    position: absolute;
    top: -30px;
    right: -20px;
    opacity: 0.4;
}

.about-content {
    padding-right: 20px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
}

.about-feature h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.about-feature p {
    font-size: 0.875rem;
    color: var(--warm-gray);
    line-height: 1.5;
}

/* Menu Section */
.menu {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--off-white) 0%, var(--green-50) 100%);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 48px 0 40px;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--warm-gray);
    background: transparent;
    border: 1.5px solid var(--sand);
    transition: all var(--transition);
}

.menu-tab:hover {
    border-color: var(--green-300);
    color: var(--green-700);
}

.menu-tab.active {
    background: var(--green-600);
    border-color: var(--green-600);
    color: #fff;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.menu-panel {
    display: none;
    flex-direction: column;
    gap: 24px;
}

.menu-panel.active {
    display: flex;
}

.menu-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(232, 228, 216, 0.5);
    transition: all var(--transition);
}

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

.menu-card-img {
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform var(--transition);
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.05);
}

.menu-card-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.menu-card-body > p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

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

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9rem;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--sand);
}

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

.menu-list li span:first-child {
    font-weight: 500;
    color: var(--dark);
}

.menu-list li span:last-child {
    font-size: 0.8rem;
    color: var(--warm-gray);
}

.menu-note {
    text-align: center;
    margin-top: 40px;
}

.menu-note p {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--warm-gray);
    background: rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    border-radius: 50px;
}

/* Visit Section */
.visit {
    padding: 100px 0;
    background: var(--off-white);
}

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

.visit-info {
    padding-right: 20px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.visit-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
}

.visit-detail h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.visit-detail p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--green-600);
    transition: color var(--transition);
}

.visit-detail a:hover {
    color: var(--green-800);
}

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

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--cream) 100%);
}

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

.contact-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 32px;
}

.contact-quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--green-700);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--green-800);
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--off-white);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-400);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(95, 168, 95, 0.1);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    gap: 16px;
}

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

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--green-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.form-success p {
    font-size: 0.95rem;
    color: var(--warm-gray);
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--green-300);
}

.footer-hours p,
.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom p:last-child {
    color: rgba(255, 255, 255, 0.4);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }
    
    .about-grid {
        gap: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image-wrapper img {
        height: 350px;
    }
    
    .hero-floating-card {
        left: 16px;
        bottom: -10px;
    }
    
    .hero-wave svg {
        height: 50px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-img-secondary {
        right: 0;
        bottom: -30px;
    }
    
    .about-img-secondary img {
        width: 220px;
        height: 180px;
    }
    
    .menu-card {
        grid-template-columns: 1fr;
    }
    
    .menu-card-img {
        height: 200px;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .visit-info {
        padding-right: 0;
    }
    
    .visit-map {
        min-height: 300px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .menu-tabs {
        gap: 6px;
    }
    
    .menu-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
}
