:root {
  --cream: #efedcf;
  --green: #2f5052;
  --red: #9d493f;
  --brown: #4d261f;
  --ink: #f5f0d0;
  --text-dark: #344142;
  --header-height: 92px;
  --topbar-full-height: 342px;
  --topbar-compact-height: 150px;
  --max-width: 1060px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.22em;
}

.site-header {
  position: relative;
  background: var(--green);
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-full-height);
  padding: 0.45rem clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: rgba(47, 80, 82, 0.92);
  border-top: 20px solid var(--red);
  backdrop-filter: blur(2px);
  overflow: hidden;
  transition: height 720ms ease, padding 720ms ease, border-top-width 720ms ease, background-color 720ms ease;
}

.brand {
  width: min(360px, 50vw);
  display: block;
  transition: width 720ms ease;
}

.brand picture {
  display: block;
}

.brand img {
  width: 100%;
  max-height: 150px;
  height: auto;
  margin: 40px auto 2px auto;
  object-fit: contain;
  transition: margin 720ms ease, max-height 720ms ease;
}

.site-nav {
  position: absolute;
  top: 12px;
  right: clamp(1rem, 4vw, 3rem);
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 20px;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: top 720ms ease, font-size 720ms ease;
}

.topbar.is-compact {
  height: var(--topbar-compact-height);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  border-top-width: 12px;
  background: rgba(47, 80, 82, 0.96);
}

.topbar.is-compact .brand {
  width: min(240px, 34vw);
}

.topbar.is-compact .brand img {
  width: 100%;
  margin-top: 14px;
  margin-bottom: 0;
  max-height: 88px;
}

.topbar.is-compact .site-nav {
  top: 12px;
  font-size: 19px;
}

.site-nav a {
  text-decoration: none;
  opacity: 0.92;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(239, 237, 207, 0.45);
  background: transparent;
  border-radius: 0;
  padding: 0.7rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: clamp(390px, 54vw, 920px);
  margin-top: var(--header-height);
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center 70%;
}

section {
  scroll-margin-top: var(--header-height);
}

.section-light {
  background: var(--cream);
  color: var(--text-dark);
}

.intro {
  padding: 7.5rem 3.5rem;
  text-align: center;
}

.intro h1 {
  /*max-width: 780px;*/
  margin: 0 auto 3.5rem auto;
  font-size: 45px;
  line-height: 1.35;
  font-style: italic;
  font-weight: 400;
}

.intro p {
  /*max-width: 680px;*/
  margin: 0 auto;
  font-size: 30px;
  line-height: 1.65;
  font-style: italic;
}

.section-green {
  background: var(--green);
}

.section-red {
  background: var(--red);
}

.section-inner {
  /*max-width: var(--max-width);*/
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 1.25rem;
  text-align: center;
}
h1,
h2 {
  margin: 0 auto 3.5rem auto;
  font-size: 45px;
  line-height: 1.35;
  font-style: italic;
  font-weight: 400;
}
h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.service-list {
  /*margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 35px;
  line-height: 1.65;
  letter-spacing: 0.025em;*/
  list-style: none;
  margin: 0 auto;
  padding: 0;
  font-size: 30px;
  line-height: 1.65;
  font-style: italic;
}

.service-list li + li {
  margin-top: 0.15rem;
}

.contact {
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
  text-align: center;
}

#contact-title {
  margin-bottom: 2rem;
}

.contact-card {
  max-width: 520px;
  margin: 0 auto;
  font-size: 25px;
  letter-spacing: 0.03em;
}

.contact-card h2 {
  margin-bottom: 0.25rem;
}

.contact-card h3 {
  margin-top: 2rem;
  margin-bottom: 0.25rem;
  font-size: 25px;
  font-weight: 700;
}

.contact-card p,
.contact-card address {
  margin: 0;
  font-style: normal;
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
}

.email {
  font-style: italic;
}

@media (max-width: 760px) {
  :root {
    --header-height: 74px;
    --topbar-full-height: 77px;
    --topbar-compact-height: 70px;
  }

  .topbar {
    height: var(--topbar-full-height);
    padding: 0.45rem 0.9rem 0.6rem;
    justify-content: space-between;
    gap: 0.75rem;
    border-top-width: 8px;
  }

  .brand {
    width: min(220px, calc(100vw - 96px));
    flex: 0 1 auto;
  }

  .brand img {
    width: 100%;
    max-height: 52px;
    margin: 0;
    object-fit: contain;
  }

  .topbar.is-compact {
    height: var(--topbar-compact-height);
    padding-top: 0.35rem;
    padding-bottom: 0.45rem;
    border-top-width: 6px;
  }

  .topbar.is-compact .brand {
    width: min(204px, calc(100vw - 96px));
  }

  .topbar.is-compact .brand img {
    width: 100%;
    max-height: 48px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 44px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(47, 80, 82, 0.98);
    border-bottom: 1px solid rgba(239, 237, 207, 0.25);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
  }

  .topbar.is-compact .site-nav {
    top: var(--topbar-compact-height);
    font-size: 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav li {
    width: 100%;
    text-align: center;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  .hero {
    min-height: min(72vh, 430px);
    margin-top: var(--header-height);
    background-size: cover;
    background-position: 55% center;
  }

  .intro {
    padding: 4rem 1.15rem 4.5rem;
  }

  .intro h1,
  h2,
  h1 {
    margin-bottom: 2rem;
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1.18;
  }

  .intro p {
    max-width: 32rem;
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    line-height: 1.45;
  }

  .section-inner {
    padding: 4rem 1.15rem 4.5rem;
  }

  .service-list {
    max-width: 34rem;
    font-size: clamp(1.18rem, 5.3vw, 1.55rem);
    line-height: 1.45;
  }

  .service-list li + li {
    margin-top: 0.85rem;
  }

  .contact {
    min-height: auto;
    padding: 4rem 1.15rem 4.5rem;
  }

  .contact-card {
    max-width: 100%;
    font-size: clamp(1.12rem, 5vw, 1.35rem);
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .contact-card h3 {
    margin-top: 1.6rem;
    font-size: clamp(1.15rem, 5vw, 1.35rem);
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 58vh;
    background-position: 52% center;
  }

  .intro h1,
  h2,
  h1 {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
}
