:root {
  --ink: #1f2328;
  --muted: #5f6673;
  --line: #ddd3bf;
  --paper: rgba(255, 255, 255, 0.9);
  --paper-strong: #ffffff;
  --gold: #d77d00;
  --gold-dark: #634817;
  --blue: #132a99;
  --page: #edf0f2;
  --shadow: 0 24px 60px rgba(31, 35, 40, 0.14);
  --soft-shadow: 0 10px 28px rgba(31, 35, 40, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.95), transparent 30rem),
    radial-gradient(circle at 82% 20%, rgba(215, 125, 0, 0.12), transparent 24rem),
    linear-gradient(135deg, #f8f9f7 0%, var(--page) 46%, #d7dde1 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: #b86600;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  background: var(--paper-strong);
  color: var(--ink);
  border: 2px solid var(--gold);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  padding: 1.25rem;
}

.header-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "secondary brand service"
    "main main main"
    ". phone phone";
  gap: 0.75rem 1.25rem;
  align-items: start;
  padding: 0.9rem 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.brand {
  grid-area: brand;
  display: block;
  width: 382px;
  max-width: 46vw;
  aspect-ratio: 382 / 130;
  overflow: hidden;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.brand img {
  display: block;
  width: 100%;
  max-width: none;
  border: 0;
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: scale(0.97);
  filter: drop-shadow(0 8px 12px rgba(31, 35, 40, 0.12));
}

.site-navigation {
  display: contents;
}

.nav-secondary,
.nav-service,
.nav-main {
  display: flex;
  gap: 0.45rem;
}

.nav-secondary,
.nav-service {
  flex-direction: column;
}

.nav-secondary {
  grid-area: secondary;
  padding-top: 0.9rem;
}

.nav-service {
  grid-area: service;
  justify-self: end;
  padding-top: 1.1rem;
}

.nav-secondary a,
.nav-service a {
  color: #151515;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color 160ms ease;
}

.nav-secondary a::before,
.nav-service a::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

.nav-main {
  grid-area: main;
  align-items: stretch;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 0.35rem;
  background: linear-gradient(180deg, #f7d384, #dba249 48%, #b87d28);
  border: 1px solid rgba(102, 79, 30, 0.35);
  border-radius: 8px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72), 0 8px 20px rgba(102, 79, 30, 0.12);
}

.nav-main a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  color: var(--gold-dark);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-main a:hover,
.nav-main a:focus-visible,
.nav-main a[aria-current="page"] {
  color: #242424;
  background: rgba(255, 255, 255, 0.38);
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a:focus-visible {
  transform: translateY(-1px);
}

.phone-callout {
  grid-area: phone;
  justify-self: end;
  color: #3e3d3f;
  font-size: 1.1rem;
  line-height: 1.25;
}

.phone-callout::before {
  content: "☎";
  margin-right: 0.45rem;
  color: var(--gold);
}

.menu-toggle {
  display: none;
}

.mobile-legal {
  display: none;
}

.page-shell {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 1.25rem auto 5rem;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 680px);
  gap: 2rem;
  align-items: start;
}

.certificate {
  position: sticky;
  top: 1.25rem;
  padding: 2rem 0 0;
  text-align: center;
}

.certificate img {
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.12));
}

.content {
  min-height: 260px;
  padding: clamp(1.3rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.content::after {
  content: "";
  display: block;
  clear: both;
}

.content h1,
.content h2,
.content h3,
.content h4 {
  margin: 0.15rem 0 0.65rem;
  color: #060606;
  line-height: 1.2;
  letter-spacing: 0;
}

.content h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
}

.content h2 {
  margin-top: 1.7rem;
  font-size: 1.45rem;
}

.content h3 {
  margin-top: 1.2rem;
  font-size: 1.2rem;
}

.content h4 {
  margin-top: 1rem;
  font-size: 1rem;
}

.content p,
.content ul,
.content ol,
.content address {
  margin: 0 0 0.8rem;
}

.content address {
  font-style: normal;
}

.content ul,
.content ol {
  padding-left: 1.4rem;
}

.content li + li {
  margin-top: 0.2rem;
}

.content img {
  border: 1px solid var(--blue);
  border-radius: 5px;
  background: #fff;
}

.content a:hover img,
.content a:focus-visible img {
  border-color: #c32413;
}

.alignright {
  float: right;
  margin: 0.25rem 0 1rem 1.25rem;
}

.alignleft {
  float: left;
  margin: 0.25rem 1.25rem 1rem 0;
}

.aligncenter,
.alignnone {
  display: block;
  margin: 1rem auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.gallery br {
  display: none;
}

.gallery-item {
  margin: 0;
}

.gallery-icon a {
  display: block;
  border-radius: 5px;
  outline-offset: 4px;
}

.gallery-icon img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #cfcfcf;
  box-shadow: 0 8px 18px rgba(31, 35, 40, 0.1);
}

.gallery-caption {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
}

.has-lightbox {
  overflow: hidden;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 24, 27, 0.78);
  backdrop-filter: blur(8px);
}

