/* Dvaara Design Studio — version 1 (faithful port of the original Wix site).
   Measurements mirror the Wix desktop layout at 1440px wide; below 900px the
   layout switches to the mobile arrangement. */

:root {
  --cream: #FFF8F1;
  --tan: #E0BE9A;
  --brown: #5B4D43;
  --ink: #000;
  --f-head: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-story: 'Fahkwang', 'Helvetica Neue', Arial, sans-serif;
  --f-btn: 'Marmelad', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
[id] { scroll-margin-top: 20px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; background: var(--cream); padding: 8px 12px; z-index: 100; }

.wrap { width: min(1200px, 100% - 80px); margin-inline: auto; }

.display {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;
  margin: 0;
}

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--brown);
  border-radius: 100px;
  background: transparent;
  color: var(--brown);
  font-family: var(--f-btn);
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover, .btn:focus-visible { background: var(--brown); color: var(--cream); }

/* Header -------------------------------------------------------------- */
.site-header { height: 82px; }
.bar {
  position: relative;
  width: min(1220px, 100% - 60px);
  height: 74px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink);
}
.logo { position: absolute; left: 0; top: 14px; }
.logo img { width: 133px; height: 73px; object-fit: cover; }
.nav { position: absolute; right: 0; top: 29px; display: flex; }
.nav a { padding: 0 15px; font-size: 18px; line-height: 30px; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--brown); }
.menu-toggle { display: none; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.mobile-menu nav a { font-family: var(--f-head); font-size: 27px; line-height: 1.2; }
.mobile-menu nav a.is-active { color: var(--brown); }
.menu-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; color: var(--ink);
}

/* Hero ---------------------------------------------------------------- */
.hero { padding: 91px 0 100px; }
.hero-img { width: 100%; aspect-ratio: 1200 / 560; object-fit: cover; margin-top: 32px; background: var(--tan); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-top: 36px; }
.hero-foot p { max-width: 774px; }

/* Services ------------------------------------------------------------ */
.tan { background: var(--tan); }
.services { padding: 83px 0 85px; }
.services-intro {
  display: grid;
  grid-template-columns: 411px 1fr;
  column-gap: 15px;
  margin-top: 69px;
  padding-left: 10px;
}
.services-intro img { width: 411px; height: 232px; object-fit: cover; }
.services-intro p { font-family: var(--f-head); font-size: 32px; line-height: 48px; max-width: 726px; margin-top: 4px; }

.service-list { margin-top: 100px; }
.service {
  display: grid;
  grid-template-columns: 336fr 285fr 579fr;
  border-top: 1px solid var(--ink);
  padding: 28px 0 46px;
  font-size: 16px;
  line-height: 24px;
}
.service:last-child { padding-bottom: 0; }
.service h3 { margin: 4px 0 0 -5px; font: inherit; }
.service img { width: 285px; height: 192px; object-fit: cover; margin-top: 6px; }
.service-text { padding-left: 31px; max-width: 531px; }
.service-text p + p { margin-top: 27px; }

/* Story --------------------------------------------------------------- */
.story { padding: 75px 0 55px; }
.story-lead { font-family: var(--f-story); font-size: 32px; line-height: 48px; max-width: 985px; margin-top: 58px; }
.story-body { margin-left: 260px; margin-top: 73px; }
.story-body > p { max-width: 640px; }
.story-body strong { font-weight: 700; }
.story-body .small { font-size: 16px; }
.story-cta { margin-top: 32px !important; font-size: 16px; line-height: 24px; }
.story-body .btn { height: 48px; margin-top: 30px; }
.story-img { width: 100%; aspect-ratio: 940 / 520; object-fit: cover; margin-top: 32px; }

/* Footer -------------------------------------------------------------- */
.site-footer { padding: 80px 0 158px; }
.footer-grid {
  display: grid;
  grid-template-columns: 749fr 451fr;
  border-top: 1px solid var(--ink);
  padding-top: 23px;
}
.footer-logo { width: 277px; height: 137px; object-fit: cover; }
.footer-contact { padding-top: 23px; }
.footer-contact a:hover { color: var(--brown); }
.ig { display: inline-flex; width: 24px; height: 24px; margin-top: 12px; }
.ig svg { width: 24px; height: 24px; }

