/* ==========================================================================
   IV Division - Legacy Site Stylesheet
   Squarespace Brine-inspired template design
   ========================================================================== */

/* --- CSS Reset / Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* --- 12px dark border around the entire page (Brine feature) --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background-color: #1a1a1a;
    border: 12px solid #1a1a1a;
    min-height: 100vh;
}

/* White content area inside the border */
.site-wrapper {
    background-color: #fff;
    min-height: 100vh;
}

/* --- Links --- */
a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Lists --- */
ul, ol {
    padding-left: 1.5em;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.site-header {
    background-color: #1a1a1a;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo / Brand text */
.site-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
    color: #ddd;
}

/* Navigation links */
.site-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.site-nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-nav a:hover {
    opacity: 0.75;
    text-decoration: none;
}

/* Mobile hamburger button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

.site-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

/* --- Headings --- */
h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 16px;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 12px;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin-top: 20px;
    margin-bottom: 8px;
}

/* --- Paragraphs --- */
p {
    margin-bottom: 16px;
}

/* --- Blockquote (Brine-style) --- */
blockquote {
    border-left: 3px solid #1a1a1a;
    margin: 24px 0;
    padding: 16px 24px;
    font-style: italic;
    color: #555;
    background-color: #fafafa;
}

blockquote p {
    margin-bottom: 0;
}

/* --- Horizontal Rule --- */
hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0;
}

/* ==========================================================================
   HERO SECTION (Treatment pages + Blog posts)
   ========================================================================== */

.hero-section {
    text-align: center;
    padding: 64px 24px;
    margin: -48px -24px 48px;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #90e0ef 100%);
    color: #fff;
}

.hero-section h1,
.hero-section h2 {
    color: #fff;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 680px;
    margin: 0 auto 16px;
}

.hero-section .hero-price {
    font-size: 48px;
    font-weight: 700;
    margin: 16px 0;
}

.hero-section .hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ==========================================================================
   INFUSION CARD GRID (Infusions page)
   ========================================================================== */

.infusion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin: 32px 0;
}

.infusion-card {
    border: 1px solid #e0e0e0;
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.2s ease;
    background: #fff;
}

.infusion-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.infusion-card .card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

