/* ============================================================
   ALVA Living Indonesia — Shared Stylesheet
   ============================================================ */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  --bg-base: #FAF8F5;
  --surface: #F2EDE7;
  --surface-2: #E8E0D6;
  --text-primary: #2C2826;
  --text-muted: #6B635B;
  --text-faint: #9C938A;
  --accent-blue: #3B7A9E;
  --accent-blue-hover: #2D6380;
  --accent-green: #5A8F6E;
  --accent-green-hover: #4a7d5d;
  --white: #FFFFFF;
  --border-light: #C5BAB0;
  --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1100px;
  --prose-max: 65ch;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  --radius: 8px;
  --radius-lg: 12px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

a:hover {
  color: var(--accent-blue-hover);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

p {
  max-width: var(--prose-max);
}

.section-intro {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: var(--space-2xl);
  max-width: var(--prose-max);
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

/* ========== FADE IN ON SCROLL ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== HEADER / NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.site-header.scrolled {
  background-color: rgba(250, 248, 245, 0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  display: block;
  width: 176px;
  height: auto;
}

@media (max-width: 480px) {
  .logo img {
    width: 160px; /* brand minimum width for the horizontal lockup */
  }
}

/* White lockup over the hero; gold lockup once the header gains its
   light background on scroll */
.logo .logo-on-light {
  display: none;
}

.site-header.scrolled .logo-on-dark {
  display: none;
}

.site-header.scrolled .logo-on-light {
  display: block;
}

.desktop-nav {
  display: none;
}

.desktop-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  transition: color 180ms var(--ease-out);
}

.site-header.scrolled .desktop-nav a {
  color: var(--text-muted);
}

.desktop-nav a:hover {
  color: var(--white);
}

.site-header.scrolled .desktop-nav a:hover {
  color: var(--text-primary);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 3px 0;
  transition: transform 300ms var(--ease-out), opacity 200ms var(--ease-out), background 180ms var(--ease-out);
  border-radius: 1px;
}

.site-header.scrolled .hamburger span {
  background: var(--text-primary);
}

.hamburger.active span {
  background: var(--text-primary);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-base);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  transition: color 180ms var(--ease-out);
}

.mobile-nav a:hover {
  color: var(--accent-blue);
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 180ms var(--ease-out);
  min-height: 48px;
  min-width: 44px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-whatsapp {
  background: var(--accent-green);
  color: var(--white);
  width: 100%;
}

.btn-whatsapp:hover {
  background: var(--accent-green-hover);
  color: var(--white);
}

/* ========== HERO (shared base) ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5xl) var(--space-lg) var(--space-3xl);
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,40,38,0.55) 0%, rgba(44,40,38,0.35) 50%, rgba(44,40,38,0.6) 100%);
  z-index: 1;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-lg);
}

.hero-text {
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-green);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-indicator .line {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.3);
}

/* ========== FAQ ACCORDION ========== */
.faq-list {
  max-width: 740px;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-light);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.4;
  gap: var(--space-md);
  min-height: 44px;
}

.faq-question:hover {
  color: var(--accent-blue);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 300ms var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  border-radius: 1px;
}

.faq-icon::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 300ms var(--ease-out), opacity 200ms var(--ease-out);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-out);
}

.faq-answer-inner {
  padding-bottom: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
  max-width: var(--prose-max);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 180ms var(--ease-out);
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.office-list {
  margin-bottom: var(--space-2xl);
}

.office-item {
  margin-bottom: var(--space-md);
}

.office-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.office-item span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--surface-2);
  padding: var(--space-xl) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-logo {
  width: 30px;
  height: auto;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

.footer-links a:hover {
  color: var(--text-primary);
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms var(--ease-out);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}
