/* ============================================
   86 Bobo Pharmacy — Classic & Elegant Design
   Palette: Charcoal (#374151) + Coral (#F97316)
   Fonts: Playfair Display + Inter
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1f2937;
    background-color: #faf9f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #374151;
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 100;
    border-radius: 0 0 8px 8px;
    font-size: 0.875rem;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: #1f2937;
}

.section-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #F97316;
    margin-bottom: 1rem;
}

.section-eyebrow-light {
    color: rgba(255, 255, 255, 0.6);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
    color: #1f2937;
}

.section-title-light {
    color: #fff;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    line-height: 1.75;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #F97316;
    color: #fff;
    border-color: #F97316;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #ea6c0a;
    border-color: #ea6c0a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: #374151;
    border-color: #374151;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #374151;
    color: #fff;
    transform: translateY(-1px);
}

.btn-nav {
    background-color: #F97316;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-nav:hover {
    background-color: #ea6c0a;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(55, 65, 81, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.logo-mark {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F97316;
    line-height: 1;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: -0.01em;
}

.logo-light .logo-mark {
    color: #F97316;
}

.logo-light .logo-text {
    color: #fff;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.primary-nav a:not(.btn-nav) {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #374151;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}

.primary-nav a:not(.btn-nav):hover {
    color: #F97316;
    background-color: rgba(249, 115, 22, 0.06);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 22px;
    height: 2px;
    background-color: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background-color: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #faf9f7;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #F97316;
    margin-bottom: 1.25rem;
    display: block;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1f2937;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.trust-item svg {
    color: #F97316;
    flex-shrink: 0;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(55, 65, 81, 0.15);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 3px solid #F97316;
    border-radius: 16px;
    z-index: -1;
    opacity: 0.4;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 7rem 0;
    background-color: #fff;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.service-card {
    padding: 2.25rem;
    border-radius: 12px;
    border: 1px solid rgba(55, 65, 81, 0.08);
    background-color: #faf9f7;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 8px 30px rgba(55, 65, 81, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: rgba(249, 115, 22, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #F97316;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.service-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.75;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 7rem 0;
    background-color: #faf9f7;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-image-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(55, 65, 81, 0.12);
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 55%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(55, 65, 81, 0.15);
    border: 4px solid #faf9f7;
}

.about-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content .section-title {
    margin-top: 0.25rem;
}

.about-text {
    font-size: 1.0625rem;
    color: #6b7280;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.value-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.value-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: rgba(249, 115, 22, 0.25);
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.value-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.value-text {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.65;
}

/* ============================================
   Community Section
   ============================================ */
.community {
    padding: 7rem 0;
    background-color: #374151;
    position: relative;
    overflow: hidden;
}

.community::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.05);
    pointer-events: none;
}

.community-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.community-content {
    position: relative;
    z-index: 1;
}

.community-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.community-text:last-of-type {
    margin-bottom: 0;
}

.community-visual {
    position: relative;
    z-index: 1;
}

.community-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.community-quote {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    position: relative;
}

.community-quote svg {
    color: #F97316;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.community-quote blockquote {
    margin: 0;
}

.community-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.0625rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.quote-attribution {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}

/* ============================================
   Visit Section
   ============================================ */
.visit {
    padding: 7rem 0;
    background-color: #fff;
}

.visit-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-subtitle {
    font-size: 1.0625rem;
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(249, 115, 22, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F97316;
    flex-shrink: 0;
}

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

.contact-value {
    display: block;
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.65;
}

.contact-item a {
    color: #F97316;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #ea6c0a;
    text-decoration: underline;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(55, 65, 81, 0.1);
    border: 1px solid rgba(55, 65, 81, 0.08);
}

.map-container iframe {
    width: 100%;
    height: 480px;
    display: block;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: #1f2937;
    padding: 4rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-contact a {
    color: #F97316;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #fb923c;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
    padding: 0.25rem 0;
}

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

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

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

/* Fallback: ensure content is visible if JS is disabled */
.reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-trust {
        justify-content: center;
    }

    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }

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

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-col {
        max-width: 480px;
        margin: 0 auto;
    }

    .community-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .community-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .visit-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 640px) {
    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(250, 249, 247, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(55, 65, 81, 0.08);
        padding: 1rem 1.5rem 1.5rem;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
        z-index: 40;
    }

    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
    }

    .primary-nav a:not(.btn-nav) {
        display: block;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .btn-nav {
        display: block;
        text-align: center;
        margin-top: 0.75rem;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-inner {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: clamp(1.875rem, 8vw, 2.5rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .services {
        padding: 5rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .about,
    .community,
    .visit {
        padding: 5rem 0;
    }

    .about-image-secondary {
        right: -10px;
        bottom: -20px;
        width: 60%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container iframe {
        height: 300px;
    }
}
