/* ONIX LIMITED - simple stylesheet
   Colours: change the variables below to re-theme the whole site. */
:root {
  --accent: #c8102e;       /* brand red (buttons, links, small accents) */
  --accent-dark: #a50d26;  /* hover state */
  --ink: #111111;          /* headings, dark sections */
  --text: #333333;         /* body text */
  --muted: #666666;        /* secondary text */
  --line: #e5e5e5;         /* borders */
  --soft: #f6f6f6;         /* light grey section background */
  --white: #ffffff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --header: 72px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; height: var(--header); background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { padding: 0.5rem 0.9rem; font-weight: 500; font-size: 0.95rem; color: var(--ink); border-radius: var(--radius); }
.nav a:hover { color: var(--accent); }
.nav a.is-active { color: var(--accent); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.6rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--accent); }
.btn-light:hover { background: var(--soft); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero */
.hero { padding: 5rem 0 4.5rem; background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-page { padding: 3.5rem 0; }
.eyebrow, .kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 18ch; }
.hero-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lead { margin-top: 1.1rem; max-width: 40rem; font-size: 1.1rem; color: var(--muted); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head h2, .prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p, .prose p { margin-top: 0.8rem; color: var(--muted); }
.prose h2 + p { margin-top: 1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.facts { border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fact dd { color: var(--ink); font-weight: 500; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.card-num { display: block; margin-bottom: 0.75rem; font-size: 0.85rem; font-weight: 700; color: var(--accent); }

/* Products */
.product { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.product-body { padding: 1.1rem 1.25rem 1.3rem; }
.product-body h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.product-body p { color: var(--muted); font-size: 0.95rem; }

/* Call to action */
.cta { background: var(--accent); color: var(--white); padding: 3.25rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 1.9rem); }
.cta p { margin-top: 0.4rem; color: rgba(255, 255, 255, 0.9); }
.cta .actions { margin-top: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
.contact-grid h2 { font-size: 1.6rem; margin-bottom: 1.1rem; }
.contact-list { display: grid; gap: 0.75rem; }
.contact-item { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { color: var(--ink); font-weight: 600; }
.contact-item a:hover { color: var(--accent); }

.form { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.form > p { color: var(--muted); margin: 0.35rem 0 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { margin-bottom: 0.95rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink); }
.req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 0.65rem 0.8rem; border: 1px solid #cfcfcf; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12); }
.field-error { display: none; margin-top: 0.3rem; font-size: 0.85rem; color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--accent); }
.field.is-invalid .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.form-note { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.form-status { display: none; margin-bottom: 1rem; padding: 0.8rem 1rem; border-radius: var(--radius); font-weight: 500; }
.form-status.is-success { display: block; background: #e8f6ee; color: #146c43; }
.form-status.is-error { display: block; background: #fdecee; color: #8f0b21; }
.form-status a { text-decoration: underline; font-weight: 600; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: 3rem 0 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer .logo img { height: 52px; background: var(--white); padding: 0.3rem 0.5rem; border-radius: var(--radius); }
.footer h3 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer p { margin-top: 1rem; max-width: 36ch; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-links { display: grid; gap: 0.4rem; }
.footer-contact li { margin-bottom: 0.5rem; }
.footer-bottom { padding-top: 1.1rem; font-size: 0.88rem; }

/* WhatsApp button */
.float-wa { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
.float-wa svg { width: 28px; height: 28px; }

/* Mobile */
@media (max-width: 860px) {
  .logo img { height: 48px; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav { position: fixed; inset: var(--header) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1rem; background: var(--white); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--soft); border-radius: 0; }
  .split, .contact-grid, .grid-3, .grid-2, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .split { gap: 2rem; }
  .fact { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero { padding: 3.25rem 0; }
  .section { padding: 3.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
