/* IDEALYS GLOBAL STYLES & COMPONENT LIBRARY */

/* --------------------------------------------------------------------------
   RESET & BASE
-------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

/* --------------------------------------------------------------------------
   UTILITY CLASSES
-------------------------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

.section {
    padding: var(--sp-16) 0;
}

.section-bg-white {
    background-color: var(--bg-section-alt);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--c-primary-main);
}

.text-accent {
    color: var(--c-accent-main);
}

.text-white {
    color: white;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--sp-4);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   COMPONENTS
-------------------------------------------------------------------------- */

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-3) var(--sp-6);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--c-accent-main);
    color: var(--c-accent-contrast);
}

.btn-primary:hover {
    background-color: var(--c-accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-body);
}

/* HEADER / NAV */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Images */
.logo-img {
    height: 72px;
    /* Adjust based on preference */
    width: auto;
    display: block;
}

/* Default (Dark Mode) - Show White Logo */
.logo-light-mode {
    display: none;
}

.logo-dark-mode {
    display: block;
}

/* Light Mode Overrides */
[data-theme="light"] .logo-light-mode {
    display: block;
}

[data-theme="light"] .logo-dark-mode {
    display: none;
}

.main-nav {
    display: flex;
    gap: var(--sp-6);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-6);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-accent-main);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--c-neutral-100);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent-main);
}

/* TESTIMONIALS */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
}

.testimonial-card {
    background: var(--bg-section-alt);
    border-left: 4px solid var(--c-accent-main);
    padding: var(--sp-6);
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: var(--sp-4);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-main);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* FOOTER */
.site-footer {
    background-color: var(--c-primary-main);
    color: white;
    padding: var(--sp-12) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-8);
}

.footer-col h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--sp-4);
}

.footer-link {
    display: block;
    color: var(--text-muted);
    margin-bottom: var(--sp-2);
}

.footer-link:hover {
    color: white;
}

/* AUDIENCE PILLS */
.audience-block {
    margin-top: var(--sp-2);
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.tag-buyer {
    background: #DCFCE7;
    color: #166534;
}

.tag-prescriber {
    background: #DBEAFE;
    color: #1E40AF;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-container {
        flex-direction: column;
        gap: var(--sp-4);
    }
}