:root {
  --color-ink: #101828;
  --color-muted: #475467;
  --color-red: #ce2026;
  --color-button: #dc3545;
  --color-form-button: #ff0055;
  --color-surface: #f8f9fa;
  --color-feature-surface: #f9fafb;
  --color-footer: #2c2c2c;
  --color-footer-text: #cccccc;
  --color-border: #dee2e6;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans",
    "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  --container-width: 1140px;
  --gutter: 12px;
  --radius-small: 6px;
  --radius-medium: 8px;
  --radius-image: 15px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-ink);
  background: #ffffff url("../assets/img/bg-pattern.png") top center / contain no-repeat;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.section-space {
  margin-top: 48px;
}

.site-header {
  min-height: 92px;
}

.nav-shell {
  position: relative;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 138px;
  height: 66px;
}

.main-navigation {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-left: 20px;
}

.nav-list {
  display: flex;
  grid-column: 2;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li > a,
.dropdown-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  color: rgba(0, 0, 0, 0.9);
}

.dropdown {
  position: relative;
}

.dropdown-caret {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 2px);
  left: 0;
  display: none;
  min-width: 230px;
  margin: 0;
  padding: 8px 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
  list-style: none;
}

.dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 4px 16px;
  color: #212529;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: #f8f9fa;
}

.dropdown-menu a[aria-current="page"] {
  background: #f3f4f6;
  color: var(--color-red);
  font-weight: 600;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: var(--color-button);
  color: #ffffff;
  cursor: pointer;
  line-height: 24px;
  padding: 6px 12px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  background: #bb2d3b;
}

.button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.25);
}

.button-header {
  grid-column: 3;
  justify-self: end;
}

.store-button {
  min-height: 54px;
  gap: 10px;
  padding: 7px 14px;
  line-height: 1;
  text-align: left;
}

.store-button-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.store-button-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-button-copy strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.store-button-copy small {
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 56px;
  height: 40px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  margin: 5px 0;
  background: rgba(0, 0, 0, 0.55);
}

