/* =========================================================
   YASHARA BIOSCIENCES — Core Stylesheet
   Austere, formal, enterprise life-sciences design
   ========================================================= */

/* System serif stack — no external font dependency */

/* ---------------------------------------------------------
   Custom Properties
   --------------------------------------------------------- */
:root {
    --navy:        #0B1F3A;   /* primary deep navy */
    --navy-mid:    #163155;   /* section backgrounds */
    --red:         #C41E3A;   /* Yashara accent red */
    --red-dark:    #9B1629;
    --off-white:   #F4F2EE;   /* page background */
    --white:       #FFFFFF;
    --text-dark:   #1A1A1A;
    --text-mid:    #3D3D3D;
    --text-light:  #6B6B6B;
    --rule:        #D0CAC0;   /* horizontal rule color */
    --rule-light:  rgba(255,255,255,0.15);

    --font-serif:  'Times New Roman', Times, Georgia, serif;
    --font-sans:   'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;

    --max-w:       1240px;
    --section-pad: 6rem 2rem;
}

/* ---------------------------------------------------------
   Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
}

p { color: var(--text-mid); font-size: 1rem; line-height: 1.75; }

a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }

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

hr { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------------------------------------------------------
   Typography Scale
   --------------------------------------------------------- */
.eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.display-1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
.display-2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 500; }
.display-3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 500; }
.lead {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--text-mid);
    line-height: 1.8;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.85rem 2.25rem;
    border: 1.5px solid var(--navy);
    color: var(--navy);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    border-bottom: 2px solid var(--red);
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    gap: 0;
}
.nav-logo-main {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.01em;
    line-height: 1;
}
.nav-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 2px;
    padding-left: 0.4em;
    line-height: 1;
}

/* Desktop Nav */
.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.desktop-nav a {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    transition: color 0.2s;
    text-decoration: none;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--white); }

.desktop-nav .nav-cta {
    background: var(--red);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    border: none;
}
.desktop-nav .nav-cta:hover { background: var(--red-dark); color: var(--white); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    border-right: 2px solid var(--red);
    z-index: 2000;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: left 0.3s ease;
}
.mobile-nav.open { left: 0; }
.close-mobile-nav {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    align-self: flex-end;
    cursor: pointer;
    line-height: 1;
}
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}
.mobile-nav a:hover { color: var(--white); }

@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
}

/* ---------------------------------------------------------
   Hero — Full-Width Masthead
   --------------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 5rem 2rem;
    width: 100%;
}

.hero-content .eyebrow { color: rgba(255,255,255,0.55); }

.hero-title {
    color: var(--white);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 500;
    max-width: 760px;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-body {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.75);
    max-width: 580px;
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Divider — red accent bar at bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--red);
}

/* ---------------------------------------------------------
   Section — Mission / Scope Band
   --------------------------------------------------------- */
.band-dark {
    background: var(--navy-mid);
    color: var(--white);
    padding: var(--section-pad);
}
.band-dark p { color: rgba(255,255,255,0.75); }
.band-dark h2 { color: var(--white); }

.band-light {
    background: var(--off-white);
    padding: var(--section-pad);
}

.band-white {
    background: var(--white);
    padding: var(--section-pad);
}

.band-red {
    background: var(--red);
    padding: var(--section-pad);
}
.band-red h2, .band-red p, .band-red .eyebrow { color: var(--white); }

/* ---------------------------------------------------------
   Section Titles
   --------------------------------------------------------- */
.section-header {
    max-width: var(--max-w);
    margin: 0 auto 3.5rem;
    padding: 0 2rem;
}
.section-header.centered { text-align: center; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 680px; }
.section-header.centered p { margin: 0 auto; }

/* Decorative rule under section titles */
.section-rule {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--red);
    margin: 1.25rem 0 0;
}
.section-header.centered .section-rule { margin: 1.25rem auto 0; }

/* ---------------------------------------------------------
   Product Cards Grid
   --------------------------------------------------------- */
.products-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.product-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-top: 3px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
}
.product-card:hover {
    border-top-color: var(--red);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.product-card .card-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--navy);
}
.product-card .card-tag {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    display: block;
    margin-bottom: 1rem;
}
.product-card p { font-size: 0.93rem; line-height: 1.7; color: var(--text-mid); }
.product-card .card-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}
.product-card .card-link:hover { color: var(--red-dark); }

