@import url('design-system.css');

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #D35400;
    /* Deep Terracotta */
    --secondary-color: #145A32;
    /* Forest Green */
    --accent-color: #F1C40F;
    /* Mustard Yellow */
    --light-color: #FFFDF5;
    /* Cream/Off-white */
    --dark-color: #2C3E50;
    /* Deep Slate/Navy */
    --white-color: #ffffff;
    --text-color: #34495E;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Africana Patterns */
    --pattern-bg: radial-gradient(var(--accent-color) 0.5px, transparent 0.5px), radial-gradient(var(--accent-color) 0.5px, var(--light-color) 0.5px);
    --pattern-size: 20px 20px;
    --pattern-pos: 0 0, 10px 10px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--dark-color);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 15px;
}

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

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

ul {
    list-style: none;
}

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

.logo img {
    width: 200px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

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

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

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

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

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

/* ===== HEADER ===== */
header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 200px;
    height: auto;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.logo p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

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

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: var(--light-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    min-height: 80vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Pattern Overlay for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-bg);
    background-size: var(--pattern-size);
    opacity: 0.1;
    pointer-events: none;
}

/* Africana Strip at bottom of hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(45deg,
            var(--primary-color),
            var(--primary-color) 10px,
            var(--accent-color) 10px,
            var(--accent-color) 20px,
            var(--secondary-color) 20px,
            var(--secondary-color) 30px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--white-color);
    font-weight: 800;
}

.hero h1 .highlight {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 300;
}

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

/* ===== SERVICES OVERVIEW ===== */
.services-overview {
    padding: 100px 0;
    background-color: var(--white-color);
    background-image: var(--pattern-bg);
    background-size: var(--pattern-size);
    background-position: var(--pattern-pos);
    position: relative;
}

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

.service-card {
    background-color: var(--white-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(211, 84, 0, 0.15);
    border-color: var(--primary-color);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
    padding: 100px 0;
    background-color: var(--light-color);
    border-top: 5px solid var(--primary-color);
    border-bottom: 5px solid var(--secondary-color);
}

.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content {
    padding-right: 20px;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-content h2::after {
    left: 0;
    transform: none;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 80px 0;
    background-color: var(--white-color);
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

.testimonial-card {
    background-color: var(--white-color);
    border-radius: 20px;
    padding: 40px;
    min-width: 350px;
    flex: 1;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

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

.cta-section h2 {
    color: var(--white-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PAGE BANNER ===== */
.page-banner {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 100px 0;
    /* Taller */
    text-align: center;
    position: relative;
    background-image: linear-gradient(rgba(20, 90, 50, 0.8), rgba(20, 90, 50, 0.8)), url('../images/hero-bg.jpg');
    /* Use Secondary color overlay */
    background-size: cover;
    background-position: center;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: repeating-linear-gradient(-45deg,
            var(--accent-color),
            var(--accent-color) 10px,
            var(--white-color) 10px,
            var(--white-color) 20px);
}

.page-banner h1 {
    color: var(--white-color);
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

/* ===== SERVICES FULL PAGE ===== */
.services-full {
    padding: 80px 0;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Masonry-like grid */
    gap: 30px;
}

.service-item {
    display: flex;
    flex-direction: column;
    /* Stack content vertically */
    align-items: center;
    /* Center align */
    text-align: center;
    background-color: var(--white-color);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Full height */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-item .service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 0;
    margin-bottom: 25px;
    min-width: auto;
    width: 80px;
    height: 80px;
    background-color: rgba(211, 84, 0, 0.1);
    /* Light primary bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-details h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.custom-services {
    margin-top: 50px;
    text-align: center;
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.custom-services h3 {
    margin-bottom: 15px;
}

.custom-services p {
    margin-bottom: 20px;
}

/* ===== ABOUT FULL PAGE ===== */
.about-full {
    padding: 80px 0;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.about-main-image {
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
}

.values-section {
    margin-bottom: 80px;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    background: var(--light-color);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 80px 0;
}

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

.info-card {
    display: flex;
    align-items: flex-start;
    background: var(--light-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateX(10px);
    background: var(--white-color);
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.info-content h3 {
    margin-bottom: 5px;
}

.form-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-card h2 {
    margin-bottom: 30px;
    text-align: center;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 40px 0 80px;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 80px 0 20px;
    background-image: linear-gradient(rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.95)), var(--pattern-bg);
    background-size: var(--pattern-size);
}

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

.footer-logo h2 {
    color: var(--white-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

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

.footer-contact p,
.footer-links li {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

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

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

.footer-social h3 {
    color: var(--white-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {

    .about-preview .container,
    .about-full .container,
    .contact-section .container {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding-right: 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

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

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .testimonial-slider {
        flex-direction: column;
    }

    .testimonial-card {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .service-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-item .service-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .about-image-grid {
        grid-template-columns: 1fr;
    }
}