:root {
  --blue: #0078ae;
  --blue-deep: hsl(198.62, 100%, 24%);
  --blue-soft: hsl(198.62, 100%, 96%);
  --light: hsl(184, 30.61%, 90.39%);
  --light-strong: hsl(184, 30.61%, 84%);
  --green: #3b7d23;
  --green-deep: #2e6119;
  --ink: #15222c;
  --body: #42545f;
  --white: #ffffff;
  --heading: 'Manrope', system-ui, sans-serif;
  --text: 'Nunito Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--text);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--heading);
  line-height: 1.15;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s ease calc(var(--i, 0) * 90ms),
    transform 0.7s cubic-bezier(0.22, 0.75, 0.25, 1) calc(var(--i, 0) * 90ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.brand img {
  height: 48px;
  width: auto;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navlinks a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.navlinks a:not(.btn) {
  color: var(--body);
}

.navlinks a:not(.btn):hover {
  color: var(--blue);
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s;
}

.btn:hover {
  background: var(--green);
}

.hg {
  color: var(--green);
}

.hb {
  color: var(--blue);
}

@media (max-width: 640px) {
  .navlinks {
    gap: 0;
  }
  .navlinks a:not(.btn) {
    display: none;
  }
}

.hero {
  position: relative;
  min-height: clamp(540px, 78vh, 780px);
  display: flex;
  align-items: center;
  background: url('images/hero.webp') center 30% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    hsla(198.62, 100%, 24%, 0.88) 0%,
    hsla(198.62, 100%, 30%, 0.72) 45%,
    hsla(198.62, 100%, 34%, 0.45) 100%
  );
}

.hero .wrap {
  position: relative;
  width: 100%;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-panel {
  animation: panelIn 0.8s cubic-bezier(0.22, 0.75, 0.25, 1) both;
  background: rgba(255, 255, 255, 0.97);
  width: min(440px, 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(30px, 4vw, 52px);
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0, 30, 45, 0.35);
}

.hero-panel h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.hero-panel p {
  color: var(--body);
  font-size: 1rem;
}

.hero-panel .btn {
  align-self: flex-start;
}

@media (max-width: 880px) {
  .hero-panel {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .hero-panel {
    aspect-ratio: auto;
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel {
    animation: none;
  }
}

section {
  padding: 92px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 10px;
}

.section-head p {
  color: var(--body);
  margin-top: 14px;
}

.services {
  background: var(--light);
}

.services .section-head {
  margin-inline: auto;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--light-strong);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s cubic-bezier(0.22, 0.75, 0.25, 1),
    box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(9, 58, 78, 0.16);
  border-color: var(--green);
}

.card-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.75, 0.25, 1);
}

.card:hover .card-photo img {
  transform: scale(1.04);
}

.card-body {
  position: relative;
  padding: 30px 26px;
  flex: 1;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--blue);
}

.card p {
  color: var(--body);
  font-size: 0.94rem;
}

.cards.rows-mode {
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.cards.rows-mode .card {
  display: grid;
  grid-template-columns: clamp(260px, 30vw, 340px) minmax(0, 1fr);
  align-items: stretch;
}

.cards.rows-mode .card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 340px);
}

.cards.rows-mode .card-photo {
  aspect-ratio: auto;
  position: relative;
  min-height: 220px;
  height: auto;
}

.cards.rows-mode .card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cards.rows-mode .card:nth-child(even) .card-photo {
  order: 2;
}

.cards.rows-mode .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 38px;
}

@media (max-width: 880px) {
  .cards.rows-mode .card {
    grid-template-columns: 1fr;
  }
  .cards.rows-mode .card:nth-child(even) .card-photo {
    order: 0;
  }
  .cards.rows-mode .card-photo {
    aspect-ratio: 3 / 2;
    min-height: 0;
  }
  .section-head,
  .contact-copy h2 {
    text-align: center;
  }
  .section-head {
    margin-inline: auto;
  }
  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

#deliver .section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

#deliver .section-head p {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--ink);
  line-height: 1.45;
  margin-top: 20px;
}

.style-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.toggle-btn {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--light-strong);
  background: var(--white);
  color: var(--body);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.toggle-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.toggle-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.deliver-flat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 34px;
}

.deliver-flat[hidden],
.deliver-grid[hidden] {
  display: none;
}

.deliver-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
  align-items: start;
}

.deliver-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deliver-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  text-align: center;
}

.deliver {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--blue-soft);
  border: 1px solid var(--light);
  border-radius: 10px;
  padding: 16px 20px;
}

.deliver .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--green);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.deliver .tick svg {
  width: 13px;
  height: 13px;
}

.deliver p {
  font-size: 0.93rem;
  color: var(--body);
}

@media (max-width: 880px) {
  .deliver-flat,
  .deliver-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .deliver-group h3 {
    text-align: center;
  }
}

.contact {
  background: var(--white);
  border-top: 1px solid var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.contact-copy p {
  color: var(--body);
  margin-top: 14px;
  max-width: 44ch;
}

.contact-points {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-points li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
}

.contact-points .pt {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--light);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.contact-points .pt svg {
  width: 18px;
  height: 18px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--light-strong);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 14px 36px rgba(9, 58, 78, 0.08);
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.83rem;
  margin: 16px 0 6px;
}

label:first-child {
  margin-top: 0;
}

input,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--light-strong);
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--blue);
  border-color: transparent;
  background: var(--white);
}

.form-note {
  display: none;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 700;
}

.form-note.show {
  display: block;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    text-align: center;
  }

  .contact-copy p {
    margin-inline: auto;
  }

    .contact-points {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }

  .contact-points .pt {
    display: none;
  }

  .contact-points li {
    font-family: var(--heading);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--light-strong);
  }
}

footer {
  background: var(--blue-deep);
  color: hsla(198, 60%, 90%, 0.85);
  padding: 30px 0;
  font-size: 0.88rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--white);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
