/* =========================================================
   CROWNSY DESIGN STATEMENT
   Timeless Premium — Black, White & Ivory
========================================================= */

/* =========================================================
   RESET & BASE
========================================================= */

:root {
  --cs-black: #111111;
  --cs-charcoal: #252525;
  --cs-white: #ffffff;
  --cs-ivory: #f7f5f0;
  --cs-ivory-dark: #eeebe4;
  --cs-gray: #66615b;
  --cs-border: #e5e1d9;

  --cs-font-body: "Montserrat", sans-serif;
  --cs-font-heading: "Prata", Georgia, serif;

  --cs-container-width: 1160px;
  --cs-section-space: clamp(56px, 8vw, 100px);
  --cs-transition: 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--cs-font-body);
  background: var(--cs-white);
  color: var(--cs-black);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--cs-font-heading);
  font-weight: 400;
  color: var(--cs-black);
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
.floating-wa:focus-visible,
.close:focus-visible {
  outline: 2px solid #8a7651;
  outline-offset: 4px;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
  width: min(90%, var(--cs-container-width));
  margin-inline: auto;
  padding: clamp(52px, 7vw, 88px) 0;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: min(88svh, 900px);
  min-height: 560px;

  overflow: hidden;
  text-align: center;
  color: var(--cs-white);
  background: var(--cs-charcoal);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.28) 48%,
    rgba(0, 0, 0, 0.56) 100%
  );
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;

  filter: brightness(0.82);
}

.hero-content {
  position: relative;
  z-index: 2;

  width: min(90%, 900px);
  margin-inline: auto;
  padding: 30px 12px;

  color: var(--cs-white);
  animation: csFadeUp 1s ease both;
}

.hero h1 {
  margin-bottom: 18px;

  color: var(--cs-white);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1.14;
  letter-spacing: 0.035em;
  font-weight: 400;
}

.hero p,
#hero-content-title p {
  max-width: 720px;
  margin: 0 auto;

  color: var(--cs-white);
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  line-height: 1.9;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* =========================================================
   GENERAL SECTIONS
========================================================= */

.container > section {
  margin-bottom: var(--cs-section-space);
}

.container > section:last-child {
  margin-bottom: 0;
}

.container section h2 {
  max-width: 850px;
  margin: 0 auto 26px;

  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.28;
  letter-spacing: 0.005em;
  text-align: center;
}

.container section p {
  max-width: 790px;
  margin: 0 auto 20px;

  color: var(--cs-charcoal);
  font-size: 0.96rem;
  line-height: 2;
  text-align: center;
}

.container section p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   DESIGN STATEMENT
========================================================= */

#design-statement {
  padding-top: 8px;
}

#design-statement h2 {
  position: relative;
  padding-bottom: 22px;
}

#design-statement h2::after,
#design-approach h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 54px;
  height: 1px;

  background: #9c8966;
  transform: translateX(-50%);
}

#design-statement p + p {
  margin-top: 18px;
}

/* =========================================================
   DESIGN PRINCIPLES / FEATURES
========================================================= */

#values {
  padding: clamp(32px, 5vw, 58px);
  background: var(--cs-ivory);
}

#values h2 {
  margin-bottom: 12px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;

  margin-top: 38px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 0;
  padding: 30px 22px;

  border: 1px solid var(--cs-border);
  background: rgba(255, 255, 255, 0.72);

  transition:
    transform var(--cs-transition),
    border-color var(--cs-transition),
    background-color var(--cs-transition);
}

.feature h3 {
  margin-bottom: 13px;

  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  text-align: center;
}

.feature p {
  width: 100%;
  margin: 0;

  font-size: 0.88rem;
  line-height: 1.9;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .feature:hover {
    transform: translateY(-4px);
    border-color: #c8bda9;
    background: var(--cs-white);
  }
}

/* =========================================================
   WHY TIMELESS
========================================================= */

#why-timeless h2 {
  max-width: 760px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 5vw, 68px);

  margin-top: 36px;
}

.columns > div {
  min-width: 0;
}

.columns > div + div {
  position: relative;
}

.columns > div + div::before {
  content: "";
  position: absolute;
  top: 5%;
  bottom: 5%;
  left: calc(clamp(26px, 5vw, 68px) / -2);

  width: 1px;
  background: var(--cs-border);
}

.columns p {
  max-width: 100%;
}

/* =========================================================
   SECTION BARU: DESIGN APPROACH
========================================================= */

#design-approach {
  position: relative;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 70px);

  background: var(--cs-ivory);
  border-top: 1px solid var(--cs-border);
  border-bottom: 1px solid var(--cs-border);
}

#design-approach h2 {
  position: relative;
  padding-bottom: 24px;
}

#design-approach p {
  max-width: 760px;
}

/* =========================================================
   CALL TO ACTION
========================================================= */

.cta {
  padding: clamp(36px, 6vw, 72px) 24px;
  text-align: center;

  background: var(--cs-white);
  border: 1px solid var(--cs-border);
}

.container section.cta h2 {
  margin-bottom: 18px;
}

.container section.cta p {
  max-width: 700px;
  margin-bottom: 30px;
}

.cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  max-width: 100%;
  padding: 15px 34px;

  border: 1px solid var(--cs-black);
  background: var(--cs-black);
  color: var(--cs-white);

  font-family: var(--cs-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;

  transition:
    color var(--cs-transition),
    background-color var(--cs-transition),
    border-color var(--cs-transition);
}

