/* ===================================
   CSS Custom Properties
   =================================== */
:root {
    /* Colors */
    --primary: #1a2b4a;
    --secondary: #d4a574;
    --accent: #5a7ba6;
    --background: #f8f9fa;
    --text: #333333;
    --white: #ffffff;
    --light-gray: #e9ecef;
    --shadow: rgba(26, 43, 74, 0.1);
    --shadow-hover: rgba(26, 43, 74, 0.2);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

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

ul {
    list-style: none;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    text-align: center;
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    color: var(--secondary);
    font-size: 1.75rem;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text);
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background-color: transparent;
    border: 2px solid var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-btn:hover,
.lang-btn.active {
    border-color: var(--secondary);
    background-color: var(--secondary);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--spacing-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--text);
    line-height: 1.7;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.about-description {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.statistics {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Why Us Section
   =================================== */
.why-us {
    padding: var(--spacing-xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-title {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text);
    line-height: 1.7;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    grid-column: 1 / -1;
    margin-top: var(--spacing-sm);
}

.form-status {
    grid-column: 1 / -1;
    padding: var(--spacing-sm);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text);
}

.contact-item a {
    color: var(--accent);
}

.contact-item a:hover {
    color: var(--secondary);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transition: var(--transition);
        box-shadow: 0 4px 10px var(--shadow);
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

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

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .header-actions .btn {
        display: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .statistics {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 3rem;
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .language-switcher {
        flex-direction: column;
        gap: 0.25rem;
    }

    .lang-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* ===================================
   Accessibility
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===================================
   Utility Classes
   =================================== */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===================================
   Legal Pages
   =================================== */
.legal-page {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
    min-height: 60vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.legal-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.legal-updated {
    text-align: center;
    color: var(--accent);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.legal-section {
    margin-bottom: var(--spacing-md);
}

.legal-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.legal-section p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    color: var(--text);
}

.legal-section ul {
    list-style: disc;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.legal-section li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
    color: var(--text);
}

.legal-section strong {
    color: var(--primary);
}

.contact-details {
    list-style: none;
    margin-left: 0;
}

.contact-details li {
    margin-bottom: var(--spacing-xs);
}

.contact-details a {
    color: var(--accent);
    text-decoration: underline;
}

.contact-details a:hover {
    color: var(--secondary);
}

.legal-back {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--light-gray);
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-title {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-content {
        padding: var(--spacing-sm);
    }

    .legal-section ul {
        margin-left: var(--spacing-sm);
    }
}

