/* =========================================================
   ENX GROUP — website styles
   Colours and fonts match the original Canva design.
   ========================================================= */

/* ---------- Fonts (stored in /fonts, no outside service needed) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --navy: #142b39;
  --ink: #203747;
  --muted: #5f717b;
  --teal: #116e68;
  --teal-dark: #0c5550;
  --teal-tint: #e5f0ec;
  --cream: #f7f6f2;
  --mint: #eaf0ed;
  --white: #ffffff;
  --line: #dce3e1;
  --line-strong: #b9c9c5;
  --input-line: #bac8c7;
  --gold: #d79741;
  --sun: #ead0ab;
  --sage: #bdd4cf;
  --shadow-box: #dce7e2;
  --footer-text: #d7e4e2;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 8px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { 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 { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: 4px; border: 0; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: #fff; color: var(--navy); border: 3px solid var(--navy); border-radius: 6px; padding: 0 21px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 52px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; padding-left: 2px; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--navy); }

.site-nav ul { display: flex; gap: 25px; }
.site-nav a { text-decoration: none; font-size: 15.5px; color: var(--ink); padding: 6px 0; position: relative; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav ul a:hover::after { transform: scaleX(1); }
.site-nav { position: absolute; left: calc(50% - 12px); transform: translateX(-50%); }
.nav-cta-mobile { display: none; }
.site-nav a.btn-primary { color: #fff; padding: 0 20px; }
.header-cta { padding: 0 21px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; border-radius: 6px; }
.nav-toggle-bar { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle-bar + .nav-toggle-bar { margin-top: 6px; }
/* children: 1 = hidden label, 2-4 = the three bars */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Shared text styles ---------- */
.eyebrow {
  font-size: 14.5px; font-weight: 400; line-height: 1.2;
  letter-spacing: 0.245em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 19px;
}
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -0.015em; }
.section-intro { margin-top: 16px; font-size: 15.5px; line-height: 19px; color: var(--muted); letter-spacing: 0.01em; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 600fr) minmax(0, 523fr);
  column-gap: 77px;
  align-items: center;
  padding-top: 96px; padding-bottom: 96px;
}
.hero-copy { position: relative; }
.hero h1 { font-size: 31.5px; line-height: 40px; letter-spacing: -0.02em; max-width: 560px; }
.typed { margin-top: 14px; font-size: 18px; font-weight: 600; color: var(--teal); min-height: 1.4em; display: flex; align-items: center; }
.typed-caret { display: inline-block; width: 2px; height: 1.15em; background: var(--navy); margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.lead { margin-top: 28px; font-size: 16px; line-height: 1.25; color: var(--muted); max-width: 600px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.btn-row .btn-primary { padding: 0 20px; }
.decor-dot {
  position: absolute; left: -15px; bottom: -82px;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--sage); filter: blur(0.6px); opacity: .95;
  pointer-events: none;
}

.hero-media { position: relative; }
.hero-media img { position: relative; z-index: 2; width: 100%; aspect-ratio: 523 / 510; object-fit: cover; border-radius: var(--radius); }
.hero-shadow { position: absolute; z-index: 1; inset: 20px -20px -20px 20px; background: var(--shadow-box); border-radius: var(--radius); }
.decor-sun { position: absolute; z-index: 0; top: -16px; right: 28px; width: 108px; height: 108px; border-radius: 50%; background: var(--sun); }

/* ---------- Value strip ---------- */
.value-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.value-grid p { border-left: 2px solid var(--teal); padding: 0 16px; font-size: 16px; line-height: 19px; color: var(--ink); min-height: 38px; }

/* ---------- Sections ---------- */
.section { padding: 118px 0 108px; }
.section-white { background: var(--white); }
.section-mint { background: var(--mint); }
.section-cream { background: var(--cream); }
.section-head { max-width: 625px; }
.section-head-wide { max-width: 680px; }

/* What we do */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px 28px 29px;
  min-height: 212px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.service-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(20, 43, 57, .07); transform: translateY(-2px); }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 4px; background: var(--teal-tint); }
