/* Global reset and base styles */
@font-face {
  font-family: "PingFangSC Light";
  src: url("../fonts/PingFangSC-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Roman";
  src: url("../fonts/Avenir-Roman-8.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: "PingFangSC Light", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4e5dc;
  color: #4e4442;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: 100%;
  height: 20%;
  background: #ffffff;
  border-bottom: 1px solid #e0d5cc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.topbar-center {
  width: 100%;
  max-width: 1280px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.header-image {
  height: 120px;
  width: auto;
  max-height: 120px;
  display: block;
  margin: 20px 0;
}

.brand-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.25rem;
  background: transparent;
  object-fit: contain;
  display: block;
}

.brand-label {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.subbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #d3c6bd;

}

.subbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  color: #000000;
  font-size: 0.95rem;
  position: relative;
}

.subbar-link + .subbar-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 0%;
  width: 1px;
  background: #d3c6bd;
}

.subbar-link:hover {
  color: #000000;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle-btn .hamburger,
.nav-toggle-btn .hamburger::before,
.nav-toggle-btn .hamburger::after {
  display: block;
  width: 1.8rem;
  height: 2px;
  background: #000;
  position: absolute;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-btn .hamburger {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle-btn .hamburger::before {
  content: "";
  top: -0.55rem;
  left: 0;
}

.nav-toggle-btn .hamburger::after {
  content: "";
  top: 0.55rem;
  left: 0;
}

.nav-toggle:checked + .nav-toggle-btn .hamburger {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-btn .hamburger::before {
  transform: translateY(0.55rem) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-btn .hamburger::after {
  transform: translateY(-0.55rem) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 70vw;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  transform: translateX(-110%);
  transition: transform 0.25s ease;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}

.mobile-drawer-inner {
  padding: 4.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #000000;
  font-size: 2rem;
  cursor: pointer;
  z-index: 120;
}

.drawer-link {
  color: #000000;
  font-size: 1rem;
  display: block;
  padding: 0.75rem 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
  cursor: pointer;
}

.nav-toggle:checked ~ .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.nav-toggle:checked ~ .mobile-drawer {
  transform: translateX(0);
}

@media (max-width: 940px) {
  .mobile-drawer,
  .drawer-overlay {
    display: block;
  }
}

.main-section {
  width: 100%;
  background: #f4e5dc;
  border-top: 1px solid #d8c9c1;
  border-bottom: 1px solid #d8c9c1;
  flex: 1;
}

.content-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  gap: 2.5rem;
  border-bottom: 1px solid #d8c9c1;
}

.content-block:last-child {
  border-bottom: none;
}

.hero-block {
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-placeholder {
  width: 100%;
  max-width: 1140px;
  min-height: 420px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4e4442;
  font-size: 1.1rem;
}

.hero-card {
  width: 100%;
  max-width: 1024px;
  background: #ffffff;
  border-radius: 3rem;
  padding: 4rem 3rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-divider {
  width: 10%;
  height: 5px;
  background: #4e4442;
  opacity: 0.35;
  border-radius: 999px;
}

.hero-text {
  max-width: 720px;
  font-size: 1.6rem;
  line-height: 1.8;
  color: #4e4442;
}

.avenir-text {
  font-family: "Avenir Roman", sans-serif;
}

.section-grid {
  display: grid;
  gap: 3rem;
}

.section-row {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.section-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.section-row:not(.reverse) {
  grid-template-columns: 0.9fr 1.1fr;
}

.section-image {
  width: 100%;
  min-height: 420px;
  background: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4e4442;
  font-size: 1rem;
}

.section-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-title {
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 700;
}

.section-text {
  font-size: 1rem;
  max-width: 100%;
  color: #4e4442;
}

.section-text strong {
  font-weight: 600;
}

.footer {
  background: #1c110f;
  color: #ffffff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

@media (max-width: 940px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

.footer-copy {
  font-size: 0.95rem;
  color: #ffffff;
}

@media (max-width: 940px) {
  .topbar-inner {
    padding: 1.25rem 1rem;
  }

  .topbar-brand {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.5rem;
  }

  .subbar {
    display: none;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .topbar-brand {
    align-items: flex-start;
  }

  .brand-icon {
    display: none;
  }

  .mobile-drawer {
    display: block;
  }

  .drawer-overlay {
    display: block;
  }

  .subbar-link {
    padding: 0.75rem 0.5rem;
  }

  .content-block {
    padding: 3rem 1rem;
  }

  .section-row,
  .section-row.reverse {
    display: grid;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
  }

  .section-row .section-copy {
    order: 1 !important;
    width: 100%;
  }

  .section-row .section-image {
    order: 2 !important;
    width: 100%;
    min-height: 260px;
  }

  .section-image {
    min-height: 320px;
  }
}

@media (max-width: 940px) {
  .header-image {
    height: 58px;
    width: auto;
  }
}

@media (max-width: 640px) {
  .topbar-brand {
    font-size: 1.25rem;
  }

  .brand-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .content-block {
    padding: 2rem 0.75rem;
  }
}
