/*
Theme Name: Chaudhary Real Estate
Theme URI: https://chaudharyrealestate.com
Author: Chaudhary Real Estate
Description: A custom real estate theme built around a property-deed & ledger aesthetic for Chaudhary Real Estate, Sarai Alamgir. Includes an editable Properties post type for listings.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: chaudhary-re
*/

:root{
  --ink:#17322D;
  --ink-2:#1F3E37;
  --paper:#F1EBDD;
  --paper-2:#E7DFCC;
  --brass:#B4893C;
  --brass-light:#D3AE64;
  --terracotta:#A65A3A;
  --text:#241F19;
  --text-muted:#6B6255;
  --paper-text:#F1EBDD;
  --radius:2px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--text);
  font-family:'Inter', sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Rokkitt', serif;
  font-weight:700;
  letter-spacing:-0.01em;
  color:inherit;
}
.mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:0.02em; }
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.screen-reader-text{ position:absolute; left:-9999px; }

.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px; letter-spacing:0.18em; text-transform:uppercase;
  color:var(--brass); display:flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--brass); display:inline-block; }

/* ---------- NAV ---------- */
header.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--ink);
  border-bottom:1px solid rgba(241,235,221,0.12);
}
nav.wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:76px; color:var(--paper-text);
}
.brand{ display:flex; align-items:center; gap:12px; font-family:'Rokkitt', serif; font-weight:700; font-size:19px; color:var(--paper-text); }
.brand-mark{
  width:34px; height:34px; border:1.5px solid var(--brass); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--brass-light); flex-shrink:0;
}
.brand small{
  display:block; font-family:'IBM Plex Mono', monospace; font-weight:400; font-size:10px;
  letter-spacing:0.16em; color:var(--brass-light); text-transform:uppercase; margin-top:2px;
}
.brand img.custom-logo{ max-height:38px; width:auto; }

.nav-links, .nav-links ul{
  display:flex; gap:34px; font-size:14px; font-weight:500; list-style:none;
}
.nav-links li{ position:relative; }
.nav-links a{
  opacity:0.82; padding:6px 0; display:inline-block; border-bottom:1px solid transparent;
  transition:opacity .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links .current-menu-item > a{ opacity:1; border-color:var(--brass); }
.nav-links .sub-menu{ display:none; }

.nav-cta{ display:flex; align-items:center; gap:22px; }
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:11px 20px;
  font-size:13px; font-weight:600; border-radius:var(--radius); border:1px solid var(--brass);
  transition:transform .15s ease, background .15s ease; cursor:pointer;
}
.btn-solid{ background:var(--brass); color:var(--ink); }
.btn-solid:hover{ background:var(--brass-light); transform:translateY(-1px); }
.btn-ghost{ color:var(--paper-text); border-color:rgba(241,235,221,0.3); }
.btn-ghost:hover{ border-color:var(--brass); transform:translateY(-1px); }
.menu-toggle{ display:none; background:none; border:none; color:var(--paper-text); font-size:22px; cursor:pointer; }

/* ---------- HERO ---------- */
.hero{
  background:radial-gradient(ellipse at 82% -10%, rgba(180,137,60,0.18), transparent 55%), var(--ink);
  color:var(--paper-text); padding:96px 0 0; position:relative; overflow:hidden;
}
.hero-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center; }
.hero h1{ font-size:56px; line-height:1.05; margin:22px 0 22px; }
.hero h1 em{ font-style:normal; color:var(--brass-light); }
.hero p{ font-size:16.5px; color:rgba(241,235,221,0.72); max-width:460px; margin-bottom:36px; }
.hero-actions{ display:flex; gap:16px; margin-bottom:64px; flex-wrap:wrap; }

.plot-plan{ aspect-ratio:1/1.05; border:1px solid rgba(241,235,221,0.22); position:relative; background:rgba(241,235,221,0.03); }
.plot-plan svg{ width:100%; height:100%; display:block; }
.plot-plan .tag{ position:absolute; left:18px; bottom:18px; font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--brass-light); letter-spacing:0.08em; }

.search-ledger{
  background:var(--paper); color:var(--text); border-radius:var(--radius); padding:26px 30px;
  display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:0;
  transform:translateY(38px); box-shadow:0 24px 60px -20px rgba(0,0,0,0.45);
}
.field{ padding:0 22px; border-right:1px solid var(--paper-2); }
.field:first-child{ padding-left:0; }
.field label{
  display:block; font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:0.14em;
  text-transform:uppercase; color:var(--text-muted); margin-bottom:6px;
}
.field select, .field input{
  border:none; background:none; font-family:'Inter', sans-serif; font-size:14.5px;
  font-weight:500; color:var(--text); width:100%; outline:none;
}
.search-ledger .btn{ margin-left:22px; padding:0 26px; justify-self:end; }

