:root {
  --navy: #12294a;
  --navy-deep: #0f2440;
  --blue: #2c60a0;
  --text: #1c2b45;
  --muted: #5b6577;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --border: #e6e8ec;
  --radius: 14px;
  --container: 1216px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  flex-shrink: 0;
}

/* ---------- Accessibility: skip link & focus visibility ---------- */
.skip-link {
  position: absolute;
  top: -1000px;
  right: 12px;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

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

/* Visible focus indicator for keyboard users across all interactive
   elements. Applied via :focus-visible so mouse clicks don't show a ring,
   but Tab navigation always does. Uses a dual-tone ring (dark outline +
   white halo) so the indicator keeps at least 3:1 contrast whether it
   lands on a light background (white/light cards) or a dark one
   (navy header buttons, navy CTA section) — a single flat color can't
   clear 3:1 against both. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn__part:focus-visible {
  outline: 3px solid #12294a;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #ffffff;
  border-radius: 6px;
}

.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
  outline: 3px solid #12294a;
  outline-offset: 1px;
  box-shadow: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

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

.btn--dark {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 41, 74, .25);
}

.btn--dark:hover {
  background: #0c1f3a;
}

.btn--sm {
  padding: 13px 22px;
  font-size: 14px;
  border-radius: 14px;
}

.btn--lg {
  padding: 19px 30px;
  font-size: 17px;
  border-radius: 999px;
}

.btn__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, .3);
}

.btn__phone {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

/* Grouped button: two independently-clickable parts (quote request /
   direct call) inside one pill-shaped button so it still reads as a
   single control. */
.btn--group {
  padding: 0;
  overflow: hidden;
}

.btn--group:hover {
  transform: none;
}

.btn__part {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 19px 24px;
  color: inherit;
  transition: background .2s ease;
}

.btn__part:hover {
  background: rgba(255, 255, 255, .08);
}

.btn--group .btn__phone {
  padding: 19px 24px;
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  padding: 15px 28px;
  font-size: 15px;
}

.btn--outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--navy);
  padding: 16px 34px;
  font-size: 15px;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
  padding: 16px 34px;
  font-size: 15px;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--navy);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  height: 62px;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.header__inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__waves {
  width: 58px;
  height: 30px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
}

.logo__tag {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  transition: color .2s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--blue);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  direction: ltr;
}

/* ---------- Hero ---------- */
/* Desktop / wide: full-bleed photo with a directional gradient lightening
   the text side (no floating box). Mobile: real split layout — photo block
   above a plain white text panel. See @media (max-width: 860px) below. */
.hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(100deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.35) 55%, rgba(255,255,255,.55) 100%),
    url('img/hero.jpg');
  background-size: cover;
  background-position: center 40%;
}

.hero__photo {
  display: none;
}

.hero__content {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 42px;
}

.hero__title {
  font-size: 40px;
  line-height: 1.22;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero__text {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.85;
  color: #16233d;
  font-weight: 600;
  margin-bottom: 30px;
  text-shadow: 0 1px 2px rgba(255,255,255,.5);
}

/* ---------- Features ---------- */
.features {
  background: var(--bg-soft);
  padding: 40px 24px;
}

.features__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.feature {
  text-align: center;
  padding: 6px 22px;
  border-inline-start: 1px solid var(--border);
}

.feature:last-child {
  border-inline-start: none;
}

.feature__icon {
  width: 34px;
  height: 34px;
  color: var(--navy);
  margin-bottom: 14px;
}

.feature__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.feature__text {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  padding: 20px 24px 10px;
  background: #fff;
}

.about__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
}

.about__content {
  padding-inline: 12px 0;
}

.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.eyebrow--center {
  text-align: center;
}

.about__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 22px;
}

.about__text {
  font-size: 14.5px;
  line-height: 2;
  color: #3d4859;
  margin-bottom: 24px;
}

