/*
  File: style.css
  Project: Historic Spain
  Design System: Futuristic, Curved Grids
  Color Scheme: Split-Complementary
  Animation Style: Microanimations
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */

:root {
    /* Color Palette (Split-Complementary) */
    --primary-color: #0d47a1; /* Deep, Historic Blue */
    --primary-color-dark: #0a2e6e;
    --accent-color-1: #ff8f00; /* Amber/Orange */
    --accent-color-2: #d84315; /* Deep Orange/Reddish */
    --background-dark: #111827; /* Very Dark Blue/Gray */
    --background-light: #f3f4f6;
    --text-light: #e5e7eb;
    --text-dark: #222222;
    --text-muted: #9ca3af;

    /* Fonts */
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    --transition-fast: 0.3s ease;
}

/* ---------------------------------- */
/*          Global Styles             */
/* ---------------------------------- */

html {
    scroll-behavior: smooth;
    background-color: var(--background-dark);
    color: var(--text-light);
}

body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------- */
/*             Typography             */
/* ---------------------------------- */

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.title.is-2 {
    margin-bottom: 2rem !important;
}

a {
    color: var(--accent-color-1);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color-2);
}

.content ul {
    list-style: disc inside;
}

.content li {
    margin-bottom: 0.5em;
}

/* ---------------------------------- */
/*              Layout                */
/* ---------------------------------- */

.section {
    padding: 4rem 1.5rem;
}

.curved-grid-container {
    background-color: #1a2436;
    position: relative;
}

/* ---------------------------------- */
/*           Header & Navbar          */
/* ---------------------------------- */
.navbar.is-fixed-top {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-item, .navbar-link {
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--accent-color-1) !important;
}

.navbar-burger {
    color: var(--text-light);
}

.navbar-burger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-menu {
    background: transparent;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-dark);
    }
}


/* ---------------------------------- */
/*             Hero Section           */
/* ---------------------------------- */

#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Overlay for readability */
#hero::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.4));
    z-index: 1;
}

#hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero .title.has-text-white, 
#hero .subtitle.has-text-white {
    color: #FFFFFF !important;
}

/* ---------------------------------- */
/*       Buttons & Forms (Global)     */
/* ---------------------------------- */
.button.futuristic-button, button[type='submit'] {
    background-color: var(--accent-color-1);
    color: var(--text-dark);
    border: 2px solid var(--accent-color-1);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    padding: 0.75rem 1.75rem;
    box-shadow: 0 4px 15px rgba(255, 143, 0, 0.3);
}

.button.futuristic-button:hover, button[type='submit']:hover {
    background-color: var(--accent-color-2);
    border-color: var(--accent-color-2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(216, 67, 21, 0.4);
    color: var(--background-light);
}

.input.futuristic-input, .textarea.futuristic-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    transition: all var(--transition-fast);
}

.input.futuristic-input::placeholder, .textarea.futuristic-input::placeholder {
    color: var(--text-muted);
}

.input.futuristic-input:focus, .textarea.futuristic-input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color-1);
    box-shadow: 0 0 15px rgba(255, 143, 0, 0.3);
}

.label {
    color: var(--text-light);
    font-weight: 600;
}


/* ---------------------------------- */
/*         Cards (Global)             */
/* ---------------------------------- */
.card {
    background-color: rgba(31, 41, 55, 0.7); /* Darker than body */
    border-radius: var(--border-radius-md);
    box-shadow: none;
    transition: all var(--transition-fast);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card .card-image {
    width: 100%;
}

.card .card-image img {
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    object-fit: cover;
    height: 250px; /* Fixed height for consistency */
    width: 100%;
}

/* Team section specific card styling for rounded images */
#team .card {
    background-color: transparent;
    box-shadow: none;
}
#team .card-image {
    padding: 1rem;
}
#team .card .card-image img.is-rounded {
    border: 4px solid var(--primary-color-dark);
}
#team .card:hover {
    transform: none;
    box-shadow: none;
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space */
}

.card .title {
    color: var(--accent-color-1);
}

.card .subtitle, .card .content {
    color: var(--text-light);
}

/* Futuristic Card for History Section */
.futuristic-card {
    border: 1px solid var(--primary-color-dark);
    backdrop-filter: blur(5px);
    background: linear-gradient(145deg, rgba(13, 71, 161, 0.2), rgba(10, 46, 110, 0.3));
}

/* ---------------------------------- */
/*       Section-Specific Styles      */
/* ---------------------------------- */

/* Statistics */
.has-background-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.has-background-parallax::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(17, 24, 39, 0.7);
}

#statistics .container {
    position: relative;
    z-index: 2;
}

.progress {
    background-color: rgba(255, 255, 255, 0.1);
}

.progress::-webkit-progress-value {
    background-color: var(--accent-color-1);
}
.progress::-moz-progress-bar {
    background-color: var(--accent-color-1);
}

/* News */
.card.article {
    margin-bottom: 2rem;
}

/* Clientele */
#clientele .partner-logo {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
#clientele .partner-logo:hover {
    color: var(--text-light);
    transform: scale(1.05);
}

/* External Resources */
#resources ul {
    list-style: none;
    margin: 0;
}
#resources li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
#resources a {
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-left: 25px;
}
#resources a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color-2);
    transition: transform var(--transition-fast);
}
#resources a:hover::before {
    transform: translateX(5px);
}

/* ---------------------------------- */
/*            Footer Styles           */
/* ---------------------------------- */
.footer {
    background-color: #0c1320; /* Slightly darker than main background */
    color: var(--text-muted);
    padding: 3rem 1.5rem;
}

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

.footer a {
    color: var(--text-muted);
}

.footer a:hover {
    color: var(--accent-color-1);
}

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

.footer li {
    margin-bottom: 0.5rem;
}

/* ---------------------------------- */
/*       Animation & Interaction      */
/* ---------------------------------- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Add delays for staggered animations */
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate:nth-child(4) { transition-delay: 0.3s; }

/* ---------------------------------- */
/*      Other Pages (Success, etc)    */
/* ---------------------------------- */

body.success-page, body.privacy-page, body.terms-page, body.about-page, body.contacts-page {
    background-color: var(--background-dark);
}

.success-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.legal-content, .about-content, .contacts-content {
    padding-top: 100px; /* Offset for fixed header */
    padding-bottom: 4rem;
}

.legal-content h1, .legal-content h2,
.about-content h1, .about-content h2,
.contacts-content h1, .contacts-content h2 {
    color: var(--accent-color-1);
    margin-bottom: 1.5rem;
}

/* ---------------------------------- */
/*         Responsive Design          */
/* ---------------------------------- */

/* Tablet */
@media screen and (max-width: 1023px) {
    .section {
        padding: 3rem 1.5rem;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .section {
        padding: 2.5rem 1rem;
    }

    .title.is-1 {
        font-size: 2.5rem;
    }

    .title.is-2 {
        font-size: 2rem;
    }

    body {
        font-size: 1rem;
    }

    .has-background-parallax {
        background-attachment: scroll; /* Parallax doesn't work well on mobile */
    }

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