@font-face {
  font-family: "McMichael Sans";
  src: url("../assets/McMichaelSansRegular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "McMichael Sans";
  src: url("../assets/McMichaelSansMedium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "McMichael Sans";
  src: url("../assets/McMichaelSansItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "McMichael Sans";
  src: url("../assets/McMichaelSansMediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Type scale */
  --font-h1: clamp(2.75rem, 5vw + 1rem, 5rem);
  /* 44px–80px */
  --font-h2: clamp(2.25rem, 4vw + 0.5rem, 3.75rem);
  /* 36px–60px */
  --font-h3: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  /* 28px–44px */
  --font-h4: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  /* 24px–32px */
  --font-h5: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  /* 20px–24px */
  --font-h6: clamp(1.125rem, 1vw + 0.25rem, 1.25rem);
  /* 18px–20px */

  --font-xxs: 0.75rem;
  /* 12px */
  --font-xs: 0.875rem;
  /* 14px */
  --font-s: 1rem;
  /* 16px */
  --font-m: 1.125rem;
  /* 18px */
  --font-l: 1.25rem;
  /* 20px */
  --font-xl: 1.5rem;
  /* 24px */
  --font-xxl: 2rem;
  /* 32px */

  /* Spacing scale */
  --space-xxs: 0.1875rem;
  /* 3px */
  --space-xs: 0.375rem;
  /* 6px */
  --space-s: 0.75rem;
  /* 12px */
  --space-m: 1.125rem;
  /* 18px */
  --space-l: 1.5rem;
  /* 24px */
  --space-xl: 2.25rem;
  /* 36px */
  --space-xxl: 3rem;
  /* 48px */
}

/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "McMichael Sans", Arial, Helvetica, sans-serif;
  font-size: var(--font-m);
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  background: #fff;
  margin: 0;
  zoom: 100%;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -.025em;
  line-height: 0.9;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-m);
  text-transform: uppercase;
  font-weight: 400;
}

h1 {
  font-size: var(--font-h1);
}

h2 {
  font-size: var(--font-h2);
}

h3 {
  font-size: var(--font-h3);
}

h4 {
  font-size: var(--font-h4);
}

h5 {
  font-size: var(--font-h5);
}

h6 {
  font-size: var(--font-h6);
}

/* Class to reverse all uppercase global heading rule */
.c {
  text-transform: lowercase !important;
}

/* Paragraphs */
p {
  margin-top: 0;
  margin-bottom: var(--space-m);
}

strong,
b {
  font-weight: 700;
}

body.font-loaded strong,
body.font-loaded b {
  font-weight: 500;
}

/* Links */
a,
#main p a {
  position: relative;
  color: #000;
  text-decoration: none;
}

/* Thin base line (static) */
#main p a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.125em;
  width: 100%;
  height: 1px;
  background: #000;
  pointer-events: none;
}

/* Thick animated line (starts at 0 width) */
#main a::before {
  display: inline-block;
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.125em;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

#main a:hover,
#main a:focus {}

#main a:hover::before,
#main a:focus::before {
  width: 100%;
}

/* Lists */
ul,
ol {
  padding-left: var(--space-l);
  margin-top: 0;
  margin-bottom: var(--space-m);
}

li {
  margin-bottom: var(--space-s);
  line-height: 1.6;
}

li:last-child {
  margin-bottom: 0;
}

nav {
  all: unset;
  display: block;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin: 0;
  padding: 0;
}

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

/* Utility font size classes */
.xxs {
  font-size: var(--font-xxs);
}

.xs {
  font-size: var(--font-xs);
}

.s {
  font-size: var(--font-s);
}

.m {
  font-size: var(--font-m);
}

.l {
  font-size: var(--font-l);
}

.xl {
  font-size: var(--font-xl);
}

.xxl {
  font-size: var(--font-xxl);
}

hr {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.25);
  border: none;
  margin: var(--space-l) 0;
  width: 100%;
}

/* Header layout */
#header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 30px 60px;
  background: rgba(255, 255, 255, 0.9);
  position: fixed;
  width: 100%;
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.05);
  top: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.hide-header {
  transform: translateY(-100%);
}

.logo {
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  margin-right: 20px;
}

.logo svg {
  display: block;
  width: 380px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.logo:hover {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

#desktopNav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

#mobileNav {
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.05);
}

.top-menu,
.main-menu {
  display: flex;
  align-items: center;
  gap: 1.25em;
}

.top-menu a,
.main-menu a {
  text-decoration: none;
  color: #000;
  line-height: 1;
}

.top-menu a {
  font-size: 14px;
}

.main-menu a {
  font-size: 20px;
}

.top-menu a.button,
#mobileNav a.button {
  background: #000;
  color: #fff;
  padding: .7em 1em .6em;
}

.top-menu a.button:hover {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.top-menu a.button::after {
  display: none;
}

/* Animated underline hover effect for menu links */
.top-menu a,
.main-menu a,
#mobileNav a {
  position: relative;
  text-decoration: none;
}

