/* ============================================
   Milford Drug and Gift — Brand Styles
   Palette: Plum (#5B2C6F) + Amber (#D97706)
   Fonts: Playfair Display + Inter
   ============================================ */

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

:root {
    --plum-50: #F5F0F7;
    --plum-100: #EDE4F0;
    --plum-200: #DCC8E2;
    --plum-300: #C4A3D0;
    --plum-400: #A87BBF;
    --plum-500: #8B5FB0;
    --plum-600: #5B2C6F;
    --plum-700: #4A2459;
    --plum-800: #391D44;
    --plum-900: #2A1633;
    --amber-50: #FFFBF0;
    --amber-100: #FEF3D6;
    --amber-200: #FDE6A8;
    --amber-300: #FBBF24;
    --amber-400: #F59E0B;
    --amber-500: #D97706;
    --amber-600: #B45309;
    --amber-700: #92400E;
    --amber-800: #78350F;
    --neutral-50: #FAFAF9;
    --neutral-100: #F5F5F4;
    --neutral-200: #E7E5E4;
    --neutral-300: #D6D3D1;
    --neutral-400: #A8A29E;
    --neutral-500: #78716C;
    --neutral-600: #57534E;
    --neutral-700: #44403C;
    --neutral-800: #292524;
    --neutral-900: #1C1917;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--neutral-800);
    background: var(--neutral-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(91, 44, 111, 0.0);
    transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(91, 44, 111, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.nav__logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--amber-500);
    color: var(--plum-900);
    font-weight: 700;
    font-size: 20px;
    font-family: var(--font-serif);
    border-radius: 8px;
    line-height: 1;
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav__logo-accent {
    color: var(--amber-400);
}

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

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-400);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
    color: #fff;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--amber-500);
    color: var(--plum-900) !important;
    padding: 10px 22px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.3s ease, transform 0.2s var(--ease-spring);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--amber-400);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

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

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

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

/* ============================================
   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(42, 22, 51, 0.88) 0%,
        rgba(91, 44, 111, 0.75) 50%,
        rgba(42, 22, 51, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    text-align: center;
}

.hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 24px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__headline em {
    font-style: italic;
    color: var(--amber-400);
}

.hero__subhead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--amber-500);
    color: var(--plum-900);
}

.btn--primary:hover {
    background: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(217, 119, 6, 0.35);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn--dark {
    background: var(--plum-600);
    color: #fff;
}

.btn--dark:hover {
    background: var(--plum-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(91, 44, 111, 0.3);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ============================================
   Section Shared
   ============================================ */
.section {
    padding: 120px 0;
}

.section__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--plum-600);
    margin-bottom: 16px;
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--neutral-900);
    letter-spacing: -0.02em;
}

/* ============================================
   Services
   ============================================ */
.services {
    background: var(--neutral-50);
}

.services .section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

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

.card {
    padding: 48px 40px;
    border-radius: 16px;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.card:hover {
    transform: translateY(-4px);
}

.card--plum {
    background: var(--plum-600);
    color: #fff;
}

.card--plum:hover {
    box-shadow: 0 20px 60px rgba(91, 44, 111, 0.3);
}

.card--amber {
    background: var(--amber-500);
    color: var(--plum-900);
}

.card--amber:hover {
    box-shadow: 0 20px 60px rgba(217, 119, 6, 0.3);
}

.card__icon {
    margin-bottom: 24px;
    opacity: 0.9;
}

.card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.card__body {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.85;
}

/* ============================================
   About
   ============================================ */
.about {
    background: #fff;
}

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

.about__image-wrap {
    position: relative;
}

.about__image {
    border-radius: 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(91, 44, 111, 0.15);
}

.about__image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--amber-400);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.6;
}

.about__content {
    max-width: 480px;
}

.about__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--neutral-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.about__body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--neutral-600);
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--neutral-200);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum-600);
    margin-bottom: 4px;
}

.stat__label {
    font-size: 0.8rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   Gifts
   ============================================ */
.gifts {
    background: var(--plum-600);
    color: #fff;
}

.gifts .section__eyebrow {
    color: var(--amber-400);
}

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

.gifts__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gifts__body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
}

.gifts__list {
    list-style: none;
    margin-bottom: 40px;
}

.gifts__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.gifts__item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gifts__item-mark {
    color: var(--amber-400);
    font-size: 0.8rem;
}

.gifts__gallery {
    position: relative;
}

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

.gifts__gallery-img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

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

.gifts__gallery-grid img:nth-child(1) {
    grid-column: 1 / -1;
}

/* ============================================
   Visit / CTA
   ============================================ */
.visit {
    background: var(--neutral-50);
}

.visit__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.visit__text {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
}

.visit__text .section__eyebrow {
    margin-bottom: 16px;
}

.visit__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--neutral-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.visit__body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--neutral-500);
    margin-bottom: 40px;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

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

.visit__detail svg {
    flex-shrink: 0;
    color: var(--plum-600);
    margin-top: 2px;
}

.visit__detail strong {
    display: block;
    font-size: 0.9rem;
    color: var(--neutral-800);
    margin-bottom: 4px;
}

.visit__detail span,
.visit__detail a {
    font-size: 0.95rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

.visit__detail a:hover {
    color: var(--plum-600);
}

.visit__map {
    min-height: 400px;
}

.visit__map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--plum-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 40px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer__brand .nav__logo-mark {
    width: 44px;
    height: 44px;
    font-size: 24px;
}

.footer__name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.footer__name-accent {
    color: var(--amber-400);
}

.footer__tagline {
    font-size: 0.9rem;
    max-width: 360px;
    line-height: 1.6;
}

.footer__contact {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer__contact a {
    color: var(--amber-400);
    transition: color 0.3s ease;
}

.footer__contact a:hover {
    color: var(--amber-300);
}

.footer__copyright {
    font-size: 0.8rem;
    opacity: 0.5;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .services__grid,
    .about__inner,
    .gifts__layout,
    .visit__card {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about__image-wrap {
        max-width: 500px;
    }
    
    .gifts__layout {
        gap: 48px;
    }
    
    .visit__card {
        border-radius: 16px;
    }
    
    .visit__text {
        padding: 48px 40px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--plum-700);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
    
    .nav__menu.open {
        transform: translateX(0);
    }
    
    .nav__link {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.85);
    }
    
    .nav__link--cta {
        text-align: center;
        width: 100%;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__container {
        height: 70px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .hero__content {
        padding: 100px 24px 60px;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 36px 28px;
    }
    
    .about__stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .gifts__gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gifts__gallery-grid img:nth-child(1) {
        grid-column: auto;
    }
    
    .visit__text {
        padding: 40px 28px;
    }
    
    .visit__map {
        min-height: 300px;
    }
    
    .visit__map iframe {
        min-height: 300px;
    }
    
    .footer__inner {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero__headline {
        font-size: 2.2rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .about__title,
    .gifts__title,
    .visit__title {
        font-size: 1.5rem;
    }
}