@media (hover: hover) and (pointer: fine) {
  .cta a:hover {
    background: var(--cs-white);
    color: var(--cs-black);
  }
}

.cta a:active {
  transform: translateY(1px);
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes csFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   LAPTOP & TABLET LANDSCAPE
========================================================= */

@media (max-width: 1100px) {
  .container {
    width: 88%;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  #values {
    padding: 38px 28px;
  }

  .feature {
    padding: 28px 22px;
  }
}

/* =========================================================
   TABLET & MOBILE LANDSCAPE
========================================================= */

@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  body {
    font-size: 14px;
  }

  .container {
    width: 90%;
    padding: 46px 0;
  }

  /* HERO */

  .hero {
    height: 76svh;
    min-height: 480px;
    max-height: 760px;
  }

  .hero img {
    object-position: center center;
  }

  .hero-content {
    width: 90%;
    padding: 24px 8px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.25rem, 7.5vw, 3.5rem);
    line-height: 1.18;
    letter-spacing: 0.025em;
  }

  .hero p,
  #hero-content-title p {
    max-width: 500px;
    font-size: 0.76rem;
    line-height: 1.9;
    letter-spacing: 0.09em;
  }

  /* SECTION */

  .container > section {
    margin-bottom: 58px;
  }

  .container section h2 {
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 5.2vw, 2.35rem);
    line-height: 1.3;
  }

  .container section p {
    font-size: 0.91rem;
    line-height: 1.9;
  }

  /* FEATURES */

  #values {
    padding: 34px 24px;
  }

  .features {
    gap: 15px;
    margin-top: 28px;
  }

  .feature {
    padding: 25px 20px;
  }

  .feature h3 {
    font-size: 1.12rem;
  }

  .feature p {
    font-size: 0.87rem;
  }

  /* COLUMNS */

  .columns {
    gap: 24px;
    margin-top: 28px;
  }

  .columns > div + div::before {
    display: none;
  }

  /* DESIGN APPROACH */

  #design-approach {
    padding: 38px 24px;
  }

  /* CTA */

  .cta {
    padding: 38px 22px;
  }

  .cta a {
    min-height: 48px;
    padding: 14px 25px;
    font-size: 0.76rem;
  }

  /* WHATSAPP */

  .floating-wa {
    right: 16px;
    bottom: 16px;
    min-height: 46px;
    padding: 11px 16px;
    font-size: 0.78rem;
  }

  .wa-box {
    padding: 28px 22px;
  }
}

/* =========================================================
   MOBILE PORTRAIT
========================================================= */

@media (max-width: 600px) {
  .container {
    width: 91%;
    padding: 38px 0;
  }

  .container > section {
    margin-bottom: 48px;
  }

  /* HERO */

  .hero {
    height: 72svh;
    min-height: 440px;
    max-height: 650px;
  }

  .hero img {
    object-position: center center;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.32) 48%,
      rgba(0, 0, 0, 0.64) 100%
    );
  }

  .hero-content {
    width: 92%;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.2;
    letter-spacing: 0.015em;
  }

  .hero p,
  #hero-content-title p {
    max-width: 360px;
    font-size: 0.7rem;
    line-height: 1.85;
    letter-spacing: 0.065em;
  }

  /* GENERAL SECTION */

  .container section h2 {
    margin-bottom: 17px;
    font-size: clamp(1.65rem, 7vw, 2rem);
    line-height: 1.32;
  }

  .container section p {
    font-size: 0.88rem;
    line-height: 1.9;
    text-align: left;
  }

  #design-statement h2,
  #values h2,
  #why-timeless h2,
  #design-approach h2,
  .container section.cta h2 {
    text-align: center;
  }

  /* FEATURES */

  #values {
    padding: 32px 18px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 24px;
  }

  .feature {
    padding: 23px 19px;
  }

  .feature h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
  }

  .feature p {
    font-size: 0.86rem;
    text-align: center;
  }

  /* COLUMNS */

  .columns {
    grid-template-columns: 1fr;
    gap: 19px;
    margin-top: 24px;
  }

  /* DESIGN APPROACH */

  #design-approach {
    padding: 32px 20px;
  }

  /* CTA */

  .cta {
    padding: 32px 19px;
  }

  .container section.cta p {
    margin-bottom: 24px;
    text-align: center;
  }

  .cta a {
    width: 100%;
    max-width: 340px;
    padding: 14px 18px;
    font-size: 0.73rem;
    letter-spacing: 0.09em;
  }

  /* WHATSAPP */

  .floating-wa {
    right: 13px;
    bottom: 13px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.74rem;
  }

  .wa-popup {
    padding: 16px;
  }

  .wa-box {
    padding: 25px 19px;
  }

  .wa-box h3 {
    font-size: 1.45rem;
  }

  .close {
    margin-top: 8px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
  .container {
    width: 92%;
    padding: 32px 0;
  }

  .hero {
    min-height: 420px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.3rem);
  }

  .hero p,
  #hero-content-title p {
    font-size: 0.66rem;
    letter-spacing: 0.045em;
  }

  .container section h2 {
    font-size: 1.55rem;
  }

  .container section p {
    font-size: 0.85rem;
  }

  #values {
    padding: 27px 14px;
  }

  .feature {
    padding: 21px 15px;
  }

  #design-approach {
    padding: 28px 16px;
  }

  .cta {
    padding: 28px 15px;
  }

  .cta a {
    font-size: 0.7rem;
  }

  .floating-wa {
    right: 10px;
    bottom: 10px;
  }
}

/* =========================================================
   REDUCED MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
