/* =====================================================
   TRANSMODAL PHARMA - Design System
   World-Class Pharmaceutical Website
   ===================================================== */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Color Palette - STRICT */
    --color-primary: #AC3B3F;
    --color-primary-dark: #8A2F32;
    --color-primary-light: #C9454A;
    --color-black: #0a0a0a;
    --color-black-soft: #1a1a1a;
    --color-white: #ffffff;
    --color-off-white: #f8f8f8;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Font Sizes - Fluid Scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 960px;
    --container-wide: 1440px;
    --header-height: 100px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: 1.7;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    color: var(--color-black);
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-gray-600);
}

.lead {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--color-gray-600);
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

section {
    padding: var(--space-24) 0;
}

.section--dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

.section--dark p {
    color: var(--color-gray-300);
}

.section--gray {
    background-color: var(--color-gray-100);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--color-gray-200);
    box-shadow: var(--shadow-sm);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-black);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header__logo-img {
    height: 80px;
    width: auto;
    display: block;
    max-width: 300px;
    /* Increased to allow logo to scale with height */
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }

    .header__logo-img {
        height: 55px;
    }
}

.header__logo span {
    color: var(--color-black);
}

.header__logo span span {
    color: var(--color-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.nav .btn {
    padding: var(--space-2) var(--space-6);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav__link {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-gray-600);
    padding: var(--space-2) 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-black);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition-base);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    gap: var(--space-2);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-gray-300);
}

.btn--secondary:hover {
    border-color: var(--color-black);
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn--white {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn--white:hover {
    background-color: var(--color-off-white);
    transform: translateY(-2px);
}

.btn--outline-white {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn--lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-base);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-black);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(10, 10, 10, 0.85) 0%,
            rgba(10, 10, 10, 0.6) 50%,
            rgba(139, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding-top: var(--header-height);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(139, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
}

.hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.hero__title {
    font-size: var(--text-5xl);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    font-weight: var(--weight-bold);
}

.hero__title span {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-300);
    margin-bottom: var(--space-10);
    line-height: 1.6;
    max-width: 600px;
}

.hero__buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray-400);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: float 2s ease-in-out infinite;
}

.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-gray-400), transparent);
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ===== CARDS ===== */
.card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-gray-200);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
}

.card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-white);
    stroke-width: 1.5;
    fill: none;
}

.card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.card__text {
    color: var(--color-gray-500);
    margin-bottom: 0;
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-header__tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.section-header__title {
    margin-bottom: var(--space-4);
}

.section-header__text {
    font-size: var(--text-lg);
    color: var(--color-gray-500);
    margin-bottom: 0;
}

/* ===== STATEMENT BLOCK ===== */
.statement {
    text-align: center;
    padding: var(--space-20) var(--space-6);
    background: var(--color-black);
}

.statement__text {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-medium);
    color: var(--color-white);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
}

.statement__text em {
    color: var(--color-primary-light);
    font-style: normal;
}

/* ===== SPLIT SECTIONS ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.split--reverse {
    direction: rtl;
}

.split--reverse>* {
    direction: ltr;
}

.split__content {
    max-width: 540px;
}

.split__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
}

/* ===== CHECKLIST ===== */
.checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.checklist__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: var(--weight-medium);
    color: var(--color-black);
}

.checklist__icon {
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checklist__icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-white);
    stroke-width: 3;
    fill: none;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-black);
    padding: var(--space-10) 0 var(--space-6);
    color: var(--color-gray-400);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--color-gray-800);
}

.footer__brand {
    max-width: 500px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.footer__logo-img {
    height: 32px;
    width: auto;
    display: block;
    filter: grayscale(100%) invert(100%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.footer__desc {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: 0;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.footer__col {
    text-align: right;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-end;
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    line-height: 1.4;
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__bottom {
    padding-top: var(--space-8);
}

.footer__legal {
    font-size: var(--text-xs);
    line-height: 1.8;
    color: var(--color-gray-500);
    max-width: 900px;
    margin-bottom: var(--space-6);
}

.footer__copyright {
    font-size: var(--text-xs);
    color: var(--color-gray-600);
}

/* ===== FORMS ===== */
.form {
    display: grid;
    gap: var(--space-6);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form__label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-black);
}

.form__input,
.form__textarea,
.form__select {
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    background: var(--color-white);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
    background: var(--color-black);
    padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.15) 0%, transparent 70%);
}

.page-hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.page-hero__subtitle {
    color: var(--color-gray-400);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .split {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .split--reverse {
        direction: ltr;
    }

    /* .footer__top handles its own spacing via flex */
}

@media (max-width: 768px) {
    section {
        padding: var(--space-16) 0;
    }

    .nav__list {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav.open .nav__list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: var(--space-6);
        border-bottom: 1px solid var(--color-gray-200);
        gap: var(--space-4);
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .checklist {
        grid-template-columns: 1fr;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .footer__top {
        flex-direction: column;
        gap: var(--space-8);
    }

    .footer__col {
        text-align: left;
    }

    .footer__links {
        align-items: flex-start;
    }

    .statement__text {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    .hero__content {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .header__logo {
        font-size: var(--text-base);
        gap: var(--space-1);
    }

    .header__logo-img {
        height: 32px;
    }
}

@media (max-width: 768px) {
    .header__logo {
        font-size: var(--text-lg);
    }

    .header__logo-img {
        height: 40px;
    }
}