/* 
 * Design System & Variables 
 * Theme: Deep Navy & Gold
 */
:root {
    /* Colors */
    --primary: #1A2E4F;
    --primary-light: #2a4165;
    --primary-dark: #0f1e33;
    --accent: #d4af37;
    --accent-light: #f3cf55;
    --accent-dim: rgba(212, 175, 55, 0.1);

    --text-main: #1A2E4F;
    --text-muted: #5a6c7d;
    --text-on-accent: #ffffff;

    --bg-body: #ffffff;
    --bg-secondary: #f8f9fa;
    --glass-surface: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(26, 46, 79, 0.1);

    /* Gradient */
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f3cf55 100%);
    --gradient-dark: linear-gradient(to bottom, #ffffff, #f8f9fa);
    --gradient-hero: radial-gradient(circle at 10% 20%, rgba(26, 46, 79, 0.08) 0%, rgba(212, 175, 55, 0.08) 90%), linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 90px;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --duration-normal: 0.3s;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--duration-normal) var(--ease-out);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.text-accent {
    color: var(--accent);
}

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

.section-padding {
    padding: 4rem 0;
}

/* Glassmorphism */
.glass {
    background: var(--glass-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 4px;
    /* Sharp professional corners or slightly rounded */
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-normal) var(--ease-out);
    z-index: -1;
}

.btn:hover {
    color: var(--text-on-accent);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-on-accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn-primary:hover::before {
    background: var(--bg-body);
    /* Trick to show background */
    /* Actually, simpler hover for primary to just invert */
    transform: scaleX(0);
}

/* Custom Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 10px 0;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 60px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    margin-top: 4px;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    color: var(--accent);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    overflow: hidden;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: var(--accent);
    opacity: 0.03;
    border-radius: 50%;
    top: -10%;
    right: -10%;
    filter: blur(100px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* max-width removed to allow grid to control width */
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
    opacity: 0;
    /* Starts hidden for animation */
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.6;
    transition: transform 0.5s ease;
}

.hero-image-container:hover::before {
    transform: translate(5px, 5px);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(26, 46, 79, 0.15);
    /* Soft shadow matching theme */
    transform: perspective(1000px) rotateY(-5deg);
    /* Subtle 3D effect */
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-subtitle {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
    font-size: 0.9rem;
}

.hero h1 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    /* Reduced from 4rem */
}

.hero-content p {
    font-size: 1.2rem;
    /* Increased from default */
    line-height: 1.8;
    color: var(--text-muted);
    /* Kept muted but larger */
    max-width: 600px;
    /* Ensure readability */
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    /* Gold glow */
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.95);
}

.card-content {
    position: relative;
    overflow: hidden;
}

.card-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.card:hover .card-link-arrow {
    opacity: 1;
    transform: translateY(0);
}

.learn-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.learn-more-btn:hover {
    text-decoration: underline;
}

.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    opacity: 0;
}

.card.active .card-details {
    max-height: 500px; /* Arbitrary large height to allow content to fit */
    opacity: 1;
    margin-top: 1rem;
    transition: max-height 0.6s ease-in, opacity 0.4s ease-in;
}

.card.active .card-link-arrow {
    opacity: 1;
    transform: translateY(0);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-container {
    position: relative;
}

.about-img {
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-decoration {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: -2rem;
    bottom: -2rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    z-index: 1;
    opacity: 0.5;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.stars {
    color: #e6b800;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    border-top: 1px solid #eee;
    padding-top: 1rem;
    font-family: var(--font-heading);
}

/* Map Filter */
.map-frame {
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-frame:hover {
    filter: grayscale(0%);
}

/* Contact Form */
.contact-section {
    background: var(--bg-secondary);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    padding: 1rem 0;
    color: var(--primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.form-label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-control:focus~.form-label,
.form-control:valid~.form-label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent);
}

/* Footer */
footer {
    background: var(--primary-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Page Wrapper (For Privacy Policy & Terms) */
.content-wrapper {
    padding-top: calc(var(--header-height) + 4rem);
    min-height: 80vh;
}

.content-wrapper h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.content-wrapper h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        color: #fff;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .hero::before {
        width: 100%;
        height: 50vh;
    }

    .floating-cta {
        display: flex !important;
    }
}

/* Floating Mobile CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--text-on-accent);
    padding: 1rem;
    border-radius: 50px;
    display: none;
    /* Hidden on desktop */
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    z-index: 1000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideUp 0.5s ease-out 1s backwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}