.icon-box svg { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-top: 33px; font-size: 18px; font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }
.service-card p { margin-top: 10px; font-size: 16px; line-height: 19px; color: var(--muted); }

/* Split layouts (image + text) */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 80px; align-items: center; }
.split-media img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.split-media-left .split-media img { aspect-ratio: 560 / 590; }
.split-media-right .split-media img { aspect-ratio: 560 / 460; }
#about { padding: 110px 0; }
#about .split-copy { padding-top: 40px; }

.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin-top: 33px; }
.benefit-grid li { border-top: 1px solid var(--line-strong); padding: 16px 0 16px; min-height: 71px; font-size: 16px; line-height: 19px; color: var(--ink); }

/* Approach */
.section-approach { padding: 117px 0 106px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; margin-top: 40px; }
.steps li { border-top: 2px solid var(--teal); padding-top: 28px; }
.step-num { display: block; font-size: 13px; font-weight: 600; color: var(--teal); letter-spacing: 0.04em; line-height: 1.2; }
.steps h3 { margin-top: 26px; font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }
.steps p { margin-top: 10px; font-size: 16px; line-height: 19px; color: var(--muted); }

/* Products */
#products { padding: 118px 0 110px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin-top: 69px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.product-card:hover { box-shadow: 0 12px 30px rgba(20, 43, 57, .08); transform: translateY(-2px); }
.product-card img { width: 100%; aspect-ratio: 382 / 208; object-fit: cover; }
.product-body { padding: 59px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 18px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.product-sub { margin-top: 12px; font-size: 15px; line-height: 19px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); min-height: 57px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 21px; }
.product-actions .btn { font-size: 16px; padding: 0 21px; }
.text-link { align-self: flex-start; margin-top: 16px; color: var(--teal); font-size: 16px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }

/* Built for your stage */
.section-stage { padding: 110px 0; }
.stage-list { margin-top: 23px; }
.stage-list li { padding: 13px 0 12px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 19px; color: var(--ink); }
.stage-list li:first-child { padding-top: 13px; }

