/* Codesign Technology — site styles.
   Layout, sizes and spacing follow the original Wix site (measured 24 Nov 2026 at 1280px).
   Colours: brand guide v1.0. Fonts as on the original site: Helvetica for text, Inter for headings (Mike, 24 Nov 2026). Background: black (Mike, 24 Nov 2026). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #eeeeee;      /* Codesign Grey */
  --teal: #00adb5;      /* Codesign Teal */
  --panel: #008a91;     /* teal at 80% over black, as on the original contact page */
  --muted: #777777;
  --container: 920px;
  --gutter: 20px;
  /* Helvetica is a licensed font, so it isn't embedded: Macs and iPhones show Helvetica, Windows and Android show Arial (near-identical metrics). */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, .about-tag, .menu, .menu-toggle { font-family: var(--font-head); }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
p { margin: 0; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 30;
  background: var(--teal); color: #000; padding: 8px 14px;
}
.skip-link:focus { left: 16px; top: 12px; }

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Large teal headings ("What Codesign does", "Capabilities") */
.display {
  color: var(--teal);
  font-size: clamp(29px, 5.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

/* ---------- Header (81px, logo left, MENU right) ---------- */
.site-header {
  height: 81px;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: block; width: 180px; }
.brand img { width: 100%; }
@media (max-width: 600px) {
  .site-header { height: 58px; }
  .brand { width: 130px; }
}

.menu-toggle {
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 18px; color: var(--teal);
  padding: 10px 0 10px 20px;
}
.menu-toggle:hover { color: var(--text); }

/* Slide-in menu panel: 365px, black, 2px teal left border */
.menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 20;
  width: min(365px, 100vw);
  background: var(--bg);
  border-left: 2px solid var(--teal);
  padding: 105px 0 0 88px;
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { line-height: 39px; }
.menu a { font-size: 18px; color: var(--teal); text-decoration: none; }
.menu a:hover { color: var(--text); }
.menu a[aria-current="page"] { color: var(--muted); }
.menu-close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px;
}
.menu-close svg { display: block; }
body.menu-open::after {
  content: ""; position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, 0.5);
}

/* ---------- Home ---------- */
.home-hero { padding: 36px var(--gutter) 74px; }
.home-hero img { width: 600px; margin: 0 auto; }

.home-what { padding: 28px 0 156px; }
.home-what p { margin-top: 58px; }

.home-towwave { padding: 19px 0 107px; }
.home-towwave img { width: 600px; margin: 0 auto; }
.home-towwave p { margin-top: 53px; }

.home-cap { padding: 41px 0 72px; }
.cap-grid {
  display: grid;
  grid-template-columns: 468fr 423fr;
  column-gap: 29px;
  row-gap: 35px;
  margin-top: 62px;
}
.cap-grid h3 {
  color: var(--teal);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.cap-grid p { font-size: 14px; line-height: 1.4; }
@media (max-width: 700px) {
  .cap-grid { grid-template-columns: 1fr; row-gap: 14px; margin-top: 24px; }
}

.home-band { padding: 56px var(--gutter) 67px; text-align: center; }
.home-band p { font-size: 15px; }

/* ---------- About ---------- */
.about { padding: 0 0 80px; }
.about-title { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.2; letter-spacing: -0.02em; }
.about-tag {
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em;
  text-align: center; margin: 23px 0 0;
}
.about h2 { font-size: 18px; line-height: 1.3; margin: 62px 0 15px; }
.about-tag + h2 { margin-top: 37px; }
.about p:not(.about-tag) { font-size: 14px; line-height: 1.4; }
.about a { color: var(--teal); }

/* ---------- Contact ---------- */
.contact-intro { padding: 88px 0 60px; }
.contact-intro h1 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.2; letter-spacing: -0.02em; }
.contact-intro p { margin-top: 38px; }

.contact-panel {
  background: var(--panel);
  margin: 0 clamp(0px, 3.2vw, 40px);
  padding: 80px clamp(16px, 10.3vw, 130px) 55px;
}
.contact-panel h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: var(--text); margin-bottom: 38px; }

.contact-card { background: #ffffff; color: #000; padding: 24px; max-width: 927px; }
.contact-card h3 { font-size: 30px; line-height: 1.5; margin-bottom: 24px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 35px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; line-height: 17px; margin-bottom: 8px; }
.field input, .field textarea {
  display: block; width: 100%;
  font: inherit; font-size: 16px; color: #000;
  background: transparent; border: 0; border-bottom: 1px solid #000; border-radius: 0;
  padding: 6px 0; height: 36px;
}
.field textarea { height: 74px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--teal); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.btn-submit {
  width: 277px; max-width: 100%; height: 41px;
  background: #000; color: #fff; border: 0; border-radius: 100px;
  font: inherit; font-size: 16px; cursor: pointer;
}
.btn-submit:hover { background: var(--panel); }
.btn-submit[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-size: 14px; }
.form-status.ok { color: #1f7a45; }
.form-status.err { color: #b3261e; }
.privacy { font-size: 12px; color: #555; }

/* ---------- Footer (centred logo, email, location) ---------- */
.site-footer { text-align: center; padding: 5px var(--gutter) 70px; }
.site-footer img { width: 140px; margin: 0 auto; }
.footer-email { font-size: 15px; line-height: 1.5; margin-top: 44px; }
.footer-email a { text-decoration: none; }
.footer-email a:hover { text-decoration: underline; color: var(--text); }
.footer-place { font-size: 16px; line-height: 1.5; margin-top: 72px; }
@media (max-width: 600px) {
  .site-footer img { width: 100px; }
  .footer-email { margin-top: 10px; }
  .footer-place { margin-top: 9px; }
}

/* Phone spacing, following the original Wix mobile layout */
@media (max-width: 600px) {
  .home-hero { padding: 40px var(--gutter) 20px; }
  .home-what { padding: 20px 0 50px; }
  .home-what p { margin-top: 20px; }
  .home-towwave { padding: 0 0 50px; }
  .home-towwave p { margin-top: 16px; }
  .home-cap { padding: 10px 0 40px; }
  .home-band { padding: 20px var(--gutter) 30px; }
  .about-title { margin-top: 16px; }
  .about h2 { margin-top: 36px; }
  .contact-intro { padding: 40px 0 32px; }
  .contact-intro p { margin-top: 16px; }
  .contact-panel { padding-top: 40px; }
  .contact-panel h2 { margin-bottom: 24px; }
}

/* Contact: the form block ("Let's Chat" + card) is centred in the teal panel; text stays left-aligned (Mike, 24 Nov 2026) */
.contact-panel > h2, .contact-card { max-width: 927px; margin-left: auto; margin-right: auto; }
.form-status:empty { display: none; }
.contact-panel { margin-bottom: 40px; } /* original: 45px from panel to footer logo */

/* Font per element, matched to the original Wix site (measured on Windows, 24 Nov 2026):
   most text is Inter with -0.01em tracking; only the two long Home paragraphs and the form
   use Helvetica, which Wix sets with +0.01em tracking. */
body { font-family: var(--font-head); letter-spacing: -0.01em; }
.home-what p, .home-towwave p, .contact-card .form { font-family: var(--font); letter-spacing: 0.01em; }
.contact-card .form input, .contact-card .form textarea, .contact-card .form button { letter-spacing: inherit; }
