/* ============================================
   LAPALCO DRUGS — Editorial Pharmacy Website
   ============================================ */

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

:root {
    --forest: #1a4d2e;
    --forest-deep: #0f3520;
    --forest-light: #2d6a4f;
    --forest-muted: #40916c;
    --cream: #f5f2eb;
    --cream-light: #faf8f4;
    --cream-dark: #e8e2d6;
    --charcoal: #1a1a1a;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --white: #ffffff;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(26, 77, 46, 0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(26, 77, 46, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 60px rgba(26, 77, 46, 0.1), 0 4px 16px rgba(0,0,0,0.06);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

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

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--forest-muted);
    flex-shrink: 0;
}

.section-headline {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--forest);
    color: var(--cream);
    box-shadow: 0 4px 14px rgba(26, 77, 46, 0.3);
}

.btn-primary:hover {
    background: var(--forest-deep);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--forest);
    border: 1.5px solid var(--forest);
}

.btn-secondary:hover {
    background: var(--forest);
    color: var(--cream);
}

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 242, 235, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 77, 46, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--forest);
    transition: var(--transition);
}

.logo:hover {
    color: var(--forest-deep);
}

.logo-mark {
    color: var(--forest);
}

.logo-text {
    letter-spacing: -0.01em;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--forest);
    background: rgba(26, 77, 46, 0.06);
}

.nav-cta {
    background: var(--forest);
    color: var(--cream) !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--forest-deep);
    color: var(--cream) !important;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(26, 77, 46, 0.06);
}

.hamburger {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--forest);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--forest);
    left: 0;
    transition: var(--transition);
}

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

.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 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.hero-accent {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(26, 77, 46, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--forest-muted);
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--charcoal);
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-headline em {
    font-style: italic;
    color: var(--forest);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 40px;
}

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

.hero-image {
    position: relative;
}

.hero-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 680/860;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img-wrap:hover img {
    transform: scale(1.02);
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.stat {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    flex: 1;
}

.stat-number {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--forest);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--cream-light);
}

.services .section-header {
    margin-bottom: 64px;
}

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(26, 77, 46, 0.05);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 77, 46, 0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(26, 77, 46, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--forest);
    color: var(--cream);
}

.service-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 600/720;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-content .section-headline {
    margin-bottom: 28px;
}

.about-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-values {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.value-icon {
    width: 36px;
    height: 36px;
    background: rgba(26, 77, 46, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    flex-shrink: 0;
}

.value-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

/* --- Location --- */
.location {
    padding: 120px 0;
    background: var(--cream-light);
}

.location-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

.location-content .section-headline {
    margin-bottom: 28px;
}

.location-address {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.address-line {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 1.0625rem;
    color: var(--text);
    line-height: 1.7;
}

.address-line svg {
    color: var(--forest);
    flex-shrink: 0;
    margin-top: 2px;
}

.address-line a {
    color: var(--forest);
    font-weight: 500;
    transition: var(--transition);
}

.address-line a:hover {
    color: var(--forest-deep);
    text-decoration: underline;
}

.location-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-aside {
    position: sticky;
    top: 100px;
}

.aside-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 77, 46, 0.06);
}

.aside-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.aside-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 28px;
}

.hours h4 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.hours ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cream-dark);
}

.hours li span:first-child {
    color: var(--text);
    font-weight: 500;
}

.hours li span:last-child {
    color: var(--text-light);
}

.hours li:last-child {
    border-bottom: none;
}

.hours li span:last-child {
    color: var(--forest-muted);
    font-weight: 500;
}

.hours-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--forest);
    color: var(--cream);
}

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

.contact .section-eyebrow {
    color: rgba(245, 242, 235, 0.6);
}

.contact .section-eyebrow::before {
    background: rgba(245, 242, 235, 0.4);
}

.contact .section-headline {
    color: var(--cream);
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(245, 242, 235, 0.7);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(245, 242, 235, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(245, 242, 235, 0.08);
    transition: var(--transition);
}

.contact-method:hover {
    background: rgba(245, 242, 235, 0.1);
    border-color: rgba(245, 242, 235, 0.15);
}

.contact-method a {
    color: var(--cream);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    background: rgba(245, 242, 235, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    flex-shrink: 0;
}

.contact-method-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.5);
    display: block;
}

.contact-method-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream);
}

/* --- Form --- */
.contact-form-wrap {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 28px;
}

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

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--cream-light);
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--forest);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.08);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(26, 77, 46, 0.06);
    border: 1px solid rgba(26, 77, 46, 0.15);
    border-radius: var(--radius-sm);
    color: var(--forest);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-top: 16px;
}

.form-success svg {
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    color: var(--cream);
    padding: 64px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: var(--cream);
    margin-bottom: 16px;
}

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

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

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.6);
    transition: var(--transition);
}

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

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

.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.6);
    transition: var(--transition);
}

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

.footer-contact span {
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 242, 235, 0.08);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 242, 235, 0.35);
}

/* --- Mobile Navigation --- */
@media (max-width: 1023px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(245, 242, 235, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(26, 77, 46, 0.08);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover {
        background: rgba(26, 77, 46, 0.06);
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-img-wrap {
        aspect-ratio: 4/5;
    }

    .hero-stats {
        max-width: 500px;
        margin: 24px auto 0;
    }

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

    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
        aspect-ratio: 4/5;
    }

    .location-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .location-aside {
        position: static;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 640px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-headline {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero-desc {
        font-size: 1rem;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .services {
        padding: 80px 0;
    }

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

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

    .about,
    .location,
    .contact {
        padding: 80px 0;
    }

    .section-headline {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

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