/* Oxtara Digital site styles. No external resources. */

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors */
  --navy: #0B1F44;
  --orange: #F97316;
  --peach: #FDBA74;
  --gray: #8993A3;

  /* Supporting colors from the brand guide */
  --gray-on-dark: #C9D0DB;
  --tile: #F4F6FA;
  --white: #FFFFFF;

  /* Text gray dark enough for WCAG AA on white and on the tile color */
  --text-muted: #4F5A6B;
  --border: #E3E7EF;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--orange);
}

/* Focus: navy ring on light backgrounds, peach ring on dark ones */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero :focus-visible,
.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--peach);
}

.visually-hidden {
  position: absolute !important;
  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: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 760px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  line-height: 1;
  flex-shrink: 0;
}

/* Full logo stays well above the brand minimum width of 160 px so the
   thin DIGITAL line stays sharp */
.brand img {
  width: 210px;
  max-width: none;
  height: auto;
}

.brand-center {
  margin-bottom: 32px;
}

.brand-center img {
  width: 240px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--navy);
  content: "";
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-bar {
  left: 11px;
  top: 21px;
}

.nav-toggle-bar::before {
  left: 0;
  top: -7px;
}

.nav-toggle-bar::after {
  left: 0;
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover {
  background: var(--tile);
}

.site-nav .nav-cta {
  background: var(--orange);
  color: var(--navy);
}

.site-nav .nav-cta:hover {
  background: var(--peach);
}

/* The menu collapses only when JavaScript runs, so the links stay reachable without it */
@media (max-width: 760px) {
  .js .nav-toggle {
    display: block;
  }

  .site-header {
    position: relative;
  }

  .js .site-header {
    position: sticky;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-wrap: wrap;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(11, 31, 68, 0.08);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 16px;
  }

  .js .site-nav a {
    display: block;
    padding: 12px 14px;
  }

  .js .site-nav .nav-cta {
    text-align: center;
    margin-top: 8px;
  }
}

/* Buttons */

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  background: var(--orange);
  color: var(--navy);
}

.button-primary:hover {
  background: var(--peach);
}

.button-ghost {
  border-color: var(--gray-on-dark);
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--peach);
  color: var(--peach);
}

/* Hero */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(64px, 12vw, 128px) 0;
}

.hero-inner > * {
  max-width: 880px;
}

.eyebrow {
  color: var(--peach);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--gray-on-dark);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Sections */

.section {
  padding: clamp(56px, 10vw, 96px) 0;
}

.section-tint {
  background: var(--tile);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark p {
  color: var(--gray-on-dark);
}

.section-dark a:not(.button) {
  color: var(--peach);
}

.section-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* A grid holding one card keeps it card sized instead of full width */
.card-grid-single {
  grid-template-columns: minmax(0, 360px);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card p {
  color: var(--text-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.product-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.card .product-tag {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.card .product-status {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.card .product-note {
  font-size: 0.85rem;
  font-style: italic;
}

.product-card-muted {
  background: transparent;
  border-style: dashed;
  border-color: var(--gray);
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--gray-on-dark);
  border-top: 1px solid rgba(201, 208, 219, 0.2);
  padding: 32px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
}

.footer-logo {
  width: 200px;
  height: auto;
}

.footer-tagline {
  font-weight: 700;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--gray-on-dark);
}

.site-footer a:hover {
  color: var(--peach);
}

/* 404 */

.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.not-found {
  flex: 1;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 64px 0;
}

.not-found .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.not-found p {
  color: var(--text-muted);
}
