
/* Font Face Declarations */
@font-face {
    font-family: 'Causten';
    src: url('../assets/fonts/Causten-Thin.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Causten';
    src: url('../assets/fonts/Causten-RegularOblique.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Causten';
    src: url('../assets/fonts/Causten-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Causten';
    src: url('../assets/fonts/Causten-BlackOblique.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-dark: #122240;
    --primary-light: #f1efed;
    --accent-gold: #eabb5e;
    --accent-green: #478f78;
    --white: #ffffff;
    --text-dark: #122240;
    --text-light: #f1efed;
    --border-color: #e5e5e5;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --font-family: 'Causten', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: #d4a347;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-dark);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.nav-logo .logo-img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

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

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

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

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2c4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23eabb5e" stroke-width="0.3" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--primary-light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    /* Changed to single column for full vertical layout */
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

.services-list {
    display: flex;
    flex-direction: column !important;
    gap: 40px;
    width: 100%;
    /* Force vertical stacking with increased gap */
    align-items: stretch;
    flex-wrap: nowrap;
}

.service-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 0; /* Remove any potential margin that could affect vertical stacking */
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--accent-green);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.service-content p {
    color: var(--text-dark);
    opacity: 0.8;
}

.services-cta {
    margin-top: 40px;
    font-size: 1.1rem;
}

.cta-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-link:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.services-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2; /* Ensure dashboard image appears after services content */
}

.dashboard-showcase {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.dashboard-showcase:hover .dashboard-img {
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2c4a 100%);
    color: var(--text-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about .section-title {
    color: var(--accent-gold);
    margin-bottom: 40px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.8;
}

.upcoming-services {
    background-color: rgba(234, 187, 94, 0.1);
    padding: 32px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 4px solid var(--accent-gold);
}

.upcoming-services h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-mission {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-top: 40px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--primary-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-dark);
}

.benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent-green);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(234, 187, 94, 0.1);
}

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

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
    min-height: 20px;
}

.recaptcha-group {
    display: flex;
    justify-content: center;
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
    margin-top: 16px;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Messages */
.form-messages {
    margin-top: 24px;
}

.success-message,
.error-message-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
}

.success-message {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.error-message-box {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.message-icon {
    flex-shrink: 0;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-text {
    opacity: 0.8;
}

.footer-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .services-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 0;
        gap: 30px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Sections */
    .hero,
    .services,
    .about,
    .contact {
        padding: 80px 0;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-container {
        padding: 0 16px;
    }
    
    .service-item {
        padding: 20px;
    }
    
    .contact-form-container {
        padding: 24px 16px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
        page-break-after: avoid;
    }
}

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

/* Focus Styles */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 0 0 1px #000;
        --shadow-lg: 0 0 0 2px #000;
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
}
