/* === SECTION: Header/Nav ===
   Nguồn thiết kế: ảnh chụp website Riben Hopper
   Font: DM Sans (từ CSS gốc SingleFile)
   Màu: #b22a2c (red), #212731 (dark), #fff (white)
   Height gốc: 72px
*/

/* ----------------------------------------
   Reset scope
---------------------------------------- */
.header *,
.header *::before,
.header *::after {
  box-sizing: border-box;
}

/* ----------------------------------------
   .header — outer wrapper
   Sticky, white bg, 72px tall, subtle shadow
---------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: #fff;

  /* Subtle texture overlay visible in screenshot (diagonal lines, top-left) */
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(0,0,0,0.018) 0px,
      rgba(0,0,0,0.018) 1px,
      transparent 1px,
      transparent 8px
    );
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ----------------------------------------
   .header__inner — flex row, max-width, 72px
---------------------------------------- */
.header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: 72px;           /* gốc: height:72px */
  padding: 0 80px;        /* comfortable desktop padding */
  position: relative;
}

/* ----------------------------------------
   .header__logo — flex row, logo mark + wordmark
---------------------------------------- */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 64px;
}

/* R mark container */
.header__logo-mark {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

/* R SVG — tall, bold */
.header__logo-r {
  width: 38px;
  height: 48px;
  display: block;
}

/* TM superscript — top-right of R */
.header__logo-tm {
  position: absolute;
  top: 2px;
  right: -10px;
  width: 9px;
  height: 6px;
  display: block;
}

/* Wordmark: 2-line text block */
.header__logo-wordmark {
  display: flex;
  flex-direction: column;
  margin-left: 14px;  /* extra space after TM */
}

.header__logo-line1,
.header__logo-line2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #212731;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
}

/* ----------------------------------------
   .header__nav — centre nav links
   Positioned to sit in the centre of the header
---------------------------------------- */
.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 48px;      /* spacing between nav items visible in screenshot */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav links
   Font: DM Sans, 16px, weight 600, uppercase
   Color: #212731 default / #b22a2c active
   Gốc: font-size:16px; font-weight:600; line-height:30px; text-transform:uppercase
*/
.header__nav-link {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 30px;
  text-transform: uppercase;
  color: #212731;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 160ms ease;
  display: inline-block;
}

/* Active state: red, from screenshot "HOME" in red */
.header__nav-link--active {
  color: #b22a2c;
}

.header__nav-link:hover {
  color: #b22a2c;
}

/* ----------------------------------------
   .header__cta — right side: "CONTACT US" + phone button
---------------------------------------- */
.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: 32px;
}

/* "CONTACT US" text label — same style as nav links */
.header__cta-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 30px;
  text-transform: uppercase;
  color: #212731;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 160ms ease;
}

.header__cta-label:hover {
  color: #b22a2c;
}

/* Phone button — round red button from screenshot */
.header__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;       /* perfectly round */
  background-color: #b22a2c;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 160ms ease, transform 140ms ease;
}

.header__cta-btn:hover {
  background-color: #941f21;
  transform: scale(1.05);
}

.header__cta-btn:active {
  transform: scale(0.97);
}

.header__cta-btn svg {
  display: block;
}

/* ----------------------------------------
   .header__hamburger — mobile only, hidden desktop
---------------------------------------- */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.header__hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #212731;
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 240ms ease,
    opacity   200ms ease;
}

.header__hamburger[aria-expanded="true"] .header__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger[aria-expanded="true"] .header__hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.header__hamburger[aria-expanded="true"] .header__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------
   .header__mobile-nav — slide-down drawer
---------------------------------------- */
.header__mobile-nav {
  overflow: hidden;
  max-height: 0;
  background-color: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  transition: max-height 260ms ease;
}

.header__mobile-nav.is-open {
  max-height: 440px;
}

.header__mobile-nav-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.header__mobile-nav-link {
  display: block;
  padding: 13px 24px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #212731;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.header__mobile-nav-link:hover,
.header__mobile-nav-link--active {
  color: #b22a2c;
  border-left-color: #b22a2c;
  background-color: rgba(178, 42, 44, 0.04);
}

.header__mobile-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 20px 16px;
  padding: 12px 20px;
  background-color: #b22a2c;
  color: #fff;
  text-decoration: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 90px;
  justify-content: center;
}

/* ----------------------------------------
   RESPONSIVE: Tablet — 768px
   Logo + compressed nav + phone btn only
---------------------------------------- */
@media (max-width: 1280px) {
  .header__inner {
    padding: 0 40px;
  }

  .header__logo {
    margin-right: 32px;
  }

  .header__nav-list {
    gap: 28px;
  }

  .header__nav-link {
    font-size: 14px;
  }

  .header__cta-label {
    font-size: 14px;
  }
}

/* ----------------------------------------
   RESPONSIVE: Mobile — 768px
   Hamburger replaces nav and cta
---------------------------------------- */
@media (max-width: 768px) {
  .header__inner {
    padding: 0 20px;
  }

  .header__logo {
    margin-right: 0;
  }

  /* Hide desktop nav and cta on mobile */
  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  /* Show hamburger */
  .header__hamburger {
    display: flex;
  }
}

/* ----------------------------------------
   RESPONSIVE: Small mobile — 375px
---------------------------------------- */
@media (max-width: 375px) {
  .header__logo-line1,
  .header__logo-line2 {
    font-size: 11px;
  }

  .header__logo-r {
    width: 32px;
    height: 40px;
  }
}

/* === END SECTION: Header/Nav === */