/* ---------- Contact ---------- */
.section-contact { padding: 115px 0 109px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 448fr) minmax(0, 672fr); column-gap: 80px; align-items: start; }
.contact-copy .section-intro { max-width: 450px; }
.contact-block { border-top: 1px solid var(--line-strong); margin-top: 33px; padding-top: 25px; }
.contact-block .contact-label { font-size: 16px; color: var(--ink); margin-bottom: 37px; }
.contact-block-email { margin-top: 28px; padding-top: 25px; }
.contact-block-email .contact-label { margin-bottom: 6px; }
.contact-email { color: #425b65; font-size: 16px; text-decoration: none; }
.contact-email:hover { color: var(--teal); text-decoration: underline; }

.form-card { background: var(--white); border-radius: 12px; padding: 36px 36px 36px; margin-top: -6px; }
.form-card h3 { font-size: 18px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.form-note { margin-top: 8px; font-size: 16px; color: var(--muted); }
#enquiry-form { margin-top: 26px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 16px; color: var(--ink); margin-bottom: 7px; line-height: 1.2; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--input-line); border-radius: 4px;
  padding: 0 14px; height: 53px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { height: 50px; padding: 0 16px; cursor: pointer; }
.field textarea { height: 130px; padding: 12px 14px; resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(17, 110, 104, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { display: block; margin-top: 6px; font-size: 13px; color: #b3261e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 16px; line-height: 19px; color: var(--muted); cursor: pointer; }
.consent input { margin: 3px 0 0 1px; width: 13px; height: 13px; flex: none; accent-color: var(--teal); }
.consent.has-error span { color: #b3261e; }
#enquiry-form .btn[type="submit"] { margin-top: 20px; padding: 0 21px; }
#enquiry-form .btn[disabled] { opacity: .7; cursor: wait; }
.form-status { margin-top: 14px; font-size: 16px; line-height: 1.4; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--teal); font-weight: 500; }
.form-status.is-error { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 480fr 378fr 342fr; column-gap: 0; align-items: start; }
.footer-title { font-size: 18px; line-height: 1.3; color: #fff; }
.footer-head { font-size: 16px; line-height: 1.3; color: #fff; }
.footer-text { margin-top: 13px; font-size: 16px; line-height: 19px; color: var(--footer-text); max-width: 330px; }
.footer-head + .footer-text { margin-top: 11px; }
.footer-text + .footer-text { margin-top: 16px; }
.footer-links li { line-height: 19px; }
.footer-links li + li { margin-top: 13px; }
.footer-links a { font-size: 14px; color: #fff; text-decoration: none; line-height: 1.35; }
.footer-links a:hover { color: var(--sun); text-decoration: underline; }
.footer-inline-link { color: var(--footer-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(215, 228, 226, .45); }
.footer-inline-link:hover { color: var(--sun); text-decoration-color: currentColor; }

/* ---------- Privacy policy page ---------- */
.legal-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 72px 0 56px; }
.legal-hero h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; }
.legal-hero .legal-meta { margin-top: 14px; font-size: 15px; color: var(--muted); }
.legal-body { background: var(--white); padding: 64px 0 96px; }
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 22px; margin-top: 44px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.6; color: var(--ink); }
.legal-content p { margin-top: 14px; }
.legal-content ul { margin-top: 14px; padding-left: 22px; list-style: disc; }
.legal-content li + li { margin-top: 8px; }
.legal-content li::marker { color: var(--teal); }
.legal-content a { color: var(--teal); text-underline-offset: 3px; }
.legal-content a:hover { color: var(--teal-dark); }
.legal-content strong { font-weight: 600; color: var(--navy); }
.legal-summary { margin-top: 0; background: var(--mint); border-left: 3px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; }
.legal-summary p { margin-top: 0; }
.legal-back { margin-top: 48px; }
.legal-content a.btn-primary { color: #fff; text-decoration: none; }

/* ---------- Scroll reveal (only when JavaScript is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .typed-caret { animation: none; }
  * { transition-duration: 0s !important; }
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablets and small laptops */
@media (max-width: 1100px) {
  .split, .contact-grid { column-gap: 48px; }
  .hero-grid { column-gap: 48px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; transform: none;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    display: none;
    box-shadow: 0 16px 24px rgba(20, 43, 57, .08);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 20px; width: 100%; }

  .hero-grid { grid-template-columns: 1fr; row-gap: 64px; padding-top: 64px; padding-bottom: 80px; }
  .hero h1 { max-width: 600px; }
  .hero-media { max-width: 560px; margin-right: 20px; }
  .decor-dot { display: none; }

  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; row-gap: 48px; }
  .split-media-right .split-media { order: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .contact-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .form-card { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  .section, #about, #products, .section-approach, .section-contact, .section-stage { padding: 80px 0; }
}

/* Phones */
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .hero-grid { padding-top: 48px; padding-bottom: 64px; row-gap: 52px; }
  .hero h1 { font-size: 30px; }
  .eyebrow { font-size: 12.5px; letter-spacing: 0.16em; }
  .btn-row .btn { flex: 1 1 auto; }
  .hero-media { margin-right: 16px; }
  .hero-shadow { inset: 14px -14px -14px 14px; }
  .decor-sun { width: 80px; height: 80px; top: -14px; right: 20px; }

  .value-grid { grid-template-columns: 1fr; row-gap: 14px; padding-top: 28px; padding-bottom: 28px; }
  .value-grid p { min-height: 0; }
  h2 { font-size: 23px; }
  .service-grid, .product-grid, .steps, .benefit-grid, .form-row { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-card h3 { margin-top: 24px; }
  .benefit-grid li { min-height: 0; }
  .product-body { padding-top: 28px; }
  .product-sub { min-height: 0; }
  .form-card { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }

  .section, #about, #products, .section-approach, .section-contact, .section-stage { padding: 64px 0; }
}

/* Privacy policy page on phones */
@media (max-width: 600px) {
  .legal-hero { padding: 48px 0 40px; }
  .legal-hero h1 { font-size: 28px; }
  .legal-body { padding: 44px 0 64px; }
  .legal-content h2 { font-size: 20px; margin-top: 36px; }
}