.newsletter { margin-top: 72px; }
.newsletter h2 { font-family: var(--f-head); font-weight: 400; font-size: 32px; line-height: 48px; max-width: 320px; margin: 0; }
.newsletter label { display: block; margin-top: 36px; font-size: 16px; line-height: 16px; }
.nl-row { display: flex; gap: 10px; margin-top: 9px; }
.nl-row input { width: 290px; }
.nl-row .btn { width: 150px; height: 48px; background: var(--cream); }
.nl-row .btn:hover { background: var(--brown); }

/* Form fields (shared) ------------------------------------------------- */
.line-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 300 16px/24px var(--f-body);
  outline: none;
}
.line-input:focus { border-bottom-color: var(--brown); box-shadow: 0 1px 0 var(--brown); }
textarea.line-input { height: 98px; padding-top: 12px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: 16px; line-height: 24px; }

/* Contact page ---------------------------------------------------------- */
.contact { padding: 79px 0 78px; }
.kicker { font-size: 22px; line-height: 33px; margin-top: 56px; }
.contact-lead { font-family: var(--f-head); font-size: 32px; line-height: 48px; max-width: 900px; margin-top: 36px; }
.contact-form { margin: 84px 0 0 250px; max-width: 940px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; row-gap: 41px; }
.field label { display: block; font-size: 16px; line-height: 16px; }
.field .line-input { margin-top: 16px; }
.field-full { grid-column: 1 / -1; }
.contact-form .btn { width: 470px; height: 48px; margin-top: 70px; }

/* Tablet: keep the desktop arrangement but let it breathe ---------------- */
@media (max-width: 1240px) {
  .services-intro { grid-template-columns: 34% 1fr; }
  .services-intro img { width: 100%; height: auto; aspect-ratio: 411 / 232; }
  .service img { width: 100%; height: auto; aspect-ratio: 285 / 192; }
  .story-body { margin-left: 21.6%; }
  .contact-form { margin-left: 20.8%; }
  .contact-form .btn { width: 50%; }
}

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 900px) {
  body { font-size: 16px; line-height: 26px; }
  .wrap { width: calc(100% - 48px); }
  .display { font-size: 38px; }

  .site-header { height: 72px; }
  .bar { width: 100%; height: 72px; border-bottom: 0; }
  .logo { left: 50%; top: 8px; transform: translateX(-50%); }
  .logo img { width: 102px; height: 56px; }
  .nav { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    position: absolute; right: 14px; top: 14px;
    width: 44px; height: 44px; padding: 8px; border: 0; background: none; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); }

  .hero { padding: 40px 0 64px; }
  .hero-img { width: calc(100% + 48px); max-width: none; margin-left: -24px; aspect-ratio: 4 / 3; }
  .hero-foot { flex-direction: column; gap: 28px; margin-top: 28px; }

  .services { padding: 56px 0 48px; }
  .services-intro { grid-template-columns: 1fr; row-gap: 24px; margin-top: 32px; padding-left: 0; }
  .services-intro p { font-size: 20px; line-height: 30px; margin-top: 0; }
  .service-list { margin-top: 56px; }
  .service { grid-template-columns: 1fr; row-gap: 20px; padding: 24px 0 44px; font-size: 15px; line-height: 24px; }
  .service h3 { margin: 0; }
  .service img { margin-top: 0; }
  .service-text { padding-left: 0; }
  .service-text p + p { margin-top: 20px; }

  .story { padding: 56px 0 48px; }
  .story-lead { font-size: 22px; line-height: 34px; margin-top: 28px; }
  .story-body { margin: 36px 0 0; }
  .story-body > p { font-size: 15px; line-height: 25px; }
  .story-img { aspect-ratio: 4 / 3; }

  .site-footer { padding: 48px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { width: 160px; height: 79px; }
  .footer-contact { padding-top: 8px; font-size: 16px; line-height: 26px; }
  .newsletter { margin-top: 48px; }
  .newsletter h2 { font-size: 26px; line-height: 36px; }
  .newsletter label { margin-top: 24px; }
  .nl-row { flex-direction: column; gap: 20px; }
  .nl-row input { width: 100%; }

  .contact { padding: 40px 0 56px; }
  .kicker { font-size: 18px; margin-top: 28px; }
  .contact-lead { font-size: 22px; line-height: 34px; margin-top: 28px; }
  .contact-form { margin: 48px 0 0; }
  .form-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .contact-form .btn { width: 60%; margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
