/* ============================================
   Pecos Tile — Styles
   Midnight Blue + Mint · Clean Minimalist
   ============================================ */

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

:root {
    --midnight: #0A1628;
    --midnight-light: #132240;
    --midnight-mid: #1A2D4A;
    --mint: #34D4A8;
    --mint-light: #5EEBC0;
    --mint-pale: #E8FBF4;
    --white: #FFFFFF;
    --off-white: #F7F9FC;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, 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-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.section {
    padding: 120px 0;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 16px;
}

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

.text-accent {
    color: var(--mint);
}

/* ── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--mint-light);
    border-color: var(--mint-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 212, 168, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
    border-color: var(--mint);
    color: var(--mint);
    transform: translateY(-2px);
}

.btn--ghost-light {
    background: transparent;
    color: var(--midnight);
    border-color: var(--gray-200);
}

.btn--ghost-light:hover {
    border-color: var(--mint);
    color: var(--midnight);
    transform: translateY(-2px);
}

/* ── Navigation ───────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(52, 212, 168, 0.1);
    transition: background 0.3s var(--ease-smooth);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav__logo-mark {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: var(--mint);
    border-radius: 5px;
    position: relative;
}

.nav__logo-mark::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 9px;
    height: 9px;
    background: var(--midnight);
    border-radius: 2px;
}

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

.nav__link {
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--mint);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mint);
    border: 1px solid rgba(52, 212, 168, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav__cta:hover {
    background: rgba(52, 212, 168, 0.1);
    border-color: var(--mint);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 8px;
}

/* ── Hero ─────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--midnight);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: 
        linear-gradient(rgba(52, 212, 168, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 212, 168, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 20px;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 28px;
}

.hero__accent {
    color: var(--mint);
    font-style: italic;
}

.hero__sub {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    margin-bottom: 40px;
    font-weight: 300;
}

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

.hero__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: var(--midnight-light);
    border: 1px solid rgba(52, 212, 168, 0.15);
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s var(--ease-smooth);
}

.stat-card:hover {
    border-color: rgba(52, 212, 168, 0.4);
    transform: translateX(-4px);
}

.stat-card--1 { border-left: 3px solid var(--mint); }
.stat-card--2 { border-left: 3px solid var(--mint-light); }
.stat-card--3 { border-left: 3px solid rgba(52, 212, 168, 0.5); }

.stat-card__number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
}

.stat-card__label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Products ─────────────────────────────── */
.products {
    background: var(--off-white);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.35s var(--ease-smooth);
}

.product-card:hover {
    border-color: var(--mint);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.1);
}

.product-card__img {
    overflow: hidden;
    aspect-ratio: 3/2;
}

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

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

.product-card__info {
    padding: 28px;
}

.product-card__info h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--midnight);
    margin-bottom: 10px;
}

.product-card__info p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 16px;
}

.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mint);
    transition: gap 0.2s;
}

.product-card:hover .product-card__link {
    gap: 10px;
}

/* ── Why Us ───────────────────────────────── */
.why-us {
    background: var(--white);
}

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

.why-us__body {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-top: 24px;
}

.why-us__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.feature {
    padding: 0;
}

.feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--mint-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint);
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--midnight);
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.65;
}

/* ── Gallery ──────────────────────────────── */
.gallery {
    background: var(--off-white);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    margin-top: 56px;
}

.gallery__item {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
}

.gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

/* ── Visit ────────────────────────────────── */
.visit {
    background: var(--white);
}

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

.visit__info {
    display: flex;
    flex-direction: column;
}

.visit__address {
    font-style: normal;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visit__detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.visit__detail svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--mint);
}

.visit__detail a {
    color: var(--gray-600);
    transition: color 0.2s;
}

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

.visit__hours {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.visit__hours h4 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.visit__hours ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visit__hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-600);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.visit__hours li span:last-child {
    color: var(--midnight);
    font-weight: 500;
}

.visit__map {
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--gray-200);
}

.visit__map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
}

/* ── CTA ──────────────────────────────────── */
.cta {
    background: var(--midnight);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: 
        linear-gradient(rgba(52, 212, 168, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 212, 168, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta .section-title {
    color: var(--white);
}

.cta__body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    margin-bottom: 40px;
}

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

/* ── Footer ───────────────────────────────── */
.footer {
    background: var(--midnight);
    border-top: 1px solid rgba(52, 212, 168, 0.1);
    padding: 72px 0 32px;
}

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

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__logo-mark {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--mint);
    border-radius: 4px;
    position: relative;
}

.footer__logo-mark::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: var(--midnight);
    border-radius: 2px;
}

.footer__brand p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 280px;
}

.footer__links h4,
.footer__contact h4 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
}

.footer__links ul,
.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a,
.footer__contact a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--mint);
}

.footer__contact li {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer__bottom {
    padding-top: 28px;
}

.footer__bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ── Scroll Reveal ────────────────────────── */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* ── Mobile Menu ──────────────────────────── */
@media (max-width: 900px) {
    .nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--midnight);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        border-top: 1px solid rgba(52, 212, 168, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s var(--ease-smooth);
    }

    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav__menu li:last-child {
        border-bottom: none;
        padding-top: 16px;
    }

    .nav__link {
        display: block;
        padding: 14px 0;
        font-size: 0.9375rem;
    }

    .nav__cta {
        justify-content: center;
        margin-top: 8px;
    }
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero__cards {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 140px;
    }

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

    .why-us__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why-us__features {
        grid-template-columns: 1fr;
    }

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

    .gallery__item--wide {
        grid-column: span 2;
    }

    .visit__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        justify-content: center;
    }

    .stat-card {
        min-width: 100%;
    }

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

    .gallery__item--wide {
        grid-column: span 1;
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }
}
