/*
Theme Name: One80Rx Learn
Theme URI: https://learn.one80rx.com
Template: kadence
Author: One80Rx
Version: 1.0
Description: Modern One80Rx-branded education blog — mirrors one80rx.com design
License: GPL v2
Tags: one80rx, telehealth, education, glp-1, peptides
*/

/* ============================================
   ONE80RX BRAND SYSTEM
   ============================================ */

:root {
    --primary: #00768e;
    --primary-hover: #006076;
    --secondary: #ff8b00;
    --secondary-hover: #e07a00;
    --background: #f9fafc;
    --foreground: #090b0e;
    --sand-50: #f9fafc;
    --sand-100: #f2f4f6;
    --sand-200: #e4e6ea;
    --sand-300: #d1d5d9;
    --sand-400: #a0a5ab;
    --sand-500: #70757c;
    --sand-600: #51565c;
    --sand-700: #3c4046;
    --sand-800: #23272b;
    --sand-900: #14161a;
    --sand-950: #090b0e;
    --sage-50: #eaf8fb;
    --sage-100: #d4edf2;
    --sage-200: #b1dde6;
    --sage-500: #26a3b9;
    --sage-600: #00768e;
    --sage-700: #006076;
    --sage-800: #004a5e;
    --sage-900: #033645;
    --gold-400: #ffcb00;
    --gold-500: #ff8b00;
    --gold-600: #e07a00;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 1.5rem;
    --radius-pill: 9999px;
    --shadow-card: 0 12px 40px -12px rgba(16,42,67,0.12);
    --shadow-header: 0 16px 44px -16px rgba(16,42,67,0.45);
    --shadow-cta: 0 10px 15px -3px rgba(0,118,142,0.25);
    --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE & RESET
   ============================================ */

html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--sand-50);
    color: var(--sand-950);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER — Sticky glassmorphism
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(228,230,234,0.6);
    box-shadow: 0 4px 20px -8px rgba(16,42,67,0.1);
    transition: all var(--transition);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-header);
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo */
.site-branding a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity var(--transition);
}
.site-branding a:hover { opacity: 0.8; }

.site-branding .logo-mark { height: 36px; width: auto; }
.site-branding .logo-text { 
    font-size: 1.25rem; 
    font-weight: 800; 
    color: var(--sand-900);
    letter-spacing: -0.02em;
}

/* Navigation */
.primary-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sand-800);
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: color var(--transition);
    position: relative;
}

.nav-menu a:hover, .nav-menu a:focus {
    color: var(--sage-600);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--sage-600);
    transition: all var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover::after, .nav-menu a:focus::after {
    width: 60%;
}

/* CTA Button — Check Eligibility */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--sage-600);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Manrope', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--sage-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-cta);
}

.btn-primary svg { 
    width: 14px; 
    height: 14px; 
    transition: transform var(--transition);
}
.btn-primary:hover svg { transform: translateX(3px); }

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--sage-800) 0%, var(--sage-700) 40%, var(--sage-600) 100%);
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-section h1 em {
    color: var(--gold-400);
    font-style: italic;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-section .subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-section .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--sage-700);
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 8px 32px -8px rgba(0,0,0,0.2);
}

.hero-section .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(0,0,0,0.3);
}

/* ============================================
   PILLAR SECTION (Treatment Cards)
   ============================================ */

.pillar-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--sand-900);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--sand-500);
    max-width: 520px;
    margin: 0 auto;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pillar-card {
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--sage-300);
}

.pillar-card .pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--sage-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--sage-600);
}

.pillar-card .pillar-icon svg {
    width: 24px;
    height: 24px;
}

.pillar-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sand-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.pillar-card p {
    font-size: 0.9375rem;
    color: var(--sand-500);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.pillar-card .pillar-cta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sage-600);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color var(--transition);
}

.pillar-card:hover .pillar-cta { color: var(--sage-700); }

.pillar-cta svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}

.pillar-card:hover .pillar-cta svg { transform: translateX(3px); }

/* ============================================
   SEARCH BAR
   ============================================ */

.search-section {
    padding: 3rem 0;
    background: var(--sage-50);
    border-top: 1px solid var(--sand-200);
    border-bottom: 1px solid var(--sand-200);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-left: 3rem;
    border: 1px solid var(--sand-200);
    border-radius: var(--radius-pill);
    background: var(--white);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: var(--sand-800);
    transition: all var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--sage-400);
    box-shadow: 0 0 0 3px rgba(0,118,142,0.1);
}

