/*
  Haniel Anugerah Website
  Multi-page static website
*/

:root {
  --bg: #f7f2ea;
  --surface: #fffaf2;
  --text: #1f1d1b;
  --muted: #6e655d;
  --accent: #8b5e34;
  --accent-dark: #5f3f22;
  --line: rgba(31, 29, 27, 0.14);
  --shadow: 0 18px 44px rgba(31, 29, 27, 0.08);
  --radius: 24px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

p {
  color: var(--muted);
  font-size: 1.05rem;
}

.site-header {
  width: 100%;
  position: static;
  z-index: 20;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.home-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.logo.monogram {
  font-size: 1.38rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.home-page .site-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.home-page .site-nav a:hover,
.home-page .site-nav a.active {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.home-page .nav-toggle span {
  background: #fff;
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.home-hero {
  min-height: 100vh;
  background-image: url("assets/haniel-homepage-banner.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 32px 88px;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.34), rgba(0,0,0,0.12)),
    linear-gradient(to right, rgba(0,0,0,0.36), rgba(0,0,0,0.04));
}

.home-hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  color: #fff;
}

.home-kicker {
  color: rgba(255, 255, 255, 0.78);
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.08rem;
  margin: 0 0 14px;
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(4rem, 10vw, 8.6rem);
  letter-spacing: -0.07em;
  line-height: 0.92;
  margin: 0;
  max-width: 980px;
}

.home-tagline {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.16rem, 2vw, 1.48rem);
  margin: 20px 0 0;
  max-width: 680px;
}

h1, h2, h3 {
  line-height: 1.12;
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
}

.page-title {
  padding-top: 84px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.content-section {
  border-bottom: 1px solid var(--line);
}

.two-column,
.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.prose {
  max-width: 780px;
}

.prose p:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 1.08rem;
}

.home-intro {
  border-bottom: 1px solid var(--line);
}

.welcome-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.welcome-block h2 {
  margin-bottom: 24px;
}

.welcome-block p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--muted);
}

.section-title {
  margin-bottom: 36px;
}

.center {
  text-align: center;
}

.social-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.social-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.social-card:hover {
  transform: translateY(-3px);
}

.social-card span {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.social-card small {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.feature-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.feature-card p {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.lesson-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.lesson-panel > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.lesson-panel ul {
  padding-left: 20px;
  color: var(--muted);
}

.lesson-panel li {
  margin-bottom: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  min-height: 340px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.contact-card {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  color: #fff;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.72);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-socials {
  margin-top: 28px;
}

.social-links a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 3px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

input, textarea {
  resize: vertical;
  overflow: auto;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.65);
}

.form-note {
  font-size: 0.85rem;
  margin: 0;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .site-nav {
    gap: 18px;
    font-size: 0.76rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 22px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    display: none;
  }

  .home-page .site-nav {
    background: rgba(0, 0, 0, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .site-nav.open {
    display: flex;
  }

  .two-column,
  .intro-grid,
  .contact-card,
  .lesson-panel,
  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card .button {
    width: 100%;
  }

  .gallery-grid,
  .social-card-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .page-title {
    padding-top: 64px;
    padding-bottom: 36px;
  }

  .home-hero {
    min-height: 100svh;
    padding: 0 22px 72px;
    background-position: 62% center;
  }
}

@media (max-width: 560px) {
  .section {
    width: calc(100% - 24px);
  }

  .home-hero h1 {
    font-size: 3.6rem;
  }

  .button {
    width: 100%;
  }

  .contact-card,
  .feature-card,
  .lesson-panel > div,
  .social-card {
    padding: 26px;
  }
}

/* Restored original Contact form field styling */
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 16px;
  padding: 13px 15px;
  font: inherit;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
  resize: vertical;
  overflow: auto;
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.08) inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* Corrected homepage social icons */
.social-icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  width: 100%;
}

.social-icon-link {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid rgba(31, 29, 27, 0.18);
  box-shadow: 0 10px 24px rgba(31, 29, 27, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-icon-link svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: var(--text);
  flex-shrink: 0;
}

.social-icon-link:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 94, 52, 0.45);
}

@media (max-width: 560px) {
  .social-icon-row {
    gap: 14px;
  }

  .social-icon-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .social-icon-link svg {
    width: 21px;
    height: 21px;
  }
}

/* Landscape photo placement and original layout */
.gallery-item-wide {
  grid-column: 1 / -1;
}

.gallery-item-preserve {
  min-height: auto;
  padding: 0;
  background: var(--surface);
}

.gallery-item-preserve img {
  width: 100%;
  height: auto;
  min-height: auto;
  object-fit: contain;
  display: block;
}

/* Centered Performances button text */
.performance-button,
.feature-card .button {
  text-align: center;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
  min-width: 138px;
}

.performance-button span {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .gallery-item-wide {
    grid-column: 1;
  }
}

/* Homepage title placement: upper-left, one-line name, away from the face */
.home-hero {
  align-items: flex-start;
  padding: 142px 32px 0;
}

.home-hero-overlay {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.78), rgba(0,0,0,0.32), rgba(0,0,0,0.18)),
    linear-gradient(to right, rgba(0,0,0,0.62), rgba(0,0,0,0.12), rgba(0,0,0,0.02));
}

.home-hero-content {
  align-self: flex-start;
}

.home-hero h1 {
  font-size: clamp(4.8rem, 8.6vw, 7.9rem);
  letter-spacing: 0.01em;
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .home-hero {
    align-items: flex-start;
    padding: 128px 22px 0;
    background-position: 62% center;
  }

  .home-hero h1 {
    font-size: clamp(3.85rem, 9vw, 6.1rem);
    white-space: nowrap;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .home-hero {
    padding-top: 112px;
  }

  .home-hero h1 {
    font-size: 3.2rem;
    white-space: nowrap;
  }
}

/* Even homepage name spacing */
.home-hero h1 {
  letter-spacing: 0.035em;
  font-kerning: none;
  font-feature-settings: "kern" 0;
  text-rendering: geometricPrecision;
  word-spacing: 0.08em;
}

/* Precise homepage name spacing */
.home-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.26em;
  white-space: nowrap;
}

.home-name .name-word {
  display: inline-flex;
  gap: 0.02em;
}

.home-name .name-letter {
  display: inline-block;
}

@media (max-width: 900px) {
  .home-name {
    gap: 0.22em;
  }

  .home-name .name-word {
    gap: 0.018em;
  }
}

@media (max-width: 560px) {
  .home-name {
    gap: 0.18em;
  }

  .home-name .name-word {
    gap: 0.016em;
  }
}

/* Bio page centered text column */
.bio-centered-section {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.bio-centered-prose {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.bio-centered-prose p {
  text-align: left;
}

/* News page */
.news-list {
  display: grid;
  gap: 34px;
  max-width: 980px;
  margin: 0 auto;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.featured-news {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1.08fr);
  align-items: stretch;
}

.reverse-news {
  grid-template-columns: minmax(280px, 1.08fr) minmax(260px, 0.92fr);
}

.reverse-news .news-image-wrap {
  order: 2;
}

.news-image-wrap {
  min-height: 320px;
  background: rgba(255, 255, 255, 0.04);
}

.news-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.logo-news-image {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.logo-news-image img {
  width: min(86%, 430px);
  height: auto;
  min-height: 0;
  object-fit: contain;
  filter: none;
}

.news-card-content {
  padding: clamp(30px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.news-card h2 {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.news-detail {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.news-location {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-detail + .news-location {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .featured-news,
  .reverse-news {
    grid-template-columns: 1fr;
  }

  .reverse-news .news-image-wrap {
    order: 0;
  }

  .news-image-wrap {
    min-height: 260px;
  }

  .news-image-wrap img {
    min-height: 260px;
  }

  .logo-news-image img {
    min-height: 0;
  }
}

/* Utility */
.hidden {
  display: none !important;
}

/* News card hover interaction */
.news-card {
  position: relative;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.news-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
}

.news-image-wrap {
  overflow: hidden;
}

.news-image-wrap img {
  transition: transform 0.45s ease;
}

.news-card:hover .news-image-wrap img {
  transform: scale(1.035);
}

.logo-news-image img {
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.news-card:hover .logo-news-image img {
  transform: scale(1.04);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

/* Mobile layout polish */
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    text-align: center;
  }

  .section,
  .home-section,
  .content-section,
  .page-title,
  .home-contact {
    width: min(100% - 40px, var(--max-width));
    margin-left: auto;
    margin-right: auto;
  }

  .site-header {
    width: 100%;
  }

  .header-inner {
    width: min(100% - 32px, var(--max-width));
    margin-left: auto;
    margin-right: auto;
    padding: 16px 0;
    gap: 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .brand {
    margin: 0 auto;
  }

  .site-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .site-nav a {
    padding: 6px 2px;
    font-size: 0.9rem;
  }

  .home-hero {
    min-height: 78vh;
    padding: 150px 20px 72px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    background-position: 62% center;
  }

  .home-hero-content {
    width: min(100%, 520px);
    margin: 0 auto;
    align-items: center;
    text-align: center;
  }

  .home-kicker {
    text-align: center;
    font-size: 0.96rem;
    letter-spacing: 0.14em;
  }

  .home-hero h1,
  .home-name {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: clamp(2.7rem, 13vw, 4.2rem);
    line-height: 0.95;
    white-space: normal;
  }

  .home-name {
    flex-wrap: wrap;
    gap: 0.18em;
  }

  .welcome-block,
  .home-social,
  .feature-card,
  .contact-card,
  .news-card,
  .bio-centered-prose,
  .prose {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .welcome-block,
  .home-social,
  .feature-card,
  .contact-card,
  .news-card-content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .welcome-block p,
  .prose p,
  .bio-centered-prose p,
  .feature-card p,
  .contact-card p,
  .news-card p {
    text-align: left;
    line-height: 1.75;
  }

  .page-title {
    padding-top: 58px;
    padding-bottom: 34px;
    text-align: left;
  }

  .page-title h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .content-section.section,
  .home-contact.section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .bio-centered-section {
    width: min(100% - 40px, var(--max-width));
    max-width: 100%;
  }

  .bio-centered-prose {
    max-width: 680px;
  }

  .feature-card {
    display: grid;
    gap: 26px;
    text-align: center;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .feature-card h2,
  .contact-card h2,
  .news-card h2 {
    text-align: center;
  }

  .performance-button,
  .feature-card .button,
  .button.primary {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    text-align: center;
  }

  .gallery-grid {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-item {
    width: 100%;
    border-radius: 22px;
  }

  .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .news-list {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    gap: 28px;
  }

  .featured-news,
  .reverse-news {
    grid-template-columns: 1fr;
  }

  .reverse-news .news-image-wrap {
    order: 0;
  }

  .news-image-wrap,
  .news-image-wrap img {
    min-height: 240px;
  }

  .news-card-content {
    padding-top: 28px;
    padding-bottom: 30px;
    text-align: center;
  }

  .news-date,
  .news-detail,
  .news-location {
    text-align: center !important;
  }

  .logo-news-image {
    padding: 28px;
  }

  .logo-news-image img {
    width: min(82%, 320px);
  }

  .contact-card {
    display: grid;
    gap: 28px;
    padding: 28px 22px;
    border-radius: 22px;
    text-align: center;
  }

  .contact-form {
    width: 100%;
  }

  .contact-form label {
    text-align: left;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .social-icon-row {
    justify-content: center;
    gap: 14px;
  }

  .site-footer {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .section,
  .home-section,
  .content-section,
  .page-title,
  .home-contact,
  .bio-centered-section {
    width: calc(100% - 32px);
  }

  .header-inner {
    width: calc(100% - 28px);
  }

  .home-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-hero h1,
  .home-name {
    font-size: clamp(2.35rem, 12.6vw, 3.4rem);
  }

  .welcome-block,
  .home-social,
  .feature-card,
  .contact-card,
  .news-card-content {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Keep the icon exactly the same when opened */
.menu-toggle.is-open span,
.menu-toggle.is-open span:nth-child(1),
.menu-toggle.is-open span:nth-child(2),
.menu-toggle.is-open span:nth-child(3) {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    z-index: 100;
  }

  .header-inner {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: min(100% - 32px, var(--max-width));
    margin-left: auto;
    margin-right: auto;
    padding: 16px 0;
  }

  .brand {
    margin: 0 !important;
    flex: 0 0 auto;
  }

  .menu-toggle {
    display: inline-flex !important;
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    left: auto !important;
    transform: translateY(-50%) !important;
  }

  .menu-toggle.is-open {
    transform: translateY(-50%) !important;
  }

  .site-nav {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    left: auto !important;
    width: min(265px, calc(100vw - 40px)) !important;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(16, 16, 18, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
    z-index: 250;
  }

  .site-nav.is-open {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .site-nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.96rem;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (min-width: 761px) {
  .menu-toggle {
    display: none !important;
  }

  .site-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 420px) {
  .header-inner {
    width: calc(100% - 28px);
  }

  .site-nav {
    width: min(255px, calc(100vw - 32px)) !important;
  }
}

/* Single original tab icon */
.menu-toggle {
  display: none !important;
}

.nav-toggle {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  padding: 6px !important;
  margin: 0 !important;
  width: 42px;
  height: 42px;
  z-index: 300;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 999px;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.nav-toggle.open span,
.nav-toggle.open span:nth-child(1),
.nav-toggle.open span:nth-child(2),
.nav-toggle.open span:nth-child(3) {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    z-index: 100;
  }

  .nav-toggle {
    display: block !important;
    color: var(--text);
    flex: 0 0 auto;
  }

  .home-page .nav-toggle {
    color: #fff;
  }

  .site-nav {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 22px !important;
    right: auto !important;
    width: min(265px, calc(100vw - 44px)) !important;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(16, 16, 18, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
    z-index: 250;
  }

  .site-nav.open {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .site-nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.96rem;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (min-width: 761px) {
  .nav-toggle {
    display: none !important;
  }

  .site-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Contact form status */
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status.error {
  color: #ffb4b4;
}

.contact-form button[disabled] {
  opacity: 0.68;
  cursor: wait;
}

.thank-you-card {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

