/* ── V3 SERENE — base styles, animations, reset ── */

:root {
  --surface:  #F2EDE6;
  --linen:    #EDE6DC;
  --dark:     #2A2724;
  --secondary:#7A7268;
  --muted:    #B0A898;
  --black:    #0E0D0C;
  --hairline:       rgba(58, 50, 42, 0.08);
  --hairline-strong:rgba(58, 50, 42, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--dark);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--dark);
  color: var(--surface);
}

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

input, textarea, button, select { font-family: inherit; }

/* ── Keyframes ── */

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer-warm {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@keyframes odometer-settle {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* ── Nav placeholder height ── */
.nav-spacer { height: 64px; }

/* ── Hero image warm filter ── */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) sepia(20%) brightness(0.88) contrast(1.05);
}

/* ── Gallery image ── */
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) sepia(20%) brightness(0.85) contrast(1.04);
  transition: filter 1200ms var(--ease);
}
.gallery-cell:hover .gallery-img {
  filter: grayscale(20%) sepia(12%) brightness(0.9) contrast(1.02);
}

/* ── FIQ Advisor scrollable area ── */
.fiq-msgs { scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.fiq-msgs::-webkit-scrollbar { width: 3px; }
.fiq-msgs::-webkit-scrollbar-thumb { background: var(--muted); }

/* ── Form input base ── */
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(242,237,230,0.22);
  padding: 12px 0;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 200;
  color: #F2EDE6;
  outline: none;
  transition: border-color 400ms var(--ease);
}
.form-input::placeholder { color: rgba(176,168,152,0.5); }
.form-input:focus { border-bottom-color: rgba(242,237,230,0.55); }

.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(242,237,230,0.22);
  padding: 12px 0;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 200;
  color: #F2EDE6;
  outline: none;
  resize: vertical;
}
.form-textarea::placeholder { color: rgba(176,168,152,0.5); }

/* ── FIQ input ── */
.fiq-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--dark);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 200;
  outline: none;
}
.fiq-input-field::placeholder { color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-photo { display: none !important; }
  .two-col { grid-template-columns: 1fr !important; }
  .three-col { grid-template-columns: 1fr 1fr !important; }
  .four-col { grid-template-columns: 1fr 1fr !important; }
  .five-col { grid-template-columns: 1fr 1fr !important; }
  .container-pad { padding: 0 40px !important; }
}

@media (max-width: 680px) {
  .three-col { grid-template-columns: 1fr !important; }
  .four-col  { grid-template-columns: 1fr !important; }
  .two-col   { grid-template-columns: 1fr !important; }
  .container-pad { padding: 0 24px !important; }
}
