/*
Theme Name: TAF Liberia Multi-Page Real Estate Theme
Theme URI: https://tafliberia.com
Author: TAF Developer Ecosystem
Description: Premium Multi-Page WordPress Theme with custom page templates, dropdown navigation, currency conversion, office popup, and off-plan property listings.
Version: 2.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taf-liberia
*/

:root {
  --red: #C8102E;
  --red-dark: #9C0C24;
  --blue: #002868;
  --blue-light: #1C4A8C;
  --ink: #0A1B3D;
  --ink-2: #14295A;
  --white: #FFFFFF;
  --grey: #F4F3F1;
  --grey-line: #E4E2DF;
  --text-muted: #6B6B6C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* Navigation Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--grey-line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px);
}
.logo {
  font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.01em; text-transform: uppercase;
  color: var(--ink);
}
.logo span { color: var(--red); }

.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.nav-links a { color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }

/* Dropdowns */
.nav-item { position: relative; }
.nav-item > .nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; color: var(--text-muted);
  background: none; border: none; font: inherit;
  text-transform: inherit; letter-spacing: inherit; padding: 0;
  transition: color 0.2s;
}
.nav-item > .nav-trigger.active { color: var(--red); }
.nav-item > .nav-trigger::after { content: "▾"; font-size: 0.65rem; margin-top: 1px; }
.nav-item:hover > .nav-trigger, .nav-item:focus-within > .nav-trigger { color: var(--red); }

.dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(10,27,61,0.12);
  padding: 8px; min-width: 180px;
  display: none; flex-direction: column; z-index: 60;
}
.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu { display: flex; }
.dropdown-menu a {
  padding: 9px 12px; border-radius: 3px;
  font-size: 0.78rem; color: var(--ink); white-space: nowrap;
}
.dropdown-menu a:hover, .dropdown-menu a.active { background: var(--grey); color: var(--red); }
.dropdown-menu .dropdown-divider { height: 1px; background: var(--grey-line); margin: 6px 4px; }

/* Contact & Controls */
.contact-line { display: flex; gap: 22px; align-items: center; font-size: 0.8rem; color: var(--text-muted); }
.contact-line a:hover { color: var(--ink); }
.badge-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 7px 14px; border-radius: 3px;
}
.badge-live .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.currency-select {
  font: inherit; font-size: 0.78rem; font-weight: 600;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--grey-line); border-radius: 4px;
  padding: 5px 8px; cursor: pointer;
}

.flag-stripe {
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 44px, var(--white) 44px, var(--white) 88px);
}

