/*
Theme Name: Estate Projects
Theme URI: https://example.com
Author: Estate Projects
Author URI: https://example.com
Description: A trustworthy, mobile-first WordPress theme for a Nigerian land-estate developer. Built around a custom Estates post type, per-estate external plot-selection links (e.g. Sytemap), inspection/enquiry lead capture, and editorial, non-hype presentation. Company details, colours and all estate content are placeholders — replace before launch.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: estateco
*/

:root{
  /* Brand: Omack Properties — green (#11A358) + navy (#002C77) */
  --ink:#12233F;
  --ink-soft:#2B3A55;
  --navy:#002C77;
  --navy-deep:#001A47;
  --green:#11A358;
  --green-deep:#0C7A41;
  --amber:#11A358;
  --amber-deep:#0C7A41;
  --terracotta:#B5502C;
  --cream:#F7F2E7;
  --sand:#EFE6D3;
  --white:#FFFFFF;
  --slate:#6E6659;
  --line:#DED2B8;
  --line-on-dark:rgba(255,255,255,0.14);
  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Inter', -apple-system, sans-serif;
  --font-mono:'IBM Plex Mono', monospace;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{-webkit-text-size-adjust:100%;}
body{
  font-family:var(--font-body);
  background:var(--cream);
  color:var(--ink);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit; text-decoration:none;}
img,video{max-width:100%; display:block;}
button{font-family:inherit;}
.wrap{max-width:1180px; margin:0 auto; padding:0 24px;}
h1,h2,h3{font-family:var(--font-display); font-weight:500; color:var(--navy); line-height:1.18;}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--amber); outline-offset:2px;
}
.skip-link{position:absolute; left:-9999px; top:0; background:var(--white); color:var(--ink); padding:12px 18px; z-index:999;}
.skip-link:focus{left:12px; top:12px;}

.eyebrow{
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--amber-deep); display:flex; align-items:center; gap:10px;
}
.eyebrow::before{content:""; width:16px; height:1px; background:var(--amber-deep);}

/* ===== BUTTONS ===== */
.btn{
  font-family:var(--font-body); font-size:14.5px; font-weight:600;
  padding:12px 22px; border-radius:4px; display:inline-flex; align-items:center; gap:8px;
  border:1px solid transparent; cursor:pointer; min-height:44px;
}
.btn-primary{background:var(--amber); color:var(--white);}
.btn-primary:hover{background:var(--amber-deep);}
.btn-outline{background:transparent; border-color:var(--navy); color:var(--navy);}
.btn-outline-light{background:transparent; border-color:var(--line-on-dark); color:var(--white);}
.btn-whatsapp{background:#25D366; color:var(--white);}
.btn-block{width:100%; justify-content:center;}
.btn-group{display:flex; gap:12px; flex-wrap:wrap;}

/* ===== NAV ===== */
.site-header{background:var(--cream); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:80;}
.nav-inner{display:flex; align-items:center; justify-content:space-between; height:78px; gap:20px;}
.logo{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:21px; color:var(--navy); font-weight:600;}
.logo-mark{width:32px; height:32px; border-radius:6px; background:var(--navy); color:var(--white); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:11px;}
.nav-links{display:flex; gap:28px; font-size:14.5px;}
.nav-links a:hover{color:var(--amber-deep);}
.nav-right{display:flex; align-items:center; gap:14px;}
.nav-phone{font-family:var(--font-mono); font-size:12.5px; color:var(--slate); display:none;}
.nav-toggle{display:none; background:none; border:1px solid var(--line); border-radius:4px; padding:9px 11px; cursor:pointer;}
.nav-toggle span{display:block; width:18px; height:1.5px; background:var(--navy); margin:4px 0;}
@media (min-width:960px){ .nav-phone{display:block;} }

/* ===== HERO (home) ===== */
.hero{padding:56px 0 72px; background:linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);}
.hero-grid{display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center;}
.hero h1{font-size:44px; margin:16px 0 18px;}
.hero p.lead{font-size:16px; color:var(--ink-soft); max-width:480px; margin-bottom:26px;}
.hero-media{background:linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius:8px; min-height:320px; position:relative; overflow:hidden; display:flex; align-items:flex-end; padding:22px;}
.hero-media-label{font-family:var(--font-mono); font-size:11px; color:rgba(255,255,255,0.7); background:rgba(0,0,0,0.35); padding:6px 12px; border-radius:20px;}

