/* ========================================
   Altpharm — Classic & Elegant Pharmacy
   Colors: Midnight Blue (#0A1628) + Mint (#34D4A8)
   Fonts: Cormorant Garamond + Inter
======================================== */

/* ── Reset & Base ── */
*, *::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: #1a2744;
    background-color: #FAFBFC;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* ── Typography ── */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    color: #0A1628;
}

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

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 251, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A1628;
    letter-spacing: -0.01em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0A1628;
    color: #34D4A8;
    font-size: 1.25rem;
    font-weight: 300;
    border-radius: 8px;
    line-height: 1;
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a2744;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #0A1628;
    background: rgba(10, 22, 40, 0.06);
}

.nav-cta {
    padding: 9px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #34D4A8;
    background: #0A1628;
    border-radius: 8px;
    margin-left: 8px;
    transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
    background: #132240;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #0A1628;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 251, 252, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
    padding: 16px 24px 24px;
}

.mobile-menu.is-open {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-list a {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #1a2744;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-nav-list a:hover {
    background: rgba(10, 22, 40, 0.06);
}

.mobile-call-btn {
    margin-top: 8px;
    display: block;
    text-align: center;
    padding: 14px 16px !important;
    background: #0A1628;
    color: #34D4A8 !important;
    font-weight: 600;
    border-radius: 8px;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0A1628;
}

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.75) 40%,
        rgba(10, 22, 40, 0.55) 70%,
        rgba(10, 22, 40, 0.70) 100%
    );
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(52, 212, 168, 0.12);
    border: 1px solid rgba(52, 212, 168, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #34D4A8;
    margin-bottom: 32px;
}

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

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

.hero-headline {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline br {
    display: none;
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
    margin: 0 auto 40px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #0A1628;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #132240;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.25);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-mint {
    background: #34D4A8;
    color: #0A1628;
}

.btn-mint:hover {
    background: #2BC498;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 212, 168, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-full {
    width: 100%;
}

/* ── Info Bar ── */
.info-bar {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.info-bar-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    padding: 24px 0;
}

.info-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #34D4A8;
    margin-top: 2px;
}

.info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a9ab5;
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0A1628;
    line-height: 1.5;
}

.info-value:hover {
    color: #34D4A8;
}

.info-divider {
    width: 1px;
    height: 36px;
    background: rgba(10, 22, 40, 0.08);
    flex-shrink: 0;
}

/* ── Section Shared ── */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #34D4A8;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #5a6a82;
    max-width: 560px;
}

/* ── Services ── */
.services {
    padding: 100px 0;
    background: #FAFBFC;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

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

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

.service-card {
    background: #FFFFFF;
    border: 1px solid rgba(10, 22, 40, 0.06);
    border-radius: 16px;
    padding: 36px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.08);
    border-color: rgba(52, 212, 168, 0.3);
}

.service-icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 212, 168, 0.1);
    border-radius: 12px;
    margin-bottom: 24px;
    color: #0A1628;
}

.service-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.service-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #0A1628;
    margin-bottom: 12px;
    line-height: 1.25;
}

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

/* ── About ── */
.about {
    padding: 100px 0;
    background: #FFFFFF;
}

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

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

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: #34D4A8;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #5a6a82;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 36px 0;
    padding: 28px 0;
    border-top: 1px solid rgba(10, 22, 40, 0.06);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0A1628;
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: #8a9ab5;
    font-weight: 500;
}

/* ── Community ── */
.community {
    padding: 100px 0;
    background: #FAFBFC;
}

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

.community-content .section-tag {
    margin-bottom: 16px;
}

.community-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #5a6a82;
    margin-bottom: 32px;
}

.community-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #1a2744;
}

.check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #34D4A8;
    margin-top: 2px;
}

.community-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
}

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

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

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.90) 0%, rgba(10, 22, 40, 0.80) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.12;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 40px;
}

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

/* ── Contact ── */
.contact {
    padding: 100px 0;
    background: #FFFFFF;
}

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

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #5a6a82;
    margin-bottom: 40px;
}

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

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

.contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #34D4A8;
    margin-top: 3px;
}

.contact-detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a9ab5;
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0A1628;
    line-height: 1.6;
}

.contact-detail-value:hover {
    color: #34D4A8;
}

.contact-form-wrap {
    background: #FAFBFC;
    border: 1px solid rgba(10, 22, 40, 0.06);
    border-radius: 20px;
    padding: 40px;
}

.form-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A1628;
    margin-bottom: 28px;
}

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

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

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a2744;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #0A1628;
    background: #FFFFFF;
    border: 1px solid rgba(10, 22, 40, 0.12);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
    color: #a0aec0;
}

.form-input:focus {
    border-color: #34D4A8;
    box-shadow: 0 0 0 3px rgba(52, 212, 168, 0.12);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(52, 212, 168, 0.08);
    border: 1px solid rgba(52, 212, 168, 0.25);
    border-radius: 10px;
    color: #0A1628;
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-success svg {
    width: 20px;
    height: 20px;
    color: #34D4A8;
    flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
    background: #0A1628;
    padding: 56px 0 32px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}

.footer-logo {
    color: #FFFFFF;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
    text-align: right;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-address {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ── 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.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .about-layout,
    .community-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-wrap {
        order: -1;
    }

    .about-img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-list,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(2.25rem, 10vw, 3.25rem);
    }

    .hero-headline br {
        display: none;
    }

    .info-bar-inner {
        flex-direction: column;
        gap: 0;
    }

    .info-item {
        padding: 20px 0;
        border-bottom: 1px solid rgba(10, 22, 40, 0.06);
    }

    .info-divider {
        display: none;
    }

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

    .services,
    .about,
    .community,
    .cta,
    .contact {
        padding: 72px 0;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-tagline {
        text-align: left;
    }

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

    .hero-scroll {
        display: none;
    }
}

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

    .hero-content {
        padding: 100px 18px 60px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }
}
