/* ========================================
   Scenic General Store — Custom Styles
   Teal + Slate Grey | Warm & Friendly
======================================== */

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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --warm-50: #fffbeb;
    --warm-100: #fef3c7;
    --warm-200: #fde68a;
    --warm-500: #f59e0b;
    --warm-600: #d97706;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15), 0 8px 20px rgba(15, 23, 42, 0.08);

    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--slate-800);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    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 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-100);
    transition: box-shadow var(--transition);
}

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--teal-700);
    transition: color var(--transition);
}

.nav-logo:hover {
    color: var(--teal-600);
}

.nav-logo svg {
    color: var(--teal-600);
}

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

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--teal-700);
    background: var(--teal-50);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--teal-700) !important;
    background: var(--teal-50) !important;
    font-weight: 600 !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--teal-100) !important;
    color: var(--teal-800) !important;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--slate-700);
    transition: all var(--transition);
}

.nav-toggle:hover {
    background: var(--slate-100);
}

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

/* ---------- Hero ---------- */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(160deg, var(--teal-50) 0%, #f0fdf4 50%, var(--warm-50) 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: radial-gradient(circle at 2px 2px, var(--teal-600) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    position: relative;
}

/* Hero Card */
.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 48px;
}

.hero-card-content {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--teal-700);
    background: var(--teal-100);
    padding: 6px 14px;
    border-radius: 100px;
    width: fit-content;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--slate-900);
}

.hero-sub {
    font-size: 1.063rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

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

.btn-primary {
    background: var(--teal-600);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
    background: var(--teal-700);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--slate-100);
    color: var(--slate-700);
}

.btn-secondary:hover {
    background: var(--slate-200);
    color: var(--slate-900);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--teal-700);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.hero-card-image {
    position: relative;
    min-height: 380px;
}

.hero-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Stat Cards */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card--teal {
    background: var(--teal-600);
    color: #fff;
}

.stat-card--slate {
    background: var(--slate-700);
    color: #fff;
}

.stat-card--warm {
    background: var(--warm-600);
    color: #fff;
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.813rem;
    opacity: 0.85;
}

/* ---------- Section Common ---------- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal-600);
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--slate-900);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.063rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ---------- Products ---------- */
.products {
    background: var(--slate-50);
}

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

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

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

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

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

.product-content {
    padding: 28px;
}

.product-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 8px;
}

.product-content p {
    font-size: 0.938rem;
    color: var(--slate-500);
    line-height: 1.65;
}

/* ---------- About ---------- */
.about {
    background: #fff;
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid #fff;
}

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

.about-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    color: var(--teal-200);
    opacity: 0.6;
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text {
    font-size: 1.063rem;
    color: var(--slate-600);
    line-height: 1.75;
}

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

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

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

.about-feature strong {
    display: block;
    font-size: 0.938rem;
    color: var(--slate-800);
    margin-bottom: 2px;
}

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

/* ---------- Community / Values ---------- */
.community {
    background: linear-gradient(160deg, var(--teal-700) 0%, var(--teal-800) 100%);
    color: #fff;
}

.community .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--teal-200);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.community .section-sub {
    color: var(--teal-200);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    color: var(--teal-200);
    margin-bottom: 20px;
}

.value-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.value-card p {
    font-size: 0.938rem;
    color: var(--teal-100);
    line-height: 1.7;
}

/* ---------- Visit / Contact ---------- */
.visit {
    background: var(--slate-50);
}

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

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

.visit-sub {
    font-size: 1.063rem;
    color: var(--slate-500);
    line-height: 1.7;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--teal-50);
    color: var(--teal-600);
    flex-shrink: 0;
}

.contact-card strong {
    display: block;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.938rem;
    color: var(--slate-700);
    line-height: 1.6;
}

.contact-card a {
    color: var(--teal-600);
    font-weight: 600;
    transition: color var(--transition);
}

.contact-card a:hover {
    color: var(--teal-700);
}

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

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--warm-500) 0%, var(--warm-600) 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--slate-900);
    color: var(--slate-300);
    padding: 64px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--slate-800);
}

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

.footer-logo svg {
    color: var(--teal-400);
}

.footer-brand p {
    font-size: 0.938rem;
    line-height: 1.7;
    color: var(--slate-400);
    max-width: 320px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col h4 {
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-200);
    margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 0.938rem;
    color: var(--slate-400);
    padding: 5px 0;
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.813rem;
    color: var(--slate-500);
}

.footer-bottom p {
    margin: 0;
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal[data-revealed="true"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-card {
        grid-template-columns: 1fr;
    }
    .hero-card-image {
        min-height: 280px;
    }
    .hero-card-content {
        padding: 40px 32px;
    }
    .about-layout {
        gap: 48px;
    }
    .about-img-main img {
        height: 450px;
    }
    .about-img-secondary img {
        width: 260px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--slate-100);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }
    .nav-cta {
        margin-left: 0 !important;
        justify-content: center;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-toggle[aria-expanded="true"] svg line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle[aria-expanded="true"] svg line:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] svg line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    .hero-card-content {
        padding: 32px 24px;
    }
    .hero-card-image {
        min-height: 220px;
    }
    .stat-card {
        flex: 1;
        min-width: 0;
        padding: 14px 18px;
    }
    .stat-icon {
        width: 36px;
        height: 36px;
    }
    .stat-number {
        font-size: 1rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }

    .section {
        padding: 72px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .about-img-main img {
        height: 360px;
    }
    .about-img-secondary {
        right: 0;
        bottom: -24px;
    }
    .about-img-secondary img {
        width: 220px;
        height: 180px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .visit-layout {
        grid-template-columns: 1fr;
    }
    .visit-map {
        min-height: 300px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-links {
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
    }
    .stat-card {
        width: 100%;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}
