/* ==========================================================================
   NEXUSVIEWTICA - WHISTLER EDITORIAL REDESIGN
   ========================================================================== */

:root {
    /* New Color System */
    --c-deep: #11181C;
    --c-sec: #182329;
    --c-surf: #223038;
    --c-alpine: #4EA3C7;
    --c-glac: #8DD3E8;
    --c-sand: #D8C7A4;
    
    /* Typography Colors */
    --text-pri: #FFFFFF;
    --text-sec: #E6EEF2;
    --text-mut: #B8C6CC;
    
    /* Border System */
    --b-glac: rgba(141, 211, 232, 0.3);
    --b-wht: rgba(255, 255, 255, 0.15);
    --b-alpine: #4EA3C7;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-deep);
    color: var(--text-pri);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

h1, h2, h3, h4, h5 {
    color: var(--text-pri);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-sec);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility Backgrounds */
.bg-deep { background-color: var(--c-deep); }
.bg-sec { background-color: var(--c-sec); }
.bg-surf { background-color: var(--c-surf); }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-strip {
    background-color: var(--c-sec);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 0.5rem;
    color: var(--c-sand);
    border-bottom: 1px solid var(--b-wht);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(17, 24, 28, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--b-glac);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-pri);
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
}

.desktop-nav a {
    font-size: 0.95rem;
    color: var(--text-sec);
    font-weight: 500;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--c-glac);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-pri);
    position: absolute;
    transition: 0.3s ease;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }

.mobile-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Mobile Menu Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--c-deep);
    z-index: 99;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-inner a {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-pri);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--c-alpine);
    color: var(--c-deep);
}

.btn-primary:hover {
    background-color: var(--c-glac);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(141, 211, 232, 0.25);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--b-wht);
    color: var(--text-pri);
}

.btn-outline:hover {
    border-color: var(--c-alpine);
    color: var(--c-glac);
    background-color: rgba(78, 163, 199, 0.05);
}

.btn-text {
    background: none;
    border: none;
    color: var(--c-glac);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: var(--c-alpine);
    transform: translateX(5px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
}

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

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

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--c-deep) 0%, rgba(17,24,28,0.2) 60%, rgba(17,24,28,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.label-box {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--c-sand);
    margin-bottom: 1.5rem;
    border: 1px solid var(--b-wht);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-sec);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-inline: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   CONTENT GRIDS & EDITORIAL CARDS
   ========================================================================== */
.section-pad {
    padding: 7rem 0;
}

.section-head {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-head.center {
    text-align: center;
    margin-inline: auto;
}

.section-head h2 {
    font-size: 2.5rem;
    color: var(--c-glac);
    margin-bottom: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.ed-card {
    background-color: var(--c-surf);
    border: 1px solid var(--b-glac);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    height: 100%;
}

.ed-card:hover {
    border-color: var(--c-alpine);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.card-img-wrap {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--b-wht);
}

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

.ed-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-cat {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-alpine);
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 600;
}

.ed-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.ed-card .desc {
    color: var(--text-sec);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.ed-card .meta {
    font-size: 0.8rem;
    color: var(--text-mut);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--b-wht);
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.get-in-touch-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   EXPANDABLE CONTENT (READ MORE)
   ========================================================================== */
.extra-content {
    display: none;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.extra-content p {
    font-size: 0.95rem;
    color: var(--text-sec);
    margin-bottom: 1rem;
}

.extra-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   STORY ARTICLES
   ========================================================================== */
.story-article {
    display: flex;
    flex-direction: column;
    background-color: var(--c-surf);
    border: 1px solid var(--b-glac);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4rem;
    transition: all 0.3s ease;
}

.story-article:hover {
    border-color: var(--c-alpine);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.story-img {
    width: 100%;
    height: 350px;
}

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

.story-content {
    padding: 3rem;
}

.story-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-pri);
}

.story-content .intro {
    font-size: 1.15rem;
    color: var(--c-glac);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.story-body {
    margin-bottom: 2rem;
    border-top: 1px solid var(--b-wht);
    padding-top: 2rem;
}

.story-body p {
    margin-bottom: 1.5rem;
    color: var(--text-sec);
}

/* ==========================================================================
   SEASONAL TABS INTERFACE
   ========================================================================== */
.seasons-wrap {
    background-color: var(--c-surf);
    border: 1px solid var(--b-glac);
    border-radius: 12px;
    overflow: hidden;
}

.season-tabs {
    display: flex;
    border-bottom: 1px solid var(--b-glac);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-mut);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.tab-btn.active {
    color: var(--text-pri);
    border-color: var(--c-alpine);
    background-color: rgba(255,255,255,0.02);
}

.tab-btn:hover:not(.active) {
    color: var(--text-sec);
}

.season-pane {
    display: none;
    padding: 3rem;
    align-items: center;
    gap: 4rem;
}

.season-pane.active {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

.season-pane img {
    width: 50%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 4/3;
    border: 1px solid var(--b-wht);
}

.pane-text {
    width: 50%;
}

.pane-text h3 {
    font-size: 2rem;
    color: var(--c-glac);
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PAGE HERO & TEXT BLOCKS (For Internal Pages)
   ========================================================================== */
.page-hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    background-color: var(--c-sec);
    border-bottom: 1px solid var(--b-glac);
}

.page-hero h1 {
    font-size: 3.5rem;
    color: var(--text-pri);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--c-glac);
    max-width: 600px;
    margin: 0 auto;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.text-content h2 {
    margin-top: 2rem;
    color: var(--c-glac);
}

.text-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-sec);
}

.text-content li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.form-box {
    background-color: var(--c-surf);
    padding: 3rem;
    border: 1px solid var(--b-glac);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-sec);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: var(--c-deep);
    border: 1px solid var(--b-wht);
    color: var(--text-pri);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--c-alpine);
    box-shadow: 0 0 0 3px rgba(78, 163, 199, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-success {
    display: none;
    background-color: rgba(78, 163, 199, 0.1);
    border: 1px solid var(--c-alpine);
    color: var(--c-glac);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ==========================================================================
   FOOTER (EDITORIAL REDESIGN)
   ========================================================================== */
.site-footer {
    background-color: var(--c-sec);
    border-top: 1px solid var(--b-glac);
    padding: 5rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    border-bottom: 1px solid var(--b-wht);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

.footer-top h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-pri);
}

.footer-top p {
    max-width: 600px;
    color: var(--text-mut);
    font-size: 1.1rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--text-pri);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    margin-bottom: 0.85rem;
    color: var(--text-mut);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--c-alpine);
    transform: translateX(3px);
}

.footer-col address {
    font-style: normal;
    color: var(--text-mut);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--b-wht);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-mut);
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 992px) {
    .story-article {
        flex-direction: row;
    }
    .story-img {
        width: 45%;
        height: auto;
        min-height: 400px;
    }
    .story-content {
        width: 55%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .season-pane {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    .season-pane img, .pane-text {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .desktop-nav, .header-right .btn {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.75rem;
    }
    .grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .hero-btns .btn {
        width: 100%;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .season-tabs {
        flex-direction: column;
    }
    .tab-btn {
        border-bottom: 1px solid var(--b-wht);
        border-left: 2px solid transparent;
        padding: 1rem;
    }
    .tab-btn.active {
        border-bottom-color: var(--b-wht);
        border-left-color: var(--c-alpine);
    }
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}