/* 
    Oak Tree Technical - Design System
    Version: 1.0.0
*/

:root {
    /* Colors */
    --primary-color: #003366;
    --primary-light: #004d99;
    --primary-dark: #002244;
    --accent-color: #be991f;
    /* Gold */
    --accent-hover: #b8962e;
    --success-color: #b8962e;
    --success-hover: #b8962e;
    --text-color: #1a1a1a;
    --text-muted: #555555;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a3a52;
    --white: #ffffff;
    --error: #e74c3c;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

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

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

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

.btn-primary:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

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

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

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

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

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #001a33 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rating-badge .stars {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--accent-color);
}

.stat-card h3 {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-card p {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

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

.service-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 2px solid var(--accent-color);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    color: rgba(0, 0, 0, 0.05);
    font-family: serif;
}

.testimonial-stars {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-dark);
}

.testimonial-date {
    font-size: 14px;
    color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 20px;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* Contact Form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 40px;
    }

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

@media (max-width: 768px) {
    header {
        height: 70px;
    }

    header.scrolled {
        height: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 999;
        gap: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.8);
        font-size: 28px;
        font-family: var(--font-heading);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

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

    .nav-menu.active .nav-link {
        animation: linkFade 0.5s ease forwards;
        opacity: 0;
    }

    .nav-menu.active li:nth-child(1) .nav-link { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) .nav-link { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) .nav-link { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) .nav-link { animation-delay: 0.4s; }

    .hamburger {
        display: block;
        z-index: 1001;
        transition: var(--transition);
    }

    .hamburger.active {
        color: var(--white);
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .cta-btns {
        flex-direction: column;
    }

    .stats-grid {
        margin-top: 0;
        padding-top: 40px;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

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

.fade-in {
    animation: fadeInDown 0.6s ease forwards;
}