/* ===================================
   Hubcap Coffee - Custom Styles
   Vibrant Modern | Charcoal + Coral
   =================================== */

/* CSS Custom Properties */
:root {
    --color-charcoal: #2D3436;
    --color-charcoal-dark: #1E272E;
    --color-charcoal-light: #636E72;
    --color-coral: #E76F51;
    --color-coral-light: #F4A261;
    --color-coral-dark: #C44536;
    --color-cream: #FEFAE0;
    --color-cream-dark: #F4F1DE;
    --color-white: #FFFFFF;
    --color-black: #0D1B2A;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.08);
    --shadow-md: 0 8px 30px rgba(45, 52, 54, 0.12);
    --shadow-lg: 0 20px 60px rgba(45, 52, 54, 0.15);
    --shadow-coral: 0 8px 30px rgba(231, 111, 81, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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(--color-charcoal);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

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

ul {
    list-style: none;
}

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

/* Geometric Background Shapes */
.geo-shape {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    opacity: 0.08;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-coral);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-coral-light);
    top: 40%;
    left: -80px;
    transform: rotate(45deg);
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--color-charcoal);
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
}

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

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-coral);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 3px;
    background: var(--color-coral);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-coral);
    color: var(--color-white);
    border-color: var(--color-coral);
    box-shadow: var(--shadow-coral);
}

.btn-primary:hover {
    background: var(--color-coral-dark);
    border-color: var(--color-coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(231, 111, 81, 0.4);
}

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(254, 250, 224, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-white);
    z-index: 1001;
}

.navbar.scrolled .logo {
    color: var(--color-charcoal-dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-coral);
    border-radius: var(--radius-sm);
    color: var(--color-white);
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--color-charcoal);
}

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

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

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

.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--color-charcoal);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--color-charcoal-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateX(0);
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    padding: 8px;
}

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

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/2097522/pexels-photo-2097522.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 39, 46, 0.88) 0%,
        rgba(45, 52, 54, 0.75) 50%,
        rgba(231, 111, 81, 0.4) 100%
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.tagline {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-coral-light);
    background: rgba(231, 111, 81, 0.15);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    border: 1px solid rgba(231, 111, 81, 0.3);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--color-white);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero h1 br {
    display: none;
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 24px 60px;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-coral-light);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Spacing */
section {
    padding: 100px 0;
}

/* About Section */
.about {
    background: var(--color-cream);
    position: relative;
}

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

.about-image {
    position: relative;
}

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

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--color-coral);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--color-charcoal-light);
    margin-bottom: 16px;
}

.features-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-coral);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    flex-shrink: 0;
}

/* Menu Section */
.menu {
    background: var(--color-charcoal-dark);
    position: relative;
    overflow: hidden;
}

.menu::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--color-coral);
    border-radius: 50%;
    opacity: 0.05;
}

.menu .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.menu .section-label {
    color: var(--color-coral-light);
}

.menu .section-label::before {
    background: var(--color-coral-light);
}

.menu h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.category-btn:hover,
.category-btn.active {
    background: var(--color-coral);
    color: var(--color-white);
    border-color: var(--color-coral);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(231, 111, 81, 0.3);
}

.menu-item-image {
    height: 200px;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.08);
}

.menu-item-content {
    padding: 20px;
}

.menu-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.menu-item-header h3 {
    font-size: 1.125rem;
    color: var(--color-white);
}

.menu-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--color-coral);
    color: var(--color-white);
}

.menu-item-content p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Location Section */
.location {
    background: var(--color-cream-dark);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.location-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.location-info > p {
    color: var(--color-charcoal-light);
    font-size: 1.0625rem;
    margin-bottom: 40px;
}

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

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

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-coral);
    border-radius: var(--radius-md);
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--color-charcoal-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

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

.contact-item a:hover {
    color: var(--color-coral-dark);
    text-decoration: underline;
}

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

/* Contact Section */
.contact {
    background: var(--color-charcoal);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: var(--color-coral);
    border-radius: 50%;
    opacity: 0.06;
}

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

.contact-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    margin-bottom: 16px;
}

.contact-content > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.0625rem;
    margin-bottom: 40px;
}

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

.info-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--color-coral);
    border-radius: var(--radius-md);
    color: var(--color-white);
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

.info-card a {
    color: var(--color-coral-light);
}

.info-card a:hover {
    color: var(--color-coral);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

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

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

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--color-cream-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-charcoal);
    transition: var(--transition);
    background: var(--color-cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-coral);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(231, 111, 81, 0.1);
}

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

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

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #d4edda;
    border-radius: 50%;
    color: #28a745;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--color-charcoal-dark);
}

.form-success p {
    color: var(--color-charcoal-light);
}

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

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

.footer-brand .logo {
    margin-bottom: 16px;
}

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

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

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

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

.footer-links a:hover {
    color: var(--color-coral);
    padding-left: 4px;
}

.footer-links li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--color-coral);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.newsletter-form button:hover {
    background: var(--color-coral-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 br {
        display: block;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .menu-categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 20px;
        font-size: 0.875rem;
    }
}
