/* ============================================================
   TRINITY PROPERTY SOLUTIONS — "Bronze on Black" Editorial System
   Trinidad & Tobago • Real Estate & Property Management
   Palette: near-black + charcoal + bronze-gold on cool bone/ivory
   Type: Playfair Display (display/prices) · Jost (UI/body)
   Language: square-cornered editorial minimalism — thin gold
   dividers, restrained dark-glass tags, full-bleed video hero.
   NOTE: legacy token NAMES kept (--teal-*, --terracotta, …) but
   remapped to bronze/black/bone values, to avoid touching dozens
   of var() call sites for zero visual gain.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Jost:wght@300;400;500;600;700&display=swap');

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  /* DARKS — near-black, matching the gold-on-black logo */
  --teal-deeper: #0b0d10;
  --teal-deep:   #14171b;
  --charcoal:    #191d23;
  /* BRONZE-GOLD accent (deeper metal vs Decle's warm #d4a574) */
  --teal:        #c49a4a;
  --teal-bright: #dcbd7a;
  --bronze:      #c49a4a;
  --bronze-deep: #a07d34;
  --bronze-light:#dcbd7a;
  --terracotta:  #c49a4a;
  --terracotta-d:#a07d34;
  --coral:       #dcbd7a;
  --ochre:       #dcbd7a;
  /* COOL BONE / IVORY neutrals (cooler than Decle's warm cream) */
  --sand:        #f2f0ea;
  --sand-deep:   #e8e5dc;
  --sand-card:   #faf9f5;
  --ink:         #16191d;
  --muted:       #6b7179;
  --line:        #e4e0d5;
  --white:       #ffffff;

  /* faint bone/bronze washes */
  --tint-teal:   #efeade;
  --tint-coral:  #f1ead7;
  --tint-sand:   #efe9dc;
  --tint-ochre:  #f3ecd8;

  --nav-h:       72px;
  /* calm, single-direction elevation scale — soft, never heavy */
  --shadow-sm:   0 2px 16px rgba(13, 15, 18, 0.05);
  --shadow-md:   0 10px 30px rgba(13, 15, 18, 0.08);
  --shadow-lg:   0 22px 55px rgba(13, 15, 18, 0.12);
  --shadow-teal: 0 8px 22px rgba(20, 23, 27, 0.10);
  --shadow-terra:0 8px 20px rgba(196, 154, 74, 0.18);
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm:        0px;
  --r-md:        0px;
  --r-lg:        0px;
  --r-xl:        0px;

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Jost', 'Helvetica Neue', Arial, sans-serif;
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; }

body {
  font-family: var(--font-sans);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--bronze); color: #14171b; }

/* ─── LIGHT-GLASS FULL-BLEED NAVBAR ─────────────────────── */
.nav-shell {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: padding 0.4s var(--ease);
}
.navbar {
  max-width: none;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  border-radius: 0;
  background: rgba(248, 246, 240, 0.32);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 24px rgba(20, 23, 27, 0.10);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav-shell.scrolled .navbar {
  background: rgba(248, 246, 240, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px rgba(13, 15, 18, 0.12);
  border-bottom-color: rgba(196, 154, 74, 0.35);
}

/* logo — transparent, sits directly on the liquid glass */
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; background: none; padding: 0; }
.nav-logo img { height: 40px; width: auto; display: block; flex: none; }

/* listing-card CTA button (shared: homepage featured + listings page) */
.lc-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 16px;
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--bronze-deep);
  border: 1px solid var(--bronze); padding: 11px 22px; background: transparent;
  text-decoration: none; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}
.lc-btn:hover { background: var(--bronze); color: #14171b; transform: translateY(-2px); }
.lc-btn .arr { transition: transform 0.3s var(--ease); }
.lc-btn:hover .arr { transform: translateX(3px); }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); list-style: none; }
.nav-links a {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; color: var(--ink);
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; position: relative; padding: 6px 2px;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--bronze); border-radius: 0;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

.nav-cta {
  background: var(--bronze); color: #14171b !important;
  padding: 12px 24px !important; border-radius: 0;
  letter-spacing: 2.5px;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--bronze-deep); color: #14171b !important; transform: translateY(-2px); }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 9px 6px; background: none; border: none; z-index: 110; }
