/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Tokens - Premium B2B Light Mode (Warm Advisory) */
    --bg-primary: hsl(30, 15%, 98%);       /* Warm off-white (#fafaf9) */
    --bg-secondary: hsl(210, 20%, 96%);     /* Soft slate gray (#f1f5f9) */
    --bg-card: hsl(0, 0%, 100%);            /* Pure white */
    
    --text-primary: hsl(222, 47%, 11%);     /* Deep slate navy (#0f172a) */
    --text-secondary: hsl(215, 16%, 35%);   /* Muted slate (#475569) */
    --text-muted: hsl(215, 16%, 50%);      /* Light caption slate (#64748b) */
    
    --accent: hsl(175, 84%, 32%);           /* Trust growth emerald teal (#0d9488) */
    --accent-hover: hsl(175, 84%, 25%);     /* Darker teal (#0f766e) */
    --accent-light: hsl(175, 84%, 96%);     /* Very light teal tint */
    
    --danger: hsl(0, 74%, 42%);             /* Muted red for issues */
    --danger-light: hsl(0, 74%, 96%);       
    --success: hsl(142, 69%, 29%);           /* Muted green for solution indicators */
    --success-light: hsl(142, 69%, 96%);     
    
    --border-color: hsl(214, 32%, 91%);     /* Subtle line gray (#e2e8f0) */
    --border-focus: hsl(175, 84%, 32%);     /* Accent color for focus borders */

    /* Typography Scale */
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --fs-xs: 0.75rem;                       /* 12px */
    --fs-sm: 0.875rem;                      /* 14px */
    --fs-base: 1rem;                        /* 16px */
    --fs-md: 1.125rem;                      /* 18px */
    --fs-lg: 1.25rem;                       /* 20px */
    --fs-xl: 1.5rem;                        /* 24px */
    --fs-2xl: 2rem;                         /* 32px */
    --fs-3xl: 2.75rem;                      /* 44px */
    --fs-4xl: 3.5rem;                       /* 56px */

    /* Box Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --shadow-inset: inset 0 2px 4px 0 rgba(15, 23, 42, 0.02);

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Spacing & Utilities */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.25s ease-out;
    --transition-slow: 0.4s ease-in-out;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

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

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

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   UTILITY & COMPONENT STYLES
   ========================================================================== */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

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

/* Button Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-sm);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--bg-card);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-block {
    display: flex;
    width: 100%;
}

/* Labels and taglines */
.section-tagline {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: var(--fs-3xl);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.bullet-list {
    margin-top: 1rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: var(--accent);
    font-weight: bold;
}

/* ==========================================================================
   HEADER / STICKY NAV
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: hsla(30, 15%, 98%, 0.85); /* Glassmorphic background */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}

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

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-lg);
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    letter-spacing: -0.02em;
}

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

.logo-inc {
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--text-muted);
    vertical-align: super;
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width var(--transition-fast);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.6rem 1.2rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    background-color: var(--bg-primary);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 1.5rem 6.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.hero-headline {
    font-size: var(--fs-3xl);
    line-height: 1.25;
    margin-bottom: 2rem;
    min-height: 5.5rem; /* Prevents layout shifting during text swap */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fading text effect */
.fade-in-text {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.fade-in-text.fade-out {
    opacity: 0;
}

.hero-subtext {
    font-size: var(--fs-md);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: var(--fs-4xl);
        min-height: 5rem;
    }
}

/* ==========================================================================
   TRUST METRICS BANNER
   ========================================================================== */
.trust-banner {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
}

.trust-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.trust-metric {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.metric-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.trust-divider {
    display: none;
    width: 1px;
    height: 3rem;
    background-color: var(--border-color);
}

@media (min-width: 768px) {
    .trust-container {
        flex-direction: row;
        padding: 2.5rem 1.5rem;
        gap: 0;
    }
    .trust-metric {
        flex: 1;
    }
    .trust-divider {
        display: block;
    }
}

/* ==========================================================================
   PROBLEM-SOLUTION (THE GAP) SECTION
   ========================================================================== */
.gap-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.gap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.gap-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card-icon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon-header h3 {
    font-size: var(--fs-xl);
}

.icon-indicator {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: bold;
}

.red-tag {
    background-color: var(--danger-light);
    color: var(--danger);
}

.green-tag {
    background-color: var(--success-light);
    color: var(--success);
}

.card-desc {
    font-size: var(--fs-sm);
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

@media (min-width: 992px) {
    .gap-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ==========================================================================
   SERVICES SECTION (THE PILLARS)
   ========================================================================== */
.services-section {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.pillar-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    background-color: var(--bg-secondary);
    transition: transform var(--transition-normal);
}

.service-card:hover .pillar-image {
    transform: scale(1.02);
}

.service-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   ABOUT / BIOGRAPHY SECTION
   ========================================================================== */
.about-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    max-width: 450px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    filter: grayscale(15%) contrast(1.02); /* Professional editorial grade portrait filter */
}

.about-caption {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 0.25rem;
}

.about-caption strong {
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    color: var(--text-primary);
}

.about-caption span {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.about-content {
    display: flex;
    flex-direction: column;
}

.section-title-alt {
    font-size: var(--fs-2xl);
    margin-bottom: 1.5rem;
}

.about-lead {
    font-size: var(--fs-md);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: var(--fs-sm);
    margin-bottom: 1.25rem;
}

.about-credentials {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cred-icon {
    color: var(--accent);
    font-weight: bold;
    font-size: var(--fs-base);
    line-height: 1.25;
}

.credential-item span {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1.1fr 1.9fr;
        gap: 4.5rem;
    }
    .about-image-wrapper {
        margin: 0;
        max-width: 100%;
    }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h2 {
    font-size: var(--fs-2xl);
    margin-bottom: 1.5rem;
}

.contact-desc {
    font-size: var(--fs-sm);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.detail-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background-color: var(--accent-light);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    flex-shrink: 0;
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.detail-link {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-primary);
}

.detail-link:hover {
    color: var(--accent);
}

.detail-val {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

/* Contact Form UI */
.contact-form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-title {
    font-size: var(--fs-xl);
    margin-bottom: 0.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom indicator for select dropdown in B2B light-mode */
.form-group select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px hsla(175, 84%, 32%, 0.15);
    background-color: var(--bg-card);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Success status text styling */
.form-status-message {
    font-size: var(--fs-xs);
    font-weight: 500;
    text-align: center;
    display: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.form-status-message.success {
    display: block;
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid hsla(142, 69%, 29%, 0.2);
}

.form-status-message.error {
    display: block;
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid hsla(0, 74%, 42%, 0.2);
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1.2fr 1.8fr;
        gap: 5rem;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--text-primary); /* Dark navy background for robust structural footer */
    color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.site-footer p {
    color: hsl(215, 20%, 75%);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-lg);
    color: var(--bg-card);
}

.footer-brand .logo-icon {
    font-size: 1.75rem;
}

.brand-desc {
    font-size: var(--fs-sm);
    max-width: 320px;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-nav h4 {
    color: var(--bg-card);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    font-size: var(--fs-sm);
    color: hsl(215, 20%, 75%);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--bg-card);
}

.footer-legal {
    border-top: 1px solid hsl(215, 20%, 25%);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: var(--fs-xs);
}

.footer-legal p {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr;
        gap: 5rem;
    }
    
    .footer-legal {
        grid-column: span 2;
        flex-direction: row;
        justify-content: space-between;
    }
}
