@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("AlteHaasGroteskRegular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("AlteHaasGroteskBold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

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

body {
  font-family: "Alte Haas Grotesk", Helvetica, Arial, sans-serif;
  background-color: #000000;
  color: white;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.excel-grid {
  display: grid;
  grid-template-columns: 80px 1fr 0.7fr 0.7fr 0.7fr;
  grid-template-rows: 60px 1fr 60px;
  min-height: 100vh;
  position: relative;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.cell {
  border: none;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: transparent;
  position: relative;
  box-sizing: border-box;
  margin: 0;
  outline: none;
}

.cell-empty,
.cell-small {
  background-color: transparent;
}

.cell-merged-2 {
  grid-column: span 2;
}

.cell-merged-3 {
  grid-column: span 3;
}

.cell-content {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
}

.brand-button {
  font-size: 1.5rem;
  font-weight: 600;
}

.mission-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: white;
  width: 100%;
}

.mission-text p {
  margin-bottom: 1.5rem;
}

.mission-text p:last-child {
  margin-bottom: 0;
}

.mission-text a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.3s;
}

.mission-text a:hover {
  opacity: 0.8;
}

.hours-text {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.6;
  color: white;
  text-align: left;
}

.hours-text p {
  margin-bottom: 0.5rem;
}

.hours-text p:last-child {
  margin-bottom: 0;
}

.address-text,
.email-text,
.phone-text {
  font-size: 1.3rem;
  font-weight: 300;
  color: white;
  text-align: left;
}

.instagram-link-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.instagram-link-cell:hover {
  opacity: 0.8;
}

.instagram-link-cell svg {
  flex-shrink: 0;
}

.tab-cell {
  padding: 0;
}

.tab-button {
  width: 100%;
  height: 100%;
  padding: 1rem 1.5rem;
  background-color: transparent;
  color: white;
  border: none;
  font-size: 1.3rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: left;
}

.tab-button:hover {
  background-color: #333333;
}

.tab-button.active {
  font-weight: 600;
  background-color: #000000;
}

.tab-content {
  display: none;
  width: 100%;
}

.tab-content.active {
  display: block;
}

#home.tab-content.active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.home-tagline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  color: white;
  margin: 0;
  text-align: center;
}

.hamburger-btn {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 60px;
  left: 60px;
  right: 0;
  bottom: 0;
  background-color: #000000;
  display: none;
  flex-direction: column;
  padding: 2rem;
  z-index: 1000;
}

.mobile-menu.active {
  display: flex;
}

@media (max-width: 768px) {
  .excel-grid {
    grid-template-columns: 60px 1fr;
    grid-template-rows: 60px 1fr;
  }

  /* Hide desktop-only cells */
  .cell.tab-cell[data-tab="history"],
  .cell.tab-cell[data-tab="our-work"],
  .cell.tab-cell[data-tab="faq"],
  .cell.tab-cell[data-tab="contact"],
  .cell.cell-no-right-border:not(.hamburger-cell):not(.cell-content),
  .cell:has(.hours-text),
  .cell:has(.address-text),
  .cell:has(.email-text),
  .cell:has(.phone-text),
  .cell:has(.instagram-link-cell) {
    display: none;
  }

  /* Row 1: hamburger + brand */
  .hamburger-cell {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    height: 100%;
  }

  .hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s;
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Brand cell spans to fill row */
  .cell.tab-cell[data-tab="home"] {
    grid-column: 2;
    grid-row: 1;
  }

  /* Row 2: empty left + content */
  .cell-small {
    grid-column: 1;
    grid-row: 2;
  }

  .cell-merged-3 {
    grid-column: 2;
    grid-row: 2;
  }

  .cell-content {
    display: flex !important;
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .mission-text {
    font-size: 1rem;
  }

  .tab-button {
    padding: 0.75rem;
    font-size: 1rem;
  }

  .brand-button {
    font-size: 1.2rem;
  }
}

.mobile-menu-item {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 1.3rem;
  font-family: inherit;
  padding: 1.2rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
  background-color: #000000;
}

.mobile-menu-info {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  color: white;
  font-size: 1rem;
  line-height: 2;
}

.mobile-menu-info a {
  color: white;
  text-decoration: underline;
}
