
/*
Theme Name: Microbiology Lab Demo
Theme URI: https://example.com/
Author: OpenAI
Description: Clean one-page demo theme for a microbiology / diagnostic laboratory.
Version: 1.4
Text Domain: microbiology-lab-demo
*/

:root{
  --bg:#ffffff;
  --ink:#183042;
  --muted:#607482;
  --line:#dbe7ec;
  --soft:#f5fafb;
  --accent:#0a7f84;
  --accent2:#0f5962;
  --card:#ffffff;
  --radius:20px;
  --shadow:0 14px 40px rgba(26,74,84,.10);
  --max:1160px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{width:min(calc(100% - 40px),var(--max));margin:auto}
.site-header{
  position:sticky;top:0;z-index:30;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  min-height:76px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.brand{display:flex;align-items:center;gap:12px;font-weight:800}
.brand-mark{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,var(--accent),var(--accent2));
  color:white;font-size:20px;
  box-shadow:var(--shadow);
}
.brand small{display:block;color:var(--muted);font-weight:500;font-size:12px}
.nav{display:flex;gap:22px;align-items:center;font-size:14px;font-weight:700}
.nav a:hover{color:var(--accent)}
.cta{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:46px;padding:0 20px;border-radius:999px;
  background:var(--accent);color:white;font-weight:800;border:0;cursor:pointer;
}
.cta.secondary{background:white;color:var(--accent);border:1px solid var(--accent)}
.hero{
  padding:78px 0 64px;
  background:
    radial-gradient(circle at 88% 20%, rgba(10,127,132,.12), transparent 32%),
    linear-gradient(180deg,#fff 0%,#f7fbfc 100%);
}
.hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:48px;align-items:center}
.eyebrow{color:var(--accent);font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:13px}
h1{font-size:clamp(42px,6vw,72px);line-height:1.03;margin:12px 0 20px;letter-spacing:-.04em}
.hero p{font-size:19px;color:var(--muted);max-width:680px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.hero-card{
  background:var(--card);border:1px solid var(--line);border-radius:28px;
  box-shadow:var(--shadow);padding:28px;
}
.hero-card h3{margin-top:0}
.quick-list{display:grid;gap:12px;margin:20px 0 0;padding:0;list-style:none}
.quick-list li{
  padding:14px 16px;border-radius:14px;background:var(--soft);
  display:flex;justify-content:space-between;gap:20px
}
section{padding:76px 0}
.section-title{max-width:760px;margin-bottom:34px}
.section-title h2{font-size:clamp(32px,4vw,48px);line-height:1.1;margin:8px 0 12px;letter-spacing:-.03em}
.section-title p{color:var(--muted);margin:0}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{
  border:1px solid var(--line);border-radius:var(--radius);
  padding:24px;background:white;box-shadow:0 8px 24px rgba(26,74,84,.05);
}
.card h3{margin:10px 0 8px;font-size:20px}
.card p{margin:0;color:var(--muted)}
.icon{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;background:#e9f6f6;color:var(--accent);
  font-size:21px;font-weight:900
}
.soft{background:var(--soft)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:start}
.checks{display:grid;gap:14px;padding:0;margin:24px 0 0;list-style:none}
.checks li{display:flex;gap:12px;align-items:flex-start}
.checks li:before{
  content:"✓";flex:0 0 26px;width:26px;height:26px;
  border-radius:50%;display:grid;place-items:center;background:#e9f6f6;color:var(--accent);font-weight:900
}
.notice{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px
}
.notice strong{display:block;margin-bottom:6px}
.newsletter{
  background:linear-gradient(135deg,var(--accent2),var(--accent));
  color:white;border-radius:28px;padding:38px;
  display:grid;grid-template-columns:1fr .9fr;gap:30px;align-items:center
}
.newsletter p{color:rgba(255,255,255,.85)}
.newsletter-form{display:grid;gap:12px}
.newsletter-form input[type="email"],
.newsletter-form input[type="text"]{
  width:100%;height:50px;border-radius:12px;border:0;padding:0 14px;font:inherit
}
.newsletter-form button{
  height:50px;border-radius:12px;border:0;background:white;color:var(--accent2);font-weight:900;cursor:pointer
}
.consent{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:rgba(255,255,255,.9)}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.contact-box{border:1px solid var(--line);border-radius:var(--radius);padding:26px}
.contact-box strong{display:block;margin-bottom:3px}
.contact-box p{margin:0 0 16px;color:var(--muted)}
.site-footer{padding:34px 0;border-top:1px solid var(--line);color:var(--muted);font-size:14px}
.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.badge{
  display:inline-flex;padding:7px 11px;border-radius:999px;background:#e9f6f6;color:var(--accent);
  font-weight:800;font-size:12px
}
@media (max-width:900px){
  .nav{display:none}
  .hero-grid,.split,.newsletter,.contact-grid{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr 1fr}
}
@media (max-width:620px){
  .container{width:min(calc(100% - 26px),var(--max))}
  .grid-3{grid-template-columns:1fr}
  .hero{padding-top:52px}
  h1{font-size:44px}
  section{padding:58px 0}
}


/* ==================================================
   v1.1 — Scroll fade / movement effects
================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .75s cubic-bezier(.2,.7,.2,1),
    transform .75s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

.js .reveal.reveal-left {
  transform: translateX(-28px);
}

.js .reveal.reveal-right {
  transform: translateX(28px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Small staggered delay for groups/cards */
.js .reveal[data-delay="1"] { transition-delay: .06s; }
.js .reveal[data-delay="2"] { transition-delay: .12s; }
.js .reveal[data-delay="3"] { transition-delay: .18s; }
.js .reveal[data-delay="4"] { transition-delay: .24s; }
.js .reveal[data-delay="5"] { transition-delay: .30s; }
.js .reveal[data-delay="6"] { transition-delay: .36s; }

/* Subtle hover lift — keeps the site alive without being distracting */
.card,
.hero-card,
.contact-box,
.notice {
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;
}

.card:hover,
.hero-card:hover,
.contact-box:hover,
.notice:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(26,74,84,.12);
}

/* Respect accessibility preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal,
  .js .reveal.reveal-left,
  .js .reveal.reveal-right,
  .js .reveal.is-visible,
  .card,
  .hero-card,
  .contact-box,
  .notice {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==================================================
   v1.2 — Editable content + News
================================================== */

.news-grid{align-items:stretch}

.news-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.news-card h3 a:hover,
.text-link:hover{
  color:var(--accent);
}

.news-card p{
  margin-bottom:18px;
}

.news-thumb{
  display:block;
  margin:-24px -24px 18px;
  overflow:hidden;
  aspect-ratio:16/9;
  background:var(--soft);
}

.news-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}

.news-card:hover .news-thumb img{
  transform:scale(1.035);
}

.news-date{
  color:var(--accent);
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  margin:0 0 8px;
}

.text-link{
  display:inline-block;
  margin-top:auto;
  color:var(--accent2);
  font-weight:800;
}

.single-news-main{
  min-height:65vh;
}

.single-news-article{
  max-width:860px;
  margin:auto;
}

.single-news-title{
  margin-top:10px;
}

.single-news-image{
  margin:28px 0;
  border-radius:22px;
  overflow:hidden;
}

.single-news-image img{
  width:100%;
  display:block;
}

.single-news-content{
  font-size:18px;
  color:var(--ink);
}

.single-news-content p{
  margin:0 0 1.25em;
}

