@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@400;500;600;700&display=swap");

/* =========================================================
   ROEMAH KENTANG 1908
   Main Stylesheet
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  /* Brand colors */
  --color-heritage-cream: #f5f0e7;
  --color-warm-white: #fffdf8;
  --color-colonial-green: #344c3d;
  --color-colonial-green-dark: #263a2e;
  --color-potato-gold: #c79a45;
  --color-potato-gold-soft: #d8b977;
  --color-deep-brown: #352a24;
  --color-charcoal: #20201e;
  --color-muted-gray: #817a70;
  --color-border: rgba(53, 42, 36, 0.14);
  --color-border-light: rgba(255, 253, 248, 0.2);
  --color-overlay: rgba(21, 22, 20, 0.48);
  --color-overlay-strong: rgba(19, 20, 18, 0.66);

  /* Surfaces */
  --surface-page: var(--color-warm-white);
  --surface-soft: var(--color-heritage-cream);
  --surface-dark: var(--color-charcoal);
  --surface-green: var(--color-colonial-green);

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", Arial, Helvetica, sans-serif;

  /* Font sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(2rem, 4vw, 3rem);
  --fs-3xl: clamp(2.75rem, 7vw, 5.75rem);
  --fs-hero: clamp(3.75rem, 9vw, 8.5rem);

  /* Line heights */
  --lh-tight: 1;
  --lh-heading: 1.08;
  --lh-body: 1.75;

  /* Layout */
  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1180px;
  --container-xl: 1360px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);
  --header-height: 92px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 18px 60px rgba(53, 42, 36, 0.08);
  --shadow-medium: 0 22px 70px rgba(32, 32, 30, 0.14);
  --shadow-dark: 0 30px 90px rgba(0, 0, 0, 0.28);

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 700ms;

  /* Layering */
  --z-background: -1;
  --z-base: 1;
  --z-content: 5;
  --z-header: 50;
  --z-overlay: 80;
  --z-modal: 100;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--surface-page);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

main {
  position: relative;
  z-index: var(--z-base);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote {
  margin: 0;
}

::selection {
  background: var(--color-potato-gold);
  color: var(--color-charcoal);
}

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-deep-brown);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: var(--lh-heading);
}

h1 {
  font-size: var(--fs-hero);
}

h2 {
  font-size: var(--fs-3xl);
}

h3 {
  font-size: var(--fs-2xl);
}

h4 {
  font-size: var(--fs-xl);
}

p {
  color: var(--color-muted-gray);
}

.text-display {
  font-family: var(--font-display);
}

.text-body {
  font-family: var(--font-body);
}

.text-gold {
  color: var(--color-potato-gold);
}

.text-green {
  color: var(--color-colonial-green);
}

.text-cream {
  color: var(--color-heritage-cream);
}

