/* ============================================
   UXTech: One-Page Consultancy Website
   Brand palette derived from uxtech.io logo
   ============================================ */

/* --- Design tokens --- */

:root {
  /* CTA / interactive accent. Passes WCAG on the navy hero (3.2:1 component
     contrast, was 1.62:1) and carries white text at 4.66:1. Chunk 2 #3. */
  --accent: #1976c9;
  --accent-hover: #1565a0;
  --accent-light: #6cb6ee; /* for accent glyphs ON the dark hero (checkmarks) */
}

/* --- Reset & Base --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  background: #ffffff;
}

a {
  color: #0d4a7a;
  text-decoration: none;
}

a:hover {
  color: #07274c;
}

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

/* --- Layout --- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #07274c;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* --- Navigation --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f3f6e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav__container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
}

.nav__brand img {
  height: 2.25rem;
}

.nav__brand:hover {
  opacity: 0.9;
}

.nav__links a {
  color: #b0c4d8;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: #ffffff;
}

/* --- Hero --- */

.hero {
  background: #07274c;
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.hero__logo {
  margin-bottom: 1.5rem;
}

.hero__logo img {
  height: 120px;
  width: auto;
}

.hero__headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero__subheadline {
  font-size: 1.25rem;
  font-weight: 400;
  color: #b0c4d8;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* --- Services --- */

.services {
  background: #f4f6f8;
  padding: 4rem 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.services__card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2rem 1.5rem;
  transition: box-shadow 0.2s;
}

.services__card:hover {
  box-shadow: 0 4px 12px rgba(7, 39, 76, 0.1);
}

.services__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.services__icon img {
  width: 100%;
  height: 100%;
}

.services__card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #07274c;
  margin-bottom: 0.5rem;
}

.services__card p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.5;
}

/* --- About --- */

.about {
  background: #f9fbfc;
  padding: 4rem 0;
}

.about__text {
  font-size: 1.05rem;
  color: #444444;
  max-width: 700px;
  margin: 0 auto 1.25rem;
  text-align: center;
  line-height: 1.7;
}

.about__text:last-child {
  margin-bottom: 0;
}

/* --- Contact --- */

.contact {
  background: #f4f6f8;
  padding: 4rem 0;
}

.contact__subheadline {
  text-align: center;
  color: #555555;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact__info {
  padding-top: 0.5rem;
}

.contact__method {
  margin-bottom: 1.25rem;
}

.contact__method strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #07274c;
  margin-bottom: 0.25rem;
}

.contact__method a {
  font-size: 1rem;
  color: #0d4a7a;
}

/* --- Form --- */

.contact__form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2rem;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.35rem;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: #333333;
  background: #fafbfc;
  transition: border-color 0.2s;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: #0d4a7a;
  box-shadow: 0 0 0 3px rgba(7, 39, 76, 0.12);
}

.form__group textarea {
  resize: vertical;
}

/* Honeypot field: moved off-screen (not display:none, which naive bots skip) */
.form__group--hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- CTA Band --- */

.cta-band {
  background: #0d4a7a;
  padding: 3rem 0;
  text-align: center;
}

.cta-band__headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.cta-band .btn--primary {
  background: #ffffff;
  color: #07274c;
}

.cta-band .btn--primary:hover {
  background: #e8eef5;
  color: #07274c;
}

/* --- Process / How We Work --- */

.process {
  background: #ffffff;
  padding: 4rem 0;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.process__step {
  padding: 1rem;
}

.process__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.process__step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #07274c;
  margin-bottom: 0.5rem;
}

.process__step p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.5;
}

/* --- FAQ --- */

.faq {
  background: #ffffff;
  padding: 4rem 0;
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid #e2e8f0;
}

.faq__question {
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #07274c;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq__item[open] .faq__question::after {
  content: "\2212";
}

.faq__answer {
  padding: 0 0 1.25rem;
}

.faq__answer p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
}

/* --- Footer --- */

.footer {
  background: #07274c;
  color: #7a95b0;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer__brand {
  display: block;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer__contact p {
  margin-bottom: 0.25rem;
}

.footer__contact a {
  color: #7a95b0;
}

.footer__contact a:hover {
  color: #ffffff;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__nav a {
  color: #7a95b0;
  font-size: 0.85rem;
}

.footer__nav a:hover {
  color: #ffffff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
}

/* --- Page (Privacy, etc.) --- */

.page {
  padding: 4rem 0;
  background: #ffffff;
}

.page__title {
  font-size: 2rem;
  font-weight: 700;
  color: #07274c;
  margin-bottom: 2rem;
}

.page__content {
  max-width: 700px;
  line-height: 1.7;
  color: #444444;
}

.page__content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #07274c;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page__content p {
  margin-bottom: 1rem;
}

.page__content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page__content li {
  margin-bottom: 0.35rem;
}

/* --- Hero CTA cluster + trust row (Chunk 2 #1) --- */

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.hero__phone {
  color: #b0c4d8;
  font-weight: 500;
}

.hero__phone:hover {
  color: #ffffff;
}

.hero__cta-note {
  font-size: 0.9rem;
  color: #b0c4d8;
  margin-top: 0.75rem;
}

.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: #cdddec;
}

.hero__trust li::before {
  content: "\2713";
  color: var(--accent-light);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* --- Accessibility & polish (Chunk 2 #8) --- */

/* Default outline: --accent clears 3:1 against both #ffffff (4.69:1) and the
   darkest section bg #07274c (3.19:1), plus every light section tint.
   --accent-hover and the link color were also tried but both fail the
   #07274c side (2.42:1 and 1.62:1 respectively — below the 3:1 minimum). */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --accent-light was designed for the dark hero and only clears 3:1 on dark
   backgrounds (6.81:1 on #07274c, 4.89:1 on the nav's #0f3f6e, 4.20:1 on the
   cta-band's #0d4a7a) — it fails badly on white/light sections (2.20:1), so
   scope it to the dark containers instead of using it as the global default. */
.hero :focus-visible,
.nav :focus-visible,
.footer :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--accent-light);
}

/* Tap targets closer to the WCAG 24px minimum */
.nav__links a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
}

.footer__nav a {
  display: inline-block;
  padding: 0.35rem 0;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .hero__headline {
    font-size: 1.75rem;
  }

  .hero__subheadline {
    font-size: 1.05rem;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero__logo img {
    height: 80px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact__wrapper {
    grid-template-columns: 1fr;
  }

  .contact__info {
    text-align: center;
  }

  .nav__links a {
    margin-left: 1rem;
    font-size: 0.8rem;
  }

  .footer__grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer__nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-band__headline {
    font-size: 1.25rem;
  }
}
