/* ==========================================================================
   layout.css — header, footer, hero, section
   ========================================================================== */

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg); /* fallback bila color-mix belum didukung */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand:hover .brand-mark { color: var(--accent); }

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--text);
  flex: none;
  transition: color var(--dur) var(--ease);
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.brand-sub {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.2vw, 1.9rem);
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
  padding: .35rem 0;
}
.site-nav a:hover { color: var(--text); }

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.site-nav a:hover::after { transform: scaleX(.5); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  flex: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 620px) {
  .header-inner { min-height: 60px; padding-block: .6rem; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; }
  /* "PHOTOGRAPHY" tetap ditampilkan — di 320px pun brand hanya ~140px,
     masih jauh dari cukup. Spasi hurufnya sedikit dirapatkan saja. */
  .brand-sub { letter-spacing: .26em; }
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  height: clamp(460px, 82vh, 780px);
  overflow: hidden;
  background: var(--surface-alt);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 14, .5) 0%, rgba(6, 10, 14, .3) 40%, rgba(6, 10, 14, .82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  gap: .35rem;
}

.hero-mark { width: clamp(58px, 9vw, 84px); height: auto; color: #fff; }

.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.25rem);
  margin: .5rem 0 0;
  letter-spacing: .02em;
  color: #fff;
}

.hero-sub {
  font-size: clamp(.6rem, 1.5vw, .78rem);
  font-weight: 600;
  letter-spacing: .48em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  margin: 0 0 1.4rem;
  padding-left: .48em;
}

.hero-tagline {
  max-width: 46ch;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(.95rem, 1.7vw, 1.1rem);
  margin-bottom: 1.9rem;
}

/* --- section -------------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--alt { background: var(--surface-alt); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-head h2 { margin-bottom: .25rem; }

.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--border);
}

/* --- footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.footer-tagline {
  margin: .35rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 1.35rem;
  font-size: .9rem;
}
.footer-social a { color: var(--muted); }
.footer-social a:hover { color: var(--accent); }

.footer-note {
  width: 100%;
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
