/* =========================================================
   Executive Scouters — style.css
   Table of contents:
   1. CSS variables
   2. Reset / normalization
   3. Base typography
   4. Global layout
   5. Header
   6. Hero
   7. Services
   8. Clients
   9. Why Us
   10. About / Team
   11. Contact
   12. Footer
   13. Animations
   14. Responsive breakpoints
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS variables
   --------------------------------------------------------- */
:root {
    /* Colors */
    --color-primary: #0F172A;
    --color-secondary: #1E293B;
    --color-accent: #2563EB;
    --color-accent-hover: #1D4ED8;
    --color-accent-light: #DBEAFE;
    --color-background: #FFFFFF;
    --color-light-bg: #F8FAFC;
    --color-text: #0F172A;
    --color-muted: #64748B;
    --color-border: #E2E8F0;

    /* Brand orange — sampled from the logo, used for the primary CTA,
       icon chips and small recurring brand touches. A deepened variant
       covers text/link use where the true orange doesn't have enough
       contrast against white on its own. */
    --color-orange: #F3892A;
    --color-orange-hover: #D9741A;
    --color-orange-deep: #AE621E;
    --color-orange-light: #FDEDDF;

    /* Typography */
    --font-body:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    /* Spacing scale */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;

    /* Layout */
    --max-width: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);

    /* Motion */
    --transition-base: all 0.2s ease;
}

/* ---------------------------------------------------------
   2. Reset / normalization
   --------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

input,
textarea {
    font: inherit;
}

/* ---------------------------------------------------------
   3. Base typography
   --------------------------------------------------------- */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    /* Soft ambient wash instead of flat white — subtle brand-tinted
       glows anchored to the viewport (orange + navy, echoing the
       logo), low enough opacity to stay out of the way of content
       and contrast. */
    background-color: var(--color-background);
    background-image:
        radial-gradient(1100px 600px at 12% -10%, rgba(243, 137, 42, 0.08), transparent 60%),
        radial-gradient(900px 550px at 100% 5%, rgba(15, 23, 42, 0.04), transparent 55%),
        radial-gradient(800px 500px at 50% 100%, rgba(15, 23, 42, 0.03), transparent 60%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1 {
    font-size: 36px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 20px;
}

p {
    color: var(--color-text);
}

.text-muted {
    color: var(--color-muted);
}

/* Visible focus states for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-orange-deep);
    outline-offset: 2px;
}

/* ---------------------------------------------------------
   4. Global layout
   --------------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-header::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: var(--space-sm);
    background-color: var(--color-orange);
    border-radius: 2px;
}

section {
    padding: var(--space-2xl) 0;
}

/* Alternate light background sections — soft gradient wash rather
   than a flat fill, so the tint feels layered instead of blocky */
.services,
.why-us,
.contact {
    background-image: linear-gradient(180deg, var(--color-light-bg) 0%, #FFFFFF 100%);
}

/* Reusable component classes (populated in later tasks) */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-base);
}

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

.btn-primary:hover {
    background-color: var(--color-orange-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--color-light-bg);
    transform: translateY(-2px);
}

.card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

/* ---------------------------------------------------------
   5. Header
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 3px solid var(--color-orange);
    border-bottom: 1px solid var(--color-border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.logo img {
    height: 108px;
}

/* Mobile nav: hidden dropdown panel below the header until toggled open */
.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.nav-links.is-open {
    display: flex;
}

.nav-links li {
    border-top: 1px solid var(--color-border);
}

.nav-links a {
    display: block;
    padding: var(--space-sm) 20px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-orange-deep);
}

.nav-links a.is-active {
    color: var(--color-orange-deep);
}

.hamburger {
    font-size: 24px;
    line-height: 1;
    color: var(--color-primary);
}

/* ---------------------------------------------------------
   6. Hero
   --------------------------------------------------------- */
