/* Variables */
:root {
    --navy-dark: #0a1628;
    --navy: #0d2547;
    --navy-light: #1a3a6e;
    --gold: #c9a963;
    --gold-light: #e8d592;
    --gold-dark: #a88a4d;
    --white: #ffffff;
    --white-off: #f8f9fa;
    --gray-100: #f5f5f5;
    --gray-300: #e0e0e0;
    --gray-500: #9e9e9e;
    --gray-700: #6c757d;
    --gray-800: #495057;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--navy-dark);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.nav-brand a:hover .nav-icon {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

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

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

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

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--navy);
    min-width: 200px;
    list-style: none;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--navy-light);
    color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" x="0" y="0" width="1" height="1" patternUnits="userSpaceOnUse"><circle cx="0.5" cy="0.5" r="0.2" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-primary {
    background-color: var(--gold);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--navy-dark);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--navy);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.9;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background-color: var(--gold);
    color: var(--navy-dark);
    transform: scale(1.1);
}

.back-to-top-icon {
    font-size: 1.5rem;
}

/* Sections */
.services-section,
.process-section,
.about-section,
.testimonials-section,
.faq-section,
.contact-section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--navy-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--navy-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-700);
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.process-step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--gold);
}

.process-step h3 {
    color: var(--navy-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--gray-700);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white-off);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.feature-icon {
    display: block;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--navy-dark);
    font-weight: 600;
}

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

.testimonial-card {
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-700);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.testimonial-author {
    color: var(--navy-dark);
    font-weight: 600;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white-off);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--gold);
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white-off);
    transition: var(--transition);
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--gold);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-item.active .faq-question {
    background-color: var(--navy);
    color: var(--white);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--gray-700);
    line-height: 1.8;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3 {
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-phone,
.contact-email,
.contact-hours {
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-hours {
    line-height: 1.8;
}

/* Forms */
.form-container {
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 99, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.form-group input::placeholder {
    color: var(--gray-500);
}

/* Footer */
.footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4,
.footer-legal h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

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

.footer-links a,
.footer-legal a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-legal p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer .container {
    padding-bottom: 2rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }
.fade-in:nth-child(7) { animation-delay: 0.7s; }
.fade-in:nth-child(8) { animation-delay: 0.8s; }
.fade-in:nth-child(9) { animation-delay: 0.9s; }
.fade-in:nth-child(10) { animation-delay: 1s; }

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

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-wrap: wrap;
    }
    
    .process-step {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--navy-dark);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        transform: translateY(-150%);
        transition: var(--transition);
        max-height: 0;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        max-height: 500px;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        background-color: var(--navy);
        width: 100%;
        padding: 0;
        box-shadow: none;
    }
    
    .dropdown-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card,
    .testimonial-card,
    .feature-item {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Active state for nav */
.nav-link.active {
    color: var(--gold-light);
}

/* Service hover effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    opacity: 0;
    transition: var(--transition);
    border-radius: 12px;
}

.service-card:hover::before {
    opacity: 0.1;
}

/* Contact form focus states */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
}

/* Loading state for buttons */
.btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Page Header (subpages) */
.page-header {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
    background-color: var(--white-off);
}

.timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.timeline-content h4 {
    color: var(--navy-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--gray-700);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background-color: var(--navy);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--white-off);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

/* Step Details (process page) */
.step-details {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
    padding-left: 1rem;
}

.step-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.step-details li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* Contact Address */
.contact-address {
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Service Page Content */
.service-page-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.service-description h3 {
    color: var(--navy-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.service-description p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-description ul {
    list-style: none;
    padding: 0;
}

.service-description ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--gray-700);
}

.service-description ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.service-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    color: var(--navy-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card ul li {
    margin-bottom: 0.5rem;
}

.sidebar-card ul li a {
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-card ul li a:hover {
    color: var(--gold);
}

.sidebar-cta {
    background-color: var(--navy);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.sidebar-cta h4 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.sidebar-cta .btn {
    width: 100%;
}

/* Responsive additions */
@media (max-width: 992px) {
    .service-page-content {
        grid-template-columns: 1fr;
    }
    .service-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top {
        display: none;
    }
    
    .hero {
        min-height: 50vh;
    }
    
    .services-section,
    .process-section,
    .about-section,
    .testimonials-section,
    .faq-section,
    .contact-section {
        padding: 50px 0;
    }
}
