/**
 * RV Destinations - Main Stylesheet
 * A travel-inspired design with bold typography and warm colors
 */

/* ========================================
   CSS Variables & Root
   ======================================== */
:root {
    --color-primary: #ff6600;
    --color-primary-dark: #e55a00;
    --color-secondary: #1a1a1a;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #999999;
    --color-gray-dark: #333333;
    --color-text: #333333;
    --color-text-light: #666666;

    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --font-script: 'Brush Script MT', 'Segoe Script', cursive;
    --font-body: 'Open Sans', 'Segoe UI', sans-serif;

    --header-height: 80px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

/* ========================================
   Header Component
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background-size: cover;
    background-position: center;
    transition: background-color var(--transition-normal);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: -1;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.header-logo {
    position: relative;
    left: 0;
    z-index: 1001;
}

.header-logo img {
    height: 50px;
    width: auto;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background-color: var(--color-secondary);
    padding: calc(var(--header-height) + 20px) 30px 30px;
    transition: right var(--transition-normal);
    overflow-y: auto;
    z-index: 1000;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu a {
    display: block;
    padding: 15px 0;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

/* Submenu */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    padding-left: 20px;
}

.submenu.active {
    max-height: 500px;
}

.submenu a {
    font-size: 14px;
    padding: 10px 0;
    color: rgba(255,255,255,0.7);
}

.submenu a:hover {
    color: var(--color-primary);
}

.has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.has-submenu > a::after {
    content: '+';
    font-size: 20px;
    transition: transform var(--transition-fast);
}

.has-submenu.active > a::after {
    transform: rotate(45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Hero Component
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-overlay-img {
    position: absolute;
}

.hero-content {
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 1;
}

.hero-main-text {
    font-family: var(--font-display);
    font-size: clamp(48px, 12vw, 160px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.hero-secondary-text {
    position: absolute;
    right: 60px;
    bottom: 30%;
    font-family: var(--font-script);
    font-size: clamp(36px, 6vw, 80px);
    font-style: italic;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-feather {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.hero-feather img {
    width: 100%;
    display: block;
}

/* ========================================
   Search Component
   ======================================== */
.search-section {
    padding: 40px 20px;
    background-color: var(--color-white);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 0;
    box-shadow: var(--shadow-medium);
    border-radius: 50px;
    overflow: hidden;
    background: var(--color-white);
    border: 2px solid var(--color-gray-light);
    transition: border-color var(--transition-fast);
}

.search-form:focus-within {
    border-color: var(--color-primary);
}

.search-input {
    flex: 1;
    padding: 18px 30px;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: transparent;
    outline: none;
}

.search-input::placeholder {
    color: var(--color-gray);
}

.search-button {
    padding: 18px 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-button:hover {
    background-color: var(--color-primary-dark);
}

/* ========================================
   Section Components
   ======================================== */
.section {
    padding: 60px 20px;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title {
    display: inline-block;
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 10px 30px;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 100%;
    background-image: var(--title-bg-image);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.3;
}

.section-title span {
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 5px;
}

/* Feathered Section */
.feathered-section {
    position: relative;
    background-color: var(--color-gray);
    padding: 80px 20px;
}

.feather-top,
.feather-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1;
}

.feather-top {
    top: 0;
    transform: rotate(180deg);
}

.feather-bottom {
    bottom: 0;
}

.feather-top img,
.feather-bottom img {
    width: 100%;
    display: block;
}

/* ========================================
   Footer Component
   ======================================== */
.site-footer {
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 60px 20px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
}

.footer-links h4,
.footer-social h4,
.footer-newsletter h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.twitter {
    background-color: #1da1f2;
}

.social-icon.youtube {
    background-color: #ff0000;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
}

.footer-newsletter p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-secondary-text {
        right: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav-menu {
        width: 100%;
        right: -100%;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-secondary-text {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 20px;
        text-align: center;
    }

    .search-form {
        flex-direction: column;
        border-radius: 12px;
    }

    .search-input {
        padding: 16px 20px;
        text-align: center;
    }

    .search-button {
        padding: 16px 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-main-text {
        font-size: 36px;
    }

    .hero-secondary-text {
        font-size: 28px;
    }

    .section {
        padding: 40px 15px;
    }
}

/* ========================================
   Animation Keyframes
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ========================================
   Search Results Page
   ======================================== */
.search-results {
    padding: 40px 20px;
    min-height: 50vh;
}

.search-results-container {
    max-width: 1000px;
    margin: 0 auto;
}

.search-results h2 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.search-query {
    background-color: var(--color-gray-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-query strong {
    color: var(--color-primary);
}