@media (max-width: 900px) {
    .products-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Feature / Split Rows
   --------------------------------------------------------- */
.split-row {
    display: flex;
    align-items: stretch;
    min-height: 440px;
}
.split-row .split-text {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem 4rem 0;
}
.split-row .split-img {
    flex: 1 1 50%;
    overflow: hidden;
    min-height: 340px;
    background: var(--navy-mid);
}
.split-row .split-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.split-row.reverse .split-text { padding: 4rem 0 4rem 3rem; order: 2; }
.split-row.reverse .split-img { order: 1; }

@media (max-width: 800px) {
    .split-row { flex-direction: column; }
    .split-row .split-text { padding: 3rem 0; }
    .split-row.reverse .split-text { padding: 3rem 0; order: 2; }
    .split-row.reverse .split-img { order: 1; }
    .split-row .split-img { min-height: 240px; }
}

/* ---------------------------------------------------------
   Stats Bar
   --------------------------------------------------------- */
.stats-bar {
    background: var(--navy);
    padding: 3rem 2rem;
}
.stats-bar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-num sup { font-size: 1.2rem; vertical-align: super; }
.stat-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 700px) {
    .stats-bar-inner { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
}

/* ---------------------------------------------------------
   Feature List (Spec-style)
   --------------------------------------------------------- */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}
.feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.93rem;
    color: var(--text-mid);
    line-height: 1.65;
}
.feature-list .fi-bullet {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* ---------------------------------------------------------
   Table — formal data presentation
   --------------------------------------------------------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.data-table th {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid var(--navy);
    padding: 0.75rem 1rem;
    text-align: left;
}
.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--rule);
    color: var(--text-mid);
    vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------
   Testimonial / Quote Block
   --------------------------------------------------------- */
.quote-block {
    border-left: 3px solid var(--red);
    padding-left: 1.75rem;
    margin: 2rem 0;
}
.quote-block blockquote {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.quote-block cite {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ---------------------------------------------------------
   Contact Form
   --------------------------------------------------------- */
.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.form-group.full { grid-column: span 2; }
.form-group label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--rule);
    background: var(--white);
    padding: 0.7rem 0.85rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit-row { margin-top: 1.5rem; }
.form-status { margin-top: 1rem; font-size: 0.85rem; }

/* Dark-background form inputs (product page contact sections) */
.form-group input[style*="rgba(255,255,255"],
.form-group textarea[style*="rgba(255,255,255"] {
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: currentColor;
    opacity: 1;
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: 1; }
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.65);
    padding: 4rem 2rem 2rem;
    border-top: 3px solid var(--red);
}
.footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--rule-light);
}
.footer-brand .nav-logo-main {
    color: var(--white);
    font-size: 1.6rem;
}
.footer-brand .nav-logo-sub { color: rgba(255,255,255,0.35); }
.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    margin-top: 1rem;
    line-height: 1.75;
}
.footer-col h5 {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    max-width: var(--max-w);
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.35); font-size: 0.78rem; }
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: 1; }
}

/* ---------------------------------------------------------
   Animations
   --------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.23,1.01,.32,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------
   Utility
   --------------------------------------------------------- */
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.max-760 { max-width: 760px; }

/* Product page specific */
.capability-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
.capability-item {
    background: var(--white);
    padding: 2.25rem 2rem;
    border-left: 3px solid transparent;
    transition: border-color 0.2s;
}
.capability-item:hover { border-left-color: var(--red); }
.capability-item h4 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--navy); }
.capability-item p { font-size: 0.88rem; line-height: 1.65; color: var(--text-mid); }

@media (max-width: 700px) {
    .capability-grid { grid-template-columns: 1fr; }
}

/* Responsive 3-col grid helper */
.responsive-3col {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 800px) {
    .responsive-3col { grid-template-columns: 1fr !important; }
}

/* Pill badge */
.badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    background: rgba(196,30,58,0.1);
    color: var(--red);
    border: 1px solid rgba(196,30,58,0.25);
}

/* Inline icon row */
.icon-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.icon-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-mid);
    background: var(--white);
    border: 1px solid var(--rule);
    padding: 0.4rem 0.85rem;
}

/* Wide table wrapper for horizontal scroll on mobile */
.table-wrap { overflow-x: auto; }

/* Compliance page feature panels */
.module-list {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.module-item {
    background: var(--white);
    padding: 2rem 1.75rem;
    border-top: 3px solid transparent;
    transition: border-color 0.25s;
}
.module-item:hover { border-top-color: var(--red); }
.module-item h4 { font-size: 0.97rem; color: var(--navy); margin-bottom: 0.5rem; }
.module-item p { font-size: 0.85rem; color: var(--text-light); line-height: 1.65; }

@media (max-width: 900px) { .module-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .module-list { grid-template-columns: 1fr; } }
