/* ===== CSS Variables ===== */
:root {
    --primary-color: #1a3a5c;
    --primary-dark: #0f2440;
    --accent-color: #c8a951;
    --accent-hover: #b8993f;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --text-muted: #6b6b6b;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --bg-dark: #1a2332;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Accessibility ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.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;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 80px;
    width: 80px;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    min-height: 85vh;
    margin-top: 80px;
}

.slider-images {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 1s ease, transform 1s ease;
}

.slider-image.active {
    opacity: 1;
    transform: translateX(0);
}

.slider-image.slide-out {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-slider .parallax-overlay {
    z-index: 1;
}

.hero-slider .parallax-content {
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* ===== Parallax Sections ===== */
.parallax-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parallax-section:first-of-type {
    margin-top: 80px;
}

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

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 36, 64, 0.65);
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 800px;
}

.parallax-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.parallax-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.parallax-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.parallax-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 35px;
    background: var(--accent-color);
    color: var(--primary-dark);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.parallax-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(200, 169, 81, 0.4);
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 35px;
    text-transform: uppercase;
}

/* ===== Content Blocks (between parallax) ===== */
.content-block {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.content-block.block-white {
    background: var(--bg-white);
    text-align: center;
}

.content-block.block-light {
    background: var(--bg-light);
}

.content-block.block-accent {
    background: var(--accent-color);
    text-align: center;
}

.content-block.block-dark {
    background: var(--primary-dark);
    text-align: center;
}

.content-block.block-accent .block-text {
    font-size: 1.15rem;
    color: var(--primary-dark);
    max-width: 900px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.8;
}

.content-block.block-dark h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Intro Banner ===== */
.intro-banner {
    background: var(--accent-color);
    padding: 50px 20px;
    text-align: center;
}

.intro-banner p {
    font-size: 1.1rem;
    color: var(--primary-dark);
    max-width: 900px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.8;
}

/* ===== Welcome Section ===== */
.welcome-section,
.content-block.block-white .welcome-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
}

.content-block.block-white h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.welcome-content p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.welcome-content strong {
    color: var(--primary-color);
}

.welcome-content .highlight-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-top: 25px;
}

/* ===== Services Grid ===== */
.services-grid,
.content-block.block-light {
    padding: 80px 20px;
    background: var(--bg-light);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== Newsletter Section ===== */
.newsletter-section {
    padding: 60px 20px;
    background: var(--primary-dark);
    text-align: center;
}

.newsletter-section h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.3);
}

.btn-subscribe {
    padding: 14px 30px;
    background: var(--accent-color);
    color: var(--primary-dark);
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-subscribe:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-dark);
    padding: 40px 20px;
    text-align: center;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.copyright {
    color: #aaa;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.btn-join {
    background: var(--accent-color);
    color: var(--primary-dark) !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-join:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn-login {
        display: none;
    }

    .parallax-section {
        min-height: 60vh;
    }

    .parallax-img {
        background-attachment: scroll;
    }

    .parallax-content h1 {
        font-size: 2.2rem;
    }

    .parallax-content h2 {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .content-block.block-white h2 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .btn-subscribe {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 30px 20px;
    }
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger animation for grid cards */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

/* ===== Header Scroll State ===== */
.site-header.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.site-header.scrolled .logo img {
    height: 65px;
    width: 65px;
}
