
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --teal: #124D4A;
  --dark-teal: #0B3735;
  --soft-green: #EAF3EC;
  --gold: #C4A56B;
  --white: #FFFFFF;
  --text: #263B35;
  --muted: #74837C;
  --border: #E4EBE6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER */

.siteHeader {
  position: relative;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.headerInner {
  width: min(1380px, calc(100% - 48px));
  min-height: 96px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brandIcon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--soft-green);
  color: var(--teal);
  font-size: 28px;
}

.brandText {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brandText strong {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
}

.brandText small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.mainNavigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

.mainNavigation a {
  position: relative;
  padding: 12px 0;
  color: #56665F;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.mainNavigation a:hover,
.mainNavigation a.active {
  color: var(--teal);
}

.mainNavigation a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.mainNavigation a:hover::after,
.mainNavigation a.active::after {
  right: 0;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.headerPhone {
  display: flex;
  align-items: center;
  gap: 9px;
}

.phoneIcon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-green);
  color: var(--teal);
  font-size: 17px;
}

.headerPhone span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.headerPhone small {
  color: var(--muted);
  font-size: 10px;
}

.headerPhone strong {
  color: var(--teal);
  font-size: 12px;
  white-space: nowrap;
}

.button {
  min-height: 47px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.buttonPrimary {
  color: var(--white);
  background: var(--teal);
}

.buttonPrimary:hover {
  background: var(--dark-teal);
  transform: translateY(-2px);
}

.menuToggle {
  display: none;
}

/* FOOTER */

.siteFooter {
  background: var(--dark-teal);
  color: #EAF2EE;
}

.footerMain {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  padding: 70px 0 55px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
  gap: 40px;
}

.footerLogo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
}

.footerLogo .brandIcon {
  background: var(--white);
}

.footerBrand h3 {
  margin: 22px 0 10px;
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 21px;
  line-height: 1.4;
}

.footerBrand p {
  max-width: 320px;
  color: #B9CDC5;
  font-size: 13px;
}

.footerColumn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footerColumn h4 {
  margin: 5px 0 12px;
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
}

.footerColumn > a {
  color: #B9CDC5;
  font-size: 13px;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.footerColumn > a:hover {
  color: #E0C99A;
}

.footerContact p {
  margin: 0;
  color: #B9CDC5;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.footerBottom {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footerBottom p {
  margin: 0;
  color: #B9CDC5;
  font-size: 11px;
}

.legalLinks {
  display: flex;
  gap: 22px;
}

.legalLinks a {
  color: #B9CDC5;
  font-size: 11px;
}

/* TEMPORARY COMPONENT ERROR MESSAGE */

.componentError {
  padding: 15px;
  color: #9B2929;
  background: #FFF0F0;
}

/* TABLET */

@media (max-width: 1150px) {
  .headerInner {
    gap: 15px;
  }

  .brand {
    gap: 7px;
  }

  .brandIcon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .brandText strong {
    font-size: 15px;
  }

  .brandText small {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .mainNavigation {
    gap: 12px;
  }

  .mainNavigation a {
    font-size: 11px;
  }

  .headerPhone {
    display: none;
  }

  .footerMain {
    gap: 25px;
  }
}

/* MOBILE MENU */

@media (max-width: 850px) {
  .headerInner {
    width: calc(100% - 32px);
    min-height: 80px;
    gap: 12px;
  }

  .brandIcon {
    width: 44px;
    height: 44px;
  }

  .brandText strong {
    font-size: 16px;
  }

  .headerActions {
    margin-left: auto;
  }

  .headerCta {
    min-height: 41px;
    padding: 0 12px;
    font-size: 11px;
  }

  .menuToggle {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
  }

  .menuToggle span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--teal);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menuToggle[aria-expanded="true"] span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .menuToggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menuToggle[aria-expanded="true"] span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mainNavigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(11, 55, 53, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .mainNavigation.isOpen {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .mainNavigation a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .mainNavigation a::after {
    display: none;
  }

  .footerMain {
    grid-template-columns: 1fr 1fr;
    gap: 38px 28px;
    padding: 52px 0 42px;
  }
}

/* SMALL MOBILE */

@media (max-width: 520px) {
  .headerInner {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .brand {
    gap: 6px;
  }

  .brandIcon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 21px;
  }

  .brandText strong {
    font-size: 13px;
  }

  .brandText small {
    font-size: 7px;
    letter-spacing: 0.7px;
  }

  .headerCta {
    min-height: 37px;
    padding: 0 8px;
    gap: 4px;
    font-size: 10px;
  }

  .menuToggle {
    width: 35px;
    height: 37px;
  }

  .footerMain {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 0 35px;
  }

  .footerBrand p {
    max-width: 100%;
  }

  .footerBottom {
    width: calc(100% - 36px);
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .legalLinks {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.headerLogo {
  display: block;
  width: 205px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .headerLogo {
    width: 145px;
    height: 52px;
  }
}

/* HEADER DESIGN */

.siteHeader {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #E8EEE9;
}

.headerInner {
  width: min(1500px, calc(100% - 80px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.headerLogo {
  display: block;
  width: 210px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

.mainNavigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
}

.mainNavigation a {
  position: relative;
  padding: 12px 0;
  color: #344D46;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.mainNavigation a:hover,
.mainNavigation a[aria-current="page"] {
  color: #124D4A;
}

.mainNavigation a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #C4A56B;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.headerPhone {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #124D4A;
  text-decoration: none;
}

.phoneIcon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #EAF3EC;
  font-size: 19px;
}

.headerPhone small {
  display: block;
  color: #78877F;
  font-size: 10px;
}

.headerPhone strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  white-space: nowrap;
}

.headerCta {
  min-height: 51px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 5px;
  white-space: nowrap;
}

.menuToggle {
  display: none;
  width: 43px;
  height: 43px;
  padding: 10px;
  border: 1px solid #DCE8DF;
  border-radius: 5px;
  background: #FFFFFF;
  cursor: pointer;
}

.menuToggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: #124D4A;
}

@media (max-width: 1200px) {
  .headerInner {
    width: calc(100% - 40px);
    gap: 18px;
  }

  .headerLogo {
    width: 185px;
    height: 65px;
  }

  .mainNavigation {
    gap: 16px;
  }

  .headerActions {
    gap: 12px;
  }

  .headerPhone {
    gap: 7px;
  }

  .headerCta {
    padding: 0 15px;
  }
}

@media (max-width: 950px) {
  .headerInner {
    min-height: 85px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 0;
  }

  .headerLogo {
    width: 185px;
    height: 62px;
  }

  .menuToggle {
    display: block;
    margin-left: auto;
  }

  .mainNavigation {
    display: none;
    order: 4;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid #E8EEE9;
  }

  .mainNavigation.isOpen {
    display: flex;
  }

  .mainNavigation a {
    padding: 13px 8px;
  }

  .mainNavigation a[aria-current="page"]::after {
    display: none;
  }

  .headerActions {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .headerInner {
    width: calc(100% - 28px);
    gap: 10px;
  }

  .headerLogo {
    width: 155px;
    height: 56px;
  }

  .headerActions {
    width: 100%;
    justify-content: space-between;
    padding: 7px 0;
  }

  .headerPhone {
    gap: 8px;
  }

  .phoneIcon {
    width: 36px;
    height: 36px;
  }

  .headerCta {
    min-height: 43px;
    padding: 0 13px;
    font-size: 12px;
  }
}
