/*
Theme Name: Explore Comox Valley
Theme URI: https://explorecomoxvalley.ca
Description: Child theme for Explore Comox Valley tourism website, based on Kadence.
Author: CVS1 Group 4
Author URI: https://nic.bc.ca
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: explore-comox-valley
*/

/* ============================================
   EXPLORE COMOX VALLEY — CUSTOM STYLES
   ============================================ */

/* --- Global --- */
html {
    scroll-behavior: smooth;
}

/* --- West Coast Color Variables --- */
:root {
    --ecv-forest: #2D5A3D;
    --ecv-ocean: #1B6B93;
    --ecv-sky: #A2D2E2;
    --ecv-sand: #E8DCC8;
    --ecv-sunset: #D4793A;
    --ecv-white: #FFFFFF;
    --ecv-dark: #1A1A2E;
    --ecv-light-gray: #F5F5F0;
    --ecv-accent: #4CAF7D;
}

/* --- Typography Enhancements --- */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
}

/* --- Hero Sections --- */
.ecv-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ecv-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--ecv-white), transparent);
    pointer-events: none;
}

.ecv-hero h1 {
    color: var(--ecv-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.ecv-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* --- Category Cards --- */
.ecv-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ecv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ecv-card img {
    transition: transform 0.6s ease;
}

.ecv-card:hover img {
    transform: scale(1.08);
}

.ecv-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.ecv-card-overlay h3 {
    color: var(--ecv-white);
    font-size: 1.5rem;
    margin: 0;
}

/* --- Sections --- */
.ecv-section {
    padding: 6rem 0;
}

.ecv-section-alt {
    background-color: var(--ecv-light-gray);
}

.ecv-section-dark {
    background-color: var(--ecv-dark);
    color: var(--ecv-white);
}

.ecv-section-forest {
    background-color: var(--ecv-forest);
    color: var(--ecv-white);
}

/* --- Parallax CTA Section --- */
.ecv-parallax-cta {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
}

.ecv-parallax-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 61, 0.75);
}

/* --- Buttons --- */
.ecv-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.ecv-btn-primary {
    background-color: var(--ecv-sunset);
    color: var(--ecv-white);
    border: 2px solid var(--ecv-sunset);
}

.ecv-btn-primary:hover {
    background-color: #c06a2f;
    border-color: #c06a2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 121, 58, 0.35);
}

.ecv-btn-outline {
    background: transparent;
    color: var(--ecv-white);
    border: 2px solid var(--ecv-white);
}

.ecv-btn-outline:hover {
    background: var(--ecv-white);
    color: var(--ecv-dark);
}

/* --- Testimonial --- */
.ecv-testimonial {
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--ecv-dark);
    position: relative;
    padding: 2rem 0;
}

.ecv-testimonial::before {
    content: '\201C';
    font-size: 6rem;
    color: var(--ecv-accent);
    opacity: 0.3;
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
    line-height: 1;
}

.ecv-testimonial-author {
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1.5rem;
    color: var(--ecv-forest);
}

/* --- Trip Ideas Cards --- */
.ecv-trip-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}

.ecv-trip-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.ecv-trip-card:hover::before {
    background: linear-gradient(to top, rgba(45, 90, 61, 0.85) 0%, rgba(45, 90, 61, 0.2) 50%, transparent 100%);
}

/* --- Newsletter Section --- */
.ecv-newsletter {
    text-align: center;
    padding: 5rem 2rem;
}

.ecv-newsletter input[type="email"] {
    padding: 1rem 1.5rem;
    border: 2px solid var(--ecv-sky);
    border-radius: 50px;
    font-size: 1rem;
    min-width: 320px;
    outline: none;
    transition: border-color 0.3s ease;
}

.ecv-newsletter input[type="email"]:focus {
    border-color: var(--ecv-ocean);
}

/* --- Google Maps Embed --- */
.ecv-map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.ecv-map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* --- Land Acknowledgement --- */
.ecv-land-ack {
    background-color: var(--ecv-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    border-top: 3px solid var(--ecv-forest);
}

/* --- Fade-in Animation --- */
.ecv-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ecv-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header --- */
.site-header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent header on hero pages */
.transparent-header .site-header {
    position: absolute;
    width: 100%;
    z-index: 100;
    background: transparent;
}

/* Sticky header scroll state */
.site-header.item-is-stuck {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* Navigation links */
.header-navigation .menu > li > a {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.header-navigation .menu > li > a:hover {
    color: var(--ecv-ocean) !important;
}

/* Header CTA button */
.header-button .button {
    background-color: var(--ecv-sunset) !important;
    color: var(--ecv-white) !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.header-button .button:hover {
    background-color: #c06a2f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 121, 58, 0.3);
}

/* Dropdown menus */
.header-navigation .sub-menu {
    background: var(--ecv-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: none;
    padding: 0.75rem 0;
    min-width: 220px;
}

.header-navigation .sub-menu li a {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-navigation .sub-menu li a:hover {
    background-color: var(--ecv-light-gray);
    color: var(--ecv-forest) !important;
}

/* --- Footer --- */
.site-footer {
    font-size: 0.95rem;
}

.ecv-footer-brand h3 {
    color: var(--ecv-white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.ecv-footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ecv-footer-social {
    display: flex;
    gap: 1rem;
}

.ecv-footer-social a {
    color: var(--ecv-sky);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ecv-footer-social a:hover {
    color: var(--ecv-white);
}

/* Footer navigation columns */
.footer-navigation .menu li {
    margin-bottom: 0.5rem;
}

.footer-navigation .menu li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-navigation .menu li a:hover {
    color: var(--ecv-white);
    padding-left: 4px;
}

/* Footer contact */
.ecv-footer-contact h4 {
    color: var(--ecv-white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.ecv-footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.ecv-footer-contact a {
    color: var(--ecv-sky);
    text-decoration: none;
}

.ecv-footer-contact a:hover {
    color: var(--ecv-white);
}

/* Copyright bar */
.ecv-copyright {
    margin-top: 0.5rem;
}

.ecv-copyright p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ecv-hero {
        min-height: 70vh;
    }

    .ecv-section {
        padding: 4rem 0;
    }

    .ecv-parallax-cta {
        background-attachment: scroll;
        padding: 5rem 1.5rem;
    }

    .ecv-newsletter input[type="email"] {
        min-width: 100%;
    }

    .ecv-map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .ecv-hero {
        min-height: 60vh;
    }

    .ecv-btn {
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
    }
}
