/* ============================================
   Fort Belvoir Pharmacy Annex — Stylesheet
   ============================================ */

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

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

body {
    line-height: 1.6;
    color: #2a1534;
    background-color: #ffffff;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section --- */
.section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }
}

/* --- Section Header --- */
.section-header {
    max-width: 720px;
    margin-bottom: 64px;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #F59E0B;
    margin-bottom: 16px;
    position: relative;
    padding-left: 32px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 2px;
    background-color: #F59E0B;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #2a1534;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-title.text-light {
    color: #f5f0f7;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #7d4f92;
    max-width: 560px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #F59E0B;
    color: #2a1534;
    border: 2px solid #F59E0B;
}

.btn-primary:hover {
    background-color: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-outline-light {
    background-color: transparent;
    color: #f5f0f7;
    border: 2px solid rgba(245, 240, 247, 0.4);
}

.btn-outline-light:hover {
    border-color: #f5f0f7;
    background-color: rgba(245, 240, 247, 0.1);
    transform: translateY(-2px);
}

.btn-amber {
    background-color: #F59E0B;
    color: #2a1534;
    border: 2px solid #F59E0B;
    font-weight: 600;
}

.btn-amber:hover {
    background-color: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.nav-fixed.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(91, 44, 111, 0.08);
}

.nav-fixed.scrolled .nav-logo-text,
.nav-fixed.scrolled .nav-logo-text span {
    color: #2a1534;
}

.nav-fixed.scrolled .nav-logo-text span {
    color: #F59E0B !important;
}

.nav-fixed.scrolled .nav-link {
    color: #4a2358;
}

.nav-fixed.scrolled .nav-link:hover {
    color: #5B2C6F;
}

.nav-fixed.scrolled .nav-toggle-line {
    background-color: #2a1534;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.nav-logo-icon {
    color: #5B2C6F;
    flex-shrink: 0;
}

.nav-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f5f0f7;
    letter-spacing: -0.01em;
}

.nav-logo-text span {
    color: #F59E0B;
    display: block;
    font-size: 0.875rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(245, 240, 247, 0.85);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F59E0B;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #F59E0B;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #F59E0B;
    background-color: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background-color: rgba(245, 158, 11, 0.2);
    border-color: #F59E0B;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    width: 24px;
    height: 2px;
    background-color: #f5f0f7;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 14, 34, 0.6);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 14, 34, 0.88) 0%,
        rgba(91, 44, 111, 0.75) 50%,
        rgba(42, 21, 52, 0.85) 100%
    );
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #F59E0B;
    margin-bottom: 28px;
    padding: 8px 20px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    background-color: rgba(245, 158, 11, 0.08);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #F59E0B;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #f5f0f7;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    font-weight: 600;
}

.hero-subheadline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: rgba(245, 240, 247, 0.75);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

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

.hero-stat-num {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F59E0B;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(245, 240, 247, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(245, 240, 247, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(245, 240, 247, 0.5);
    animation: scroll-bounce 2s ease-in-out infinite;
    display: flex;
    align-items: center;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background-color: #f5f0f7;
}

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

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

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

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 36px 28px;
    transition: all 0.3s ease;
    border: 1px solid rgba(91, 44, 111, 0.06);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(91, 44, 111, 0.12);
    border-color: rgba(245, 158, 11, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(91, 44, 111, 0.08);
    color: #5B2C6F;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: #5B2C6F;
    color: #F59E0B;
}

.service-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2a1534;
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #7d4f92;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background-color: #ffffff;
}

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

@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background-color: #F59E0B;
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.about-content {
    max-width: 520px;
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4a2358;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #2a1534;
}

.about-check {
    color: #F59E0B;
    flex-shrink: 0;
}

/* ============================================
   TRUST BANNER
   ============================================ */
.trust-banner {
    background: linear-gradient(135deg, #2a1534 0%, #5B2C6F 100%);
    padding: 80px 0;
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-content {
    flex: 1;
    min-width: 280px;
}

.trust-cta {
    flex-shrink: 0;
    text-align: center;
}

.trust-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 480px;
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background-color: #f5f0f7;
}

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

@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.contact-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #7d4f92;
    margin-bottom: 40px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: rgba(91, 44, 111, 0.08);
    color: #5B2C6F;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9c75b0;
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    color: #2a1534;
}

.contact-link {
    color: #5B2C6F;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #F59E0B;
}

/* Contact Form */
.contact-form-wrapper {
    width: 100%;
}

.contact-form-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(91, 44, 111, 0.08);
    border: 1px solid rgba(91, 44, 111, 0.06);
}

.contact-form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a1534;
    margin-bottom: 6px;
}

.contact-form-subtitle {
    font-size: 0.9375rem;
    color: #7d4f92;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a2358;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(91, 44, 111, 0.15);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #2a1534;
    background-color: #f5f0f7;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b89fc9;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #5B2C6F;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.1);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: #F59E0B;
    margin-bottom: 16px;
}

.form-success-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a1534;
    margin-bottom: 8px;
}

.form-success-text {
    font-size: 0.9375rem;
    color: #7d4f92;
    line-height: 1.6;
}

/* ============================================
   MAP
   ============================================ */
.map-section {
    height: 400px;
    background-color: #ebe0f0;
}

.map-iframe {
    filter: saturate(0.7) contrast(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #1a0e22;
    color: rgba(245, 240, 247, 0.7);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(245, 240, 247, 0.08);
}

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

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #f5f0f7;
    margin-bottom: 16px;
    line-height: 1.2;
}

.footer-logo svg {
    color: #F59E0B;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(245, 240, 247, 0.5);
    max-width: 280px;
}

.footer-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: #f5f0f7;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(245, 240, 247, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #F59E0B;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: rgba(245, 240, 247, 0.6);
    line-height: 1.5;
}

.footer-contact-list svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #F59E0B;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(245, 240, 247, 0.6);
    transition: color 0.2s ease;
}

.footer-phone:hover {
    color: #F59E0B;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
    text-align: center;
}

.footer-copy,
.footer-legal {
    font-size: 0.8125rem;
    color: rgba(245, 240, 247, 0.35);
}

/* ============================================
   REVEAL ANIMATIONS
   (Progressive enhancement — content is visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
    .reveal:nth-child(5) { transition-delay: 0.32s; }
    .reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* Reduced motion: always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
