/* BASE STYLES & VARIABLES */
:root {
    /* Primary */
    --cedar: #8A5A3B;
    --deep-evergreen: #29463B;
    --charcoal: #252724;
    
    /* Supporting */
    --linen: #F5F1E8;
    --warm-white: #FCFBF7;
    --soft-stone: #D9D3C8;
    --mist-green: #DDE6DF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1400px;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--warm-white);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.2;
}

a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-linen { background-color: var(--linen); }
.bg-mist { background-color: var(--mist-green); }
.bg-charcoal { background-color: var(--charcoal); color: var(--warm-white); }
.bg-charcoal h2, .bg-charcoal h3, .bg-charcoal a { color: var(--warm-white); }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--charcoal);
    background: transparent;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--charcoal);
    color: var(--warm-white);
}

.btn-primary {
    background: var(--cedar);
    border-color: var(--cedar);
    color: var(--warm-white);
}

.btn-primary:hover {
    background: var(--deep-evergreen);
    border-color: var(--deep-evergreen);
}

.btn-text {
    border: none;
    padding: 0;
    border-bottom: 1px solid var(--cedar);
    text-transform: none;
    font-size: 1rem;
    color: var(--cedar);
}

.btn-text:hover {
    background: transparent;
    color: var(--deep-evergreen);
    border-color: var(--deep-evergreen);
}

/* HEADER */
header {
    background-color: var(--warm-white);
    border-top: 4px solid var(--cedar);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.desktop-nav a {
    font-size: 0.95rem;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--cedar);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

.desktop-nav a.active {
    font-weight: 500;
    color: var(--cedar);
}

.header-action .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--charcoal);
    transition: 0.3s;
}

.mobile-nav-panel {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--warm-white);
    padding: 2rem 5%;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-nav-panel.open {
    transform: translateX(0);
}

.mobile-nav-panel ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-panel a {
    font-family: var(--font-heading);
    font-size: 2rem;
    display: block;
}

.mobile-nav-panel a.active {
    color: var(--cedar);
}

/* HERO SECTION */
.hero {
    height: 85vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(37, 39, 36, 0.7) 0%, rgba(37, 39, 36, 0.2) 100%);
}

.hero-content {
    max-width: 600px;
    color: var(--warm-white);
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--warm-white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* EDITORIAL TYPOGRAPHY & HEADERS */
.section-header {
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cedar);
    display: block;
    margin-bottom: 0.5rem;
}

/* EDITORIAL LAYOUTS */
.editorial-split {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}
.editorial-split.reverse {
    flex-direction: row-reverse;
}
.editorial-split-image {
    flex: 1;
}
.editorial-split-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.editorial-split-content {
    flex: 1;
}
.editorial-split-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.editorial-split-content p {
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: var(--spacing-xl);
}
.feature-card img {
    aspect-ratio: 3/2;
    margin-bottom: 1.5rem;
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pull-quote {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-style: italic;
    text-align: center;
    max-width: 900px;
    margin: var(--spacing-xl) auto;
    color: var(--cedar);
    line-height: 1.4;
}

.full-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}
.full-banner-bg {
    position: absolute; top:0; left:0; width:100%; height:100%; z-index:-1;
}
.full-banner-bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.full-banner-bg::after {
    content:''; position:absolute; top:0;left:0;width:100%;height:100%;
    background: rgba(0,0,0,0.5);
}
.full-banner-content {
    text-align: center;
    color: var(--warm-white);
    max-width: 700px;
    padding: 2rem;
}
.full-banner-content h2 {
    color: var(--warm-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* HOME IDEAS (Editorial Layout, No Grid) */
.ideas-editorial {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.idea-row {
    display: flex;
    align-items: center;
    gap: 5%;
}

.idea-row:nth-child(even) {
    flex-direction: row-reverse;
}

.idea-image {
    flex: 1;
    position: relative;
}

.idea-image img {
    aspect-ratio: 4/5;
    width: 100%;
}

.idea-content {
    flex: 1;
    padding: 2rem 0;
}

.idea-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.idea-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
}

/* CANADIAN HOME STYLES (Horizontal Scroll) */
.styles-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--cedar) var(--linen);
}

.styles-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}
.styles-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--linen);
}
.styles-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--cedar);
}

.styles-track {
    display: flex;
    gap: 2rem;
    width: max-content;
}

.style-item {
    width: 400px;
}

.style-item img {
    aspect-ratio: 3/2;
    margin-bottom: 1.5rem;
}

.style-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* INTERACTIVE TABS (Design Explorer & Seasonal) */
.interactive-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tab-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--soft-stone);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #888;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--cedar);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--charcoal);
}