/* ===== SECTIONS ===== */
.section{padding:64px 0;}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; gap:32px; margin-bottom:36px; flex-wrap:wrap;}
.section-head h2{font-size:30px; max-width:560px;}
.section-head p{color:var(--slate); font-size:14.5px; max-width:340px;}

/* ===== ESTATE CARDS ===== */
.estate-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.estate-card{background:var(--white); border:1px solid var(--line); border-radius:8px; overflow:hidden; display:flex; flex-direction:column;}
.estate-card-media{height:170px; background:linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); position:relative;}
.estate-card-media.alt2{background:linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);}
.estate-card-media.alt3{background:linear-gradient(135deg, #4A3A2A 0%, var(--terracotta) 100%);}
.estate-badge{position:absolute; top:12px; left:12px; font-family:var(--font-mono); font-size:10px; text-transform:uppercase; letter-spacing:0.05em; padding:5px 10px; border-radius:20px; background:var(--white); color:var(--green-deep);}
.estate-badge.open{background:var(--green); color:var(--white);}
.estate-badge.soldout{background:var(--slate); color:var(--white);}
.estate-badge.coming{background:var(--navy); color:var(--white);}
.estate-card-body{padding:20px; display:flex; flex-direction:column; gap:8px; flex:1;}
.estate-card-body .tag{font-family:var(--font-mono); font-size:10.5px; color:var(--slate); text-transform:uppercase; letter-spacing:0.04em;}
.estate-card-body h3{font-size:19px;}
.estate-card-body .loc{font-size:13.5px; color:var(--slate);}
.estate-card-body .summary{font-size:13.5px; color:var(--ink-soft); flex:1;}
.estate-card-foot{display:flex; justify-content:space-between; align-items:center; padding-top:12px; margin-top:auto; border-top:1px solid var(--line);}
.estate-card-price{font-family:var(--font-mono); font-size:14px; color:var(--green-deep); font-weight:600;}
.estate-card-size{font-family:var(--font-mono); font-size:11px; color:var(--slate);}

/* ===== FILTER BAR ===== */
.filter-bar{display:flex; align-items:center; gap:20px; flex-wrap:wrap; padding:22px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-bottom:32px;}
.filter-group{display:flex; align-items:center; gap:8px;}
.filter-group label{font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.04em; color:var(--slate);}
.filter-select{background:var(--white); border:1px solid var(--line); padding:8px 12px; border-radius:4px; font-size:13px;}
.filter-count{margin-left:auto; font-size:12.5px; color:var(--slate);}

/* ===== WHY / PROCESS ===== */
.why-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:0; border-top:1px solid var(--line); border-left:1px solid var(--line);}
.why-item{border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:26px 24px;}
.why-item h3{font-size:17px; margin-bottom:8px;}
.why-item p{font-size:13.5px; color:var(--slate);}

.process-steps{display:grid; grid-template-columns:repeat(5,1fr); gap:0; position:relative; margin-top:12px;}
.process-steps::before{content:""; position:absolute; top:15px; left:calc(10% - 2px); right:calc(10% - 2px); height:1px; background:var(--line);}
.process-step{position:relative; padding-right:16px;}
.process-step:last-child{padding-right:0;}
.step-dot{width:30px; height:30px; border-radius:50%; background:var(--cream); border:1px solid var(--green); color:var(--green-deep); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:12px; margin-bottom:16px; position:relative; z-index:1;}
.process-step h3{font-size:14.5px; margin-bottom:6px;}
.process-step p{font-size:12.5px; color:var(--slate);}

/* ===== MILESTONES / STATS ===== */
.stats-band{background:var(--navy); color:var(--white); padding:52px 0;}
.stats-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:32px;}
.stat .num{font-family:var(--font-display); font-size:34px;}
.stat .lbl{font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.05em; color:rgba(255,255,255,0.6); margin-top:6px;}
.demo-flag{font-family:var(--font-mono); font-size:10px; color:rgba(255,255,255,0.45); margin-top:14px; text-transform:uppercase; letter-spacing:0.04em;}

/* ===== TESTIMONIALS / FAQ PREVIEW ===== */
.testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:0; border-top:1px solid var(--line); border-left:1px solid var(--line);}
.testi-card{border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:26px 24px; background:var(--white);}
.testi-quote{font-family:var(--font-display); font-size:15.5px; line-height:1.5; margin-bottom:16px;}
.testi-who{font-size:12.5px; color:var(--slate); font-family:var(--font-mono);}
.testi-who b{color:var(--green-deep); font-family:var(--font-body); display:block; font-size:13.5px;}
.empty-note{font-family:var(--font-mono); font-size:12.5px; color:var(--slate); padding:24px 0;}

