@font-face {
  font-family: Cairo;
  src: url("assets/Cairo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Cairo;
  src: url("assets/Cairo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --forest: #123f36;
  --green: #245c48;
  --muted: #4d655b;
  --paper: #f8f7f3;
  font: 100%/1.8 Cairo, Tahoma, sans-serif;
  color: var(--forest);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .3em; }
a:focus-visible { outline: 3px solid #a25024; outline-offset: 4px; }
.wrap { width: min(75rem, 90%); margin-inline: auto; }
header, nav, .brand, .foot { display: flex; align-items: center; }
header { justify-content: space-between; padding-block: 1.2rem; border-bottom: 1px solid #d1dcd3; }
.brand { gap: .4rem; font-size: 1.85rem; font-weight: 700; text-decoration: none; }
nav { gap: clamp(1rem, 3vw, 2.6rem); flex-wrap: wrap; }
header nav a { text-decoration: none; }
header nav a:hover { text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.65rem, 5vw, 4.75rem);
}
h1 { font-size: clamp(2.5rem, 4.5vw, 4.15rem); line-height: 1.45; }
h1 span { color: var(--green); }
.intro > p:first-of-type { max-width: 31rem; margin: 1.35rem 0 1.7rem; font-size: 1.17rem; color: var(--muted); }
.button {
  display: inline-block;
  background: var(--forest);
  color: white;
  padding: .7rem 1.6rem;
  border-radius: .85rem;
  text-decoration: none;
  font-weight: 700;
}
.button:hover { background: #26624e; }
.availability {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .7rem;
  font-size: .9rem;
  color: var(--muted);
}
.availability svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--green);
  fill: currentColor;
}
.hero-phones {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.16;
  border-radius: clamp(1.35rem, 3vw, 2.7rem);
  background:
    radial-gradient(ellipse at 87% 92%, #f4c39b 0%, transparent 53%),
    radial-gradient(ellipse at 13% 8%, #dceada 0%, transparent 65%),
    #a5c5ad;
}
.hero-phones::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid #fff7;
  border-radius: 50% 50% 34% 34%;
  transform: rotate(-20deg);
}
.hero-phones .phone {
  position: absolute;
  width: 32%;
  background: #1a302a;
  box-shadow: 0 0 0 1px #557365, 0 .8rem 1.65rem #0b2d2566;
}
.hero-phone-left { top: 52%; left: 27%; transform: translate(-50%, -50%) rotate(-14deg); }
.hero-phone-right { top: 51%; left: 73%; transform: translate(-50%, -50%) rotate(13deg); }
.hero-phone-front { top: 49%; left: 50%; transform: translate(-50%, -50%) rotate(-2deg) scale(1.08); }
.tour { background: #fff; padding-block: clamp(2.8rem, 5vw, 4.6rem); }
.tour-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 1.4rem; }
.tour-swipe-hint { display: none; }
#gallery-motion {
  padding: .45rem .8rem;
  border: 1px solid #c7d6cc;
  border-radius: .75rem;
  background: white;
  color: var(--green);
  font: 700 .9rem Cairo, sans-serif;
  cursor: pointer;
}
#gallery-motion:hover { background: #eef4ed; }
#gallery-motion:focus-visible, .screens:focus-visible { outline: 3px solid #a25024; outline-offset: 4px; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.5; }
.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(9.65rem, 21vw, 15rem);
  gap: clamp(1rem, 3vw, 2.7rem);
  padding: clamp(1.05rem, 3.2vw, 2.75rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #719280 #e4ece3;
  border: 1px solid #d4e0d3;
  border-radius: clamp(1.35rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at 84% 4%, #f5e4d3, transparent 46%),
    radial-gradient(ellipse at 20% 48%, #c9dfd1, transparent 58%),
    #edf1e7;
}
.screens figure {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .9rem;
  margin: 0;
  text-align: center;
}
.phone {
  border-radius: clamp(1rem, 3vw, 2.2rem);
  width: min(100%, 16rem);
  padding: clamp(.23rem, .55vw, .45rem);
  background: #193d32;
  box-shadow: 0 0 0 1px #416357, 0 .8rem 1.4rem #193d3230;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(.75rem, 2.5vw, 1.75rem);
}
.screens figcaption { font-size: clamp(.9rem, 1.45vw, 1.12rem); font-weight: 700; line-height: 1.5; }
footer { background: var(--forest); color: #fff; padding-block: 3rem; }
footer h2 { font-size: 1.5rem; }
footer p { color: #d9e9df; margin-top: .4rem; }
.foot { justify-content: space-between; flex-wrap: wrap; gap: 1.6rem; }
@media (max-width: 46rem) {
  .wrap { width: min(100% - 2rem, 34rem); }
  header { gap: .75rem; padding-block: .55rem; }
  header nav { gap: .25rem .85rem; font-size: .88rem; }
  header a { display: flex; align-items: center; min-height: 44px; }
  .brand { font-size: 1.35rem; gap: .2rem; }
  .brand img { width: 2rem; height: 2rem; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.45rem;
    padding-block: 1.8rem 2rem;
    text-align: center;
  }
  h1 { font-size: clamp(1.8rem, 8.7vw, 2.65rem); line-height: 1.3; }
  .intro > p:first-of-type {
    max-width: 24rem;
    margin: .9rem auto 1.1rem;
    font-size: 1rem;
    line-height: 1.75;
  }
  .intro .button { width: min(100%, 23rem); padding-block: .65rem; }
  .availability { justify-content: center; margin-top: .55rem; }
  .hero-phones { aspect-ratio: 1.28; }
  .hero-phone-left { top: 51%; left: 26%; transform: translate(-50%, -50%) rotate(-11deg) scale(.88); }
  .hero-phone-right { top: 51%; left: 74%; transform: translate(-50%, -50%) rotate(11deg) scale(.88); }
  .hero-phone-front { top: 50%; transform: translate(-50%, -50%) rotate(-2deg); }

  .tour { padding-block: 1.9rem 2.25rem; }
  .tour-heading { display: block; margin-bottom: .85rem; }
  .tour-heading h2 { font-size: 1.55rem; }
  .tour-swipe-hint { display: block; margin-top: .2rem; color: var(--muted); font-size: .88rem; }
  #gallery-motion { display: none; }
  .screens {
    grid-auto-columns: min(76%, 16rem);
    gap: .9rem;
    padding: .8rem;
    scroll-padding-inline: .8rem;
    scroll-snap-type: inline mandatory;
  }
  .screens figure { gap: .55rem; scroll-snap-align: start; }

  footer { padding-block: 1.8rem 2.15rem; }
  footer h2 { font-size: 1.25rem; }
  footer p { font-size: .9rem; }
  .foot { display: grid; justify-content: stretch; gap: .85rem; }
  .foot nav { display: grid; gap: 0; }
  .foot nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid #ffffff38;
    font-size: .9rem;
    text-decoration: none;
  }
  .foot nav a:hover { text-decoration: underline; }
}
