/* ==========================================================
   Medlin & Medlin, PA — Site Stylesheet
   Fonts: Cormorant Garamond (headings) / Nunito Sans (body)
   Palette: Deep Navy + Warm Gold + Cream
   ========================================================== */

:root {
    --navy:        #1b2f4e;
    --navy-dark:   #0f1f35;
    --gold:        #c09040;
    --gold-light:  #d4a855;
    --cream:       #faf8f4;
    --light:       #f0ece3;
    --border:      rgba(0,0,0,0.07);
    --text:        #2a2a2a;
    --text-muted:  #6b6b6b;
    --serif:       'Cormorant Garamond', Georgia, serif;
    --sans:        'Nunito Sans', system-ui, -apple-system, sans-serif;
    --ease:        0.3s ease;
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Shared Utilities ─────────────────────────────────── */
.section-pad { padding: 5rem 0; }
.bg-light-warm { background: var(--light); }
.bg-navy { background: var(--navy-dark); }

.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.6rem;
}
.section-eyebrow.gold { color: var(--gold); }

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.9rem;
    line-height: 1.12;
}
.section-title.text-white { color: #fff; }

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-gold {
    background: var(--gold);
    color: #fff !important;
    border: 2px solid var(--gold);
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background var(--ease), transform var(--ease), border-color var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-outline-hero {
    border: 2px solid rgba(255,255,255,0.45);
    color: rgba(255,255,255,0.9) !important;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    background: transparent;
    transition: border-color var(--ease), color var(--ease), background var(--ease);
    display: inline-flex;
    align-items: center;
}
.btn-outline-hero:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    background: rgba(192,144,64,0.1);
}

/* ── Navbar ───────────────────────────────────────────── */
#mainNav {
    padding: 1.1rem 0;
    background: transparent;
    transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
    z-index: 1050;
}
#mainNav.scrolled {
    background: var(--navy-dark);
    padding: 0.65rem 0;
    box-shadow: 0 3px 24px rgba(0,0,0,0.35);
}
.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding: 0;
}
.brand-name {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}
.brand-amp { color: var(--gold); }
.brand-tagline {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 300;
}
.nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.45rem 0.75rem !important;
    transition: color var(--ease);
}
.nav-link:hover,
.nav-link:focus { color: var(--gold) !important; }
.navbar-toggler {
    border-color: rgba(255,255,255,0.35);
    padding: 0.4rem 0.6rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ─────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('img/concord.jpg') center 40% / cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(10, 18, 32, 0.93) 0%,
        rgba(15, 27, 50, 0.87) 55%,
        rgba(27, 47, 78, 0.55) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--gold);
    padding-left: 0.75rem;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    font-weight: 600;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.hero-subtitle em {
    font-style: italic;
    color: rgba(212,168,85,0.9);
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.hero-scroll-hint {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.35);
    font-size: 1.3rem;
    z-index: 1;
    animation: bounce-hint 2.2s infinite;
}
@keyframes bounce-hint {
    0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.35; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 0.65; }
}

/* ── Stats Bar ────────────────────────────────────────── */
.stats-bar {
    background: var(--navy);
    padding: 2.25rem 0;
    border-top: 3px solid var(--gold);
}
.stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item--last { border-right: none; }
.stat-number {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}
.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: 0.35rem;
    font-weight: 700;
}

/* ── Service Cards ────────────────────────────────────── */
.service-card {
    background: #fff;
    border-radius: 3px;
    padding: 2.25rem;
    height: 100%;
    border-top: 4px solid var(--gold);
    box-shadow: 0 2px 18px rgba(0,0,0,0.06);
    transition: box-shadow var(--ease), transform var(--ease);
}
.service-card:hover {
    box-shadow: 0 10px 44px rgba(0,0,0,0.11);
    transform: translateY(-4px);
}
.service-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.service-card h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 0.8rem;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.service-card p em {
    font-style: italic;
    color: var(--navy);
    font-weight: 400;
}
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.3rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