/* Announcement & Promo Banners */
.announcement-bar { background: var(--red); color: var(--white); padding: 12px 0; }
.announcement-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; font-size: 0.88rem; }
.announcement-tag { background: var(--white); color: var(--red); font-weight: 800; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 3px; flex-shrink: 0; }
.announcement-text strong { font-weight: 800; }
.announcement-link { text-decoration: underline; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.announcement-link:hover { opacity: 0.85; }

.promo-bar { background: var(--blue); color: var(--white); padding: 12px 0; }
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; font-size: 0.88rem; }
.promo-tag { background: var(--white); color: var(--blue); font-weight: 800; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 3px; flex-shrink: 0; }
.promo-text strong { font-weight: 800; }
.promo-link { text-decoration: underline; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.promo-link:hover { opacity: 0.85; }

/* Hero Section */
.hero {
  position: relative; background: var(--white); color: var(--ink);
  overflow: hidden; padding: clamp(70px,10vw,120px) 0 clamp(50px,7vw,80px);
  border-bottom: 1px solid var(--grey-line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 45% at 90% 0%, rgba(200,16,46,0.10), transparent 60%), radial-gradient(ellipse 50% 40% at 0% 100%, rgba(28,74,140,0.12), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--red); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; }
h1 .accent { color: var(--red); }
.hero-sub { margin-top: 22px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text-muted); max-width: 540px; line-height: 1.65; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-block; text-align: center; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 15px 32px; border-radius: 3px; transition: transform 0.2s, background 0.2s, color 0.2s; cursor: pointer; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Locator */
.locator {
  position: relative; z-index: 2; margin-top: 56px; background: var(--white);
  color: var(--ink); border: 1px solid var(--grey-line);
  box-shadow: 0 12px 30px rgba(10,27,61,0.08); border-radius: 4px;
  padding: 22px clamp(18px,3vw,28px); display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto; gap: 18px; align-items: end; max-width: 900px;
}
@media (max-width: 760px) { .locator { grid-template-columns: 1fr 1fr; } }
.locator-field label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.locator-field .val { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.locator-btn { background: var(--ink); color: var(--white); border: none; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 13px 22px; border-radius: 3px; cursor: pointer; }
.locator-btn:hover { background: var(--red); }

/* Sections Shared */
section { padding: clamp(56px, 8vw, 96px) 0; }
.kicker { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin-bottom: 10px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.15; }
.section-head { margin-bottom: 44px; max-width: 620px; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 0.96rem; line-height: 1.6; }
.unfurnished-disclaimer { margin-top: 10px; font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* Grid Cards & Promise Cards */
.grid-4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--grey-line); border: 1px solid var(--grey-line); }
@media (max-width: 760px) { .grid-4 { grid-template-columns: 1fr; } }
.promise-card { background: var(--white); padding: 32px 26px; }
.promise-card .icon-num { color: var(--red); font-weight: 800; font-size: 0.85rem; margin-bottom: 16px; }
.promise-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.01em; }
.promise-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
}

  .plan-disclaimer{
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
  }
  .note-card{
    margin-top: 18px;
    padding: 16px 18px;
    background: var(--grey);
    border-left: 3px solid var(--red);
    border-radius: 3px;
    font-size: 0.84rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    max-width: 720px;
  }

/* About Map Block */
.about-map { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: stretch; margin-top: 40px; border: 1px solid var(--grey-line); border-radius: 6px; overflow: hidden; background: var(--grey); }
@media (max-width: 760px) { .about-map { grid-template-columns: 1fr; } }
.about-map-info { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.about-map-info h3 { font-size: 1.35rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 12px; }
.about-map-info p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.6; margin-bottom: 22px; }
.about-map-embed { min-height: 280px; }
.about-map-embed iframe { display: block; width: 100%; height: 100%; min-height: 280px; }

/* Estates Grid */
.estate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 700px) { .estate-grid { grid-template-columns: 1fr; } }
.estate-card { border: 1px solid var(--grey-line); border-radius: 6px; padding: 28px 26px; display: flex; flex-direction: column; background: var(--white); }
.estate-badge { display: inline-block; align-self: flex-start; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 10px; border-radius: 3px; margin-bottom: 14px; }
.estate-badge.is-live { background: var(--red); color: var(--white); }
.estate-badge.is-soon { background: var(--grey); color: var(--ink); }
.estate-card h3 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.estate-plan { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.estate-plan span { display: block; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.estate-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; margin: 12px 0 18px; }
.estate-card .btn { align-self: flex-start; }

/* Property Grid */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 980px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .property-grid { grid-template-columns: 1fr; } }

