/* DR M Strategic Solutions - Stylesheet */

/* === VARIABLES === */
:root {
    /* Brand Colors */
    --primary-color: #f97316;      /* Orange */
    --primary-hover: #ea580c;
    --secondary-color: #1e3a8a;    /* Deep Blue */
    --secondary-light: #1e40af;    /* Brighter Blue */
    --accent-blue: #2563eb;        /* Bright Link Blue */
    --accent-blue-hover: #1d4ed8;

    /* Text Colors */
    --text-main: #1f2937;          /* Dark Gray */
    --text-secondary: #4b5563;     /* Medium Gray */
    --text-muted: #6b7280;         /* Light Gray */
    --text-footer: #9ca3af;        /* Footer Gray */
    --text-light-blue: #bfdbfe;    /* Light Blue on Dark Bg */
    --text-white: #ffffff;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;           /* Very Light Gray */
    --bg-dark: #111827;            /* Footer Dark */
    --bg-glass: rgba(255, 255, 255, 0.1);

    /* Borders */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-glass: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 0.75rem;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

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

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

/* === UTILITY CLASSES === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.mt-medium { margin-top: 2rem; }
.mt-large { margin-top: 3rem; }
.mt-xlarge { margin-top: 5rem; }

/* === NAVIGATION === */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
}

.company-name {
    display: flex;
    flex-direction: column;
}

.company-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.company-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.nav-link.active {
    border-bottom-color: var(--accent-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* === MOBILE MENU === */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-white);
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 101;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 1.125rem;
    }
    
    /* Mobile Menu Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 99;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Close Button for Mobile Menu */
    .mobile-menu-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-secondary);
        display: block;
    }
}

.mobile-menu-close {
    display: none;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 50%, var(--secondary-color) 100%);
    color: var(--text-white);
    padding: 4rem 0;
}

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

.badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light-blue);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.btn-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-cta {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-full {
    width: 100%;
}

.hero-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    padding: 2rem;
}

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

.hero-card-text {
    color: var(--text-light-blue);
    margin-bottom: 1rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-card {
        display: none;
    }
}

/* === STATS SECTION === */
.stats {
    background: var(--bg-light);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === TRUST BAR === */
.trust-bar {
    background: var(--bg-white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* === SECTIONS === */
.services-section,
.why-choose,
.content-section,
.leader-section,
.values-section {
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* === SERVICE CARDS === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all var(--transition-speed);
}

.service-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-link {
    color: var(--accent-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

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

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

/* === FEATURE CARDS === */
.why-choose {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

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

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: var(--text-white);
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-light-blue);
    margin-bottom: 2rem;
}

/* === PAGE HERO === */
.page-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: var(--text-white);
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero-text {
    font-size: 1.25rem;
    color: var(--text-light-blue);
    max-width: 700px;
    margin: 0 auto;
}

/* === CONTENT GRID === */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-main h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.content-main p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.info-box {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.info-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

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

/* === LEADER SECTION === */
.leader-section {
    background: var(--bg-light);
}

.leader-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.leader-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.leader-title {
    font-size: 1.125rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.leader-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.leader-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.expertise-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* === VALUES SECTION === */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    transition: transform var(--transition-speed);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

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

/* === SERVICE DETAILS === */
.service-detail {
    margin-bottom: 4rem;
}

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

.service-detail-icon {
    font-size: 3rem;
}

.service-detail h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.service-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-offerings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.offering-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform var(--transition-speed);
}

.offering-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.offering-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.offering-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

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

/* === SECTOR DETAILS === */
.sector-detail {
    margin-bottom: 4rem;
}

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

.sector-icon {
    font-size: 3rem;
}

.sector-detail h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.sector-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.sector-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.sector-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.sector-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.sector-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

.help-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.help-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform var(--transition-speed);
}

.help-card:hover {
    transform: translateY(-3px);
}

.help-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.help-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

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

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-main h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.contact-info-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.contact-info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.contact-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--text-main);
}

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

/* === FOOTER === */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.footer-text {
    color: var(--text-footer);
    line-height: 1.6;
}

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

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

.footer-links a {
    color: var(--text-footer);
    transition: color var(--transition-speed);
}

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

.footer-bottom {
    border-top: 1px solid #374151; /* Dark border */
    padding-top: 2rem;
    text-align: center;
    color: var(--text-footer);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
}

/* === SCROLL ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === ACCESSIBILITY: FOCUS STATES === */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.5); /* Primary color ring */
}

/* === FORM SUCCESS MESSAGE === */
.success-message {
    background: #ecfdf5; /* Light green bg */
    border: 1px solid #10b981; /* Green border */
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    color: #065f46; /* Dark green text */
}

.success-message h3 {
    color: #047857;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    :root {
        /* Text Colors */
        --text-main: #f3f4f6;          /* Light Gray */
        --text-secondary: #d1d5db;     /* Medium Light Gray */
        --text-muted: #9ca3af;         /* Muted Gray */
        
        /* Background Colors */
        --bg-white: #111827;           /* Very Dark Blue/Gray */
        --bg-light: #1f2937;           /* Dark Gray */
        --bg-glass: rgba(0, 0, 0, 0.3);

        /* Borders */
        --border-light: #374151;
        --border-medium: #4b5563;
        --border-glass: rgba(255, 255, 255, 0.1);
    }

    .navbar {
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-light);
    }

    .service-card, .feature-card, .leader-card, .contact-info-card, .help-card, .offering-card, .info-box {
        background: var(--bg-light);
        border-color: var(--border-light);
    }
    
    .logo {
        /* Optional: Add brightness filter if logo needs it on dark bg */
        filter: brightness(1.1); 
    }
    
    .mobile-menu-btn {
        color: var(--text-main);
    }
    
    /* Ensure form inputs are readable in dark mode */
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--bg-light);
        color: var(--text-main);
        border-color: var(--border-medium);
    }
}
