/*
Theme Name: Aureva Blog
Theme URI: https://www.dlftheaurevagurgaon.com/
Author: Honey Money Associates
Description: Custom WordPress theme for the DLF The Aureva Gurgaon blog. Matches the typography, palette and chrome of the main microsite so the blog reads as part of the same property.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aureva-blog
Tags: blog, one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Font — self-hosted Poppins, same file the main site serves
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: local(""), url("assets/fonts/poppins-v20-latin-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Tokens — lifted from the main site's style.css
   ========================================================================== */

:root {
  --ink:        #040707;  /* main site --primary, nav + buttons        */
  --ink-soft:   #201e1f;  /* footer divider rules                       */
  --ink-2:      #383838;  /* main site --secondary                      */
  --body:       #212529;  /* main site body colour                      */
  --muted:      #6c757d;  /* captions, meta                             */
  --line:       #dee2e6;  /* borders                                    */
  --line-soft:  #e9ecef;
  --bg:         #fff;
  --bg-soft:    #f8f9fa;
  --accent:     #c5203b;  /* used sparingly on the main site            */

  --shell:      1140px;
  --gap:        1.5rem;
  --nav-h:      72px;

  --radius:     .25rem;
  --shadow:     0 .125rem .5rem rgba(4, 7, 7, .12);
  --shadow-lg:  0 .5rem 1.5rem rgba(4, 7, 7, .1);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
  background-color: var(--bg);
  text-align: left;
  padding-top: var(--nav-h);
}

img, svg, video { max-width: 100%; height: auto; }
img { border-style: none; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5rem;
  line-height: 1.2;
  color: var(--ink);
}
h1, h2, h3, h4 { font-weight: 700; }
h5, h6 { font-weight: 500; }

h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 1rem; }

p { margin: 0 0 1.15rem; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: #fff;
}

/* ==========================================================================
   Buttons — same shape as the main site's .btn-primary
   ========================================================================== */