/* Color-coded icons for each treatment */
.icon-recovery { background: linear-gradient(135deg, #4FC3F7, #0288D1); color: #fff; }
.icon-wellness { background: linear-gradient(135deg, #81C784, #388E3C); color: #fff; }
.icon-hangover { background: linear-gradient(135deg, #FFB74D, #F57C00); color: #fff; }
.icon-postworkout { background: linear-gradient(135deg, #E57373, #D32F2F); color: #fff; }
.icon-weightloss { background: linear-gradient(135deg, #BA68C8, #7B1FA2); color: #fff; }
.icon-skinhydration { background: linear-gradient(135deg, #F48FB1, #C2185B); color: #fff; }

.infusion-card h3 {
    margin-top: 8px;
    font-size: 20px;
}

.infusion-card .card-tagline {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.infusion-card .card-price {
    font-size: 28px;
    font-weight: 700;
    color: #0077b6;
}

.infusion-card .card-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.infusion-card .card-link:hover {
    background-color: #333;
    text-decoration: none;
}

/* ==========================================================================
   INGREDIENTS LIST
   ========================================================================== */

.ingredients-section h3 {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ==========================================================================
   MORE INFUSIONS (Cross-links on treatment pages)
   ========================================================================== */

.more-infusions {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.more-infusions h2 {
    text-align: center;
    margin-bottom: 24px;
}

.more-infusions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    text-align: center;
}

.more-infusions-grid a {
    display: block;
    padding: 20px 12px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.more-infusions-grid a:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

/* ==========================================================================
   CTA BUTTON
   ========================================================================== */

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}

.cta-button.cta-outline {
    background-color: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
}

.cta-button.cta-outline:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.cta-button.cta-white {
    background-color: #fff;
    color: #1a1a1a;
}

.cta-button.cta-white:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   PACKAGE OPTIONS (Infusions page)
   ========================================================================== */

.packages-section {
    background-color: #fafafa;
    padding: 40px 24px;
    margin: 40px -24px;
    text-align: center;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.package-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.package-item .package-discount {
    font-size: 24px;
    font-weight: 700;
    color: #0077b6;
}

.package-item .package-detail {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* ==========================================================================
   ADD-ONS TABLE
   ========================================================================== */

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.addon-item .addon-name {
    font-weight: 500;
    font-size: 15px;
}

.addon-item .addon-price {
    font-weight: 700;
    color: #0077b6;
    white-space: nowrap;
}

/* ==========================================================================
   PRICES PAGE
   ========================================================================== */

.price-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-card:last-child {
    border-bottom: none;
}

.price-card .price-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.price-card .price-info h2 {
    margin-top: 0;
    font-size: 22px;
}

.price-card .price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #0077b6;
    margin-bottom: 8px;
}

.price-card .price-info p {
    font-size: 15px;
    color: #555;
}

.price-card .price-learn-more {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0077b6;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-hero {
    text-align: center;
    padding: 80px 24px;
    margin: -48px -24px 48px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
}

.contact-hero h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 8px;
}

.contact-hero h1 a {
    color: #fff;
    text-decoration: none;
}

.contact-hero h1 a:hover {
    text-decoration: underline;
}

.contact-hero .contact-subline {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.contact-hero .contact-hours {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.contact-form textarea {
    height: 140px;
    resize: vertical;
}

/* ==========================================================================
   DR. JARRED MAIT PAGE
   ========================================================================== */

.doctor-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.doctor-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 60px;
    font-weight: 700;
}

.doctor-info h1 {
    margin-bottom: 4px;
}

.doctor-info .doctor-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 16px;
}

.commitments-list {
    list-style: none;
    padding: 0;
    counter-reset: commitment;
}

.commitments-list li {
    counter-increment: commitment;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    padding-left: 40px;
    position: relative;
    line-height: 1.6;
}

.commitments-list li::before {
    content: counter(commitment);
    position: absolute;
    left: 0;
    top: 12px;
    width: 28px;
    height: 28px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================================================
   BLOG LISTING PAGE
   ========================================================================== */

.blog-intro {
    text-align: center;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.blog-card {
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Placeholder gradient for missing images */
.blog-card .card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #90e0ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.blog-card .card-body {
    padding: 20px;
}

.blog-card .card-body h3 {
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card .card-body h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.blog-card .card-body h3 a:hover {
    text-decoration: underline;
}

.blog-card .card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card .card-meta {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card .read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0077b6;
}

/* ==========================================================================
   BLOG POST (Single)
   ========================================================================== */

.blog-post-header {
    text-align: center;
    padding: 64px 24px;
    margin: -48px -24px 48px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: #fff;
}

.blog-post-header h1 {
    color: #fff;
    font-size: 36px;
    max-width: 720px;
    margin: 0 auto 16px;
}

.blog-post-header .post-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.blog-post-header .post-meta a {
    color: rgba(255,255,255,0.85);
}

.blog-post-content {
    max-width: 720px;
    margin: 0 auto;
}

.blog-post-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-post-content h2 {
    margin-top: 48px;
}

.blog-post-content h3 {
    margin-top: 32px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 2em;
}

.blog-post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-nav {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.blog-nav a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0077b6;
}

/* ==========================================================================
   MIAMI IV INFUSION PAGE
   ========================================================================== */

.service-area-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #0077b6, #00b4d8, #48cae4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

/* ==========================================================================
   BANNER SECTION (Blue CTA bar on treatment/infusion pages)
   ========================================================================== */

.banner-cta {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    color: #fff;
    text-align: center;
    padding: 48px 24px;
    margin: 48px -24px;
}

.banner-cta h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 24px;
}

.banner-cta .cta-button {
    background-color: #fff;
    color: #0077b6;
}

.banner-cta .cta-button:hover {
    background-color: #f0f0f0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 48px 0 32px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 24px 0;
}

.footer-disclaimer {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.footer-brand {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {

    body {
        border-width: 6px;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 16px;
    }

    .site-nav.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .site-header {
        position: relative;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    .hero-section {
        padding: 40px 16px;
    }

    .hero-section .hero-price {
        font-size: 36px;
    }

    .doctor-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .doctor-photo {
        width: 150px;
        height: 150px;
        font-size: 44px;
    }

    .contact-hero h1 {
        font-size: 36px;
    }

    .blog-post-header h1 {
        font-size: 26px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .price-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .infusion-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    body {
        border-width: 4px;
    }

    .site-content {
        padding: 32px 16px 48px;
    }

    h1 {
        font-size: 26px;
    }

    .packages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .more-infusions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