/* ===== CTA BAND ===== */
.cta-band{background:var(--amber); padding:52px 0; text-align:center;}
.cta-band h2{color:var(--white); font-size:28px; margin-bottom:10px;}
.cta-band p{color:rgba(255,255,255,0.85); margin-bottom:22px; font-size:14px;}
.cta-band .btn-group{justify-content:center;}
.cta-band .btn-outline-light{border-color:rgba(255,255,255,0.6); color:var(--white);}

/* ===== DISCLAIMER ===== */
.disclaimer{background:var(--sand); border:1px solid var(--line); border-radius:6px; padding:14px 18px; font-size:12.5px; color:var(--ink-soft); display:flex; gap:10px; align-items:flex-start;}
.disclaimer::before{content:"ⓘ"; color:var(--amber-deep); font-weight:600; flex-shrink:0;}

/* ===== SINGLE ESTATE: HERO ===== */
.estate-hero{padding:0 0 40px;}
.estate-hero-media{height:340px; background:linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); position:relative; display:flex; align-items:flex-end;}
.estate-hero-media .wrap{width:100%; padding-bottom:26px;}
.estate-hero-inner{padding-top:26px;}
.estate-hero-meta{display:flex; gap:18px; flex-wrap:wrap; font-family:var(--font-mono); font-size:12px; color:var(--slate); margin:12px 0 20px;}
.estate-hero-meta span{display:flex; align-items:center; gap:6px;}
.estate-hero h1{font-size:36px; max-width:640px;}
.plot-select-note{font-family:var(--font-mono); font-size:11.5px; color:var(--slate); margin-top:10px;}

/* ===== BREADCRUMBS ===== */
.breadcrumbs{font-family:var(--font-mono); font-size:11.5px; color:var(--slate); padding:16px 0 0;}
.breadcrumbs a:hover{color:var(--amber-deep);}

/* ===== KEY-VALUE / FACT GRID ===== */
.fact-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px 28px; font-family:var(--font-mono); font-size:13px;}
.fact-grid .k{color:var(--slate); text-transform:uppercase; font-size:10.5px; letter-spacing:0.04em; margin-bottom:3px;}
.fact-grid .v{color:var(--ink);}

/* ===== DOCUMENTATION LIST ===== */
.doc-list{border-top:1px solid var(--line);}
.doc-row{display:grid; grid-template-columns:1.4fr 1fr; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); align-items:center; font-size:14px;}
.doc-status{font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:0.04em; padding:4px 10px; border-radius:20px; justify-self:start;}
.doc-status.available{background:rgba(15,61,46,0.1); color:var(--green-deep);}
.doc-status.in_progress{background:rgba(200,134,46,0.12); color:var(--amber-deep);}
.doc-status.not_available{background:rgba(110,102,89,0.12); color:var(--slate);}

/* ===== INFRASTRUCTURE LIST ===== */
.infra-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:0; border-top:1px solid var(--line); border-left:1px solid var(--line);}
.infra-item{border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:16px 20px; display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:14px;}
.infra-status{font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.04em; padding:4px 10px; border-radius:20px; white-space:nowrap;}
.infra-status.existing{background:rgba(15,61,46,0.1); color:var(--green-deep);}
.infra-status.in_progress{background:rgba(200,134,46,0.12); color:var(--amber-deep);}
.infra-status.planned, .infra-status.proposed{background:rgba(110,102,89,0.12); color:var(--slate);}
.infra-status.not_available{background:rgba(181,80,44,0.1); color:var(--terracotta);}

/* ===== PRICING TABLE ===== */
.pricing-table{width:100%; border-collapse:collapse; font-size:14px; background:var(--white); border:1px solid var(--line); border-radius:6px; overflow:hidden;}
.pricing-table th, .pricing-table td{padding:14px 16px; text-align:left; border-bottom:1px solid var(--line);}
.pricing-table th{font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.04em; color:var(--slate); background:var(--sand);}
.pricing-table tr:last-child td{border-bottom:none;}
.price-cell{font-family:var(--font-mono); color:var(--green-deep); font-weight:600;}

/* ===== GALLERY ===== */
.gallery-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:10px;}
.gallery-item{aspect-ratio:4/3; background:linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius:4px; overflow:hidden;}
.gallery-item img{width:100%; height:100%; object-fit:cover;}

