/* =========================================================
   Sweet Keats — styles
   Colors and type pulled from the Figma file.
   ========================================================= */

/* Optional: drop your licensed Boldiva font files into /fonts
   and these will be used. Otherwise "Titan One" is the fallback. */
@font-face {
  font-family: "Boldiva";
  src: url("fonts/Boldiva.woff2") format("woff2"),
       url("fonts/Boldiva.otf") format("opentype");
  font-display: swap;
}

:root {
  --yellow: #fdde81;
  --blue: #1679b3;
  --light-blue: #b0cfec;
  --purple: #a981ab;
  --plum: #3c1b2e;
  --cream: #faf7ef;
  --ink: #2f3b41;
  --white: #ffffff;

  /* Avenir ships on Macs/iOS; Nunito Sans is the closest free fallback. */
  --font-body: "Avenir", "Avenir Next", "Nunito Sans", system-ui, sans-serif;
  --font-display: "Boldiva", "Titan One", "Avenir Black", sans-serif;

  --radius-lg: 80px;
  --gutter: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--plum);
  background: var(--yellow);
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

figure { margin: 0; }

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

/* ---------- Shared type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem); /* 96px at desktop */
  line-height: 1.05;
  margin: 0;
  text-align: center;
}
.display--dark   { color: var(--plum); }
.display--yellow { color: var(--yellow); }
.display--blue   { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  padding: 7px 30px;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

.btn--blue       { background: var(--blue);  color: var(--white); }
.btn--cream      { background: var(--cream); color: var(--blue); }
.btn--cream-dark { background: var(--cream); color: var(--plum); }
.btn--dark       { background: var(--plum);  color: var(--cream); }

/* ---------- Header ---------- */
.site-header { background: var(--yellow); padding-top: 79px; }

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-left: 79px;
  padding-right: 75px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 52px;
  font-weight: 800;
  font-size: 20px;
  color: var(--blue);
}
.nav__links--right { justify-content: flex-end; gap: 36px; }
.nav__links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__logo img { width: 268px; }

/* ---------- Hero ---------- */
.hero { background: var(--yellow); padding: 131px 0 117px; }

.hero__tagline,
.hero__photos {
  display: grid;
  grid-template-columns: repeat(3, 336px);
  justify-content: center;
  gap: 20px;
}
.hero__tagline {
  margin: 0 0 2px;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.35;
  color: var(--blue);
}
.hero__tagline span:nth-child(1) { padding-left: 5px; }
.hero__tagline span:nth-child(3) { text-align: right; }

.photo-frame {
  background: var(--light-blue);
  padding: 5px 4px 4px 5px;
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 327 / 419;
  object-fit: cover;
  background: var(--cream); /* shows until images are added */
}

/* ---------- Intro ---------- */
.intro { background: var(--blue); color: var(--white); padding: 68px 0 69px; }
.intro__inner {
  max-width: 767px;
  text-align: center;
  font-size: 18px;
  line-height: 22px;
}
.intro__inner p { margin: 0 0 22px; }
.intro__inner p:last-of-type { margin-bottom: 41px; }

/* ---------- Services ---------- */
.services {
  background: var(--light-blue);
  padding: 96px 0 102px;
  text-align: center;
}
.services__list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  column-gap: 133px;
  row-gap: 45px;
  margin: 80px 0 107px;
  padding-left: 20px;
  text-align: left;
  font-weight: 800;
  font-size: 32px;
  color: var(--plum);
}

/* ---------- About ---------- */
.about { background: var(--yellow); padding: 45px 0 30px; }

.about__card {
  display: grid;
  grid-template-columns: 1fr 443px;
  max-width: 1089px;
  margin: 0 auto;
  background: var(--purple);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about__text {
  padding: 66px 46px 63px 63px;
  text-align: center;
  color: var(--cream);
  font-size: 24px;
  line-height: 26px;
}
.about__text .display { margin-bottom: 12px; }
.about__text p { margin: 0 0 26px; }
.about__text .btn { margin-top: 30px; }

.about__photos { display: grid; grid-template-rows: repeat(3, 1fr); }
.about__photos img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  background: var(--light-blue);
}