.tab-btn.active {
    color: var(--charcoal);
    font-weight: 500;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content-area {
    position: relative;
    min-height: 500px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

.tab-pane-inner {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.tab-pane-image {
    flex: 6;
}

.tab-pane-image img {
    aspect-ratio: 16/10;
    width: 100%;
}

.tab-pane-text {
    flex: 4;
}

.tab-pane-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.tab-pane-text p {
    font-size: 1.1rem;
}

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

/* SEASONAL ACCORDION CARDS */
.seasonal-cards-container {
    display: flex;
    height: 70vh;
    min-height: 500px;
    gap: 1rem;
    width: 100%;
    margin-bottom: var(--spacing-xl);
}
.seasonal-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 4px;
}
.seasonal-card.active {
    flex: 3.5;
    cursor: default;
}
.seasonal-card .card-bg {
    position: absolute; top:0; left:0; right:0; bottom:0; z-index: 1;
}
.seasonal-card .card-bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.seasonal-card::after {
    content:''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
    transition: background 0.5s;
}
.seasonal-card:not(.active):hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 100%);
}
.seasonal-card .card-title {
    position: absolute; bottom: 2rem; left: 2rem; z-index: 3;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.seasonal-card .card-title h3 {
    color: var(--warm-white); margin:0; font-size: 2rem;
    font-family: var(--font-heading);
}
.seasonal-card .card-content {
    position: absolute; bottom: 2rem; left: 2rem; right: 2rem; z-index: 3;
    color: var(--warm-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
    max-width: 500px;
}
.seasonal-card.active .card-title {
    transform: translateY(-90px);
}
.seasonal-card.active .card-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
    pointer-events: auto;
}

/* EDITORIAL STORIES (Masonry-ish) */
.stories-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.story-featured {
    grid-column: 1 / -1;
    display: flex;
    gap: 3rem;
    align-items: center;
    border-bottom: 1px solid var(--soft-stone);
    padding-bottom: 3rem;
    margin-bottom: 1rem;
}

.story-featured .story-image {
    flex: 2;
}
.story-featured .story-text {
    flex: 1;
}

.story-item {
    display: flex;
    flex-direction: column;
}

.story-image img {
    aspect-ratio: 16/9;
    margin-bottom: 1.5rem;
    width: 100%;
}
.story-featured .story-image img {
    aspect-ratio: 21/9;
}

.story-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* RENOVATION & OUTDOOR (Staggered Layout) */
.staggered-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.stagger-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
.stagger-col:nth-child(2) {
    margin-top: 5rem;
}
.stagger-card h3 {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.5rem;
}

/* FORMS & CONTENT PAGES */
.page-header {
    background-color: var(--linen);
    padding: 6rem 0 4rem;
    text-align: center;
}
.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.content-wrapper h2 {
    margin: 2rem 0 1rem;
}
.content-wrapper p {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--soft-stone);
    background: var(--warm-white);
    font-family: var(--font-body);
    font-size: 1rem;
}
textarea.form-control {
    height: 150px;
    resize: vertical;
}
.form-control:focus {
    outline: none;
    border-color: var(--cedar);
}

/* FOOTER */
footer {
    background-color: var(--charcoal);
    color: var(--warm-white);
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: var(--warm-white);
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: #aaa;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--warm-white);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a, .footer-col p {
    color: #aaa;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--warm-white);
}

.footer-address {
    background-color: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-left: 2px solid var(--cedar);
}
.footer-address p {
    margin-bottom: 0.2rem;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 400px;
    background-color: var(--warm-white);
    border: 1px solid var(--soft-stone);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3.5rem; }
    .idea-row, .idea-row:nth-child(even),
    .editorial-split, .editorial-split.reverse {
        flex-direction: column;
    }
    .idea-content { padding: 1rem 0; }
    .tab-pane-inner { flex-direction: column; gap: 2rem; }
    .story-featured { flex-direction: column; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    
    .editorial-split-image img { aspect-ratio: 16/9; }
}

@media (max-width: 900px) {
    .seasonal-cards-container {
        flex-direction: column;
        height: 1000px;
    }
    .seasonal-card.active .card-title {
        transform: translateY(-110px);
    }
}

@media (max-width: 768px) {
    .desktop-nav, .header-action { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .hero { min-height: 500px; height: 70vh; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { text-align: center; }

    .stories-layout { grid-template-columns: 1fr; }
    .staggered-layout { flex-direction: column; gap: 4rem; }
    .stagger-col:nth-child(2) { margin-top: 0; }
    
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    
    .cookie-banner {
        bottom: 0; left: 0; max-width: 100%;
        border-radius: 0; border: none; border-top: 1px solid var(--soft-stone);
    }
}