/* ===== FAQ ===== */
.faq-list{border-top:1px solid var(--line);}
.faq-item{border-bottom:1px solid var(--line);}
.faq-item summary{padding:18px 4px; font-size:15px; font-weight:600; color:var(--green-deep); cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+"; font-family:var(--font-mono); font-size:18px; color:var(--slate);}
.faq-item[open] summary::after{content:"–";}
.faq-item p{padding:0 4px 18px; font-size:13.5px; color:var(--ink-soft); max-width:680px;}

/* ===== FORMS ===== */
.form-card{background:var(--white); border:1px solid var(--line); border-radius:8px; padding:28px;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;}
.form-row.single{grid-template-columns:1fr;}
.field label{display:block; font-size:12.5px; font-weight:600; color:var(--ink); margin-bottom:6px;}
.field .req{color:var(--terracotta);}
.field input, .field select, .field textarea{
  width:100%; background:var(--cream); border:1px solid var(--line); padding:11px 13px; border-radius:4px;
  font-family:var(--font-body); font-size:14px; color:var(--ink); min-height:44px;
}
.field textarea{min-height:90px; resize:vertical;}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--green);}
.field-hint{font-size:11.5px; color:var(--slate); margin-top:4px;}
.consent-row{display:flex; gap:10px; align-items:flex-start; font-size:12.5px; color:var(--ink-soft); margin-bottom:18px;}
.consent-row input{width:auto; min-height:auto; margin-top:2px;}
.form-message{padding:14px 16px; border-radius:4px; font-size:13.5px; margin-bottom:20px;}
.form-message.success{background:rgba(15,61,46,0.08); color:var(--green-deep); border:1px solid var(--green);}
.form-message.error{background:rgba(181,80,44,0.08); color:var(--terracotta); border:1px solid var(--terracotta);}
.form-note{font-size:12px; color:var(--slate); margin-top:12px;}

/* ===== FOOTER ===== */
.site-footer{background:var(--navy-deep); color:rgba(255,255,255,0.65); padding:52px 0 24px; font-size:13.5px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; padding-bottom:32px; border-bottom:1px solid var(--line-on-dark);}
.foot-grid h4{font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.05em; color:rgba(255,255,255,0.85); margin-bottom:14px;}
.foot-grid a{display:block; margin-bottom:9px; color:rgba(255,255,255,0.65);}
.foot-grid a:hover{color:var(--white);}
.foot-social{display:flex; gap:12px; margin-top:12px;}
.foot-bottom{display:flex; justify-content:space-between; padding-top:20px; font-size:11.5px; flex-wrap:wrap; gap:8px;}
.foot-disclaimer{font-size:11px; color:rgba(255,255,255,0.45); max-width:900px; margin-top:14px; line-height:1.6;}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.wa-float{
  position:fixed; bottom:20px; right:20px; z-index:90; background:#25D366; color:#fff;
  width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:26px; box-shadow:0 4px 14px rgba(0,0,0,0.25);
}

/* ===== STATUS PIPELINE (admin-facing note shown nowhere on front end; kept for reference) ===== */

/* ===== PAGINATION ===== */
.wp-pagination{display:flex; justify-content:center; gap:8px; padding:36px 0 0; font-family:var(--font-mono); font-size:13px;}
.wp-pagination a, .wp-pagination span{padding:8px 14px; border:1px solid var(--line); color:var(--ink); border-radius:4px;}
.wp-pagination .current{background:var(--green-deep); color:var(--white); border-color:var(--green-deep);}

/* ===== RESPONSIVE ===== */
@media (max-width:960px){
  .hero-grid, .why-grid, .testi-grid, .foot-grid, .infra-grid, .estate-grid{grid-template-columns:1fr;}
  .stats-grid{grid-template-columns:repeat(2,1fr);}
  .process-steps{grid-template-columns:1fr;}
  .process-steps::before{display:none;}
  .process-step{padding:0 0 26px 0;}
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
  .form-row{grid-template-columns:1fr;}
  .filter-bar{flex-direction:column; align-items:flex-start;}
  .nav-links{display:none;}
  .nav-toggle{display:block;}
  .nav-links.open{
    display:flex; flex-direction:column; position:absolute; top:78px; left:0; right:0;
    background:var(--cream); border-bottom:1px solid var(--line); padding:14px 24px; z-index:85;
  }
  .nav-links.open a{padding:12px 0; border-bottom:1px solid var(--line);}
  .hero h1{font-size:30px;}
}
