:root {
    --primary-black: #0a0a0a;
    --secondary-gray: #6b7280;
    --light-gray: #f8fafc;
    --pure-white: #ffffff;
    --accent-green: #059669;
    --accent-emerald: #10b981;
    --accent-purple: #7c3aed;
    --accent-pink: #ec4899;
    --subtle-border: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-meds: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--pure-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--subtle-border);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-img {
    height: 64px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-green);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--light-gray);
    padding: 100px 24px 40px 24px;
    border-bottom: 1px solid var(--subtle-border);
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-nav {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.breadcrumb-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--accent-green);
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.page-title-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-purple);
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 800px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: clamp(520px, 80vh, 1000px); /* taller to keep bottom text visible */
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 80px 24px;
}

/* Mobile: avoid aggressive cropping */
@media (max-width: 768px) {
    .hero { min-height: 70vh; }
    .hero-background {
        /* fills letterbox area */
        background: #0b0b0b url('../images/take-my-meds/take-my-meds.png') no-repeat center top;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
            center center / contain no-repeat url('../images/take-my-meds/take-my-meds.png'),
            linear-gradient(to right, #4a3527 0%, #1a3a45 100%);
    background-blend-mode: normal;
    z-index: -1;
}


.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px 24px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2;
}

.hero-headline {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Overview Section */
.overview {
    margin-bottom: 80px;
}

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

.overview-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}

.overview-content p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.stat-box {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-purple);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Pledge Visual */
.overview-visual {
    position: sticky;
    top: 100px;
}

.pledge-visual {
    background: var(--gradient-meds);
    padding: 48px;
    border-radius: 20px;
    text-align: center;
    color: white;
}

.pledge-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.hand-icon {
    width: 80px;
    height: 80px;
    color: white;
}

.pledge-visual h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.pledge-text-small {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
    font-style: italic;
}

.pill-icons {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.pill-icon {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.7);
    animation: float 3s ease-in-out infinite;
}

.pill-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.pill-icon:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Pledge Counter */
.pledge-counter {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.counter-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
}

.counter-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Section Styles */
.section {
    margin-bottom: 80px;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-title-icon {
    width: 36px;
    height: 36px;
    color: inherit;
}

.section-title-warning {
    color: #f59e0b;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Problem Section */
.problem-section {
    background: var(--light-gray);
    padding: 60px 24px;
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 20px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 12px;
}

.stat-card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.stat-icon-svg {
    width: 48px;
    height: 48px;
    color: var(--accent-purple);
}

.stat-card-label {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.impact-card {
    background: white;
    border: 1px solid var(--subtle-border);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.impact-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.12);
    transform: translateY(-4px);
}

.impact-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.impact-icon-img {
    margin-bottom: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-icon-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.impact-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.impact-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Solution Section */
.solution-section {
    background: var(--gradient-primary);
    padding: 60px 24px;
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 20px;
}

.solution-section .section-title,
.solution-section .section-description {
    color: white;
}

.solution-section .section-title-icon {
    color: #6ee7b7;
}

.solution-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.big-stat {
    margin: 40px 0;
}

.big-number {
    font-size: 96px;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.big-stat p {
    font-size: 24px;
    color: white;
    line-height: 1.6;
}

.solution-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: white;
}

/* SAFE - bright green for safety */
.feature-badge:nth-child(1) .feature-icon {
    color: #6ee7b7;
}

/* CONVENIENT - bright cyan for ease/time */
.feature-badge:nth-child(2) .feature-icon {
    color: #7dd3fc;
}

/* RESPONSIBLE - bright yellow for care/responsibility */
.feature-badge:nth-child(3) .feature-icon {
    color: #fde047;
}

.solution-cta {
    font-size: 20px;
    color: white;
    margin: 32px 0;
}

.reminder-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    line-height: 1.8;
    margin-top: 32px;
}

.reminder-items {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reminder-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reminder-icon {
    width: 20px;
    height: 20px;
    color: white;
}

/* Expired - bright orange for caution */
.reminder-item:nth-child(1) .reminder-icon {
    color: #fdba74;
}

/* Non-expired - bright green for valid/good */
.reminder-item:nth-child(3) .reminder-icon {
    color: #6ee7b7;
}

/* Pet medications - bright yellow for pets */
.reminder-item:nth-child(5) .reminder-icon {
    color: #fde047;
}

/* Location Section */
.location-search {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

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

.location-card {
    background: white;
    border: 1px solid var(--subtle-border);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s;
}

.location-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.location-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 8px;
}

.location-address {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mail-Back Section */
.mail-back-section {
    background: var(--light-gray);
    padding: 60px 24px;
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 20px;
}

.mail-back-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.mail-back-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.mailbox-icon {
    width: 80px;
    height: 80px;
    color: var(--accent-purple);
}

.mail-back-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-family: 'Poppins', sans-serif;
}

.mail-back-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.feature-item {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-check-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.mail-back-url {
    margin-top: 24px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* QR Code */
.qr-code-container {
    text-align: center;
    margin-top: 24px;
}

.qr-code {
    border: 4px solid var(--accent-green);
    border-radius: 12px;
    background: white;
}

.qr-code-container p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-icon {
    width: 20px;
    height: 20px;
    color: white;
}

.btn-primary {
    background: var(--accent-green);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-emerald);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--pure-white);
    padding: 48px 0;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--pure-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pledge Form */
.pledge-form {
    margin-top: 24px;
    width: 100%;
}

.pledge-input {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.pledge-input:focus {
    outline: none;
    border-color: white;
    background: white;
}

.pledge-input::placeholder {
    color: var(--text-secondary);
}

.pledge-success {
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
}

.pledge-success p {
    color: var(--accent-green);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-green);
}

/* Image Slider Section */
.image-slider-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--subtle-border);
    background: #f9fafb;
}

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

.slider-header {
    text-align: center;
    margin-bottom: 60px;
}

.slider-title {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.slider-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.slider-wrapper {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.slide {
    display: none;
    position: relative;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    border-radius: 20px 20px 0 0;
    transition: transform 0.3s ease;
    background-color: var(--light-gray);
    display: block;
}

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

.slide img[src=""] {
    display: none;
}

.slide-content {
    background: white;
    padding: 32px;
    border-radius: 0 0 20px 20px;
}

.slide-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.slide-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    color: #1879f8;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--subtle-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress {
    height: 100%;
    background: linear-gradient(135deg, #1879f8 0%, #0c63d4 100%);
    width: 0%;
    transition: width 0.1s linear;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--subtle-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active,
.dot:hover {
    background: #1879f8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .overview-visual {
        position: relative;
        top: 0;
    }

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

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

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

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .nav-links {
        display: none;
    }

    .stat-cards,
    .impact-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .solution-features {
        flex-direction: column;
    }

    .big-number {
        font-size: 72px;
    }

    .location-search {
        flex-direction: column;
    }

    .mail-back-features {
        grid-template-columns: 1fr;
    }
}