.btn {
  display: inline-block;
  padding: .625rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn:hover, .btn:focus { background: #000; color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover, .btn--ghost:focus { background: var(--ink); color: #fff; }

/* ==========================================================================
   Header — mirrors the main site's fixed-top navbar
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
  max-width: 100%;
  padding-inline: var(--gap);
}

.site-brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-brand img { display: block; width: 164px; height: 55px; }
.site-brand__text { font-weight: 700; font-size: 1.1rem; color: var(--ink); }

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 9px;
  border: 1px solid rgba(4, 7, 7, .18);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}
.header-phone--icon { margin-left: auto; }
.header-phone--full { display: none; }

.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: .5rem 0 1rem;
  display: flex;
  flex-direction: column;
}
.site-nav li { border-top: 1px solid var(--line); }
.site-nav a {
  display: block;
  padding: .7rem .25rem;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--accent); }

@media (min-width: 992px) {
  .site-header__inner { gap: 1.5rem; }
  .nav-toggle { display: none; }
  .header-phone--icon { display: none; }
  .header-phone--full { display: inline-flex; }
  .site-nav { display: block; width: auto; margin-left: auto; }
  .site-nav ul { flex-direction: row; align-items: center; padding: 0; gap: .25rem; }
  .site-nav li { border-top: 0; }
  .site-nav a { padding: .5rem .7rem; font-size: .9rem; }
}

/* ==========================================================================
   Page head
   ========================================================================== */

.page-head {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.page-head__eyebrow {
  margin: 0 0 .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-head h1 { margin: 0; }
.page-head__sub { margin: .75rem 0 0; color: var(--muted); max-width: 60ch; }

.breadcrumbs {
  padding: 1rem 0 0;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ==========================================================================
   Layout
   ========================================================================== */

.layout { display: block; padding-bottom: 3rem; }

@media (min-width: 992px) {
  .layout--sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
    align-items: start;
  }
}

/* ==========================================================================
   Post grid / cards
   ========================================================================== */

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .post-grid--wide { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card__media { display: block; background: var(--bg-soft); aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }

.card__meta {
  margin: 0 0 .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__title { font-size: 1.15rem; margin: 0 0 .6rem; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { margin: 0 0 1.15rem; font-size: .95rem; color: var(--body); }
.card__more {
  margin-top: auto;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  color: var(--ink);
}
.card__more:hover { color: var(--accent); }
.card__more::after { content: " \2192"; }

/* ==========================================================================
   Single post
   ========================================================================== */

.entry { max-width: 74ch; }
.layout--sidebar .entry { max-width: none; }

.entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin: 0 0 1.5rem;
  font-size: .85rem;
  color: var(--muted);
}
.entry__meta a { color: var(--muted); }

.entry__thumb { margin: 0 0 2rem; }
.entry__thumb img { width: 100%; border-radius: var(--radius); }

.entry__content > *:first-child { margin-top: 0; }
.entry__content h2 { margin: 2.25rem 0 .75rem; }
.entry__content h3 { margin: 1.75rem 0 .6rem; }
.entry__content ul, .entry__content ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
.entry__content li { margin-bottom: .4rem; }

.entry__content blockquote {
  margin: 1.75rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--ink);
  color: var(--ink-2);
  font-style: normal;
}
.entry__content blockquote p:last-child { margin-bottom: 0; }

.entry__content img { border-radius: var(--radius); }
.entry__content figure { margin: 1.75rem 0; }
.entry__content figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); }

.entry__content table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
  font-size: .95rem;
}
.entry__content th, .entry__content td {
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  text-align: left;
}
.entry__content th { background: var(--bg-soft); font-weight: 700; }

.entry__content code {
  padding: .15rem .35rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: .9em;
}

.entry__tags {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.entry__tags a {
  display: inline-block;
  margin: .25rem .35rem .25rem 0;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
}
.entry__tags a:hover { border-color: var(--ink); color: var(--ink); }

/* Author box */
.author-box {
  display: flex;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.author-box img { flex: 0 0 auto; border-radius: 50%; }
.author-box h2 { font-size: 1.05rem; margin: 0 0 .35rem; }
.author-box p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* Post navigation */
.post-nav {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.post-nav a:hover { border-color: var(--ink); }
.post-nav span {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.post-nav strong { font-weight: 700; color: var(--ink); font-size: .98rem; }
.post-nav .is-next { text-align: right; }

/* Related posts */
.related { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 1.5rem; }

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar { margin-top: 3rem; }
@media (min-width: 992px) { .sidebar { margin-top: 0; position: sticky; top: calc(var(--nav-h) + 1.5rem); } }

.widget { margin-bottom: 2rem; }
.widget__title {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .9rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { color: var(--accent); text-decoration: underline; }

/* Enquiry card in the sidebar */
.enquiry-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
}
.enquiry-card h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.enquiry-card p { font-size: .9rem; color: var(--ink-2); margin-bottom: 1.15rem; }
.enquiry-card .btn { width: 100%; }
.enquiry-card .btn + .btn { margin-top: .6rem; }

/* Search form */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--body);
}
.search-form input[type="search"]:focus { border-color: var(--ink); outline: none; }
.search-form button { flex: 0 0 auto; }

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination { margin: 3rem 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: .92rem;
  text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 700;
}
.pagination .dots { border-color: transparent; }

/* ==========================================================================
   Comments
   ========================================================================== */

.comments { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.comment-list ol.children { list-style: none; margin: 1.25rem 0 0 1.5rem; padding: 0; }
.comment-body {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.comment-meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.comment-author { font-weight: 700; color: var(--ink); }
.comment-body p:last-child { margin-bottom: 0; }

.comment-respond { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.comment-respond .comment-reply-title { margin-top: 0; font-size: 1.15rem; }
.comment-form label { display: block; margin-bottom: .35rem; font-size: .88rem; font-weight: 700; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .6rem .8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--body);
  background: #fff;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ink); outline: none; }
.comment-form .submit {
  display: inline-block;
  padding: .625rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .5rem; }
.comment-form .comment-form-cookies-consent input { width: auto; margin: .35rem 0 0; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; font-size: .85rem; }

/* ==========================================================================
   404 / empty states
   ========================================================================== */

.empty-state { padding: 3rem 0 4rem; text-align: center; }
.empty-state p { max-width: 52ch; margin-inline: auto; color: var(--muted); }
.empty-state .search-form { max-width: 420px; margin: 1.5rem auto 0; }

/* ==========================================================================
   Footer — same structure and rules as the main site
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 11;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  text-align: center;
}

.footer-nav { margin-bottom: .5rem; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li {
  display: inline-block;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--ink-soft);
}
.footer-nav li:first-child { border: none; }
.footer-nav a { padding: 0 .75rem; font-size: .92rem; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

.footer-legal {
  display: inline-block;
  margin-top: 1rem;
  padding-top: .5rem;
  border-top: 1px dotted #495057;
  color: var(--muted);
  font-size: .85rem;
}
.footer-legal p { max-width: 90ch; margin: 0 auto 1rem; }

.footer-agent {
  margin: 0 auto 1rem;
  max-width: 90ch;
  font-size: .85rem;
  color: var(--muted);
}
.footer-agent strong { color: var(--ink-2); }

/* Floating contact buttons, matched to the main site */
.float-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.float-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.float-actions .is-whatsapp { background: #25d366; }
.float-actions .is-phone { background: var(--ink); }
.float-actions svg { width: 22px; height: 22px; fill: currentColor; }

@media print {
  .site-header, .site-footer, .float-actions, .sidebar, .comments, .post-nav { display: none !important; }
  body { padding-top: 0; }
}