.about__image {
  height: 250px;
  border-radius: 6px;
  background-image: url('img/about.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(18, 41, 74, .12);
}

/* ---------- Solutions ---------- */
.solutions {
  padding: 28px 24px 32px;
  background: #fff;
}

.solutions__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section-head {
  text-align: center;
  margin-bottom: 18px;
}

.section-head__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(18, 41, 74, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(18, 41, 74, .12);
}

.card__img {
  height: 124px;
  background-size: cover;
  background-position: center;
}

.card__img--1 { background-image: url('img/card1.jpg'); }
.card__img--2 { background-image: url('img/card2.jpg'); }
.card__img--3 { background-image: url('img/card3.jpg'); }
.card__img--4 { background-image: url('img/card4.jpg'); }
.card__img--5 { background-image: url('img/card5.jpg'); }

.card__body {
  text-align: center;
  padding: 14px 10px 16px;
  background: var(--bg-soft);
}

.card__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.card__text {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Colors ---------- */
.colors {
  padding: 40px 24px 48px;
  background: var(--bg-soft);
}

.colors__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.colors__intro {
  max-width: 620px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Category images laid out with CSS grid + column-span so the two tall
   charts (linen, events) get a wider column on desktop while the three
   pattern samples share the remaining space; everything stacks to a
   single column on narrow / mobile screens. */
.color-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 30px;
}

.color-cat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(18, 41, 74, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.color-cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(18, 41, 74, .12);
}

.color-cat img {
  display: block;
  width: 100%;
  height: auto;
}

/* the two full charts (pashtan, eventim) are taller — give them more
   breathing room across two columns on wide screens */
.color-cat:nth-child(1),
.color-cat:nth-child(2) {
  grid-row: span 2;
}

.colors__note {
  margin-top: 28px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(90deg, rgba(15, 36, 64, .55), rgba(15, 36, 64, .96) 30%, rgba(15, 36, 64, .96) 70%, rgba(15, 36, 64, .55)),
    url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 48px 24px 56px;
}

.cta__inner {
  max-width: 800px;
  margin: 0 auto;
}

.cta__inner--wide {
  max-width: 940px;
}

.cta__title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta__text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 30px;
}

.cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta__buttons .btn {
  min-width: 178px;
  padding-block: 13px;
}

.cta__buttons .btn--ghost {
  direction: ltr;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  text-align: right;
  margin-top: 8px;
}

.contact-form {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.contact-form__field label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
}

.contact-form__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: -2px;
}

.contact-form__field input,
.contact-form__field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  box-shadow: 0 0 0 2px var(--blue);
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 4px;
  padding: 13px 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  text-align: right;
}

.contact-details__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  padding: 14px 16px;
}

.contact-details__item svg {
  color: #9fc1e8;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  padding: 20px 24px;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .65);
}

.footer__a11y {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__a11y:hover {
  color: #9fc1e8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .header__phone { display: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .features__inner { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .feature:nth-child(3n) { border-inline-start: none; }
}

@media (max-width: 860px) {
  .header { height: auto; }
  .header__inner { flex-wrap: wrap; padding: 12px 20px; justify-content: center; }
  .nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 16px; }

  /* Split layout: photo block stacked above a plain white text panel —
     no gradient/overlay tricks needed since the photo has its own space. */
  .hero {
    display: block;
    background-image: none;
    min-height: 0;
  }
  .hero__photo {
    display: block;
    height: 240px;
    background-image: url('img/hero.jpg');
    background-size: cover;
    background-position: center 42%;
  }
  .hero__content {
    padding: 32px 22px;
    background: #fff;
  }
  .hero__title {
    font-size: 28px;
    color: var(--navy);
  }
  .hero__text {
    color: #4a5568;
    font-weight: 400;
    text-shadow: none;
  }

  .about__inner { grid-template-columns: 1fr; padding: 0; }
  .about__image { order: -1; height: 220px; }
  .solutions__inner { padding: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .color-cats { grid-template-columns: 1fr 1fr; }
  .color-cat:nth-child(1),
  .color-cat:nth-child(2) {
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .features__inner { grid-template-columns: 1fr 1fr; }
  .feature { border-inline-start: none; }
  .cards { grid-template-columns: 1fr; }
  .hero__content { padding: 32px 22px; }
  .hero__title { font-size: 26px; }
  .btn--lg { font-size: 15px; padding: 15px 22px; }
  .contact-form__row { grid-template-columns: 1fr; }
  .color-cats { grid-template-columns: 1fr; }

  .btn--group {
    flex-wrap: wrap;
    width: 100%;
    border-radius: 18px;
  }
  .btn--group .btn__part {
    flex: 1 1 100%;
    justify-content: center;
    padding: 14px 16px;
  }
  .btn--group .btn__divider {
    width: 100%;
    height: 1px;
    align-self: stretch;
  }
  .btn--group .btn__phone {
    padding: 14px 16px;
  }
}
