/*
 * Stylesheet for the Ajwa Strategy website
 * Mobile‑first design with responsive enhancements
 */

/* Root variables for easy theme adjustments */
:root {
    --primary-color: #22577A;
    --secondary-color: #38A3A5;
    --accent-color: #57CC99;
    --light-bg: #f9f9f9;
    --text-color: #333;
    --heading-color: #1a2b3c;
    --white: #ffffff;
    --max-width: 1200px;
    --transition-speed: 0.3s;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

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

body {
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Utility container */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 0;
}

/* Navigation bar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.25rem;
}

.nav-links {
    list-style: none;
    display: none; /* Hidden on mobile by default */
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--white);
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    border-bottom: 1px solid #eee;
}

.nav-links li {
    width: 100%;
}

.nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: background-color var(--transition-speed);
}

.nav-links a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Hamburger button */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    padding: 0.5rem;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    background-image: url('1a53be4b-f806-4b08-a267-088278f2ca0b.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 87, 122, 0.6);
    z-index: 0;
}

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

.hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background-color var(--transition-speed);
}

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

/* Section base styling */
.section {
    padding: 3rem 0;
}

.section h2 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section p, .section li {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Philosophy section specifics */
.philosophy ul {
    list-style: none;
    padding-left: 0;
}

.philosophy li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.philosophy li::before {
    content: "\2022";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.25rem;
    line-height: 1;
}

/* Approach section specifics */
.framework {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.framework li {
    margin-bottom: 0.5rem;
}

blockquote {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    color: var(--primary-color);
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.service {
    background-color: var(--white);
    padding: 1.25rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-member {
    background-color: var(--white);
    padding: 1.25rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.team-member p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.team-member a {
    color: var(--primary-color);
    text-decoration: none;
}

.team-member a:hover {
    text-decoration: underline;
}

/* Contact section */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 600px;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.contact-form button {
    align-self: flex-start;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
}

.footer p {
    font-size: 0.875rem;
}

/* Media queries */
@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        align-items: center;
        border: none;
    }
    .nav-toggle {
        display: none;
    }
    .nav-links li {
        width: auto;
    }
    .nav-links a {
        padding: 0.75rem 1rem;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero p {
        font-size: 1.125rem;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}