/* Structox - Core Styles */

:root {
    /* Theme Colors */
    --color-primary: #007367;
    /* Updated Green */
    --color-secondary: #F6D18C;
    /* Logo Gold */
    --color-text: #2D3748;
    --color-text-light: #718096;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F7FAFC;
    --color-white: #FFFFFF;
    --color-error: #E53E3E;
    --color-success: #38A169;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 50px;

    /* Shadows */
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.text-gold {
    color: var(--color-secondary);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

/* Header */
header {
    background-color: var(--color-primary);
    /* Dark Green Background */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
}

.logo img {
    height: 48px;
    /* Adjust as needed */
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-white);
    opacity: 1;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-white);
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1;
    border-radius: var(--border-radius-md);
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--color-text);
    padding: 10px 24px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.dropdown-header {
    padding: 10px 24px 8px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 5px;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    padding-left: 28px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--color-secondary);
    background-image: linear-gradient(135deg, var(--color-secondary) 0%, #FAD38F 100%);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #AA8C2C;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.2);
}

/* CTA */
.cta-group {
    display: flex;
    gap: 1rem;
}

/* Form Styles */
.disclaimer-box {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.5;
}

.disclaimer-box p {
    margin-bottom: 0.75rem;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

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

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #edf2f7;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(0, 115, 103, 0.1);
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

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

.footer-col h3 {
    color: var(--color-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    h2 {
        font-size: 1.875rem;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        gap: 1rem;
        max-height: calc(100vh - var(--header-height) - 2rem);
        overflow-y: auto;
    }

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

    .mobile-toggle {
        display: block;
    }

    .nav-links a {
        color: var(--color-text);
        font-size: 1.25rem;
        padding: 0.5rem 0;
    }

    .nav-links a::after {
        background-color: var(--color-primary);
    }

    /* Mobile Dropdown styles */
    .dropdown-content {
        position: static;
        background-color: #f7fafc;
        box-shadow: none;
        padding: 10px 0;
        display: none;
        opacity: 1;
        transform: none;
        border-radius: var(--border-radius-sm);
        margin-top: 5px;
        border: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: var(--color-text);
        font-size: 1rem;
        padding: 10px 20px;
    }

    .dropdown-content a:hover {
        background-color: #edf2f7;
        padding-left: 20px;
    }

    .dropdown-header {
        color: var(--color-text-light);
        border-bottom: none;
        padding: 10px 20px;
    }
}

/* Service Header with Background */
.service-header {
    background-color: var(--color-primary);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 115, 103, 0.75), rgba(0, 70, 60, 0.8));
    z-index: 1;
}

.service-header .container {
    position: relative;
    z-index: 2;
}

.service-header h1 {
    color: var(--color-secondary);
    position: relative;
    z-index: 2;
}

.service-header p {
    color: var(--color-white);
    position: relative;
    z-index: 2;
}

/* Feature Grid & Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary), #00A896);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Promise Section Responsive */
@media (max-width: 900px) {
    .promise-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .promise-highlight {
        padding: 2rem !important;
    }
}