/* ===================================
   Schoolhouse Grounds Coffee Shop
   Confident Corporate Style
   Midnight Blue + Mint Palette
   =================================== */

/* CSS Custom Properties */
:root {
    --midnight-blue: #0f172a;
    --midnight-blue-light: #1e293b;
    --midnight-blue-dark: #0a0f1a;
    --mint: #34d399;
    --mint-light: #6ee7b7;
    --mint-dark: #10b981;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--neutral-700);
    background-color: var(--neutral-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--midnight-blue);
    line-height: 1.2;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--mint);
    color: var(--midnight-blue);
    border-color: var(--mint);
}

.btn-primary:hover {
    background-color: var(--mint-dark);
    border-color: var(--mint-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--midnight-blue);
    border-color: var(--midnight-blue);
}

.btn-secondary:hover {
    background-color: var(--midnight-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Section Tags */
.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mint-dark);
    margin-bottom: var(--spacing-sm);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-500);
    line-height: 1.7;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--midnight-blue);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--mint);
    border-radius: var(--border-radius-md);
    color: var(--midnight-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

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

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

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

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

.nav-links .btn-primary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--midnight-blue);
    transition: all 0.3s ease;
}

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

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

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

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(135deg, transparent 0%, rgba(52, 211, 153, 0.05) 100%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(52, 211, 153, 0.15);
    color: var(--mint-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-full);
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-lg);
    color: var(--midnight-blue);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: var(--neutral-500);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--midnight-blue);
}

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

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

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 200px;
    height: 200px;
    background-color: var(--mint);
    border-radius: var(--border-radius-xl);
    z-index: -1;
    opacity: 0.3;
}

/* ===================================
   Menu Section
   =================================== */
.menu-section {
    padding: var(--spacing-3xl) 0;
    background-color: white;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.menu-card {
    background-color: var(--neutral-50);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--neutral-200);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--mint);
}

.menu-card-image {
    overflow: hidden;
    height: 220px;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.menu-card-content {
    padding: var(--spacing-lg);
}

.menu-card-title {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
}

.menu-card-desc {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

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

.menu-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
    color: var(--neutral-600);
}

.menu-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--mint);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--neutral-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--midnight-blue);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mint);
    margin-bottom: 0.25rem;
}

.badge-year {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.about-content {
    padding-left: var(--spacing-lg);
}

.about-text {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(52, 211, 153, 0.15);
    color: var(--mint-dark);
    border-radius: var(--border-radius-md);
    flex-shrink: 0;
}

.feature-text h4 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.9375rem;
    color: var(--neutral-500);
}

/* ===================================
   Visit Section
   =================================== */
.visit-section {
    padding: var(--spacing-3xl) 0;
    background-color: white;
}

.visit-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.visit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.visit-card {
    background-color: var(--neutral-50);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.visit-card:hover {
    border-color: var(--mint);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.visit-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--midnight-blue);
    color: var(--mint);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

.visit-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.visit-card-text {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.visit-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mint-dark);
    transition: gap 0.3s ease;
}

.visit-card-link:hover {
    gap: 0.75rem;
}

.visit-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(52, 211, 153, 0.15);
    color: var(--mint-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
}

.visit-card-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--mint);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--midnight-blue);
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info .section-tag {
    color: var(--mint);
}

.contact-info .section-title {
    color: white;
    margin-bottom: var(--spacing-md);
}

.contact-text {
    font-size: 1.0625rem;
    color: var(--neutral-400);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(52, 211, 153, 0.15);
    color: var(--mint);
    border-radius: var(--border-radius-md);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-300);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 1rem;
    color: white;
}

.contact-form-wrapper {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--neutral-700);
    transition: all 0.3s ease;
    background-color: var(--neutral-50);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
    background-color: white;
}

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

.form-success {
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: rgba(52, 211, 153, 0.1);
    border: 1px solid var(--mint);
    border-radius: var(--border-radius-md);
    color: var(--mint-dark);
    font-weight: 500;
    margin-top: var(--spacing-md);
}

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

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

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--midnight-blue-dark);
    color: var(--neutral-400);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--mint);
    color: var(--midnight-blue);
    border-radius: var(--border-radius-md);
}

.footer-text {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: var(--spacing-md);
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: var(--neutral-400);
    transition: color 0.3s ease;
}

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

.footer-links li {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    font-size: 0.9375rem;
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--neutral-800);
    text-align: center;
    font-size: 0.875rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        gap: var(--spacing-2xl);
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        border-bottom: 1px solid var(--neutral-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 400px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-image-badge {
        right: 10px;
        bottom: -20px;
    }
    
    .about-content {
        padding-left: 0;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .menu-card-content {
        padding: var(--spacing-md);
    }
}

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

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