.gallery-lightbox__dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(86vh, 780px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "close close close"
    "prev figure next"
    "count count count";
  gap: 0.9rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.35rem);
  color: #fff;
  background: rgba(36, 35, 31, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
}

.gallery-lightbox__close {
  grid-area: close;
  justify-self: end;
}

.gallery-lightbox__nav--prev {
  grid-area: prev;
}

.gallery-lightbox__nav--next {
  grid-area: next;
}

.gallery-lightbox__figure {
  grid-area: figure;
  min-width: 0;
  margin: 0;
  text-align: center;
}

.gallery-lightbox__image {
  display: block;
  max-height: 58vh;
  width: clamp(240px, 42vw, 520px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.gallery-lightbox__caption {
  margin-top: 0.8rem;
  color: #f2eadb;
  font-weight: 700;
  line-height: 1.35;
}

.gallery-lightbox__count {
  grid-area: count;
  margin: 0;
  color: #d8d2c8;
  text-align: center;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  color: #fff;
  background: #7a5a1e;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(122, 90, 30, 0.16);
}

.button-link:hover,
.button-link:focus-visible {
  color: #fff;
  background: var(--gold);
  text-decoration: none;
}

.site-footer {
  margin-top: auto;
  padding: 2rem 1.25rem 2.4rem;
  color: #ffffff;
  background: linear-gradient(180deg, #67573f, #292722);
}

.footer-inner {
  width: min(840px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #ffd898;
}

@media (max-width: 860px) {
  .site-header {
    padding: 0.85rem;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "legal legal"
      "navigation navigation"
      "phone phone";
    align-items: center;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .brand {
    max-width: min(270px, calc(100vw - 8rem));
  }

  .menu-toggle {
    grid-area: toggle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    color: #fff;
    background: #3e3d3f;
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(31, 35, 40, 0.15);
  }

  .menu-toggle::before {
    content: "";
    width: 1rem;
    height: 0.75rem;
    background:
      linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
      linear-gradient(#fff, #fff) 0 50% / 100% 2px no-repeat,
      linear-gradient(#fff, #fff) 0 100% / 100% 2px no-repeat;
  }

  .mobile-legal {
    grid-area: legal;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.1rem;
  }

  .mobile-legal a {
    color: #2c3036;
    font-size: 0.9rem;
    font-weight: 700;
  }

  .mobile-legal a::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: var(--gold);
  }

  .site-navigation {
    grid-area: navigation;
    display: none;
  }

  .site-navigation.is-open {
    display: grid;
    gap: 0.7rem;
  }

  .nav-secondary,
  .nav-service,
  .nav-main {
    display: grid;
    grid-area: auto;
    justify-self: stretch;
    padding-top: 0;
  }

  .nav-secondary {
    order: 1;
  }

  .nav-main {
    order: 2;
  }

  .nav-service {
    order: 3;
  }

  .nav-service a:last-child {
    display: none;
  }

  .nav-main {
    justify-content: stretch;
  }

  .nav-main a {
    justify-content: flex-start;
  }

  .phone-callout {
    justify-self: start;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .page-shell {
    width: min(100% - 1.5rem, 680px);
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 0.75rem;
  }

  .certificate {
    position: static;
    padding: 0;
    text-align: left;
  }

  .certificate img {
    width: 96px;
  }

  .content {
    padding: 1.15rem;
  }

  .alignright,
  .alignleft {
    float: none;
    display: block;
    margin: 1rem auto;
  }

  .footer-inner {
    display: grid;
  }

  .gallery-lightbox {
    padding: 0.75rem;
  }

  .gallery-lightbox__dialog {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "close close"
      "figure figure"
      "prev next"
      "count count";
    max-height: 90vh;
  }

  .gallery-lightbox__close {
    justify-self: stretch;
  }

  .gallery-lightbox__image {
    width: min(100%, 520px);
    max-height: 52vh;
  }
}

@media (min-width: 861px) {
  .site-navigation {
    display: contents !important;
  }
}