.top-menu a::after,
.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.35em;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.top-menu a:hover::after,
.main-menu a:hover::after {
  width: 100%;
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  gap: 12px;
  cursor: pointer;
  z-index: 100;
}

#hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  height: 4px;
  background: #000;
  transition: all 0.3s ease;
}

#hamburger.active span:nth-child(1) {
  position: relative;
  top: 16px;
  width: 48px;
  rotate: 135deg;
}

#hamburger.active span:nth-child(2) {
  opacity: 0;
}

#hamburger.active span:nth-child(3) {
  position: relative;
  top: -16px;
  width: 48px;
  rotate: -135deg;
}

/* Part of mobile navigation */
#mobileNav {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-30px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

#mobileNav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#mobileNav .nav-block {
  display: flex;
  flex-direction: column;
  padding: 20px 60px;
  gap: .75em;
  font-size: 24px;
}

#mobileNav a {
  color: #000;
  text-decoration: none;
}

#mobileNav .nav-block.contact {
  border-top: 1px solid #ddd;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  font-size: 18px;
  gap: 1em;
}

#mobileNav .nav-block.contact a {
  padding: .5em 2em .4em;
  display: inline-block;
  min-width: 200px;
}

/* Main content */
#main {
  background: #fff;
  padding: 185px 60px 60px 60px;
}

/* Footer */
#footer {
  background: #000;
  color: #fff;
  padding: 40px 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-left {
  flex: 1 1 45%;
}

.footer-right {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-text-box {
  margin-bottom: 40px;
}

.footer-address {
  margin-bottom: 40px;
}

.footer-address p {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-address .footer-mini-menu {
  font-size: 14px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 12px;
  margin-bottom: 0;
}

.footer-menu {
  display: flex;
  gap: 50px;
}

.footer-menu-col {
  display: flex;
  flex-direction: column;
  gap: .5em;
  font-size: 18px;
  margin-bottom: 60px;
  flex: 1 1 auto;
  align-items: flex-start;
}

.footer-menu-col a {
  display: inline;
  flex: 0 0 auto;
  width: auto;
  position: relative;
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.footer-spacer {
  flex-grow: 1;
}

.footer-mini-menu {
  font-size: 12px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Animated underline hover effect for footer links */
.footer-mini-menu a,
.footer-menu a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
  width: auto;
}

.footer-mini-menu a::after,
.footer-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.125em;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.footer-mini-menu a::after {
  height: 1px;
}

.footer-mini-menu a:hover::after,
.footer-menu a:hover::after,
.footer-mini-menu a::after {
  width: 100%;
}

.footer-logo img {
  width: 100%;
  display: block;
  margin-top: 40px;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  list-style: none;
  gap: .25rem;
}

.footer-social a {
  margin: 0;
  display: inline-block;
  font-size: 1rem;
  line-height: .5em;
  padding: .25rem;
}

.footer-social a:hover,
.footer-mini-menu a:hover {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-social svg {
  fill: #fff;
  max-width: 24px;
  height: auto;
}

/* Responsive media query for under 960px */
@media (max-width: 960px) {
  #header {
    flex-direction: row;
    align-items: center;
    position: relative;
  }

  #desktopNav {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  #mobileNav .nav-block.contact .phone {
    display: flex;
    flex-wrap: wrap;
  }

  #mobileNav .nav-block.contact .phone a {
    width: auto;
    min-width: auto;
    padding: 0 18px;
    line-height: 1;
    border-left: 2px solid #000;
  }

  #mobileNav .nav-block.contact .phone a:first-of-type {
    border-left: none;
  }

  #main {
    padding: 60px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-left {
    order: 2;
  }

  .footer-right {
    order: 1;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .footer-menu {
    width: 100%;
    gap: 1em;
    margin-bottom: 50px;
  }

  .footer-menu-col {
    margin-bottom: 0;
  }
}

/* Responsive media query for under 430px iPhone 15 Pro Max */
@media (max-width: 430px) {
  .desktop-only {
    display: none;
  }

  #header {
    padding: 30px;
  }

  #hamburger.active span:nth-child(1) {
    position: relative;
    rotate: 135deg;
  }

  #hamburger.active span:nth-child(3) {
    position: relative;
    rotate: -135deg;
  }

  #mobileNav .nav-block {
    padding: 30px;
  }

  #mobileNav .nav-block.contact a {
    width: 100%;
  }

  #mobileNav .nav-block.contact .phone a {
    border-left: none;
    width: 100%;
    padding: .5em;
    text-align: left;
  }

  #main {
    padding: 30px;
  }

  #footer {
    padding: 30px;
  }

  .footer-bottom-row,
  .footer-content {
    width: 100%;
  }

  .footer-menu-col {
    gap: .5em;
  }

  .footer-menu {
    gap: .5em;
    flex-wrap: wrap;
  }

}