/*
Theme Name: TAF Salone Micro City
Theme URI: https://tafsalone.com
Author: TAF Africa Global
Description: Premium Real Estate Theme for TAF Salone Micro City, John Obey, Freetown, Sierra Leone.
Version: 2.5.0
License: GNU General Public License v2 or later
Text Domain: taf-salone
*/

:root {
  --taf-red: #D62828;
  --taf-red-dark: #A31E22;
  --ink: #2E2A22;
  --cream: #FFFDF7;
  --sand: #E6B93D;
  --green: #2ECC55;
  --white: #FFFFFF;
  --line: rgba(46,42,34,0.1);
  --shadow: 0 20px 50px -20px rgba(46,42,34,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--taf-red);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sand); display: inline-block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 2px; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.92rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary { background: var(--taf-red); color: #fff; }
.btn-primary:hover { background: var(--taf-red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: #fff; }

/* Navigation */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(24,21,18,0.0);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 22px 0;
}
header.scrolled, header.inner-page {
  background: rgba(46,42,34,0.88); backdrop-filter: blur(8px);
  padding: 12px 0; box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
nav { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo-text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.08rem; line-height: 1.05; }
.logo-text span { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--sand); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: #f1ede4; font-size: 0.9rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--sand); transition: width .25s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(46,42,34,0.18) 0%, rgba(46,42,34,0.38) 55%, rgba(46,42,34,0.82) 100%),
              url('https://statehouse.gov.sl/wp-content/uploads/2025/12/6029de5e-c9c1-45a6-b99f-f8d0b42d3aba-768x512.jpg') center/cover no-repeat;
  padding: 160px 0 90px; color: #fff;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--taf-red) 0 33%, var(--sand) 33% 66%, var(--green) 66% 100%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 50px; align-items: end; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--sand); }
.hero p.lede { font-size: 1.08rem; max-width: 560px; color: #efe9de; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-krio { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--sand); border-left: 3px solid var(--sand); padding-left: 14px; margin-top: 34px; max-width: 420px; }
.hero-stats { background: rgba(250,246,239,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 4px; padding: 26px; backdrop-filter: blur(6px); display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hero-stat b { display: block; font-family: 'Poppins', sans-serif; font-size: 1.7rem; color: var(--sand); }
.hero-stat span { font-size: 0.78rem; color: #e4ded1; letter-spacing: 0.02em; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem,3vw,2.5rem); margin-bottom: 16px; }
.section-head p { color: #4a453e; font-size: 1.02rem; }
.band-dark { background: var(--ink); color: #f1ede4; }
.band-dark .section-head p { color: #c9c3b6; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-photos img { border-radius: 2px; box-shadow: var(--shadow); }
.about-photos img:first-child { grid-row: 1/3; height: 100%; object-fit: cover; }
.about-text p { color: #453f37; margin-bottom: 16px; }
.about-quote {
  margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--taf-red);
  background: #fff; font-style: italic; color: #2c2822; font-size: 0.98rem; box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.about-quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; color: var(--taf-red); font-size: 0.82rem; }

/* Videos */
.video-wrap { position: relative; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; border: 6px solid var(--ink); }
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.video-card .video-wrap { cursor: pointer; border-width: 4px; }
.video-card .video-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.92); border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s ease;
}
.video-card .play-btn::after { content: ''; border-left: 16px solid var(--taf-red); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.video-card h4 { margin-top: 16px; font-size: 0.98rem; font-weight: 600; }

/* Masterplan */
.masterplan-wrap { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.15); background: #fff; margin-bottom: 32px; cursor: zoom-in; }
.masterplan-wrap img { width: 100%; display: block; }

/* Property Grid */
.prop-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.prop-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop-media { height: 150px; position: relative; overflow: hidden; background: var(--ink); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prop-card:hover .prop-media img { transform: scale(1.06); }
.prop-body { padding: 22px; }
.prop-body h3 { font-size: 1.08rem; margin-bottom: 2px; }
.prop-body p { font-size: 0.88rem; color: #5b5548; margin-bottom: 14px; }
.prop-tag { font-family: 'Poppins', sans-serif; font-size: 0.72rem; font-weight: 600; color: var(--taf-red); letter-spacing: 0.06em; text-transform: uppercase; }
.prop-specs { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.78rem; color: #5b5548; margin: 10px 0 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.prop-specs span { white-space: nowrap; }
.prop-price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--taf-red); }
.prop-price small { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.7rem; color: #8a8477; text-transform: uppercase; }

/* Payment Plan Table */
.plan-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 4px; margin-bottom: 28px; gap: 4px; }
.plan-toggle button {
  border: none; background: transparent; padding: 10px 22px; border-radius: 24px; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.84rem; color: #5b5548; cursor: pointer; transition: background .25s ease, color .25s ease;
}
.plan-toggle button.active { background: var(--taf-red); color: #fff; }
.plan-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
table.plan-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.86rem; }
table.plan-table th { text-align: left; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 14px 16px; }
table.plan-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: #3a352d; }
table.plan-table tr:nth-child(even) td { background: #FBF8F1; }
table.plan-table td.home-name { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--ink); }
table.plan-table td.home-name span { display: block; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.76rem; color: #8a8477; }

/* Amenities Grid */
.amen-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); }
.amen-item { background: var(--ink); padding: 30px 22px; display: flex; flex-direction: column; gap: 12px; }
.amen-item svg { width: 30px; height: 30px; stroke: var(--sand); }
.amen-item h4 { font-size: 0.95rem; color: #fff; }
.amen-item p { font-size: 0.8rem; color: #b7b0a1; }

/* Financing Banner */
.finance { background: linear-gradient(120deg, var(--taf-red) 0%, var(--taf-red-dark) 100%); color: #fff; padding: 56px 0; }
.finance-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.finance-figs { display: flex; gap: 44px; flex-wrap: wrap; }
.finance-figs div b { display: block; font-family: 'Poppins', sans-serif; font-size: 2.1rem; }
.finance-figs div span { font-size: 0.8rem; color: #f3d9d0; }

/* Timeline */
.timeline { position: relative; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.t-item { position: relative; padding: 0 0 40px 56px; }
.t-dot { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--taf-red); color: var(--taf-red); display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.78rem; }
.t-item.done .t-dot { background: var(--taf-red); color: #fff; }
.t-item h4 { font-size: 1.02rem; margin-bottom: 4px; }
.t-item p { font-size: 0.9rem; color: #5b5548; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; filter: saturate(1.08) brightness(1.05); }
.gallery a { overflow: hidden; border-radius: 2px; position: relative; display: block; }
.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.team-photo { width: 100%; aspect-ratio: 4/5; background: var(--ink); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-body { padding: 22px 26px 26px; }
.team-role { font-family: 'Poppins', sans-serif; font-size: 0.72rem; color: var(--taf-red); font-weight: 600; text-transform: uppercase; margin-bottom: 12px; display: block; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-list li { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; stroke: var(--taf-red); flex-shrink: 0; margin-top: 2px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; font-family: 'Inter', sans-serif; font-size: 0.9rem; background: var(--cream); }

/* Model Pages Detail */
.p-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.p-hero img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.p-hero-body { padding: 40px; }
.room-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.room-chip { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 9px 16px; font-size: 0.84rem; color: #3a352d; font-weight: 500; }
.fp-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 34px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.fp-wrap img { width: 100%; display: block; }
.fp-body { padding: 30px 34px 30px 0; }
.interior-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.interior-grid a { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); display: block; }
.interior-grid img { height: 190px; width: 100%; object-fit: cover; transition: transform .35s ease; }

/* Footer */
footer { background: var(--ink); color: #c9c3b6; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-col h5 { color: #fff; font-family: 'Poppins', sans-serif; font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 0.04em; }
.footer-col a, .footer-col p { display: block; font-size: 0.86rem; margin-bottom: 10px; color: #b7b0a1; }
.footer-col a:hover { color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: #8a8477; }
