/* =====================================================
   AlwaysMap Professional Consultancy
   Brand Colors: Chartreuse Pear, Vermilion
   Typography: Josefin Sans
   Support: Light & Dark Modes
   ===================================================== */

/* Import Josefin Sans (headings) and Inter (body) from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap");

/* =====================================================
   CSS Variables - Light Mode (Default)
   ===================================================== */
:root {
    /* AlwaysMap Brand Colors */
    --awm-pear: hsla(72, 58%, 48%, 1);
    --awm-pear-hex: #9cb82c;
    --awm-vermilion: hsla(8, 80%, 52%, 1);
    --awm-vermilion-hex: #e84327;
    --awm-text-dark: hsla(20, 12%, 20%, 1);
    --awm-text-dark-hex: #39322d;
    --awm-text-light: hsla(40, 20%, 95%, 1);
    --awm-text-light-hex: #f5f3f0;
    --awm-black: #222222;
    --awm-white: #ffffff;

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

    /* Light Mode Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --text-primary: var(--awm-text-dark);
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* =====================================================
   Dark Mode Variables
   ===================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #222222;
        --bg-tertiary: #2a2a2a;
        --text-primary: var(--awm-text-light);
        --text-secondary: #cccccc;
        --text-tertiary: #999999;
        --border-color: #3a3a3a;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
}

/* =====================================================
   Base Styles
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   Typography
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

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

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

a {
    color: var(--awm-pear);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--awm-vermilion);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* =====================================================
   Layout Container
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================================
   Navigation
   ===================================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo svg {
    display: block;
    transition: transform 0.3s ease;
}

.site-logo:hover svg {
    transform: scale(1.05);
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

    .site-title {
        font-size: 1.25rem;
    }
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.hero-logo {
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--awm-pear);
    color: var(--awm-white);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--awm-pear);
    color: var(--awm-pear);
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }

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

    .hero p {
        font-size: 1.1rem;
    }
}

/* =====================================================
   Services/Features Section
   ===================================================== */
.services {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 0.75rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--awm-pear);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Content Pages
   ===================================================== */
.page-header {
    padding: 4rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.page-header .meta {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-content {
    padding: 2.5rem 0;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.content h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-top: 0;
}

.content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content ul,
.content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.content blockquote {
    border-left: 4px solid var(--awm-pear);
    padding-left: 1.5rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.brand-highlight {
    color: var(--awm-pear);
    font-weight: 600;
}

.brand-highlight strong {
    color: var(--awm-pear);
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =====================================================
   Contact Page
   ===================================================== */
.contact-info {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 2rem;
    text-align: center;
}

.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--awm-pear);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.contact-email:hover {
    color: var(--awm-vermilion);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container,
    .container-narrow {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }
}

/* =====================================================
   Utility Classes
   ===================================================== */
.text-center {
    text-align: center;
}

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

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

.awm-red {
    color: var(--awm-vermilion);
}

.awm-pear {
    color: var(--awm-pear);
}

.mt-1 {
    margin-top: 0.5rem;
}
.mt-2 {
    margin-top: 1rem;
}
.mt-3 {
    margin-top: 1.5rem;
}
.mt-4 {
    margin-top: 2rem;
}
.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mb-3 {
    margin-bottom: 1.5rem;
}
.mb-4 {
    margin-bottom: 2rem;
}
.mb-5 {
    margin-bottom: 3rem;
}

.py-1 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.py-2 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.py-3 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