/* ── About Section ────────────────────────────────────── */
.about-photo-wrap {
    position: relative;
    display: block;
}
.about-photo {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 3px;
}
.about-photo-badge {
    position: absolute;
    bottom: -1.25rem;
    right: -1.25rem;
    background: var(--navy);
    color: #fff;
    padding: 1.25rem 1.35rem;
    border-radius: 3px;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
    border: 3px solid var(--gold);
    max-width: 155px;
    font-weight: 600;
}
.badge-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.45rem;
}
.about-lead {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--navy);
    line-height: 1.6;
    margin-bottom: 1.35rem;
    padding-left: 1.2rem;
    border-left: 4px solid var(--gold);
}
.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    background: var(--light);
    border-radius: 3px;
    height: 100%;
}
.credential-icon {
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.credential-title {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.credential-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
}

/* ── Why Choose Cards ─────────────────────────────────── */
.why-card {
    text-align: center;
    padding: 2.5rem 1.75rem;
    border-radius: 3px;
    transition: background var(--ease);
}
.why-card:hover {
    background: rgba(255,255,255,0.04);
}
.why-icon {
    font-size: 2.4rem;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.why-card h4 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
}
.why-card p {
    color: rgba(255,255,255,0.65);
    font-size: 0.93rem;
    line-height: 1.8;
    margin: 0;
}

/* ── Testimonials ─────────────────────────────────────── */
.testimonial-card {
    background: #fff;
    border-radius: 3px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    border-bottom: 3px solid transparent;
    transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}
.testimonial-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.1);
    border-bottom-color: var(--gold);
    transform: translateY(-3px);
}
.testimonial-icon {
    font-size: 1.9rem;
    color: var(--gold);
    opacity: 0.55;
    margin-bottom: 0.9rem;
}
.testimonial-name {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.3rem;
}
.testimonial-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ── Community / Gallery ──────────────────────────────── */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: var(--navy);
}
.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.45s ease;
    opacity: 0.92;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
    opacity: 1;
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10,18,32,0.82));
    color: #fff;
    padding: 1.25rem 0.85rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.community-quote {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--navy);
    line-height: 1.65;
    padding-left: 1.25rem;
    border-left: 4px solid var(--gold);
    margin-bottom: 1.25rem;
}
.org-badge {
    background: var(--light);
    border-radius: 3px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
}
.org-badge i {
    font-size: 1.4rem;
    color: var(--gold);
    flex-shrink: 0;
}
.org-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
}
.org-badge small {
    display: block;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.76rem;
    margin-top: 0.15rem;
}

/* ── Service Areas ────────────────────────────────────── */
.area-item {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px;
    padding: 0.9rem 1rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.area-item:hover {
    background: rgba(192,144,64,0.15);
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Contact ──────────────────────────────────────────── */
.contact-info-wrap {
    background: #fff;
    border-radius: 3px;
    padding: 2.5rem;
    box-shadow: 0 2px 18px rgba(0,0,0,0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.contact-item--last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.contact-icon {
    width: 2.4rem;
    height: 2.4rem;
    background: var(--gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.contact-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.contact-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
}
.contact-text a {
    color: var(--navy);
    transition: color var(--ease);
}
.contact-text a:hover { color: var(--gold); }
.map-wrap {
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 18px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 420px;
}
.map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
    background: var(--navy-dark);
    padding: 3.5rem 0 0;
}
.footer-brand {
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    color: #fff;
}
.footer-sub {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.2rem;
    font-weight: 700;
}
.footer-address {
    font-size: 0.86rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.45);
}
.footer-address a {
    color: rgba(255,255,255,0.55);
    transition: color var(--ease);
}
.footer-address a:hover { color: var(--gold); }
.footer-heading {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.87rem;
    transition: color var(--ease);
}
.footer-links a:hover { color: var(--gold); }
.footer-social {
    display: flex;
    gap: 0.65rem;
}
.social-link {
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}
.powered-link {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    gap: 0.1rem;
}
.powered-by {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}
.powered-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.01em;
    transition: color var(--ease);
}
.powered-link:hover .powered-name { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    margin-top: 2rem;
}
.footer-bottom p {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.28);
    text-align: center;
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--navy-dark);
        padding: 1rem 1.25rem;
        border-radius: 3px;
        margin-top: 0.5rem;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    .nav-link { padding: 0.6rem 0 !important; }
    .navbar-nav .ms-lg-2 { margin-top: 0.75rem; }
    .btn-gold { width: 100%; text-align: center; }
    .about-photo-badge { right: 0.5rem; bottom: 0.5rem; }
}

@media (max-width: 767.98px) {
    .section-pad { padding: 3.5rem 0; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .stat-item--last { border-bottom: none; }
    .about-photo { height: 320px; }
    .about-photo-badge {
        font-size: 0.7rem;
        padding: 0.8rem;
        max-width: 130px;
    }
    .contact-info-wrap { padding: 1.75rem; }
    .map-wrap, .map-wrap iframe { min-height: 300px; }
    .gallery-img { height: 190px; }
    .footer-social { margin-bottom: 1.5rem; }
}

@media (max-width: 575.98px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .stats-bar .col-6 { border-right: none !important; }
    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .stat-item--last { border-bottom: none; }
}
