/* ==========================================================
   Plastech – PET preform manufacturers, Pollachi
   ========================================================== */

:root {
  --charcoal: #545456;       /* logo plate */
  --charcoal-dark: #3a3a3c;
  --ink: #1e1f22;
  --orange: #f1592a;         /* logo "E" */
  --orange-dark: #c94515;    /* white text on this passes AA */
  --grey: #f2f2f3;
  --concrete: #dcdcdf;
  --line: #e3e3e6;
  --text: #4b4c52;
  --muted: #7c7d84;
  --radius: 4px;
  --shadow: 0 12px 30px rgba(30, 31, 34, .12);
  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Barlow', Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--ink); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 8px 14px; background: var(--orange); color: #fff; }
.skip-link:focus { top: 12px; }

[id] { scroll-margin-top: 100px; }

/* ---------- Wordmark (logo) ---------- */
.wm { display: inline-flex; flex-direction: column; font-family: var(--font-head); font-style: italic; font-weight: 800; line-height: .9; color: var(--ink); }
.wm-name { display: flex; align-items: center; font-size: 46px; letter-spacing: -.5px; }
.wm-e { display: inline-block; width: .52em; height: .66em; margin: 0 .05em 0 .07em; background: repeating-linear-gradient(to bottom, var(--orange) 0 20%, transparent 20% 40%); transform: skewX(-14deg); }
.wm-tag { margin-top: 4px; padding-top: 3px; border-top: 2px solid var(--orange); font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-align: right; color: var(--orange-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}
.btn .icon { width: 18px; height: 18px; }
.btn-sm { padding: 8px 16px; font-size: 16px; }
.btn-orange { background: var(--orange-dark); color: #fff; }
.btn-orange:hover { background: var(--ink); color: #fff; }
.btn-charcoal { background: var(--charcoal); color: #fff; }
.btn-charcoal:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #b9babf; font-size: 14px; }
.topbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 38px; padding-block: 6px; }
.topbar p { margin: 0; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar li { display: flex; align-items: center; gap: 7px; }
.topbar .icon { color: var(--orange); }
.topbar a { color: #fff; overflow-wrap: anywhere; }
.topbar a:hover { color: var(--orange); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 4px solid var(--orange); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(30, 31, 34, .12); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo { display: inline-flex; }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 28px 12px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--ink);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.is-current > a { color: var(--orange-dark); box-shadow: inset 0 -4px 0 var(--orange); }
.caret { width: 18px; height: 18px; fill: currentColor; }

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  border-top: 4px solid var(--charcoal);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 18px; font-weight: 600; color: var(--ink); }
.submenu a:hover,
.submenu a[aria-current="page"] { background: var(--grey); color: var(--orange-dark); }
.header-cta .icon { width: 16px; height: 16px; }

.nav-toggle { display: none; padding: 8px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 70px;
  background: var(--charcoal) linear-gradient(115deg, var(--ink) 0%, var(--charcoal-dark) 50%, var(--charcoal) 100%);
  color: #d6d6da;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 18px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 50px; align-items: center; }
.hero .eyebrow { color: var(--orange); }
.hero h1 { margin: 0 0 18px; font-size: clamp(40px, 5.6vw, 64px); text-transform: uppercase; color: #fff; }
.hero-lead { max-width: 560px; margin-bottom: 28px; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; color: #fff; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--orange); width: 20px; height: 20px; }
.hero-media { position: relative; margin: 0 18px 18px 0; }
.hero-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 4px solid var(--orange); }
.hero-media img { position: relative; width: 100%; aspect-ratio: 35 / 27; object-fit: contain; padding: 20px; background: #f6f6f7; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }

/* ---------- Sections ---------- */
.section { padding-block: 84px; }
.section-grey { background: var(--grey); }

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 46px); text-transform: uppercase; }
.section-head h2::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 14px; background: var(--orange); }
.section-head .lead { margin: 16px 0 0; font-size: 19px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center h2::after { margin-inline: auto; }
.split .section-head,
.spotlight .section-head { margin-bottom: 20px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.lead { font-size: 19px; }

.card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--orange-dark); }
.card-link .icon { transition: transform .2s; }
.card-link:hover .icon,
.cat-card:hover .card-link .icon { transform: translateX(4px); }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.cat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: var(--text); transition: transform .25s, box-shadow .25s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.cat-media { position: relative; }
.cat-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; background: var(--orange); }
.cat-icon svg { width: 28px; height: 28px; fill: #fff; }
.cat-media .cat-icon { position: absolute; left: 22px; bottom: -27px; }
.cat-body { display: flex; flex-direction: column; flex: 1; padding: 40px 22px 22px; }
.cat-body h3 { font-size: 26px; text-transform: uppercase; }
.cat-body ul { list-style: none; flex: 1; margin: 0 0 18px; padding: 0; font-size: 15px; }
.cat-body li { padding: 5px 0 5px 16px; border-top: 1px dashed var(--line); position: relative; }
.cat-body li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; background: var(--charcoal); }

/* ---------- Spotlight / figures ---------- */
.spotlight { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; align-items: center; }
.figures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.figures li { padding: 24px 22px; background: #fff; border-left: 5px solid var(--orange); }
.figures strong { display: block; font-family: var(--font-head); font-size: 38px; line-height: 1.1; color: var(--ink); }
.figures span { font-size: 15px; color: var(--muted); }

/* ---------- Applications strip (home) ---------- */
.app-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.app-grid a { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 26px 22px; border: 1px solid var(--line); border-top: 5px solid var(--charcoal); color: var(--text); }
.app-grid a:hover { border-top-color: var(--orange); box-shadow: var(--shadow); color: var(--text); }
.app-icon { width: 40px; height: 40px; margin-bottom: 10px; fill: var(--orange); }
.app-grid strong { font-family: var(--font-head); font-size: 24px; line-height: 1.15; text-transform: uppercase; color: var(--ink); }
.app-grid span { font-size: 15px; color: var(--muted); }

/* ---------- Clients ---------- */
.client-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.client-grid li { display: grid; place-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); }
.client-grid img { width: 100%; max-width: 220px; aspect-ratio: 400 / 194; object-fit: contain; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: 54px; background: var(--charcoal-dark) repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 18px); color: #d0d0d4; border-top: 5px solid var(--orange); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { margin-bottom: 6px; font-size: clamp(28px, 3.4vw, 38px); text-transform: uppercase; color: #fff; }
.cta-band p { margin: 0; max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero ---------- */
.page-hero {
  padding-block: 60px 54px;
  background: var(--charcoal-dark) linear-gradient(115deg, var(--ink) 0%, var(--charcoal-dark) 55%, var(--charcoal) 100%);
  color: #d4d4d8;
  border-bottom: 5px solid var(--orange);
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; color: #fff; }
.page-hero p { max-width: 760px; margin: 0; font-size: 19px; }
.breadcrumb ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #8e8f96; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb [aria-current] { color: var(--orange); }

/* ---------- About ---------- */
.framed { margin: 0 16px 16px 0; }
.framed img { width: 100%; box-shadow: 16px 16px 0 var(--orange); }
.framed figcaption { margin-top: 28px; font-size: 15px; color: var(--muted); }
.framed figcaption strong { display: block; font-family: var(--font-head); font-size: 22px; text-transform: uppercase; color: var(--ink); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { width: 22px; height: 22px; padding: 4px; margin-top: 2px; background: var(--orange); fill: #fff; }
.ticks strong { color: var(--ink); }

/* ---------- Product family page ---------- */
.cat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 50px; align-items: start; }
.cat-side { position: sticky; top: 110px; padding: 24px; background: var(--grey); border-top: 5px solid var(--charcoal); }
.cat-side h2 { font-size: 22px; text-transform: uppercase; }
.cat-side ul { list-style: none; margin: 0 0 18px; padding: 0; }
.cat-side a { display: block; padding: 9px 0; border-bottom: 1px solid var(--concrete); font-weight: 600; color: var(--ink); }
.cat-side a:hover,
.cat-side a[aria-current="page"] { color: var(--orange-dark); }
.cat-side a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 12px; }
.cat-side .btn { width: 100%; }

.cat-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; margin-bottom: 10px; }
.cat-intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose p:last-child { margin-bottom: 0; }

.product { padding-block: 40px; border-top: 1px solid var(--line); }
.product-head { max-width: 820px; margin-bottom: 22px; }
.product-head .code { display: inline-block; margin-bottom: 8px; padding: 3px 12px; background: var(--charcoal); font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.product-head h2 { font-size: clamp(30px, 3.4vw, 40px); text-transform: uppercase; }
.product-head .lead { margin: 0; color: var(--ink); }
.h-small { font-size: 28px; text-transform: uppercase; }

.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
.spec-table th,
.spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table thead th { background: var(--charcoal); color: #fff; font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.spec-table tbody tr:nth-child(even) { background: #fafafa; }
.spec-table tbody tr:target { background: #fde6dc; }
.spec-table td:first-child { width: 7em; font-weight: 700; color: var(--orange-dark); }
.spec-table td:nth-child(2),
.spec-table td:last-child { font-weight: 600; color: var(--ink); }

.also { margin-top: 10px; padding: 28px 30px; background: var(--charcoal-dark); color: #d0d0d4; }
.also h2 { font-size: 28px; text-transform: uppercase; color: #fff; }
.also ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.also a:not(.btn) { display: block; padding: 6px 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-weight: 600; color: #fff; }
.also a:not(.btn):hover { background: var(--orange-dark); border-color: var(--orange-dark); }

/* ---------- Products list ---------- */
.fam-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.fam-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.fam-head h3 { margin: 0; font-size: 28px; text-transform: uppercase; }
.fam-head h3 a { color: var(--ink); }
.fam-head h3 a:hover { color: var(--orange-dark); }

/* ---------- Applications page ---------- */
.app-list { display: grid; gap: 22px; }
.app-row { display: flex; gap: 24px; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-left: 5px solid var(--orange); }
.app-row h2 { font-size: 30px; text-transform: uppercase; }
.app-row p { max-width: 780px; }
.pet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.pet-grid > div { padding: 26px; background: #fff; border-top: 5px solid var(--charcoal); }
.pet-grid h3 { font-size: 24px; text-transform: uppercase; }
.pet-grid p { margin: 0; }

/* ---------- Gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 6px 16px; background: var(--grey); border: 1px solid var(--line); font-family: var(--font-head); font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.chips a:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.gal-block { padding-top: 40px; }
.gal-block h2 { font-size: 32px; text-transform: uppercase; }
.gal-block h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 10px; background: var(--orange); }
.gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gal-grid a { display: block; overflow: hidden; background: var(--grey); }
.gal-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gal-grid a:hover img { transform: scale(1.05); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-top: 5px solid var(--charcoal); }
.contact-card.is-main { border-top-color: var(--orange); }
.contact-card h2 { font-size: 28px; text-transform: uppercase; }
.contact-card address { margin-bottom: 14px; font-style: normal; }
.contact-card .btn,
.contact-card .card-link { margin-top: auto; }
.contact-lines { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.contact-lines li { display: flex; gap: 10px; align-items: center; }
.contact-lines .icon { color: var(--orange-dark); }
.contact-lines a { font-size: 19px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--orange-dark); }
.map { margin-top: 30px; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

.enquiry-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 28px; padding: 30px; background: var(--grey); border-left: 6px solid var(--orange); }
.enquiry-box h2 { margin-bottom: 6px; font-size: 30px; text-transform: uppercase; }
.enquiry-box p { max-width: 680px; margin: 0; }
.enquiry-box .detail-actions { margin-top: 0; }

/* ---------- 404 ---------- */
.notfound h1 { font-size: clamp(40px, 6vw, 64px); text-transform: uppercase; }
.notfound .lead { max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9aab0; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.5fr; gap: 40px; padding-block: 60px 44px; }
.footer-grid > div { min-width: 0; }
.site-footer h2 { margin-bottom: 16px; font-size: 22px; letter-spacing: .8px; text-transform: uppercase; color: #fff; }
.footer-logo { display: inline-flex; margin-bottom: 18px; }
.footer-logo .wm { color: #fff; }
.footer-logo .wm-name { font-size: 38px; }
.footer-logo .wm-tag { color: var(--orange); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #dcdce0; }
.footer-links a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 5px; color: var(--orange); }
.footer-contact a { overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-block: 18px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- Back to top ---------- */
.go-top { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; place-items: center; width: 46px; height: 46px; background: var(--charcoal); border: 2px solid var(--orange); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background-color .2s; }
.go-top.is-visible { opacity: 1; visibility: visible; }
.go-top:hover { background: var(--orange-dark); }
.go-top svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 60px 20px; background: rgba(18, 18, 20, .94); }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); margin: 0 auto; }
.lightbox figcaption { margin-top: 12px; color: #e2e2e6; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; background: rgba(255, 255, 255, .14); cursor: pointer; }
.lb-btn:hover { background: var(--orange-dark); }
.lb-btn svg { width: 26px; height: 26px; fill: #fff; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 20px rgba(30, 31, 34, .12);
    transition: max-height .35s ease;
  }
  .main-nav.is-open { max-height: calc(100vh - 84px); overflow-y: auto; border-bottom: 4px solid var(--orange); }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 0 20px; }
  .main-nav > ul > li > a { padding: 12px 4px; border-top: 1px solid var(--line); }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li.is-current > a { box-shadow: none; color: var(--orange-dark); }
  .caret { display: none; }
  .submenu { position: static; min-width: 0; padding: 0 0 8px 14px; border-top: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .submenu a { padding: 6px 4px; }
  .header-cta { margin: 10px 20px 20px; }

  .cat-grid.four,
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .cat-side { position: static; }
  .cat-side ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .cat-side .btn { width: auto; }
  .gal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-grid,
  .pet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .section { padding-block: 64px; }
  .hero-grid,
  .split,
  .spotlight,
  .cat-intro,
  .fam-tables { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .client-grid,
  .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar p { display: none; }
  .topbar-row { justify-content: center; }
  .header-row { min-height: 70px; }
  .wm-name { font-size: 36px; }
  .wm-tag { font-size: 11px; }
  .main-nav.is-open { max-height: calc(100vh - 70px); }

  .hero { padding-block: 50px 60px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .section { padding-block: 52px; }
  .cat-grid,
  .cat-grid.four,
  .app-grid,
  .contact-grid,
  .pet-grid,
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .client-grid,
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .figures strong { font-size: 30px; }
  .figures li { padding: 18px 16px; }
  .app-row { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .spec-table th,
  .spec-table td { padding: 9px 10px; font-size: 15px; }
  .also { padding: 24px 20px; }
  .enquiry-box { padding: 24px 20px; }
  .map iframe { height: 300px; }
  .enquiry-box .btn,
  .cta-actions,
  .cta-actions .btn,
  .detail-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px 36px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .go-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat-card,
  .gal-grid img { transition: none; }
}
