/*
Theme Name: Fawcett's Pharmacy Theme
Theme URI: https://fawcettspharmacy.com
Author: Custom Developer
Description: A modern, clean, custom responsive theme for Fawcett's Pharmacy in Princeton, IL.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fawcetts-pharmacy
*/

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

body{
    font-family:'Inter',sans-serif;
    background:#f4f8fb;
    color:#10233b;
    overflow-x:hidden;
}

header{
    position:fixed;
    top:0;
    width:100%;
    padding:20px 60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:rgba(8,23,42,.88);
    backdrop-filter:blur(14px);
    z-index:999;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    height:70px;
    width:auto;
}

.logo h1{
    color:white;
    font-size:22px;
    font-weight:700;
}

nav{
    display:flex;
    gap:30px;
}

nav a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    color:#74d4df;
}

.hero{
    min-height:100vh;
    background:
    linear-gradient(rgba(6,18,36,.72),rgba(15,81,102,.72)),
    url('https://images.unsplash.com/photo-1587854692152-cbe660dbde88?q=80&w=1974&auto=format&fit=crop') center/cover no-repeat;
    display:flex;
    align-items:center;
    padding:140px 80px 80px;
}

.hero-content{
    max-width:760px;
}

.hero-badge{
    display:inline-block;
    padding:10px 18px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    backdrop-filter:blur(10px);
    color:white;
    margin-bottom:24px;
    font-size:14px;
    letter-spacing:.5px;
}

.hero h2{
    font-size:72px;
    line-height:1.05;
    font-weight:800;
    color:white;
    margin-bottom:28px;
}

.hero p{
    font-size:22px;
    line-height:1.8;
    color:rgba(255,255,255,.92);
    margin-bottom:40px;
}

.buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.btn{
    padding:18px 34px;
    border-radius:16px;
    text-decoration:none;
    font-weight:700;
    font-size:16px;
    transition:.3s ease;
}

.btn-primary{
    background:white;
    color:#0c2844;
}

.btn-primary:hover{
    transform:translateY(-3px);
}

.btn-secondary{
    border:2px solid rgba(255,255,255,.5);
    color:white;
}

.btn-secondary:hover{
    background:white;
    color:#0c2844;
}

.features{
    margin-top:-80px;
    padding:0 80px;
    position:relative;
    z-index:5;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.feature-card{
    background:white;
    padding:40px 30px;
    border-radius:28px;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
    transition:.35s ease;
}

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

.feature-card h3{
    font-size:24px;
    margin-bottom:18px;
}

.feature-card p{
    line-height:1.8;
    color:#4a6075;
}

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

.about-image{
    position:relative;
}

.about-image img{
    width:100%;
    border-radius:36px;
    box-shadow:0 30px 70px rgba(0,0,0,.12);
}

.about-content h4{
    font-size:18px;
    color:#15849a;
    margin-bottom:18px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.about-content h2{
    font-size:54px;
    line-height:1.15;
    margin-bottom:28px;
}

.about-content p{
    font-size:18px;
    line-height:1.9;
    color:#51657a;
    margin-bottom:22px;
}

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

.stat{
    background:white;
    padding:25px;
    border-radius:22px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    text-align:center;
}

.stat h3{
    font-size:34px;
    margin-bottom:8px;
}

.history-timeline {
    padding: 100px 80px;
    background: #ffffff;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #147d8f;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #ffffff;
    border: 4px solid #0d2b45;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-content {
    padding: 30px;
    background: #f4f8fb;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.timeline-year {
    display: inline-block;
    font-weight: 800;
    color: #15849a;
    font-size: 20px;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 22px;
    color: #0d2b45;
    margin-bottom: 12px;
}

.timeline-content p {
    line-height: 1.7;
    color: #51657a;
    font-size: 15px;
}

.services{
    padding:0 80px 120px;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:58px;
    margin-bottom:18px;
}

.section-title p{
    max-width:700px;
    margin:auto;
    font-size:18px;
    line-height:1.8;
    color:#617286;
}

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

.service-card{
    position:relative;
    overflow:hidden;
    border-radius:30px;
    min-height:360px;
    background:#0d2b45;
    color:white;
    padding:40px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    transition:.35s;
}

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

.service-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(rgba(13,43,69,.15),rgba(13,43,69,.92));
}

.service-card>*{
    position:relative;
    z-index:2;
}

.service-card h3{
    font-size:32px;
    margin-bottom:14px;
}

.cta{
    margin:0 80px 120px;
    padding:80px;
    background:linear-gradient(135deg,#0d2b45,#147d8f);
    border-radius:40px;
    color:white;
    text-align:center;
}

.cta h2{
    font-size:56px;
    margin-bottom:20px;
}

.cta p{
    font-size:20px;
    line-height:1.8;
    max-width:850px;
    margin:0 auto 40px;
}

footer{
    background:#08172a;
    color:white;
    padding:80px;
}

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

footer h3{
    font-size:30px;
    margin-bottom:24px;
}

footer p,
footer li{
    line-height:2;
    color:rgba(255,255,255,.75);
    list-style:none;
}

.mobile-refill{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#0d2b45;
    color:white;
    padding:18px 24px;
    border-radius:999px;
    font-weight:700;
    text-decoration:none;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    z-index:999;
}

@media(max-width:1100px){
    .feature-grid,
    .services-grid,
    .about,
    .footer-grid,
    .stats{
        grid-template-columns:1fr;
    }

    .hero h2{
        font-size:48px;
    }

    .section-title h2,
    .about-content h2,
    .cta h2{
        font-size:42px;
    }

    header{
        padding:20px;
    }

    .hero,
    .features,
    .about,
    .services,
    .cta,
    footer{
        padding-left:20px;
        padding-right:20px;
        margin-left:0;
        margin-right:0;
    }

    nav{
        display:none;
    }
    
    .history-timeline {
        padding: 60px 20px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    
    .timeline-item.left, 
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
}
