/* ============================================
   MHMR of Tarrant County — Custom Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --charcoal-900: #1a1a2e;
    --charcoal-800: #2d2d44;
    --charcoal-700: #3d3d5c;
    --charcoal-600: #4a4a6a;
    --charcoal-500: #6b6b8a;
    --charcoal-100: #e8e8f0;
    --charcoal-50: #f4f4f8;

    --coral-600: #c45a3f;
    --coral-500: #E07A5F;
    --coral-400: #e8977f;
    --coral-300: #f0b4a0;
    --coral-200: #f7d4c4;
    --coral-100: #fce8e0;
    --coral-50: #fef3ef;

    --white: #ffffff;
    --off-white: #fafafa;

    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.08), 0 1px 2px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 4px 14px rgba(26, 26, 46, 0.1), 0 2px 6px rgba(26, 26, 46, 0.06);
    --shadow-lg: 0 10px 30px rgba(26, 26, 46, 0.12), 0 4px 12px rgba(26, 26, 46, 0.08);
    --shadow-xl: 0 20px 50px rgba(26, 26, 46, 0.15), 0 8px 20px rgba(26, 26, 46, 0.1);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--coral-500);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--coral-600);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--charcoal-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
    color: var(--charcoal-600);
}

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral-500);
    background: var(--coral-50);
    border: 1px solid var(--coral-200);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    color: var(--charcoal-500);
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-primary {
    background: var(--coral-500);
    color: var(--white);
    border-color: var(--coral-500);
}

.btn-primary:hover {
    background: var(--coral-600);
    border-color: var(--coral-600);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--charcoal-800);
    border-color: var(--charcoal-100);
}

.btn-secondary:hover {
    background: var(--charcoal-50);
    border-color: var(--charcoal-100);
    color: var(--charcoal-900);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-light {
    background: var(--white);
    color: var(--charcoal-900);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--charcoal-50);
    color: var(--charcoal-900);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--charcoal-900);
    border-color: var(--white);
}

/* --- Header --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    transition: box-shadow var(--transition);
}

#site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--charcoal-900);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--charcoal-900);
}

.logo-accent {
    color: var(--coral-500);
}

.logo:hover {
    color: var(--charcoal-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal-700);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--coral-500);
    background: var(--coral-50);
}

.btn-nav {
    background: var(--coral-500);
    color: var(--white) !important;
    margin-left: 8px;
}

.btn-nav:hover {
    background: var(--coral-600);
    color: var(--white) !important;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal-800);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--charcoal-800);
    transition: all var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--charcoal-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.88) 0%,
        rgba(45, 45, 68, 0.80) 50%,
        rgba(26, 26, 46, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--coral-300);
    background: rgba(224, 122, 95, 0.15);
    border: 1px solid rgba(224, 122, 95, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

.hero-headline {
    color: var(--white);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
}

.hero-scroll span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.4; }
}

/* --- Intro Section --- */
.intro-section {
    padding: 100px 0;
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.intro-image-wrap {
    position: relative;
}

.intro-image-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.intro-accent-card {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--coral-500);
    color: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.accent-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 4px;
}

.accent-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.intro-text .section-title {
    margin-bottom: 24px;
}

.intro-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.intro-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--charcoal-100);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--coral-500);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--charcoal-500);
    font-weight: 600;
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background: var(--charcoal-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 26, 46, 0.04);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--coral-200);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--coral-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--coral-500);
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

.service-title {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--charcoal-500);
}

/* --- Approach Section --- */
.approach-section {
    padding: 100px 0;
    background: var(--white);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.approach-content .section-title {
    margin-bottom: 20px;
}

.approach-intro {
    font-size: 1.05rem;
    margin-bottom: 40px;
    color: var(--charcoal-600);
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.approach-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--coral-500);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h4 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--charcoal-500);
}

.approach-image {
    position: relative;
}

.approach-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.approach-quote-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
    border-left: 4px solid var(--coral-500);
}

.approach-quote-card svg {
    margin-bottom: 12px;
}

.approach-quote-card p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--charcoal-700);
    margin-bottom: 12px;
    line-height: 1.6;
}

.approach-quote-card span {
    font-size: 0.85rem;
    color: var(--charcoal-500);
    font-weight: 600;
}

/* --- Community Section --- */
.community-section {
    padding: 100px 0;
    background: var(--charcoal-50);
}

.community-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.community-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26, 26, 46, 0.04);
    transition: all var(--transition);
}

.community-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.community-card-img {
    height: 200px;
    overflow: hidden;
}

.community-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.community-card:hover .community-card-img img {
    transform: scale(1.05);
}

.community-card-body {
    padding: 28px;
}

.community-card-body h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.community-card-body p {
    font-size: 0.95rem;
    color: var(--charcoal-500);
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.92) 0%,
        rgba(45, 45, 68, 0.88) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.cta-title {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: 20px;
}

.contact-intro {
    font-size: 1.05rem;
    margin-bottom: 40px;
    color: var(--charcoal-600);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--coral-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--charcoal-900);
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--charcoal-500);
    margin: 0;
}

.contact-text a {
    color: var(--coral-500);
}

/* --- Contact Form --- */
.contact-form-wrap {
    background: var(--charcoal-50);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--charcoal-100);
}

.form-title {
    font-size: 1.4rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--charcoal-800);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--charcoal-100);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral-500);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--charcoal-500);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-privacy {
    font-size: 0.8rem;
    color: var(--charcoal-500);
    text-align: center;
    margin-top: 16px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 16px;
}

.form-success h3 {
    color: var(--charcoal-900);
    margin-bottom: 12px;
}

.form-success p {
    margin-bottom: 24px;
}

/* --- Footer --- */
.site-footer {
    background: var(--charcoal-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: var(--coral-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .intro-grid,
    .approach-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .intro-accent-card {
        right: 16px;
        bottom: -16px;
    }

    .approach-quote-card {
        left: 16px;
        bottom: -16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }

    .btn-nav {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        padding: 110px 24px 80px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .services-grid,
    .community-cards {
        grid-template-columns: 1fr;
    }

    .intro-image-wrap img,
    .approach-image img {
        height: 320px;
    }

    .intro-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .contact-form-wrap {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .service-card {
        padding: 28px 22px;
    }

    .approach-quote-card {
        position: relative;
        bottom: auto;
        left: auto;
        max-width: 100%;
        margin-top: 16px;
    }
}