/* ---------- STAT STRIP ---------- */
.stat-strip{ background:var(--paper-2); border-bottom:1px solid rgba(36,31,25,0.08); }
.stat-strip .wrap{ display:grid; grid-template-columns:repeat(4,1fr); padding:76px 32px 40px; }
.stat{ padding:0 26px; border-left:1px solid rgba(36,31,25,0.14); }
.stat:first-child{ border-left:none; padding-left:0; }
.stat .num{ font-family:'Rokkitt', serif; font-weight:700; font-size:38px; color:var(--terracotta); }
.stat .lbl{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-muted); margin-top:6px; }

/* ---------- SECTIONS ---------- */
section, .section{ padding:96px 0; }
.section-tint{ background:var(--paper-2); }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:52px; gap:24px; flex-wrap:wrap; }
.section-head h2{ font-size:34px; margin-top:14px; }
.section-head p{ color:var(--text-muted); max-width:360px; font-size:14.5px; }

/* ---------- DEED-TAG PROPERTY CARDS ---------- */
.listings-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.deed-card{
  background:var(--ink); color:var(--paper-text); position:relative; padding-top:26px;
  transition:transform .25s ease, box-shadow .25s ease; box-shadow:0 10px 30px -18px rgba(23,50,45,0.5);
}
.deed-card:hover{ transform:rotate(-0.6deg) translateY(-4px); box-shadow:0 26px 50px -22px rgba(23,50,45,0.55); }
.grommet{ position:absolute; top:-11px; left:26px; width:22px; height:22px; background:var(--brass); border-radius:50%; border:3px solid var(--paper); }
.grommet::after{ content:""; position:absolute; top:7px; left:7px; width:8px; height:8px; border-radius:50%; background:var(--ink); }
.stub{
  display:flex; justify-content:space-between; align-items:center; padding:0 22px 18px;
  border-bottom:1px dashed rgba(241,235,221,0.28); font-family:'IBM Plex Mono', monospace;
  font-size:11.5px; color:var(--brass-light); letter-spacing:0.05em;
}
.plot-art{ height:160px; border-bottom:1px solid rgba(241,235,221,0.14); overflow:hidden; background-size:cover; background-position:center; }
.plot-art svg{ width:100%; height:100%; display:block; }
.deed-body{ padding:22px; }
.deed-body .price{ font-family:'Rokkitt', serif; font-weight:700; font-size:22px; color:var(--paper-text); }
.deed-body h3{ font-size:18px; margin:8px 0 6px; font-weight:600; font-family:'Inter', sans-serif; }
.deed-body .loc{ font-size:13px; color:rgba(241,235,221,0.6); margin-bottom:16px; }
.specs{ display:flex; gap:16px; flex-wrap:wrap; font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:rgba(241,235,221,0.55); padding-top:16px; border-top:1px solid rgba(241,235,221,0.12); }
.deed-foot{ display:flex; justify-content:space-between; align-items:center; padding:16px 22px; border-top:1px solid rgba(241,235,221,0.12); }
.deed-foot a{ font-size:12.5px; font-weight:600; color:var(--brass-light); }
.status-pill{ font-family:'IBM Plex Mono', monospace; font-size:10px; letter-spacing:0.08em; text-transform:uppercase; padding:4px 9px; border:1px solid rgba(211,174,100,0.5); color:var(--brass-light); }

/* ---------- SERVICES / LEDGER ROWS ---------- */
.ledger{ border-top:1px solid rgba(36,31,25,0.16); }
.ledger-row{ display:grid; grid-template-columns:90px 1fr 1.4fr 140px; align-items:center; padding:30px 0; border-bottom:1px solid rgba(36,31,25,0.16); gap:24px; }
.ledger-row .no{ font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--terracotta); }
.ledger-row h3{ font-size:21px; font-weight:600; font-family:'Inter', sans-serif; }
.ledger-row p{ font-size:13.8px; color:var(--text-muted); }
.ledger-row .arrow{ justify-self:end; font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--brass); border-bottom:1px solid var(--brass); padding-bottom:2px; }

