/*
    style.css
    Theme: Retro Tourism
    Design System: Retro
    Color Scheme: Tetradic
    Fonts: Poppins (Headings), Work Sans (Body)
*/

/* ---------------------------------- */
/*         CSS Variables              */
/* ---------------------------------- */
:root {
    --primary-color: #D95F29; /* Burnt Orange */
    --secondary-color: #0B7A75; /* Teal */
    --accent-color-1: #8C2F39; /* Deep Red */
    --accent-color-2: #C7B42D; /* Golden Yellow */

    --text-dark: #222222;
    --text-light: #FFFFFF;
    --text-muted: #555555;
    
    --background-light: #FFF8F0; /* Creamy White */
    --background-section-light: #FDF5EC;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.3s ease-in-out;
}

/* ---------------------------------- */
/*         Global Styles              */
/* ---------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-light);
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: clamp(16px, 1.1vw, 18px); /* Adaptive typography */
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-primary);
    color: var(--text-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.title.is-1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.title.is-2, .section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem !important; }
.title.is-3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.title.is-4 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

/* Links */
a {
    color: var(--secondary-color);
    transition: var(--transition-smooth);
    font-weight: 500;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Sections */
.section {
    padding: 4rem 1.5rem;
}

.section.has-background-light {
    background-color: var(--background-section-light);
}


/* ---------------------------------- */
/*         Buttons & Forms            */
/* ---------------------------------- */
.button.is-primary.retro-button, 
button.retro-button,
input[type='submit'].retro-button {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    padding: 1.25em 2.5em;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
}

.button.is-primary.retro-button:hover,
button.retro-button:hover,
input[type='submit'].retro-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.retro-input,
.retro-input.textarea {
    font-family: var(--font-secondary);
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
    box-shadow: none;
    transition: var(--transition-smooth);
}

.retro-input:focus,
.retro-input.textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(11, 122, 117, 0.2);
}

.contact-form .label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-muted);
}

/* ---------------------------------- */
/*     Header & Navigation            */
/* ---------------------------------- */
.navbar.is-fixed-top {
    background-color: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar-item.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-menu .navbar-item {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 1.25rem;
    position: relative;
}

.navbar-menu .navbar-item::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-menu .navbar-item:hover::after,
.navbar-menu .navbar-item.is-active::after {
    transform: scaleX(1);
}

/* Burger menu */
.navbar-burger {
    color: var(--text-dark);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-light);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        padding: 0.5rem 0;
        border-radius: var(--border-radius);
    }
}

/* ---------------------------------- */
/*         Section Styling            */
/* ---------------------------------- */

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-title {
    font-weight: 700;
}

.hero-subtitle {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* About Us Section */
#about .content p {
    margin-bottom: 1.5rem;
}

/* Card Styling (Portfolio, Testimonials, Press etc.) */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card .card-image img {
    width: 100%;
    height: 250px; /* Fixed height for image containers */
    object-fit: cover; /* Ensures images cover the area without distortion */
}

.card .card-content {
    text-align: center;
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card .card-content .title {
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-slide .media-content {
    text-align: left;
}
.testimonial-slide .content {
    font-style: italic;
    color: var(--text-muted);
}
.testimonial-slide img.is-rounded {
    border: 3px solid var(--secondary-color);
}

/* Innovation (Timeline) */
.timeline .timeline-header .tag {
    background-color: var(--accent-color-1);
    font-family: var(--font-primary);
}

.timeline .timeline-item .timeline-marker.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* External Resources */
#resources .external-link {
    display: inline-block;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    text-decoration: none;
}

#resources .external-link:hover {
    background-color: var(--background-section-light);
    border-bottom-color: var(--primary-color);
}

/* ---------------------------------- */
/*         Footer Styling             */
/* ---------------------------------- */
.footer {
    background-color: var(--text-dark);
    color: #ccc;
    padding: 3rem 1.5rem;
}

.footer .title {
    color: var(--text-light);
}

.footer p {
    color: #ccc;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer ul {
    list-style: none;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer .content.has-text-centered {
    border-top: 1px solid #444;
    padding-top: 2rem;
    margin-top: 2rem;
}

/* ---------------------------------- */
/*      Specific Page Styling         */
/* ---------------------------------- */

/* For success.html */
.success-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-light);
}

.success-box {
    background: var(--text-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* For privacy.html, terms.html */
.legal-page-container,
.about-page-container,
.contacts-page-container {
    padding-top: 100px; /* Offset for fixed navbar */
}
.legal-page-container .content h2,
.about-page-container .content h2,
.contacts-page-container .content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ---------------------------------- */
/*         Utility Classes            */
/* ---------------------------------- */
.is-fullheight {
    min-height: 100vh;
}