.hero {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero-content h1 {
    margin-bottom: var(--space-md);
}

.hero-subtext {
    color: var(--color-muted);
    font-size: 18px;
    margin-bottom: var(--space-lg);
    max-width: 52ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ---------------------------------------------------------
   7. Services
   --------------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.service-card {
    padding: var(--space-lg) var(--space-md);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
    padding: 10px;
    background-color: var(--color-orange-light);
    border-radius: var(--radius-sm);
    color: var(--color-orange-deep);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: var(--space-xs);
}

.service-card p {
    color: var(--color-muted);
    font-size: 15px;
    margin-bottom: var(--space-sm);
}

.service-link {
    color: var(--color-orange-deep);
    font-weight: 600;
    font-size: 15px;
}

.service-link:hover {
    color: var(--color-orange-hover);
}

/* ---------------------------------------------------------
   8. Clients
   --------------------------------------------------------- */
.client-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    text-align: center;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   9. Why Us
   --------------------------------------------------------- */
.why-us-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.why-us-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.why-us-content .section-header {
    margin-bottom: var(--space-md);
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.why-us-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.why-us-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-orange);
    color: #FFFFFF;
    font-weight: 700;
}

.why-us-list h3 {
    margin-bottom: 4px;
}

.why-us-list p {
    color: var(--color-muted);
    font-size: 15px;
}

/* ---------------------------------------------------------
   10. About / Team
   --------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.team-card {
    overflow: hidden;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.team-info {
    padding: var(--space-md);
}

.team-info h3 {
    margin-bottom: 2px;
}

.team-title {
    color: var(--color-orange-deep);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: var(--space-xs);
}

.team-info p:last-child {
    color: var(--color-muted);
    font-size: 15px;
}

/* ---------------------------------------------------------
   11. Contact
   --------------------------------------------------------- */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info-item {
    margin-bottom: var(--space-md);
}

.contact-info-item h3 {
    font-size: 15px;
    color: var(--color-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-item a {
    color: var(--color-text);
    font-weight: 600;
}

.contact-info-item a:hover {
    color: var(--color-orange-deep);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background-color: var(--color-orange-light);
    color: var(--color-orange-deep);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.form-status {
    display: none;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
}

.form-status.is-success {
    display: block;
    background-color: #DCFCE7;
    color: #166534;
}

.form-status.is-error {
    display: block;
    background-color: #FEE2E2;
    color: #991B1B;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-weight: 600;
    font-size: 15px;
}

.form-field input,
.form-field textarea {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-background);
    color: var(--color-text);
}

.form-field textarea {
    resize: vertical;
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
    border-color: #DC2626;
}

.field-error {
    display: none;
    color: #DC2626;
    font-size: 13px;
}

.field-error.is-visible {
    display: block;
}

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

/* ---------------------------------------------------------
   12. Footer
   --------------------------------------------------------- */
.site-footer {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: var(--space-xl) 0;
    border-top: 3px solid var(--color-orange);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer-brand h2 {
    color: #FFFFFF;
    margin-bottom: var(--space-xs);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------------------------------------------------------
   13. Animations
   --------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------
   14. Responsive breakpoints
   --------------------------------------------------------- */

/* Tablet */
@media (min-width: 768px) {
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    /* Desktop nav reverts to a static, horizontal row */
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        gap: var(--space-md);
        background: none;
        border: none;
        box-shadow: none;
    }

    .nav-links li {
        border-top: none;
    }

    .nav-links a {
        padding: 0;
    }

    .hamburger {
        display: none;
    }

    /* Hero: headline/CTAs beside the image */
    .hero-grid {
        flex-direction: row;
        align-items: center;
    }

    .hero-content,
    .hero-media {
        flex: 1;
    }

    /* Services: two columns */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Clients: three columns */
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Why Us: image beside the differentiator list */
    .why-us-grid {
        flex-direction: row;
        align-items: center;
        gap: var(--space-xl);
    }

    .why-us-media,
    .why-us-content {
        flex: 1;
    }

    /* Team: two columns */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact: info beside the form */
    .contact-grid {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-info {
        flex: 1;
    }

    .contact-form {
        flex: 1.4;
    }

    /* Footer: brand and links side by side */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: var(--space-xl);
    }

    .footer-copyright {
        grid-column: 1 / -1;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 40px;
    }

    /* Services: three columns */
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Team: four columns */
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    h1 {
        font-size: 64px;
    }

    h2 {
        font-size: 44px;
    }
}
