/* Home page only. Shared tokens and components live in styles.css. */

.home h1 { font-size: clamp(38px, 5.2vw, 66px); margin: 14px 0 20px; max-width: 14ch; font-weight: 600; }
.home h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 0; font-weight: 600; }
.home h3 { font-size: 19px; }

/* hero: the factory fills the whole width behind the words, as on the big dispensing makers' sites (the
   user, 2026-11-30, with Aptar's and Coster's home pages beside ours: a picture in a box on the right
   "looks dreadful"). The photographs take turns (index.html's script) under a navy wash: it carries the
   white text and hides that the photographs are small (about 840 px wide, cut from a presentation). */
.home-hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-on { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-on img { transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(200deg, rgba(10, 4, 102, .7) 0%, rgba(10, 4, 102, 0) 30%),
    linear-gradient(90deg, rgba(10, 4, 102, .93) 0%, rgba(10, 4, 102, .84) 44%, rgba(10, 4, 102, .5) 76%, rgba(10, 4, 102, .28) 100%),
    linear-gradient(0deg, rgba(10, 4, 102, .6) 0%, rgba(10, 4, 102, 0) 34%); }
.hero-slide figcaption { position: absolute; z-index: 1; right: max(24px, (100vw - var(--wrap)) / 2 + 24px); top: 30px; display: flex; gap: 8px; align-items: baseline; padding-left: 12px; border-left: 3px solid var(--green); font-size: 15px; line-height: 1.3; color: #fff; }
.hero-slide figcaption strong { font-weight: 600; }
.hero-slide figcaption span { color: rgba(255, 255, 255, .84); }
.hero-inner { position: relative; z-index: 2; min-height: clamp(520px, 68vh, 680px); display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 150px; }
/* the heading runs wide, one line and the green one under it; the wash stays dark far enough right to carry it */
.hero-copy { max-width: 940px; }
.home .hero-copy h1 { font-size: clamp(38px, 4.6vw, 64px); color: #fff; max-width: none; }
.home .hero-copy h1 .accent { display: block; }
.hero-eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.hero-lede { font-size: 19px; color: rgba(255, 255, 255, .9); max-width: 46ch; }
.home-hero .btn-primary { background: var(--green); color: var(--navy-deep); }
.home-hero .btn-primary:hover { background: #6ad60a; }
.home-hero .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.home-hero .btn-secondary:hover { background: rgba(255, 255, 255, .14); }
.hero-dots { position: absolute; right: 24px; top: 66px; display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .4); cursor: pointer; }
.hero-dots button.on { background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide img { transition: none; } .hero-slide img { transform: none; } }

/* the company's line along the foot of the hero: "Big enough to supply 30+ countries. Small enough to move
   fast." (the user liked it and picked this placement out of four, 2026-11-30: "do C, we will change it
   later if it does not work"). The slide's name and the dashes sit top right, clear of it. */
.hero-band { position: absolute; left: 24px; right: 24px; bottom: 26px; margin: 0; display: flex; font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.2; font-weight: 600; color: #fff; border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 22px; }
.hero-band span { flex: 1; }
/* the Turkish home page has no band (the user, 2026-12-02: no Turkish for it worked, "remove it in Turkish";
   make_tr.py drops data-only="en"): the hero's words are then centred in the whole hero */
.hero-inner:not(:has(.hero-band)) { padding-bottom: 72px; }
.hero-band span + span { color: var(--green); border-left: 3px solid var(--green); padding-left: 24px; }


/* blocks */
.home-block { padding-top: 80px; padding-bottom: 80px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; flex-wrap: wrap; }
.more { font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
a.more:hover, a:hover > div > .more { text-decoration: underline; }
.soft { background: var(--bg-soft); }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; background: #fff; transition: border-color .15s; }
.cat:hover { border-color: var(--navy); }
.cat-photo { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; }
.cat-photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.cat > div:last-child { padding: 0 20px 20px; }
.cat p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.cat h3 { color: var(--navy); }
.cat-lg { grid-column: span 2; grid-row: span 2; }
.cat-lg .cat-photo { aspect-ratio: auto; flex: 1; padding: 0; min-height: 0; }
.cat-lg .cat-photo img { width: 100%; height: 100%; max-height: 440px; }
.cat-lg > div:last-child { padding: 20px 28px 28px; border-top: 1px solid var(--line); }
.cat-lg h3 { font-size: 26px; }
.cat-lg p { font-size: 16px; margin-bottom: 10px; }

/* range by diameter */
.dia { display: flex; gap: 6px; }
.dia-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dia-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.range-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.item { background: #fff; border-radius: 12px; padding: 12px 14px 16px; text-decoration: none; border: 1px solid transparent; transition: border-color .15s; }
.item:hover { border-color: var(--navy); }
.item[hidden] { display: none; }
.item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; margin-bottom: 8px; }
.item h3 { font-size: 16px; color: var(--navy); }
.item p { font-size: 13px; color: var(--ink-2); }
.range-note { font-size: 14px; color: var(--ink-2); margin-top: 20px; }
.range-note a { color: var(--navy); font-weight: 600; }

/* valves */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split h2 { margin: 10px 0 16px; }
.diagram { width: 100%; display: block; }
.body { font-size: 17px; color: var(--ink-2); max-width: 48ch; }

/* applications: three cards, each a photo of the spray in use and a link into applications.html
   (photos: assets/applications/, sources in SOURCES.txt there) */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app { background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .15s; }
.app:hover { border-color: var(--navy); }
.app:hover .more { text-decoration: underline; }
.app-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.app-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 28px 26px; }
.app-num { font-size: 13px; color: var(--green); font-weight: 700; letter-spacing: .06em; }
.app h3 { font-size: 24px; color: var(--navy); }
.app p { font-size: 15px; color: var(--ink-2); }
.app .more { margin-top: auto; padding-top: 6px; }

.band-sub { display: block; font-size: 15px; color: rgba(255, 255, 255, .78); margin-top: 4px; }
.home .custom-band { margin-top: 0; }

/* news: the three latest as cards with their photos (the user, 2026-11-30), as on news.html */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; text-decoration: none; transition: border-color .15s; }
.news-card:hover { border-color: var(--navy); }
.news-photo { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.news-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.news-card time { font-size: 13px; color: var(--ink-3); padding: 18px 22px 0; }
.news-card h3 { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--navy); padding: 4px 22px 22px; text-wrap: balance; }

/* footer */
.home-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.home-footer .logo { margin-bottom: 14px; }
.home-footer h4 { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 600; }
.footer-grid a:not(.logo) { display: block; text-decoration: none; padding: 3px 0; }
.footer-grid a:not(.logo):hover { color: #fff; }
.footer-grid p { margin-bottom: 8px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; padding-bottom: 24px; font-size: 13px; }

@media (max-width: 860px) {
  .hero-inner { min-height: 540px; padding-top: 48px; padding-bottom: 104px; }
  .hero-slide::after { background: linear-gradient(180deg, rgba(10, 4, 102, .86) 0%, rgba(10, 4, 102, .78) 55%, rgba(10, 4, 102, .7) 100%); }
  .hero-slide figcaption { right: auto; left: 16px; top: auto; bottom: 44px; font-size: 13px; flex-wrap: wrap; gap: 0 6px; max-width: calc(100% - 32px); }
  .hero-dots { left: 16px; right: auto; top: auto; bottom: 22px; }
  .hero-lede { font-size: 17px; }
  .hero-band { position: static; flex-direction: column; gap: 6px; margin-top: 26px; padding-top: 18px; font-size: 21px; }
  .hero-band span + span { border-left: 0; padding-left: 0; }
  .home-block { padding-top: 56px; padding-bottom: 56px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-lg { grid-row: auto; }
  .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 28px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-body { padding: 18px 20px 22px; }
  .news-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .news-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .news-photo { grid-row: 1 / 3; aspect-ratio: auto; min-height: 104px; }
  .news-card time { padding: 12px 14px 0; }
  .news-card h3 { font-size: 16px; padding: 2px 14px 12px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- actuators and valves side by side, under the welcome --- */
.duo-wrap { padding: 40px 0 56px; }
/* the numbers band that stood between them is gone (the user, 2026-12-01: "not needed on the home page") */
.duo-wrap + .home-block { padding-top: 24px; }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.duo-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.duo-photo { position: relative; display: block; background: #fff; min-height: 300px; border-right: 1px solid var(--line); text-decoration: none; }
.duo-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.duo-tag { position: absolute; left: 12px; bottom: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.duo-tag strong { color: var(--navy); }
.duo-photo:hover .duo-tag { border-color: var(--navy); }
.duo-valves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: 8px 4px; padding: 18px 10px; }
.duo-valves figure { margin: 0; text-align: center; }
.duo-valves img { width: 100%; max-width: 96px; height: 82px; object-fit: contain; margin: 0 auto; mix-blend-mode: multiply; }
.duo-valves figcaption { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.duo-body { padding: 22px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.duo-body .kicker, .home .kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 700; margin: 0; }
.home .duo-body h2 { font-size: 23px; line-height: 1.15; margin: 0 0 4px; }
.duo-body h2 a { text-decoration: none; color: var(--navy); }
.duo-body h2 a:hover { text-decoration: underline; }
.duo-label { font-size: 13px; color: var(--ink-3); margin: 4px 0 0; }
.duo-text { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.duo-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.duo-chips a { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.duo-chips a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.duo-body > .more, .duo-links { margin-top: auto; padding-top: 8px; }
.duo-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.more-quiet { color: var(--ink-2); font-weight: 500; }


.cat-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat-grid-4 .cat-photo img { mix-blend-mode: multiply; }

@media (max-width: 1100px) {
  .duo-card { grid-template-columns: minmax(0, 1fr); }
  .duo-photo { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .duo-photo img { height: 240px; }
}
@media (max-width: 860px) {
      .duo { grid-template-columns: minmax(0, 1fr); }
  .cat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .duo-wrap { padding: 24px 0 40px; }
  .duo-photo { min-height: 220px; }
  .duo-photo img { height: 220px; }
}

/* --- range cards: two products side by side, as the old studio pairs --- */
.cat-pair { display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden; }
.cat-pair img { width: 62%; max-width: 62%; height: auto; max-height: none; flex: none; }
.cat-pair img + img { margin-left: -20%; }

/* --- valves card: each valve links to its page --- */
.duo-valves a { text-align: center; text-decoration: none; display: block; }
.duo-valves a span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.duo-valves a:hover span { color: var(--navy); text-decoration: underline; }

/* --- featured actuator: which of the turning products is showing --- */
.spot-dots { position: absolute; right: 14px; bottom: 22px; display: flex; gap: 5px; }
.spot-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.spot-dots i.on { background: var(--navy); }
.duo-photo.duo-valves img { height: 82px; }  /* not the featured photo's phone height */

/* the cutaway's styles are in styles.css (shared with the valve pages); here only its place on the home page */
.anatomy-block { padding-top: 0; }
.home .anatomy-text h2 { margin: 0 0 14px; }  /* over the home page's own h2 margins */
