/*
Theme Name: ACL Genetics
Theme URI: https://aclgen.com/
Author: ACL Genetics
Description: A lightweight, conversion-focused theme for ACL Genetics tissue culture and plant biotechnology services.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: aclgen
*/

:root {
  --ink: #10201b;
  --muted: #5d6d66;
  --forest: #0e3a2f;
  --forest-2: #185746;
  --leaf: #7fd66d;
  --cyan: #33c3d5;
  --mist: #edf5f1;
  --paper: #fbfdfc;
  --line: #d6e3dc;
  --white: #fff;
  --shadow: 0 22px 60px rgba(14, 58, 47, .12);
  --radius: 24px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: var(--forest-2); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 8px; padding: 10px 14px; z-index: 9999; background: var(--white); }

.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--forest); color: var(--white); }
.section-mist { background: var(--mist); }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.section-head p { margin: 0; color: var(--muted); }
.section-dark .section-head p { color: #c9d9d2; }
.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--forest-2); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-dark .eyebrow, .hero .eyebrow { color: #a8ee9a; }
h1, h2, h3, h4 { margin: 0 0 .55em; font-weight: 760; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(48px, 7vw, 86px); }
h2 { font-size: clamp(36px, 4.5vw, 58px); }
h3 { font-size: clamp(23px, 2.2vw, 30px); }
h4 { font-size: 20px; }
p { margin: 0 0 1.2em; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; color: var(--muted); }
.section-dark .lede { color: #d6e4de; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 253, 252, .94); border-bottom: 1px solid rgba(214, 227, 220, .8); backdrop-filter: blur(18px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 154px; height: 62px; object-fit: contain; object-position: left center; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--forest-2); }
.primary-nav .button, .primary-nav .button:hover { color: var(--white); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-weight: 800; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 22px; border: 1px solid var(--forest); border-radius: 999px; background: var(--forest); color: var(--white); font-weight: 780; line-height: 1.2; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--forest-2); border-color: var(--forest-2); color: var(--white); }
.button-light { background: var(--white); border-color: var(--white); color: var(--forest); }
.button-light:hover { background: #e7f4ee; color: var(--forest); }
.button-ghost { background: transparent; border-color: #91aaa0; color: var(--forest); }
.section-dark .button-ghost, .hero .button-ghost { border-color: #6f9184; color: var(--white); }
.section-dark .button-ghost:hover, .hero .button-ghost:hover { background: rgba(255,255,255,.1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero { position: relative; overflow: hidden; padding: 86px 0 72px; background: var(--forest); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 15%, rgba(51,195,213,.18), transparent 33%), radial-gradient(circle at 86% 18%, rgba(127,214,109,.16), transparent 26%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 68px; align-items: center; }
.hero-copy p { max-width: 660px; color: #d1e2da; font-size: 20px; }
.hero-copy .actions { margin-top: 32px; }
.hero-media { position: relative; min-height: 610px; }
.hero-media > img { position: absolute; inset: 0 0 44px 40px; width: calc(100% - 40px); height: calc(100% - 44px); object-fit: cover; border-radius: 180px 24px 24px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.hero-card { position: absolute; left: 0; bottom: 0; width: min(330px, 75%); padding: 22px; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.hero-card strong { display: block; margin-bottom: 6px; font-size: 18px; }
.hero-card span { color: var(--muted); font-size: 14px; }
.hero-card h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: -.02em; }
.hero-card p { margin: 0; color: var(--muted); font-size: 14px; }
.trust-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 70px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.14); }
.trust-item { padding: 20px; background: rgba(14,58,47,.92); }
.trust-item strong { display: block; color: #a8ee9a; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.trust-item span { color: #d6e4de; font-size: 14px; }
.trust-item h4 { margin: 0 0 3px; color: #a8ee9a; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.trust-item p { margin: 0; color: #d6e4de; font-size: 14px; }

.problem-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.problem-card, .service-card, .article-card { position: relative; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.problem-card .num { display: block; margin-bottom: 42px; color: var(--forest-2); font-size: 14px; font-weight: 850; }
.problem-card p, .service-card p, .article-card p { color: var(--muted); }
.service-card { min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; }
.service-card .icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 48px; border-radius: 16px; background: var(--mist); color: var(--forest); font-size: 25px; }
.service-card a, .article-card a { font-weight: 800; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.academy-panel { display: grid; grid-template-columns: .95fr 1.05fr; overflow: hidden; border-radius: 30px; background: var(--forest); color: var(--white); box-shadow: var(--shadow); }
.academy-copy { padding: 64px; }
.academy-copy p { color: #d3e2dc; }
.academy-media { min-height: 590px; }
.academy-media img { width: 100%; height: 100%; object-fit: cover; }
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 28px 0 34px; padding: 0; list-style: none; }
.topic-list li::before { content: "✓"; margin-right: 9px; color: var(--leaf); font-weight: 900; }

.process { counter-reset: process; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #6b8b7e; }
.process-step { position: relative; padding: 34px 30px 42px 0; border-bottom: 1px solid #6b8b7e; }
.process-step:nth-child(3n+2), .process-step:nth-child(3n+3) { padding-left: 30px; border-left: 1px solid #6b8b7e; }
.process-step::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 56px; color: var(--leaf); font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.process-step p { color: #c9d9d2; }

.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 250px 250px; gap: 16px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 20px; }
.gallery-grid figure:first-child { grid-row: 1 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.025); }

.quality-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.quality-image { position: relative; }
.quality-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.quality-points { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 34px; }
.quality-point { padding-top: 20px; border-top: 1px solid var(--line); }
.quality-point p { color: var(--muted); font-size: 15px; }

.cta-band { padding: 72px 0; background: linear-gradient(120deg, var(--forest), #176451); color: var(--white); }
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.cta-inner p { color: #d2e3dc; }
.cta-inner .actions { justify-content: flex-end; }

.page-hero { padding: 88px 0 70px; background: var(--mist); }
.page-hero .narrow { margin-left: max(20px, calc((100vw - var(--wrap)) / 2)); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 21px; }
.content-area { padding: 80px 0 100px; }
.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--wrap); }
.entry-content h2 { margin-top: 1.5em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote { margin-block: 2em; padding: 24px 30px; border-left: 4px solid var(--leaf); background: var(--mist); }
.entry-content img { border-radius: 18px; }
.article-meta { color: var(--muted); font-size: 14px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { display: flex; min-height: 290px; flex-direction: column; justify-content: space-between; }
.article-card .tag { color: var(--forest-2); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.article-card h3 { font-size: 25px; }
.pagination { margin-top: 40px; }

.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: start; }
.contact-details { padding: 34px; border-radius: var(--radius); background: var(--forest); color: var(--white); }
.contact-details a { color: var(--white); }
.contact-details p { color: #d5e4de; }
.acl-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.acl-field { display: grid; gap: 7px; }
.acl-field.full { grid-column: 1 / -1; }
.acl-field label { font-size: 14px; font-weight: 800; }
.acl-field input, .acl-field select, .acl-field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #b9cbc2; border-radius: 10px; background: var(--white); color: var(--ink); }
.acl-field textarea { min-height: 140px; resize: vertical; }
.acl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.acl-consent input { margin-top: 5px; }
.acl-notice { grid-column: 1 / -1; padding: 15px 18px; border-radius: 10px; background: #e5f5e2; color: #16472b; }
.acl-notice.error { background: #fbe9e7; color: #7b231c; }
.acl-hp { position: absolute; left: -9999px; }

.site-footer { padding: 68px 0 28px; background: #091e19; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: 60px; }
.footer-brand img { width: 185px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 470px; color: #bcd0c8; }
.footer-title { color: #8ee57d; font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { margin: 16px 0 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #e6f0ec; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 54px; padding-top: 24px; border-top: 1px solid #274239; color: #91aaa0; font-size: 13px; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: fixed; inset: 82px 0 0; display: none; padding: 30px 20px; align-items: stretch; flex-direction: column; background: var(--paper); }
  .nav-open .primary-nav { display: flex; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .hero-grid, .academy-panel, .quality-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 500px; }
  .hero-media > img { inset: 0 0 44px 12%; width: 88%; }
  .hero-media > figure { inset: 0 0 44px 12%; width: 88%; }
  .trust-row, .card-grid.four { grid-template-columns: 1fr 1fr; }
  .section-head, .cta-inner { grid-template-columns: 1fr; align-items: start; }
  .cta-inner .actions { justify-content: flex-start; }
  .problem-grid, .card-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 240px 240px; }
  .gallery-grid figure:first-child { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: min(calc(100% - 30px), var(--wrap)); }
  .section { padding: 72px 0; }
  .header-inner { min-height: 72px; }
  .brand img { width: 128px; height: 54px; }
  .primary-nav { top: 72px; }
  .hero { padding-top: 62px; }
  .hero-grid { gap: 48px; }
  .hero-media { min-height: 410px; }
  .hero-media > img { inset: 0 0 54px 0; width: 100%; height: calc(100% - 54px); border-radius: 92px 18px 18px 18px; }
  .hero-media > figure { inset: 0 0 54px 0; width: 100%; height: calc(100% - 54px); }
  .hero-media > figure img { border-radius: 92px 18px 18px 18px; }
  .hero-card { width: 86%; padding: 17px; }
  .trust-row, .problem-grid, .card-grid, .card-grid.four, .article-grid, .quality-points, .footer-grid { grid-template-columns: 1fr; }
  .academy-copy { padding: 38px 26px; }
  .academy-media { min-height: 400px; }
  .topic-list { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(3n+2), .process-step:nth-child(3n+3) { padding: 28px 0; border-left: 0; }
  .process-step::before { margin-bottom: 28px; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(5, 240px); }
  .gallery-grid figure:first-child { grid-column: auto; }
  .acl-form { grid-template-columns: 1fr; }
  .acl-field.full { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