.nav-burger span { display: block; width: 24px; height: 2px; border-radius: 0; background: var(--ink); transition: transform 0.34s var(--ease), opacity 0.25s, background 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ─── BUTTONS (square, editorial) ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 16px 34px; border: none; cursor: pointer;
  text-decoration: none; border-radius: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-terra { background: var(--bronze); color: #14171b; }
.btn-terra:hover { background: var(--bronze-deep); color: #14171b; transform: translateY(-2px); }
.btn-teal { background: var(--bronze); color: #14171b; }
.btn-teal:hover { background: var(--bronze-deep); color: #14171b; transform: translateY(-2px); }
.btn-cream { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-cream:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--bronze); }
.btn-outline:hover { background: var(--bronze); color: #14171b; transform: translateY(-2px); }

/* ─── SHARED TYPOGRAPHY ─────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 600; letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--bronze); margin-bottom: 18px;
}
.eyebrow.coral { color: var(--bronze-deep); }
.eyebrow.on-dark { color: var(--bronze-light); }

.section-title {
  font-family: var(--font-serif); font-weight: 500; line-height: 1.12;
  color: var(--teal-deep); font-size: clamp(30px, 4.6vw, 52px); letter-spacing: 0;
}
.section-title::after {
  content: ''; display: block; width: 56px; height: 1px;
  background: var(--bronze); margin-top: 22px;
}
.section-head.center .section-title::after { margin-inline: auto; }
.section-title.light { color: #fff; }
.section-title.light::after { background: var(--bronze-light); }
.section-title em { font-style: italic; color: var(--bronze-deep); }
.section-title.light em { color: var(--bronze-light); }

.lead { font-size: clamp(16px, 1.7vw, 18px); color: var(--muted); font-weight: 400; max-width: 620px; }

/* ─── SECTION SCAFFOLD ──────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 80px); position: relative; }
.container { max-width: 1240px; margin: 0 auto; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ─── DIVIDERS (waves removed for square editorial look) ── */
.wave, .footer-wave { display: none !important; }

/* ─── DARK "STATEMENT" BAND (near-black + radial gold glow) ── */
.mgmt { position: relative; background: var(--teal-deep); }
.mgmt::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center top, rgba(196,154,74,0.10), transparent 65%); }
.mgmt > .container { position: relative; z-index: 1; }

/* ─── REVEAL ANIMATION ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ─── FOOTER ────────────────────────────────────────────── */
footer { background: var(--teal-deep); color: rgba(255,255,255,0.72); padding: clamp(48px,5vw,72px) clamp(20px,6vw,80px) 30px; position: relative; }
footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center top, rgba(196,154,74,0.10), transparent 65%);
}
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; position: relative; }
.footer-brand .nav-logo { margin-bottom: 18px; background: none; padding: 0; }
.footer-brand .nav-logo img { height: 40px; }
.footer-brand p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.55); max-width: 300px; }
/* label sitting directly above the social icons — mirrors .footer-col h4 */
.footer-brand .footer-connect { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 16px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: rgba(255,255,255,0.62); text-decoration: none; margin-bottom: 12px; transition: color 0.25s, padding-left 0.25s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-socials { display: flex; gap: 12px; margin-top: 4px; }
.footer-socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 0; margin: 0; transition: background 0.3s var(--ease), border-color 0.3s, transform 0.3s var(--ease); }
.footer-socials a:hover { background: var(--bronze); border-color: var(--bronze); transform: translateY(-3px); }
.footer-socials svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.8); transition: fill 0.3s; }
.footer-socials a:hover svg { fill: #14171b; }
.footer-bottom { max-width: 1240px; margin: 50px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.45); position: relative; }

/* ─── KEYFRAMES ─────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14); } }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; } }
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(80vw, 350px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
    padding: 0 42px; background: rgba(13, 15, 18, 0.98);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    transform: translateX(100%); transition: transform 0.45s var(--ease);
    border-radius: 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a, .nav-shell .nav-links a { color: rgba(255,255,255,0.9); font-size: 14px; }
  .nav-links a.active { color: var(--bronze-light); }
  .nav-cta { background: var(--bronze); color: #14171b !important; }
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ─── REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
