/* ============================================
   Cam-AM Convenience Store — Stylesheet
   Classic & Elegant · Teal + Slate Grey
   ============================================ */

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

:root {
    --teal-900: #134f4a;
    --teal-800: #115e59;
    --teal-700: #0d9488;
    --teal-600: #14b8a6;
    --teal-500: #2dd4bf;
    --teal-100: #ccfbf1;
    --teal-50:  #f0fdfa;
    
    --slate-950: #050a13;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    
    --warm-50:  #fafaf9;
    --warm-100: #f5f5f4;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: var(--warm-50);
    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;
}

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

/* ---- Typography ---- */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate-600);
    max-width: 560px;
    line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-700);
    color: #fff;
}

.btn-primary:hover {
    background: var(--teal-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav.scrolled .nav-logo-text {
    color: var(--slate-900);
}

.nav.scrolled .nav-link {
    color: var(--slate-600);
}

.nav.scrolled .nav-link:hover {
    color: var(--teal-700);
}

.nav.scrolled .nav-cta {
    background: var(--teal-700);
    color: #fff;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s;
}

.nav-logo-icon {
    color: var(--teal-500);
}

.nav-logo-text {
    transition: color 0.3s;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 6px;
    margin-left: 8px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

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

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 10, 19, 0.55) 0%,
        rgba(5, 10, 19, 0.45) 40%,
        rgba(5, 10, 19, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-content-inner {
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 24px;
    padding: 6px 14px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 100px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
}

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

.hero-subheadline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 40px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

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

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--teal-100);
    border-radius: 12px;
    z-index: -1;
}

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

.about-text {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

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

.about-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: 10px;
    color: var(--teal-700);
    flex-shrink: 0;
}

.about-feature span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-700);
}

/* ---- Products Section ---- */
.products {
    padding: 120px 0;
    background: var(--slate-50);
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 56px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    transition: all 0.4s var(--ease-smooth);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
    border-color: var(--teal-200);
}

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

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

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

.product-card-content {
    padding: 28px;
}

.product-card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
}

.product-card-content p {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.7;
}

.products-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: 10px;
    color: var(--teal-800);
    font-size: 0.95rem;
}

.products-note svg {
    color: var(--teal-700);
    flex-shrink: 0;
}

/* ---- Community Section ---- */
.community {
    padding: 120px 0;
    background: var(--slate-900);
    position: relative;
    overflow: hidden;
}

.community::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.community-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.community-text .section-eyebrow {
    color: var(--teal-400);
}

.community-text .section-title {
    color: #fff;
}

.community-text p {
    font-size: 1.05rem;
    color: var(--slate-400);
    line-height: 1.8;
    margin-bottom: 16px;
}

.community-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat-item {
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-400);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-500);
}

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

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

.visit-description {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

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

.visit-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: 10px;
    color: var(--teal-700);
    flex-shrink: 0;
}

.visit-detail-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visit-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-500);
}

.visit-detail-value {
    font-size: 1rem;
    color: var(--slate-800);
    font-weight: 500;
}

.visit-detail-value a {
    color: var(--teal-700);
    transition: color 0.3s;
}

.visit-detail-value a:hover {
    color: var(--teal-800);
    text-decoration: underline;
}

/* Map placeholder */
.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--slate-100);
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-placeholder-content {
    text-align: center;
    padding: 40px;
}

.map-placeholder-content svg {
    color: var(--teal-700);
    margin-bottom: 16px;
}

.map-placeholder-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.map-placeholder-content p {
    color: var(--slate-500);
    margin-bottom: 24px;
}

/* ---- Footer ---- */
.footer {
    background: var(--slate-950);
    padding: 80px 0 0;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--teal-500);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-300);
    margin-bottom: 20px;
}

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

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

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

.footer-contact p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-phone {
    font-size: 1rem;
    font-weight: 600;
    color: var(--teal-400);
    transition: color 0.3s;
}

.footer-phone:hover {
    color: var(--teal-300);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px 0;
    font-size: 0.8rem;
    color: var(--slate-600);
}

.footer-bottom a {
    color: var(--slate-500);
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--teal-400);
}

/* ---- Scroll Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--slate-900);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right 0.4s var(--ease-smooth);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        color: var(--slate-300);
        font-size: 1rem;
        width: 100%;
        padding: 12px 16px;
    }
    
    .nav-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        text-align: center;
        width: 100%;
        background: var(--teal-700);
        border-color: var(--teal-700);
        color: #fff;
    }
    
    /* Mobile overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .nav-menu.open::before {
        display: none;
    }
    
    /* Hero */
    .hero-headline {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    /* Sections */
    .about,
    .products,
    .community,
    .visit {
        padding: 80px 0;
    }
    
    .about-grid,
    .community-content,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        height: 320px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .community-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1;
        min-width: 140px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 100px 20px 60px;
    }
    
    .product-card-content {
        padding: 20px;
    }
}