.section-heading {
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-heading h1,
.about-heading h2 {
  font-size: 40px;
  line-height: 1.2;
}

.section-heading p {
  margin-right: auto;
  margin-bottom: 16px;
  margin-left: auto;
  color: var(--color-muted);
}

.hero-heading p {
  max-width: 558px;
}

.hero-image {
  width: 100%;
  height: 500px;
  margin-top: 40px;
  border-radius: var(--radius-image);
  object-fit: cover;
}

.about {
  min-height: 168px;
}

.about-heading p {
  max-width: 744px;
}

.services {
  min-height: 660px;
  margin-top: 48px;
  padding: 48px;
  background: var(--color-surface);
}

.services-title {
  margin-bottom: 96px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  row-gap: 62px;
}

.service-card {
  display: flex;
  grid-column: span 2;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: var(--color-ink);
  text-align: center;
}

.service-card--wide {
  grid-column: span 3;
}

.service-card:hover .service-icon {
  transform: translateY(-3px);
}

.service-icon {
  flex: 0 0 auto;
  margin-bottom: 10px;
  object-fit: contain;
  transition: transform 160ms ease;
}

.service-icon--64 {
  width: 64px;
  height: 64px;
}

.service-icon--80 {
  width: 80px;
  height: 80px;
  margin-top: -8px;
}

.service-icon--94 {
  width: 94px;
  height: 94px;
  margin-top: -8px;
}

.service-icon--90 {
  width: 90px;
  height: 90px;
  margin-top: -4px;
}

.service-card span {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.45;
}

.location-heading h2 {
  font-size: 32px;
  line-height: 1.2;
}

.location-heading p {
  max-width: none;
  color: var(--color-ink);
}

.map-container {
  width: 100%;
  height: 400px;
  margin-top: 24px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-details {
  margin-top: 0;
  padding: 32px 0;
  background: var(--color-feature-surface);
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.contact-detail {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  text-align: center;
}

.contact-detail-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
}

.contact-detail-icon--phone {
  width: 120px;
  height: 80px;
}

.contact-detail h3 {
  margin-bottom: 8px;
  color: var(--color-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.contact-detail p {
  margin-bottom: 16px;
  color: var(--color-muted);
}

.contact-form-card {
  width: min(736px, calc(100% - 380px));
  min-width: 620px;
  margin-inline: auto;
  padding: 32px;
  border-radius: var(--radius-medium);
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-section {
  padding-top: 32px;
}

.contact-form-card > h2 {
  margin-bottom: 8px;
  color: #333333;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.contact-form-card > p {
  margin-bottom: 16px;
  text-align: center;
}

.form-group {
  margin-bottom: 24px;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group label {
  display: inline-block;
  margin-bottom: 0;
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #ffffff;
  color: #212529;
  line-height: 24px;
  padding: 6px 12px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--color-button);
}

.form-submit {
  width: 100%;
  background: var(--color-form-button);
}

.form-submit:hover {
  background: #d90048;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.site-footer {
  margin-top: 48px;
  padding: 16px;
  background: var(--color-footer);
  color: var(--color-footer-text);
  text-align: center;
}

.social-links {
  display: flex;
  max-width: 200px;
  justify-content: space-around;
  margin: 0 auto 16px;
}

.social-links a {
  display: block;
  padding: 0 30px 8px;
}

.social-links img {
  width: 40px;
  height: 40px;
}

.site-footer hr {
  margin: 0 0 16px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 16px;
  border-radius: 6px;
  background: #198754;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  background: var(--color-button);
}

.service-page-main {
  padding-bottom: 0;
}

.service-page-hero {
  margin-top: 48px;
  padding-bottom: 16px;
  text-align: center;
}

.service-page-hero h1 {
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

.service-page-hero p {
  max-width: 744px;
  margin: 0 auto;
  color: var(--color-muted);
}

.service-page-hero--narrow p {
  max-width: 558px;
}

.service-content {
  margin-top: 48px;
}

.service-content--detailed {
  min-height: 504px;
}

.service-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 500px));
  align-items: stretch;
  gap: 48px;
  justify-content: center;
}

.service-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.service-section-title {
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 2px solid var(--color-red);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.service-description-list {
  margin-bottom: 32px;
}

.service-description-list p {
  margin-bottom: 16px;
  padding-left: 22px;
  color: var(--color-muted);
}

.benefit-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 16px;
  align-items: start;
}

.benefit-item::before {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  background: url("../assets/img/bullet.png") center / contain no-repeat;
  content: "";
}

.benefit-item h2,
.benefit-item h3 {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.benefit-item p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.service-media {
  width: 100%;
  height: 500px;
  border-radius: var(--radius-medium);
  object-fit: cover;
}

.service-media--portrait {
  object-position: center 42%;
}

.service-secondary {
  margin-top: 48px;
  padding: 48px 0;
  background: var(--color-surface);
}

.service-secondary .service-split {
  align-items: center;
}

.service-contact-callout {
  margin-top: 48px;
  text-align: center;
}

.service-contact-callout h2 {
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

.service-contact-callout p {
  max-width: 558px;
  margin: 0 auto;
  color: var(--color-muted);
}

.service-contact-callout a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-spacer {
  height: 120px;
  margin-top: 48px;
}

@media (max-width: 991.98px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    z-index: 30;
    top: 92px;
    right: var(--gutter);
    left: var(--gutter);
    display: none;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
  }

  .main-navigation.is-open {
    display: block;
  }

  .nav-list {
    display: block;
  }

  .nav-list > li > a,
  .dropdown-toggle {
    width: 100%;
    justify-content: center;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    text-align: center;
  }

  .dropdown-menu a {
    white-space: normal;
  }

  .button-header {
    display: flex;
    width: min(100%, 240px);
    margin: 10px auto 0;
  }

  .store-button {
    justify-content: center;
  }

  .services {
    min-height: 0;
    padding-inline: 48px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .service-card,
  .service-card--wide {
    grid-column: 1;
  }

  .contact-form-card {
    width: 100%;
    min-width: 0;
  }

  .service-page-hero p {
    max-width: 100%;
  }

  .service-split {
    grid-template-columns: 1fr;
  }

  .service-content--detailed {
    min-height: 0;
  }

  .service-copy {
    order: 1;
  }

  .service-media {
    order: 2;
    height: auto;
    aspect-ratio: 1;
  }

  .service-secondary .service-media {
    order: 1;
  }

  .service-secondary .service-copy {
    order: 2;
  }
}

@media (max-width: 767.98px) {
  .about {
    min-height: 259px;
  }

  .hero-heading h1,
  .about-heading h2 {
    font-size: calc(1.375rem + 1.5vw);
  }

  .location-heading h2,
  .contact-form-card > h2 {
    font-size: calc(1.325rem + 0.9vw);
  }

  .hero-image {
    height: 500px;
    margin-top: 40px;
  }

  .services {
    min-height: 1166px;
    padding: 48px;
  }

  .services-title {
    margin-bottom: 82px;
    font-size: calc(1.3rem + 0.6vw);
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .contact-detail {
    min-height: 0;
  }

  .site-footer {
    min-height: 209px;
  }

  .social-links {
    display: block;
  }

  .social-links a {
    width: fit-content;
    margin: 0 auto;
    padding: 0 0 8px;
  }

  .service-page-hero h1,
  .service-contact-callout h2 {
    font-size: calc(1.375rem + 1.5vw);
  }

  .service-split {
    gap: 32px;
  }

  .service-section-title {
    margin-bottom: 20px;
  }

  .service-secondary {
    padding: 48px 0;
  }

  .service-spacer {
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
