/*
*  File: style.css
*  Project: Spanish Beaches - Guide
*  Design System: Futuristic, Volumetric UI
*  Color Scheme: Neutral
*  Animation Style: Morphing
*/

/* =========================
   1. CSS Variables
   ========================= */
:root {
    /* Fonts */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    /* Neutral Color Palette */
    --color-primary: #007aff; /* A vibrant yet clean blue for accents */
    --color-primary-dark: #0056b3;
    --color-secondary: #34c759; /* A fresh green for success states */
    --color-text: #2c2c2e; /* Dark gray for high contrast text */
    --color-text-muted: #6c757d;
    --color-text-light: #ffffff;
    --color-background-light: #f8f9fa;
    --color-background-dark: #1c1c1e;
    --color-border: #dee2e6;

    /* Volumetric UI Styles */
    --border-radius: 1rem;
    --transition-speed: 0.3s;
    --volumetric-shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.07);
    --volumetric-shadow-heavy: 0 8px 15px rgba(0, 0, 0, 0.1), 0 20px 40px rgba(0, 0, 0, 0.1);
    --volumetric-shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --button-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
    --button-shadow-hover: 0 6px 15px rgba(0, 122, 255, 0.4);
}

/* =========================
   2. Global Styles & Resets
   ========================= */
body {
    font-family: var(--font-secondary);
    background-color: var(--color-text-light);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

.bg-light {
    background-color: var(--color-background-light) !important;
}

.bg-dark {
    background-color: var(--color-background-dark) !important;
}

/* =========================
   3. Utility & Helper Classes
   ========================= */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-overlay, .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
}

/* =========================
   4. Global Components
   ========================= */

/* --- Buttons --- */
.btn-volumetric, .btn-primary {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px; /* Modern pill shape */
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--button-shadow);
    transform: translateY(0);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.btn-volumetric:hover, .btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    transform: translateY(-3px);
    box-shadow: var(--button-shadow-hover);
}

/* --- Cards --- */
.card-volumetric {
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--color-text-light);
    box-shadow: var(--volumetric-shadow-light);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-volumetric:hover {
    transform: translateY(-10px);
    box-shadow: var(--volumetric-shadow-heavy);
}

.card-volumetric .card-image {
    width: 100%;
    aspect-ratio: 3 / 2; /* Ensures consistent image proportions */
    overflow: hidden;
    margin: 0 auto;
}

.card-volumetric .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.card-volumetric:hover .card-image img {
    transform: scale(1.05);
}

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

.card-volumetric .card-title {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

/* --- Forms --- */
.form-control-volumetric {
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--volumetric-shadow-inset);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-control-volumetric:focus {
    border-color: var(--color-primary);
    box-shadow: var(--volumetric-shadow-inset), 0 0 0 3px rgba(0, 122, 255, 0.25);
    background-color: #fff;
    outline: none;
}

.form-floating > label {
    color: var(--color-text-muted);
}

/* =========================
   5. Header & Navigation
   ========================= */
.header {
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background var(--transition-speed) ease;
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-light) !important;
    background-color: var(--color-primary);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* =========================
   6. Section Styles
   ========================= */

/* --- Hero Section --- */
.hero {
    height: 100vh;
    color: var(--color-text-light);
}

/* --- Features Section --- */
.features-section .card-body {
    text-align: left;
    align-items: flex-start;
}

/* --- Statistics Section --- */
.stat-widget {
    background: var(--color-text-light);
    box-shadow: var(--volumetric-shadow-light);
    transition: transform var(--transition-speed) ease;
}

.stat-widget:hover {
    transform: scale(1.05);
}

.stat-widget h3 {
    color: var(--color-primary);
}

.progress-bar {
    background-color: var(--color-primary);
}

/* --- Innovation Section --- */
.innovation-section .section-title {
    color: var(--color-text-light);
}
.innovation-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* --- Instructors/Guides Section --- */
.guides-section .card-img-top.rounded-circle {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* --- External Resources Section --- */
.external-resources-section .list-group-item {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    border-color: var(--color-border);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.external-resources-section .list-group-item:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateX(10px);
    border-color: var(--color-primary);
}

/* --- FAQ Section --- */
.accordion-item {
    border: none;
    border-radius: var(--border-radius) !important;
    margin-bottom: 1rem;
    box-shadow: var(--volumetric-shadow-light);
    overflow: hidden;
}
.accordion-button {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
}
.accordion-button:not(.collapsed) {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
}
.accordion-body {
    background-color: #fff;
}

/* --- Contact Section --- */
.contact-section .section-title, .contact-section .lead {
    color: var(--color-text-light);
}

/* =========================
   7. Footer
   ========================= */
.footer {
    background-color: var(--color-background-dark);
}

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

.footer p, .footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed) ease;
}

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

/* =========================
   8. Page-Specific Styles
   ========================= */

/* --- Success Page --- */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--color-background-light);
}

.success-page .success-container {
    max-width: 600px;
    padding: 3rem;
    background-color: var(--color-text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--volumetric-shadow-heavy);
}

/* --- Privacy & Terms Pages --- */
.content-page {
    padding-top: 120px;
    padding-bottom: 60px;
}

.content-page h1 {
    margin-bottom: 2rem;
}

.content-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* =========================
   9. Responsive Design
   ========================= */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--color-background-dark);
        border-radius: var(--border-radius);
        padding: 1rem;
        margin-top: 0.5rem;
    }
    .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    .hero {
        height: 90vh;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .stat-widget {
        margin-bottom: 2rem;
    }
}