/* ================================================
   Taylor Lake Laboratories — Website Stylesheet
   Primary color: #1B4B8A (navy, from logo)
   ================================================ */

:root {
  --navy:       #1B4B8A;
  --navy-dark:  #0F2D57;
  --navy-light: #2D6CB0;
  --bg-light:   #F4F7FC;
  --bg-white:   #FFFFFF;
  --text-dark:  #1E293B;
  --text-gray:  #64748B;
  --border:     #CBD5E1;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow:     0 2px 12px rgba(27, 75, 138, 0.10);
  --shadow-lg:  0 8px 32px rgba(27, 75, 138, 0.16);
  --radius:     8px;
  --radius-lg:  14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.65;
  font-size: 16px;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy-dark); line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
a  { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); }
ul, ol { padding-left: 0; list-style: none; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-bg { background: var(--bg-light); }

/* ── Navigation ── */
nav {
  background: var(--bg-white);
  border-bottom: 2px solid var(--navy);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo-fallback {
  font-family: var(--font-serif); font-size: 1.15rem;
  color: var(--navy-dark); font-weight: 700; line-height: 1.2;
}
.nav-links {
  display: flex; gap: 28px;
  list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-dark);
  padding: 4px 0; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy); border-bottom-color: var(--navy);
}
.nav-cta {
  background: var(--navy) !important; color: white !important;
  padding: 9px 20px !important; border-radius: var(--radius) !important;
  border-bottom: none !important; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--navy-dark) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-dark); border-radius: 2px; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.93rem; cursor: pointer;
  transition: all 0.2s; border: 2px solid transparent; text-align: center;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--navy); color: white; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: white; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-white { background: white; color: var(--navy); border-color: white; }
.btn-white:hover { background: var(--bg-light); color: var(--navy-dark); }
.btn-white-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.7); }
.btn-white-outline:hover { background: rgba(255,255,255,0.12); }

/* ── Hero (Home) ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 65%, #2D6CB0 100%);
  color: white; padding: 96px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -120px;
  width: 500px; height: 500px; background: rgba(255,255,255,0.04); border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 380px; height: 380px; background: rgba(255,255,255,0.04); border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.95);
  padding: 6px 14px; border-radius: 20px; font-size: 0.83rem;
  font-weight: 500; margin-bottom: 22px; letter-spacing: 0.03em;
}
.hero h1 { color: white; margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.08rem; line-height: 1.75; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero two-column layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.hero-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-logo-panel img {
  width: 340px;
  max-width: 38vw;
  height: auto;
  border-radius: 12px;
  /* White glow so the logo stands out against the dark hero */
  filter: drop-shadow(0 4px 24px rgba(255,255,255,0.18));
}
@media (max-width: 768px) {
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo-panel { justify-content: flex-start; }
  .hero-logo-panel img { width: 220px; max-width: 70vw; }
}

/* ── Trust Bar ── */
.trust-bar { background: white; border-bottom: 1px solid var(--border); padding: 14px 0; }
.trust-items { display: flex; flex-wrap: wrap; gap: 20px 36px; justify-content: center; align-items: center; }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.845rem; color: var(--text-gray); font-weight: 500;
}
.trust-item svg, .trust-item .ti-icon { color: var(--navy); flex-shrink: 0; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .eyebrow {
  display: inline-block; color: var(--navy); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-gray); font-size: 1.03rem; max-width: 560px; margin: 0 auto; }

/* ── Cards ── */
.card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all 0.22s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; background: var(--bg-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.4rem;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-gray); font-size: 0.93rem; margin-bottom: 0; }

/* ── Grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

/* ── Accreditation Banner ── */
.accred-banner {
  background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 44px 48px; display: flex; align-items: center; gap: 40px;
}
.accred-badge {
  flex-shrink: 0;
}
.accred-badge img {
  display: block;
}
.accred-text h3 { margin-bottom: 10px; }
.accred-text p { color: var(--text-gray); font-size: 0.93rem; margin-bottom: 16px; }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: white; padding: 80px 0; text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-logo img { height: 44px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-logo-text { font-family: var(--font-serif); color: white; font-size: 1.1rem; font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 0; color: rgba(255,255,255,0.6); }
footer h4 { color: white; font-family: var(--font-sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
footer ul li { margin-bottom: 9px; }
footer ul li a { color: rgba(255,255,255,0.65); font-size: 0.875rem; transition: color 0.2s; }
footer ul li a:hover { color: white; }
.footer-contact-item { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin: 0; }

/* ── Page Hero (Inner Pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: white; padding: 68px 0 56px;
}
.page-hero h1 { color: white; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 600px; margin: 0; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { margin: 0 6px; }

/* ── Services Detail ── */
.service-block { padding: 56px 0; border-bottom: 1px solid var(--border); }
.service-block:last-child { border-bottom: none; }
.service-block-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.service-block-inner.reverse { direction: rtl; }
.service-block-inner.reverse > * { direction: ltr; }
.service-block-visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 280px;
}
.service-block-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.service-list { list-style: none; padding: 0; }
.service-list li {
  padding: 11px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px; font-size: 0.93rem;
}
.service-list li:last-child { border-bottom: none; }
.service-list li .check { color: var(--navy); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Info Box ── */
.info-box {
  background: var(--bg-light); border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 20px 0;
}
.info-box p { color: var(--text-gray); font-size: 0.9rem; margin: 0; }

/* ── Badges ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-navy    { background: var(--navy); color: white; }
.badge-outline { border: 1.5px solid var(--navy); color: var(--navy); }
.badge-coming  { background: #FEF3C7; color: #92400E; }
.badge-new     { background: #DCFCE7; color: #166534; }

/* ── Contact Form ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.88rem; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 15px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.93rem; font-family: var(--font-sans);
  color: var(--text-dark); transition: border-color 0.2s, box-shadow 0.2s; background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 75, 138, 0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Stats Row ── */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 48px 0; }
.stat-item { background: white; padding: 32px 24px; text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.85rem; color: var(--text-gray); font-weight: 500; }

/* ── Process Steps ── */
.steps { counter-reset: step; }
.step { display: flex; gap: 24px; margin-bottom: 32px; align-items: flex-start; }
.step-num {
  counter-increment: step; flex-shrink: 0;
  width: 40px; height: 40px; background: var(--navy); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; font-family: var(--font-sans); margin-top: 2px;
}
.step-content h4 { margin-bottom: 6px; }
.step-content p { color: var(--text-gray); font-size: 0.92rem; margin: 0; }

/* ── ISO Table ── */
.scope-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem; }
.scope-table th { background: var(--navy); color: white; padding: 12px 16px; text-align: left; font-family: var(--font-sans); font-weight: 600; font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.05em; }
.scope-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-dark); }
.scope-table tr:last-child td { border-bottom: none; }
.scope-table tr:nth-child(even) td { background: var(--bg-light); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3, .grid-2, .service-block-inner, .stats-row, .form-row { grid-template-columns: 1fr; }
  .service-block-inner.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .accred-banner { flex-direction: column; text-align: center; padding: 32px; }
  .hero { padding: 72px 0 56px; }
  .section { padding: 56px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: white; flex-direction: column; padding: 24px;
    gap: 18px; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  nav { position: relative; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
