/* Middlegate Factors - Styles inspired by middlegate.com */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    overflow-x: hidden;
    padding-top: 80px;
}

/* CSS Variables - middlegate.com style: dark header/hero, gold accent, serif headings */
:root {
    --primary-color: #1a1d29;
    --primary-light: #2d3142;
    --primary-dark: #0d0e14;
    --accent-color: #c9a227;
    --accent-light: #e5c64a;
    --accent-dark: #a6851f;
    --success-color: #2d5a27;
    --warning-color: #c9a227;
    --error-color: #b91c1c;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #1a1d29;
    --white: #ffffff;
    --off-white: #f5f5f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --border-radius: 6px;
    --border-radius-lg: 10px;
    --border-radius-xl: 14px;
    --transition: all 0.25s ease;
    --font-heading: Georgia, 'Times New Roman', serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #1a936f;
    --primary-light: #88d4ab;
    --primary-dark: #0b5340;
    --secondary-color: #f7fafc;
    --accent-color: #f6ae2d;
    --accent-light: #ffe6a7;
    --success-color: #88d4ab;
    --warning-color: #ffd166;
    --error-color: #f07167;
    --gray-50: #050816;
    --gray-100: #0b1020;
    --gray-200: #111827;
    --gray-300: #1f2937;
    --gray-400: #4b5563;
    --gray-500: #6b7280;
    --gray-600: #9ca3af;
    --gray-700: #d1d5db;
    --gray-800: #e5e7eb;
    --gray-900: #f9fafb;
    --white: #000000;
    --bg-primary: #020617;
    --bg-secondary: #020617;
    --bg-tertiary: #020617;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #1f2937;
    --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.6), 0 2px 4px -2px rgb(15 23 42 / 0.6);
    --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.7), 0 4px 6px -4px rgb(15 23 42 / 0.7);
    --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.8), 0 8px 10px -6px rgb(15 23 42 / 0.8);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography - serif headings like middlegate.com */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray-900);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.625rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-800);
    border: 2px solid var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-800);
    color: var(--white);
}

.hero .btn-secondary {
    color: var(--white);
    border-color: rgba(255,255,255,0.8);
}

.hero .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header - dark like middlegate.com */
.header {
    background: var(--primary-color);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-button {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 1rem 2rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.mobile-nav ul li a:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    width: 60px;
    height: 32px;
    position: relative;
    overflow: hidden;
}

.dark-mode-toggle {
    border-color: rgba(255,255,255,0.3);
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    transition: var(--transition);
    transform: translateX(0);
}

[data-theme="dark"] .dark-mode-toggle::before {
    transform: translateX(26px);
    background: var(--accent-color);
}

.dark-mode-toggle i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
}

.dark-mode-toggle .fa-sun {
    left: 8px;
    color: var(--primary-dark);
}

.dark-mode-toggle .fa-moon {
    right: 8px;
    color: rgba(255,255,255,0.8);
}

[data-theme="dark"] .dark-mode-toggle .fa-sun {
    color: var(--gray-500);
}

[data-theme="dark"] .dark-mode-toggle .fa-moon {
    color: var(--white);
}

/* Hero Section - dark, single column like middlegate.com */
.hero {
    background: var(--primary-color);
    padding: 140px 0 80px;
    overflow: hidden;
    position: relative;
}

.hero-inner {
    max-width: 720px;
}

.hero-inner h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-tagline {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.88);
}

.hero-cta {
    margin: 0;
}

.hero-cta .btn-primary {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.hero-cta .btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
}

/* About intro - traditional block of copy */
.about-intro {
    padding: 80px 0;
}

.about-intro h2 {
    margin-bottom: 1.25rem;
}

.intro-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 800px;
    color: var(--gray-700);
}

/* Services overview - simple blocks, text links */
.section-title {
    margin-bottom: 1.5rem;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-block {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.service-block p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.text-link:hover {
    text-decoration: underline;
}

/* Quick contact section */
.contact-intro {
    margin-bottom: 1.25rem;
    max-width: 640px;
}

.contact-actions {
    margin: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-text {
    max-width: 100%;
}

.hero-text h1 {
    color: var(--white);
}

.eyebrow {
    display: inline-block;
    color: var(--accent-color);
    padding: 0.4rem 0 0.6rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 2px solid var(--accent-color);
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.85);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.75rem 2rem;
    background: rgba(255,255,255,0.06);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-stats .stat {
    text-align: left;
}

.hero-stats .stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.trust-indicators div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.trust-indicators i {
    color: var(--accent-color);
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image-card {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.12);
}

.hero-image-card h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.hero-image-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-metric {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.25rem;
}

.hero-metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.95);
    padding: 0.9rem 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-800);
}

.floating-card i {
    color: var(--accent-color);
}

.floating-card.top-left {
    top: -10%;
    left: -5%;
}

.floating-card.bottom-right {
    bottom: -8%;
    right: -5%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto;
}

/* Services Grid */
.services-overview,
.services-section,
.mission-section,
.team-section,
.why-choose-section,
.stats-section,
.quick-contact,
.cta-section,
.contact-section,
.faq-section {
    padding: 80px 0;
}

.services-overview {
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 2px;
    text-align: left;
    border: 1px solid var(--gray-200);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--gray-400);
}

.service-card.featured {
    border: 2px solid var(--accent-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '●';
    font-size: 0.6rem;
    color: var(--accent-color);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
}

.service-cta:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Page Header - flat, traditional */
.page-header {
    background: var(--gray-100);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.page-header-content h1 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.page-header-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.breadcrumb {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Quick Contact */
.quick-contact {
    background: var(--gray-50);
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.contact-benefits {
    margin: 2rem 0;
}

.contact-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-benefits i {
    color: var(--accent-color);
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 0.15rem;
}

.contact-item h4 {
    margin-bottom: 0.35rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-300);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.15);
}

.form-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
}

/* FAQ */
.faq-section {
    background: var(--gray-50);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.faq-item {
    background: var(--white);
    padding: 1.75rem;
    border: 1px solid var(--gray-200);
}

.faq-item h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* CTA Section - dark like middlegate.com footer */
.cta-section {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.75rem;
}

.cta-section .btn-primary {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.cta-section .btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
}

.cta-section .btn-secondary {
    color: var(--white);
    border-color: rgba(255,255,255,0.8);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Footer - same dark as middlegate.com */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    margin-bottom: 0.75rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.45rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-logo p {
    margin-top: 0.75rem;
    color: #d1d5db;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: #d1d5db;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #d1d5db;
}

/* Skip Link - Hidden visually but accessible to screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    z-index: 1002;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2.5rem;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 96px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .hero {
        padding: 120px 0 64px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

