/* ============================================
   MSP Observation Deck — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 60px;
    }
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 16px;
}

/* --- Section Headline --- */
.section-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 24px;
}

.section-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    max-width: 640px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
}

.btn-primary:hover {
    background-color: #0f766e;
    border-color: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #0f172a;
    border-color: #0f172a;
}

.btn-outline:hover {
    background-color: #0f172a;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-white {
    background-color: #ffffff;
    color: #0d9488;
    border-color: #ffffff;
}

.btn-white:hover {
    background-color: #f0fdfa;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-icon {
    flex-shrink: 0;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
}

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

@media (min-width: 768px) {
    .nav-inner {
        padding: 0 40px;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.nav-logo:hover {
    color: #0d9488;
}

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

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: #0d9488;
}

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

.nav-cta {
    background-color: #0d9488;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: #0f766e;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #0f172a;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.nav-toggle:hover {
    background-color: rgba(15, 23, 42, 0.06);
}

.nav-toggle .hamburger-close {
    display: none;
}

.nav-toggle.active .hamburger-line {
    display: none;
}

.nav-toggle.active .hamburger-close {
    display: block;
}

/* Mobile nav */
@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 245, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.1rem;
    }
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fafaf5;
    padding-top: 72px;
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    flex: 1;
}

@media (min-width: 768px) {
    .hero-inner {
        padding: 80px 40px 100px;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (min-width: 1024px) {
    .hero-inner {
        padding: 100px 60px 120px;
        gap: 80px;
    }
}

.hero-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 20px;
}

.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    line-height: 1.75;
    color: #475569;
    margin-bottom: 36px;
    max-width: 520px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: #cbd5e1;
}

.hero-image {
    position: relative;
}

.hero-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

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

.hero-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: #0d9488;
    border-radius: 16px;
    z-index: -1;
    opacity: 0.15;
}

.hero-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    font-size: 0.8125rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .hero-scroll-hint {
        display: none;
    }
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: #ffffff;
}

@media (min-width: 768px) {
    .about {
        padding: 120px 0;
    }
}

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

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    position: relative;
}

.about-img-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

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

.about-img-float {
    position: absolute;
    bottom: -32px;
    right: -16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
    border: 4px solid #ffffff;
}

.about-img-float img {
    display: block;
}

@media (max-width: 767px) {
    .about-img-float {
        display: none;
    }
}

/* --- Products --- */
.products {
    padding: 100px 0;
    background: #fafaf5;
}

@media (min-width: 768px) {
    .products {
        padding: 120px 0;
    }
}

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

.products-header .section-lead {
    margin: 0 auto;
}

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

@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.product-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

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

.product-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #0d9488;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
}

.product-card-body {
    padding: 24px;
}

.product-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.product-card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #64748b;
}

/* --- Space --- */
.space {
    padding: 100px 0;
    background: #ffffff;
}

@media (min-width: 768px) {
    .space {
        padding: 120px 0;
    }
}

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

@media (min-width: 768px) {
    .space-layout {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.space-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.space-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .space-image {
        aspect-ratio: 4/3;
    }
}

.space-content .section-lead,
.space-content p.space-desc {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 32px;
}

.space-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.space-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
}

.space-icon {
    color: #0d9488;
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.cta-eyebrow {
    color: #2dd4bf;
}

.cta-headline {
    color: #ffffff;
}

.cta-text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #94a3b8;
    margin-bottom: 40px;
}

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

/* --- Visit --- */
.visit {
    padding: 100px 0;
    background: #fafaf5;
}

@media (min-width: 768px) {
    .visit {
        padding: 120px 0;
    }
}

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

@media (min-width: 768px) {
    .visit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.visit-info .section-headline {
    margin-bottom: 32px;
}

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

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

.visit-icon {
    color: #0d9488;
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}

.visit-detail-value {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
}

.visit-detail-value a {
    color: #334155;
    transition: color 0.2s ease;
}

.visit-detail-value a:hover {
    color: #0d9488;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
    aspect-ratio: 4/3;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Footer --- */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 56px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 48px;
    }
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-logo:hover {
    color: #2dd4bf;
}

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #64748b;
}

.footer-heading {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a,
.footer-contact a {
    font-size: 0.9375rem;
    color: #64748b;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: #2dd4bf;
}

.footer-icon {
    flex-shrink: 0;
    color: #0d9488;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #475569;
}

.footer-bottom a {
    color: #475569;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #2dd4bf;
}

/* --- Reveal Animations --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