.search-container svg {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--sand-400);
    pointer-events: none;
}

/* ============================================
   ARTICLE GRID & CARDS
   ============================================ */

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.article-card .card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-400);
    font-size: 0.875rem;
    font-weight: 600;
}

.article-card .card-body {
    padding: 1.5rem;
}

.article-card .card-category {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sage-600);
    margin-bottom: 0.75rem;
}

.article-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sand-900);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.article-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.article-card h3 a:hover { color: var(--sage-600); }

.article-card .excerpt {
    font-size: 0.9375rem;
    color: var(--sand-500);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.article-card .meta {
    font-size: 0.8125rem;
    color: var(--sand-400);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============================================
   ARTICLE SINGLE — Inline CTA
   ============================================ */

.article-single {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.article-single h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--sand-900);
    margin-bottom: 0.75rem;
}

.article-single .lead {
    font-size: 1.25rem;
    color: var(--sand-500);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-single h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sand-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.article-single p {
    font-size: 1.05rem;
    color: var(--sand-600);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

/* Inline CTA — Small, appears after paragraphs */
.inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--sage-600);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Manrope', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all var(--transition);
    margin: 0 0.25rem;
    white-space: nowrap;
}

.inline-cta:hover {
    background: var(--sage-700);
    transform: translateY(-1px);
}

.inline-cta svg {
    width: 12px;
    height: 12px;
    transition: transform var(--transition);
}

.inline-cta:hover svg { transform: translateX(2px); }

/* Inline CTA — Ghost variant (for after paragraph in body) */
.inline-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--sage-600);
    border: 1.5px solid var(--sage-300);
    border-radius: var(--radius-pill);
    font-family: 'Manrope', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all var(--transition);
}

.inline-cta-ghost:hover {
    background: var(--sage-50);
    border-color: var(--sage-600);
    color: var(--sage-700);
}

/* End-of-Article CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--sage-700), var(--sage-600));
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    color: var(--white);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.cta-box h3 {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-box .btn-white {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--sage-700);
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 8px 24px -4px rgba(0,0,0,0.15);
}

.cta-box .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -4px rgba(0,0,0,0.25);
}

/* ============================================
   FAQ ACCORDION (Answer Engine Optimization)
   ============================================ */

.faq-section {
    padding: 4rem 0;
    background: var(--sand-100);
    border-top: 1px solid var(--sand-200);
}

.faq-section h2 {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    color: var(--sand-900);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--sage-300);
}

.faq-item[open] {
    border-color: var(--sage-400);
    box-shadow: 0 4px 16px -4px rgba(0,118,142,0.1);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sand-800);
    transition: color var(--transition);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover { color: var(--sage-600); }

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--sand-400);
    transition: all var(--transition);
}

.faq-item[open] .faq-question::after {
    content: '−';
    color: var(--sage-600);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 1rem;
    color: var(--sand-600);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--sand-950);
    color: var(--sand-300);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand img { 
    height: 36px; 
    margin-bottom: 1rem; 
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--sand-400);
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sand-200);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
    font-size: 0.9375rem;
    color: var(--sand-400);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--sage-400); }

.footer-bottom {
    border-top: 1px solid var(--sand-800);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--sand-500);
}

.footer-bottom .footer-eligibility {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sage-700);
    color: var(--white);
    border-radius: var(--radius-pill);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    transition: all var(--transition);
}

.footer-bottom .footer-eligibility:hover {
    background: var(--sage-600);
    transform: translateY(-1px);
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--sand-200);
    border-bottom: 1px solid var(--sand-200);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sand-500);
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--sage-500);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .header-wrapper { flex-wrap: wrap; gap: 1rem; }
    .primary-navigation { order: 3; width: 100%; justify-content: center; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
    .hero-section { min-height: 350px; padding: 3rem 1.5rem; }
    .pillar-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand img { margin: 0 auto 1rem; }
}

/* ============================================
   WORDPRESS ADMIN BAR FIX
   ============================================ */

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

/* Hide "Hello world" etc — only show our styled posts */
.hentry.hello-world, .hentry.page-template-default { display: none; }
