/*
Theme Name: DDUN Properties
Theme URI: https://ddunproperties.com
Author: DDUN Properties
Author URI: https://ddunproperties.com
Description: Handpicked plots and land in and around Dehradun and across Uttarakhand. A custom theme for DDUN Properties.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ddp
Tags: real-estate, blog, grid-layout, custom-menu, custom-logo
*/

/* -------------------------------------------------------------------------
   Design tokens
------------------------------------------------------------------------- */
:root{
  --pine-950:#0C211A;
  --pine-btn:#133527;
  --pine-btn-hover:#1C4A35;
  --leaf:#1E7C4B;
  --wa:#1FA15B;
  --ink:#1A2A20;
  --body:#54635A;
  --muted:#75827A;
  --line:#E4E9E2;
  --paper:#F1F4ED;
  --paper-soft:#F8FAF4;
  --sage:#E9EFE2;
  --serif:'Lora',Georgia,serif;
  --sans:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --script:'Caveat',cursive;
}

/* -------------------------------------------------------------------------
   Reset & base
------------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--ink);background:#fff;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
ul{list-style:none}
img{max-width:100%;height:auto}
button{font-family:inherit;cursor:pointer;border:none;background:none}
input,select,textarea{font-family:inherit}
svg{display:block}
.ic{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.container{max-width:1360px;margin:0 auto;padding:0 48px}

/* -------------------------------------------------------------------------
   Shared section components
------------------------------------------------------------------------- */
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-top:62px}
.sec-title{font-family:var(--serif);font-weight:600;font-size:34px;color:#17352A}
.sec-sub{margin-top:8px;font-size:14px;color:var(--body)}
.sec-kicker{font-family:var(--script);font-weight:600;font-size:23px;line-height:1;color:var(--wa);display:inline-block;transform:rotate(-2deg);margin-bottom:7px}
.link-more{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--ink);border-bottom:1.5px solid var(--ink);padding-bottom:3px;white-space:nowrap;transition:color .2s,border-color .2s}
.link-more:hover{color:var(--leaf);border-color:var(--leaf)}
.link-more svg{width:15px;height:15px}
.price{font-family:var(--serif);font-weight:700;font-size:21px;color:#152B20}
.price sup{font-family:var(--sans);font-size:13px;font-weight:600;margin-right:3px}
.area{font-size:12.5px;color:var(--body);white-space:nowrap}

/* -------------------------------------------------------------------------
   Site header (absolute overlay; dark text on inner pages)
------------------------------------------------------------------------- */
.site-head{position:absolute;top:0;left:0;right:0;z-index:50}
.site-head .container{display:flex;align-items:center;justify-content:space-between;height:96px;gap:24px}
.logo{display:flex;flex-direction:column;align-items:center;gap:3px;color:#14291E;min-width:170px}
.logo img{width:74px;height:auto;display:block}
.logo-name{font-size:15px;font-weight:700;letter-spacing:2.4px;white-space:nowrap}
.logo-name span{font-weight:500}
.logo-tag{font-size:6.8px;font-weight:600;letter-spacing:3.1px;color:var(--muted);white-space:nowrap}
.main-nav{display:flex;gap:32px}
.main-nav a{color:rgba(20,41,30,.78);font-size:13.5px;font-weight:500;padding:6px 0;position:relative;transition:color .2s}
.main-nav a:hover{color:#14291E}
.main-nav a.is-active{color:#14291E;font-weight:600}
.main-nav a.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:#14291E;border-radius:2px}
.btn-wa-pill{display:inline-flex;align-items:center;gap:9px;background:var(--pine-btn);color:#fff;font-size:13.5px;font-weight:600;padding:11px 20px;border-radius:999px;transition:background .2s;white-space:nowrap}
.btn-wa-pill:hover{background:var(--pine-btn-hover)}
.btn-wa-pill svg{width:17px;height:17px;fill:currentColor}
.btn-logout{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:rgba(20,41,30,.65);border:1px solid rgba(20,41,30,.22);padding:10px 18px;border-radius:999px;transition:color .2s,border-color .2s;white-space:nowrap}
.btn-logout:hover{color:#14291E;border-color:rgba(20,41,30,.45)}
.head-cta{display:flex;align-items:center;gap:12px}

/* Header over dark hero imagery (front page) */
.site-head--on-dark .logo{color:#fff}
.site-head--on-dark .logo img{filter:brightness(0) invert(1)}
.site-head--on-dark .logo-tag{color:rgba(255,255,255,.62)}
.site-head--on-dark .main-nav a{color:rgba(255,255,255,.82)}
.site-head--on-dark .main-nav a:hover{color:#fff}
.site-head--on-dark .main-nav a.is-active{color:#fff}
.site-head--on-dark .main-nav a.is-active::after{background:#fff}
.site-head--on-dark .btn-wa-pill{background:var(--leaf)}
.site-head--on-dark .btn-wa-pill:hover{background:#259458}
.site-head--on-dark .btn-logout{color:rgba(255,255,255,.75);border-color:rgba(255,255,255,.35)}
.site-head--on-dark .btn-logout:hover{color:#fff;border-color:rgba(255,255,255,.6)}
.site-head--on-dark .nav-toggle{color:#fff}

/* Mobile navigation */
.nav-toggle{display:none;width:42px;height:42px;border-radius:8px;color:#14291E;place-items:center}
.nav-toggle svg{width:24px;height:24px}
.mobile-nav{display:none}

/* -------------------------------------------------------------------------
   Site footer
------------------------------------------------------------------------- */
.site-foot{background:var(--pine-950);color:#fff;padding-top:64px}
.foot-grid{display:grid;grid-template-columns:2.1fr .9fr 1.2fr 1.6fr .8fr;gap:28px}
.foot-brand .logo{align-items:flex-start;color:#fff}
.foot-brand .logo img{width:84px;filter:brightness(0) invert(1)}
.foot-brand .logo-name{font-size:17px}
.foot-brand .logo-tag{font-size:7.4px;color:rgba(255,255,255,.62)}
.f-col h4{font-size:14px;font-weight:600;margin-bottom:16px;color:#fff}
.f-list li+li{margin-top:11px}
.f-list a{font-size:13px;color:rgba(255,255,255,.66);transition:color .2s}
.f-list a:hover{color:#fff}
.f-contact li{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:rgba(255,255,255,.72)}
.f-contact li+li{margin-top:13px}
.f-contact svg{width:15px;height:15px;stroke-width:1.7;margin-top:1px;flex-shrink:0;color:rgba(255,255,255,.85)}
.f-contact a{color:rgba(255,255,255,.72);transition:color .2s}
.f-contact a:hover{color:#fff}
.f-social{display:flex;gap:16px}
.f-social a{color:rgba(255,255,255,.85);transition:color .2s,transform .2s}
.f-social a:hover{color:#fff;transform:translateY(-2px)}
.f-social svg{width:19px;height:19px}
.foot-bottom{margin-top:52px;border-top:1px solid rgba(255,255,255,.13)}
.foot-bottom .container{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;padding-bottom:18px}
.foot-bottom p,.foot-bottom a{font-size:12.5px;color:rgba(255,255,255,.55)}
.foot-bottom a:hover{color:#fff}
.foot-legal{display:flex;align-items:center;gap:12px}
.foot-legal i{width:1px;height:12px;background:rgba(255,255,255,.3)}

/* -------------------------------------------------------------------------
   WordPress core classes
------------------------------------------------------------------------- */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;word-wrap:normal!important}
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:var(--pine-btn);color:#fff;padding:10px 18px;border-radius:0 0 8px 0;font-size:13px;font-weight:600}
.skip-link:focus{left:0}
.alignleft{float:left;margin:0 24px 16px 0}
.alignright{float:right;margin:0 0 16px 24px}
.aligncenter{display:block;margin:0 auto 16px}
.alignwide{width:calc(100% + 80px);max-width:none;margin-left:-40px;margin-right:-40px}
.wp-caption{max-width:100%}
.wp-caption-text{font-size:12.5px;color:var(--muted);padding:8px 0}
.sticky{display:block}
.bypostauthor{display:block}

/* -------------------------------------------------------------------------
   Responsive — shared
------------------------------------------------------------------------- */
@media (max-width:1180px){
  .container{padding:0 28px}
  .foot-grid{grid-template-columns:1.6fr 1fr 1fr 1.4fr}
}
@media (max-width:960px){
  .main-nav{display:none}
  .head-cta{display:none}
  .nav-toggle{display:grid}
  .site-foot{padding-top:52px}
  .foot-grid{grid-template-columns:1fr 1fr;row-gap:40px}
  .foot-brand{grid-column:1/-1}
}
@media (max-width:680px){
  .container{padding:0 20px}
  .foot-grid{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1/-1}
  .foot-bottom .container{flex-direction:column}
}

/* Toggle button */
.nav-toggle{position:relative;flex-shrink:0;width:44px;height:44px;border-radius:12px;place-items:center;transition:background .2s,color .2s}
.nav-toggle:hover{background:rgba(20,41,30,.07)}
.nav-toggle:focus-visible{outline:2px solid var(--leaf);outline-offset:2px}
.site-head--on-dark .nav-toggle{color:#fff}
.site-head--on-dark .nav-toggle:hover{background:rgba(255,255,255,.12)}
.nt-ico{display:grid;place-items:center;transition:opacity .2s,transform .3s}
.nt-ico svg{width:24px;height:24px}
.nt-ico--close{position:absolute;inset:0;opacity:0;transform:rotate(-90deg) scale(.6)}
.nav-toggle[aria-expanded="true"] .nt-ico--open{opacity:0;transform:rotate(90deg) scale(.6)}
.nav-toggle[aria-expanded="true"] .nt-ico--close{opacity:1;transform:none}

/* Mobile nav panel (toggled by JS) */
@media (max-width:960px){
  .mobile-nav{position:absolute;top:96px;left:0;right:0;z-index:60;background:linear-gradient(180deg,var(--pine-950) 0%,#0B1D14 100%);box-shadow:0 30px 50px -22px rgba(8,22,15,.65);display:block;clip-path:inset(0 0 100% 0);visibility:hidden;transition:clip-path .38s cubic-bezier(.7,0,.25,1),visibility 0s .38s}
  .mobile-nav.is-open{clip-path:inset(0);visibility:visible;transition:clip-path .38s cubic-bezier(.7,0,.25,1),visibility 0s 0s}
  .mobile-nav::before{content:"";display:block;height:1px;background:linear-gradient(90deg,transparent,rgba(126,166,132,.4),transparent)}
  .mobile-nav .m-wrap{display:block;height:auto;padding-top:10px;padding-bottom:24px}
  .m-links{counter-reset:m-i}
  .m-links a{position:relative;display:flex;align-items:center;gap:14px;padding:14px 4px;font-size:15px;font-weight:500;color:rgba(255,255,255,.84);border-bottom:1px solid rgba(255,255,255,.08);counter-increment:m-i;opacity:0;transform:translateY(10px);transition:opacity .3s ease,transform .3s ease,color .2s,background .2s,padding .2s}
  .m-links a:hover{color:#fff;background:rgba(255,255,255,.04);padding-left:10px}
  .m-links a::before{content:counter(m-i,decimal-leading-zero);font-family:var(--serif);font-style:italic;font-size:13px;color:rgba(154,167,156,.7);width:26px;flex-shrink:0}
  .m-links a::after{content:"";width:13px;height:13px;margin-left:auto;flex-shrink:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA79C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;opacity:0;transition:opacity .2s}
  .m-links a:hover::after{opacity:1}
  .m-links a.is-active{color:#fff;font-weight:600}
  .m-links a.is-active::before{color:var(--leaf)}
  .mobile-nav.is-open .m-links a{opacity:1;transform:none}
  .mobile-nav.is-open .m-links a:nth-child(1){transition-delay:.06s}
  .mobile-nav.is-open .m-links a:nth-child(2){transition-delay:.1s}
  .mobile-nav.is-open .m-links a:nth-child(3){transition-delay:.14s}
  .mobile-nav.is-open .m-links a:nth-child(4){transition-delay:.18s}
  .mobile-nav.is-open .m-links a:nth-child(5){transition-delay:.22s}
  .mobile-nav.is-open .m-links a:nth-child(6){transition-delay:.26s}
  .mobile-nav.is-open .m-links a:nth-child(7){transition-delay:.3s}
  .mobile-nav.is-open .m-links a:nth-child(8){transition-delay:.34s}
  .m-cta{margin-top:22px;display:flex;flex-direction:column;gap:14px}
  .mobile-nav .btn-wa-pill{background:var(--leaf);justify-content:center;padding:14px 20px}
  .mobile-nav .btn-wa-pill:hover{background:#259458}
  .m-host-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600;color:rgba(255,255,255,.72);transition:color .2s}
  .m-host-link:hover{color:#fff}
  .m-host-link svg{width:15px;height:15px;transition:transform .2s}
  .m-host-link:hover svg{transform:translateX(3px)}
}
@media (prefers-reduced-motion:reduce){
  .mobile-nav,.m-links a,.nt-ico,.m-host-link svg{transition:none}
}