/* ---------- Sample menus ---------- */
.menus {
  background: var(--light-blue);
  padding: 185px 0 62px;
  overflow: hidden;
}
.menus__inner {
  position: relative;
  display: grid;
  grid-template-columns: 106px 1fr;
  column-gap: 137px;
  padding-left: 74px;
  padding-right: 0;
}
.menus__title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  align-self: start;
  line-height: 1;
}
.menus__track {
  display: flex;
  gap: 68px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-right: calc(-1 * max(0px, (100vw - 1200px) / 2)); /* bleed off the right edge */
  padding-right: 120px;
}
.menus__track::-webkit-scrollbar { display: none; }

.menu-card {
  flex: 0 0 464px;
  min-height: 648px;
  scroll-snap-align: start;
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: 43px 40px 40px;
  text-align: center;
  color: var(--plum);
}
.menu-card h3 {
  margin: 0 0 28px;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.3;
}
.menu-item { max-width: 307px; margin: 0 auto 24px; }
.menu-item h4 {
  margin: 0;
  font-weight: 800;
  font-size: 16.6px;
  line-height: 1.37;
}
.menu-item p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.37;
}

.menus__arrow {
  position: absolute;
  right: 27px;
  bottom: -62px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.menus__arrow:hover { transform: translateX(4px); }

/* ---------- Contact ---------- */
.contact { background: var(--purple); padding: 47px 0 46px; }

.contact__card {
  max-width: 1089px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 50px 24px 30px;
}
.contact__form {
  display: grid;
  grid-template-columns: 273px 273px;
  justify-content: center;
  column-gap: 122px;
  row-gap: 20px;
  max-width: 668px;
  margin: 22px auto 0;
}
.field { display: flex; flex-direction: column; gap: 3px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-weight: 800;
  font-size: 14px;
  line-height: 24px;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--plum);
  border-radius: 30px;
  padding: 6px 16px;
}
.field textarea { border-radius: 20px; min-height: 294px; resize: vertical; padding: 12px 16px; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.contact__submit { grid-column: 1 / -1; justify-self: center; margin-top: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  padding-top: 113px;
  overflow: hidden;
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: 23px;
  margin-bottom: 113px;
}
.footer__social a:hover { opacity: .8; }
.footer__logo { width: 100%; max-width: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .hero__tagline,
  .hero__photos { grid-template-columns: repeat(3, 1fr); }
  .nav { padding-left: var(--gutter); padding-right: var(--gutter); }
  .menus__inner { padding-left: var(--gutter); column-gap: 48px; }
}

@media (max-width: 860px) {
  .site-header { padding-top: 32px; }
  .nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
  .nav__logo { order: -1; }
  .nav__links, .nav__links--right { gap: 24px; font-size: 18px; justify-content: center; }
  .nav { display: flex; flex-wrap: wrap; justify-content: center; }
  .nav__logo { flex-basis: 100%; display: flex; justify-content: center; }

  .hero { padding: 48px 0; }
  .hero__tagline {
    grid-template-columns: 1fr;
    text-align: center;
    font-size: 30px;
    gap: 0;
    margin-bottom: 20px;
  }
  .hero__tagline span { padding: 0 !important; text-align: center !important; }
  .hero__photos { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .services { padding: 64px 0; }
  .services__list {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
    row-gap: 20px;
    margin: 40px 0 56px;
    font-size: 26px;
  }

  .about__card { grid-template-columns: 1fr; border-radius: 48px; }
  .about__text { padding: 48px 24px; font-size: 19px; line-height: 1.4; }
  .about__photos img { min-height: 0; aspect-ratio: 443 / 379; }

  .menus { padding: 64px 0 80px; }
  .menus__inner { grid-template-columns: 1fr; row-gap: 32px; }
  .menus__title { writing-mode: horizontal-tb; transform: none; white-space: normal; }
  .menus__track { gap: 20px; padding-right: var(--gutter); margin-right: calc(-1 * var(--gutter)); }
  .menu-card { flex-basis: min(85vw, 464px); min-height: 0; border-radius: 48px; padding: 36px 24px; }
  .menus__arrow { bottom: -64px; right: var(--gutter); }

  .contact__card { border-radius: 48px; padding: 40px 20px 28px; }
  .contact__form { grid-template-columns: 1fr; column-gap: 0; }

  .site-footer { padding-top: 64px; }
  .footer__social { margin-bottom: 64px; }
}