.text-white {
  color: var(--color-warm-white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-potato-gold);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-title {
  max-width: 820px;
}

.section-description {
  max-width: 650px;
  margin-top: var(--space-6);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.lead {
  color: var(--color-deep-brown);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.35;
}

/* =========================================================
   4. GLOBAL LAYOUT
   ========================================================= */
.container {
  width: min(100%, var(--container-xl));
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--lg {
  width: min(100%, var(--container-lg));
}

.container--md {
  width: min(100%, var(--container-md));
}

.container--sm {
  width: min(100%, var(--container-sm));
}

.section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section--tight {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section--cream {
  background: var(--surface-soft);
}

.section--white {
  background: var(--surface-page);
}

.section--green {
  background: var(--surface-green);
  color: var(--color-warm-white);
}

.section--dark {
  background: var(--surface-dark);
  color: var(--color-warm-white);
}

.section--green h2,
.section--green h3,
.section--green h4,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-warm-white);
}

.section--green p,
.section--dark p {
  color: rgba(255, 253, 248, 0.74);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack {
  display: flex;
  flex-direction: column;
}

.stack--sm {
  gap: var(--space-3);
}

.stack--md {
  gap: var(--space-6);
}

.stack--lg {
  gap: var(--space-10);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.flow > * + * {
  margin-top: var(--flow-space, var(--space-6));
}

/* =========================================================
   5. GLOBAL BUTTONS & LINKS
   ========================================================= */
.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  transition:
    transform var(--duration-base) var(--ease-standard),
    background-color var(--duration-base) ease,
    border-color var(--duration-base) ease,
    color var(--duration-base) ease,
    box-shadow var(--duration-base) ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-potato-gold);
  color: var(--color-charcoal);
  box-shadow: 0 14px 30px rgba(199, 154, 69, 0.2);
}

.btn--primary:hover {
  background: var(--color-potato-gold-soft);
}

.btn--secondary {
  border-color: var(--color-border);
  background: transparent;
  color: var(--color-deep-brown);
}

.btn--secondary:hover {
  border-color: var(--color-colonial-green);
  color: var(--color-colonial-green);
}

.btn--light {
  border-color: rgba(255, 253, 248, 0.36);
  background: rgba(255, 253, 248, 0.08);
  color: var(--color-warm-white);
  backdrop-filter: blur(12px);
}

.btn--light:hover {
  background: rgba(255, 253, 248, 0.16);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-deep-brown);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.text-link::after {
  width: 2rem;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width var(--duration-base) var(--ease-standard);
}

.text-link:hover::after {
  width: 3.5rem;
}

/* =========================================================
   6. SITE HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  color: var(--color-warm-white);
  transition:
    height var(--duration-base) var(--ease-standard),
    background-color var(--duration-base) ease,
    color var(--duration-base) ease,
    box-shadow var(--duration-base) ease,
    backdrop-filter var(--duration-base) ease;
}

.site-header.is-scrolled {
  height: 76px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--color-charcoal);
  box-shadow: 0 8px 35px rgba(53, 42, 36, 0.08);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.site-logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-logo img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav__link {
  position: relative;
  padding-block: var(--space-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav__link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--ease-standard);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

/* =========================================================
   7. FULLSCREEN HERO
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: clip;
  place-items: center;
  background: var(--color-charcoal);
  color: var(--color-warm-white);
}

.hero__media {
  position: absolute;
  inset: -6%;
  z-index: 0;
  will-change: transform;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(15, 16, 14, 0.44) 0%,
      rgba(15, 16, 14, 0.16) 38%,
      rgba(15, 16, 14, 0.5) 100%
    );
  content: "";
}

.hero__image,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  padding: calc(var(--header-height) + 2rem) var(--container-padding) 7rem;
  text-align: center;
  will-change: transform, opacity;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-6);
  color: rgba(255, 253, 248, 0.82);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__title {
  color: var(--color-warm-white);
  font-size: clamp(4rem, 9.5vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__title em {
  display: block;
  color: var(--color-potato-gold-soft);
  font-weight: 400;
}

.hero__description {
  max-width: 590px;
  margin: var(--space-8) auto 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.8;
  text-wrap: balance;
}

.hero__actions {
  justify-content: center;
  margin-top: var(--space-10);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 253, 248, 0.7);
  transform: translateX(-50%);
}

.hero__scroll-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 54px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.2);
}

.hero__scroll-line::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 70%;
  background: var(--color-warm-white);
  content: "";
  animation: hero-scroll-line 2.1s var(--ease-standard) infinite;
}

@keyframes hero-scroll-line {
  0% {
    transform: translateY(0);
  }

  65%,
  100% {
    transform: translateY(245%);
  }
}

/* =========================================================
   8. HOME INTRO SHELL
   ========================================================= */
.home-intro {
  position: relative;
  z-index: 4;
  background: var(--surface-soft);
}

.home-intro::before {
  position: absolute;
  top: -56px;
  right: 0;
  left: 0;
  height: 58px;
  border-radius: 56px 56px 0 0;
  background: var(--surface-soft);
  content: "";
}

.home-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.home-intro__content {
  max-width: 620px;
}

.home-intro__visual {
  position: relative;
  min-height: 560px;
}

/* =========================================================
   9. MEDIA & DECORATIVE HELPERS
   ========================================================= */
.media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ded7cb;
  box-shadow: var(--shadow-soft);
}

.image-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.decorative-line {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.decorative-line::before,
.decorative-line::after {
  width: 4rem;
  height: 1px;
  background: var(--color-potato-gold);
  content: "";
}

.decorative-dot {
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--color-potato-gold);
  transform: rotate(45deg);
}

/* =========================================================
   10. ACCESSIBILITY
   ========================================================= */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-charcoal);
  color: var(--color-warm-white);
  transform: translateY(-150%);
  transition: transform var(--duration-fast) ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--color-potato-gold);
  outline-offset: 4px;
}

/* =========================================================
   11. UTILITIES
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mx-auto {
  margin-inline: auto;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-10 {
  margin-top: var(--space-10);
}

/* =========================================================
   12. REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__media,
  .hero__content {
    transform: none !important;
  }
}