/* ---------- AGENTS ---------- */
.agents-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:rgba(36,31,25,0.14); border:1px solid rgba(36,31,25,0.14); }
.agent{ background:var(--paper-2); padding:34px 30px; }
.agent .initials{ width:48px; height:48px; border-radius:50%; background:var(--ink); color:var(--brass-light); font-family:'Rokkitt', serif; font-weight:700; display:flex; align-items:center; justify-content:center; margin-bottom:18px; font-size:15px; overflow:hidden; }
.agent .initials img{ width:100%; height:100%; object-fit:cover; }
.agent h4{ font-size:15.5px; margin-bottom:3px; }
.agent span{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.06em; }
.agent .areas{ margin-top:14px; font-size:12.5px; color:var(--text-muted); }

/* ---------- CTA BAND ---------- */
.cta-band{ background:var(--brass); color:var(--ink); padding:70px 0; }
.cta-band .wrap{ display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.cta-band h2{ font-size:30px; max-width:480px; }
.cta-band .btn-solid{ background:var(--ink); color:var(--brass-light); border-color:var(--ink); }
.cta-band .btn-solid:hover{ background:var(--ink-2); }

/* ---------- FOOTER ---------- */
footer.site-footer{ background:var(--ink); color:rgba(241,235,221,0.7); padding:70px 0 30px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px; border-bottom:1px solid rgba(241,235,221,0.12); }
footer h4{ font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:0.12em; text-transform:uppercase; color:var(--brass-light); margin-bottom:18px; }
footer .brand{ margin-bottom:16px; }
footer p{ font-size:13.5px; max-width:280px; line-height:1.7; }
footer ul{ list-style:none; }
footer li{ margin-bottom:11px; font-size:13.5px; }
footer li a:hover{ color:var(--brass-light); }
.foot-bottom{ display:flex; justify-content:space-between; padding-top:26px; font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:rgba(241,235,221,0.4); flex-wrap:wrap; gap:10px; }

/* ---------- GENERIC PAGE / SINGLE ---------- */
.page-hero{ background:var(--ink); color:var(--paper-text); padding:70px 0; }
.page-hero h1{ font-size:40px; }
.content-area{ padding:80px 0; }
.content-area .entry-content{ max-width:760px; font-size:16px; line-height:1.8; }
.content-area .entry-content h2{ font-size:26px; margin:34px 0 14px; }
.content-area .entry-content h3{ font-size:20px; margin:26px 0 10px; }
.content-area .entry-content p{ margin-bottom:16px; color:var(--text); }
.content-area .entry-content ul{ margin:0 0 16px 20px; }
.content-area .entry-content img{ margin:24px 0; border-radius:var(--radius); }
.property-single .price{ font-family:'Rokkitt', serif; font-size:30px; font-weight:700; color:var(--terracotta); margin-bottom:6px; }
.property-single .loc{ color:var(--text-muted); margin-bottom:24px; }
.property-single .specs{ color:var(--text-muted); border-top:1px solid var(--paper-2); border-bottom:1px solid var(--paper-2); padding:18px 0; margin:24px 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:960px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero h1{ font-size:38px; }
  .listings-grid{ grid-template-columns:1fr 1fr; }
  .stat-strip .wrap{ grid-template-columns:1fr 1fr; row-gap:28px; }
  .agents-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .search-ledger{ grid-template-columns:1fr 1fr; row-gap:18px; transform:none; margin-top:30px; }
  .field{ border-right:none; }
  .search-ledger .btn{ grid-column:span 2; margin:8px 0 0; justify-self:stretch; justify-content:center; }
}
@media (max-width:680px){
  .nav-links{
    display:none; position:absolute; top:76px; left:0; right:0; background:var(--ink);
    flex-direction:column; gap:0; padding:8px 32px 20px; border-bottom:1px solid rgba(241,235,221,0.12);
  }
  .nav-links.open{ display:flex; }
  .nav-links ul{ flex-direction:column; gap:0; }
  .nav-links a{ padding:12px 0; border-bottom:1px solid rgba(241,235,221,0.08); display:block; }
  .menu-toggle{ display:block; }
  .listings-grid{ grid-template-columns:1fr; }
  .stat-strip .wrap{ grid-template-columns:1fr 1fr; padding-top:56px; }
  .ledger-row{ grid-template-columns:1fr; row-gap:8px; }
  .ledger-row .arrow{ justify-self:start; }
  .cta-band .wrap{ flex-direction:column; align-items:flex-start; }
  .footer-grid{ grid-template-columns:1fr; }
}

:focus-visible{ outline:2px solid var(--brass-light); outline-offset:2px; }