.property-card { border: 1px solid var(--grey-line); border-radius: 6px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.property-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(10,27,61,0.10); }
.property-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey); }
.property-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.property-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.property-status { display: inline-block; align-self: flex-start; background: var(--grey); color: var(--ink); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; margin-bottom: 12px; }
.property-card h3 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.property-card .property-type { font-size: 0.82rem; color: var(--red); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.property-meta { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.property-meta .dot { color: var(--grey-line); }
.property-price { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.property-price span { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-left: 6px; }
.property-interior-note { font-size: 0.76rem; color: var(--text-muted); font-style: italic; margin-bottom: 16px; margin-top: auto; }
.selected-property-note { display: none; margin-top: 16px; font-size: 0.92rem; font-weight: 700; color: var(--red); }
.selected-property-note.visible { display: block; }

/* 3-Step Process */
.steps-section { background: var(--grey); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 800px) { .steps-grid { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 10px; }
.step-num { font-size: 3rem; font-weight: 800; color: var(--white); -webkit-text-stroke: 2px var(--red); line-height: 1; margin-bottom: 18px; }
.step-num-blue { -webkit-text-stroke: 2px var(--blue-light); }
.step h3 { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Stats Bar */
.stats-bar { background: var(--grey); color: var(--ink); border-top: 1px solid var(--grey-line); border-bottom: 1px solid var(--grey-line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 0; } }
.stat b { display: block; font-size: clamp(1.8rem,3.4vw,2.6rem); font-weight: 800; color: var(--red); }
.stat span { display: block; margin-top: 8px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

/* Form Section */
.register-section { background: var(--white); }
.form-shell { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; border: 1px solid var(--grey-line); border-radius: 4px; overflow: hidden; }
@media (max-width: 860px) { .form-shell { grid-template-columns: 1fr; } }
.form-copy { background: var(--blue); color: var(--white); padding: clamp(30px,4vw,48px); }
.form-copy .kicker { color: #F3B3B2; }
.form-copy h2 { margin-bottom: 16px; }
.form-copy p { color: #CFCFCF; font-size: 0.92rem; line-height: 1.65; margin-bottom: 24px; }
.form-copy ul li { font-size: 0.86rem; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.12); display: flex; gap: 10px; color: #E4E4E4; }
.form-copy ul li::before { content: "→"; color: var(--red); }
.form-embed { background: var(--grey); display: flex; align-items: center; justify-content: center; min-height: 480px; }
.form-embed iframe { width: 100%; height: 660px; border: none; display: block; }

/* Office Popup */
.popup-overlay { position: fixed; inset: 0; background: rgba(10,27,61,0.75); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.popup-overlay.hidden { display: none; }
.popup-card { position: relative; max-width: 420px; width: 100%; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.popup-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: none; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.25); z-index: 1; }
.popup-close:hover { background: var(--grey); }
.popup-body { padding: 40px 32px 32px; text-align: center; }
.popup-body h3 { font-size: 1.35rem; font-weight: 800; text-transform: uppercase; margin: 10px 0 14px; color: var(--ink); }
.popup-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 22px; }

/* Detail & Plans */
.detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-media { border-radius: 6px; overflow: hidden; border: 1px solid var(--grey-line); }
.detail-media img { width: 100%; display: block; }
.property-type-lg { font-size: 0.9rem; color: var(--red); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.property-price-lg { font-size: 2rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.property-price-lg span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }

.detail-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--grey-line); border: 1px solid var(--grey-line); margin: 22px 0; }
@media (max-width: 480px) { .detail-specs { grid-template-columns: repeat(2, 1fr); } }
.spec { background: var(--white); padding: 16px 12px; text-align: center; }
.spec b { display: block; font-size: 1.05rem; font-weight: 800; }
.spec span { display: block; margin-top: 4px; font-size: 0.66rem; text-transform: uppercase; color: var(--text-muted); }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--grey-line); border: 1px solid var(--grey-line); }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { background: var(--white); padding: 24px 20px; }
.plan-card h3 { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.plan-highlight { display: inline-block; background: var(--grey); color: var(--red); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; margin-bottom: 12px; }
.plan-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.plan-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.82rem; padding: 8px 0; border-top: 1px solid var(--grey-line); }
.plan-line span { color: var(--text-muted); }
.plan-line b { font-size: 0.92rem; }
.plan-disclaimer { margin-top: 20px; font-size: 0.76rem; color: var(--text-muted); font-style: italic; }

.floorplan-link { display: block; cursor: zoom-in; }
.floorplan-img { width: 100%; display: block; border: 1px solid var(--grey-line); border-radius: 6px; background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { display: block; border: 1px solid var(--grey-line); border-radius: 6px; overflow: hidden; background: var(--white); }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Footer */
footer { background: var(--ink); color: #B9B9B9; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.78rem; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid p, .footer-grid li { font-size: 0.86rem; line-height: 2; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 0.78rem; flex-wrap: wrap; gap: 10px; }
