/*
Theme Name: Sobha Altus Blog
Theme URI: https://www.sobhaaltusgurgaon.info/blog/
Description: Custom blog theme matched to the Sobha Altus Sector 106 Gurgaon microsite. Gold and olive palette, Poppins, no framework, no jQuery.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Tested up to: 7.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sobha-altus-blog
Tags: blog, one-column, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

@font-face {
  font-family: "PoppinsLocal";
  src: url("/fonts/poppins-v20-latin-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #f3b35e;
  --gold-dark: #ee9117;
  --gold-tint: rgba(243, 179, 94, .16);
  --olive: #526d4d;
  --olive-dark: #3c4f38;
  --olive-tint: rgba(82, 109, 77, .12);
  --ink: #201e1f;
  --body: #212529;
  --muted: #6c757d;
  --cream: #fcf9ef;
  --white: #fff;
  --line: rgba(32, 30, 31, .12);
  --radius: .75rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(32, 30, 31, .06), 0 4px 14px rgba(32, 30, 31, .06);
  --shadow-md: 0 6px 28px rgba(32, 30, 31, .12);
  --wrap: 1180px;
  --header-h: 4.1rem;
  --font: "PoppinsLocal", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. 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: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; height: auto; vertical-align: middle; }
img { border-style: none; }

a { color: var(--olive); text-decoration: underline; text-underline-offset: .18em; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6rem; line-height: 1.25; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 2.3vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p, ul, ol, table, figure, pre, blockquote { margin: 0 0 1.15rem; }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; border-radius: 3px; }

.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: 1000;
  background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; text-decoration: none;
}
.skip-link:focus { left: .5rem; top: .5rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.4rem;
  border: 2px solid transparent; border-radius: .3rem;
  font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--ink); }
.btn--olive { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn--olive:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--olive); color: var(--olive); }
.btn--ghost:hover { background: var(--olive); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .45rem .9rem; font-size: .85rem; }

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(32, 30, 31, .08);
}

.site-header__bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}

.site-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.site-brand img { height: 44px; width: auto; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-brand__name { font-weight: 800; font-size: 1rem; color: var(--ink); }
.site-brand__sub { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--olive); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: .3rem;
  padding: .45rem .6rem; cursor: pointer;
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

.main-nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block; padding: .55rem .75rem;
  font-size: .92rem; font-weight: 600; color: var(--ink);
  text-decoration: none; border-radius: .3rem;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .is-current > a { background: var(--gold); color: var(--ink); }

.header-phone {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; margin-left: .4rem;
  background: var(--olive); color: #fff; border-radius: .3rem;
  font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.header-phone:hover { background: var(--olive-dark); color: #fff; }

@media (max-width: 991px) {
  .nav-toggle { display: block; order: 3; }
  .main-nav {
    order: 4; flex-basis: 100%; display: none;
    border-top: 1px solid var(--line); padding: .5rem 0 .9rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: .7rem .5rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .header-phone { margin-left: 0; }
  .site-header__bar { flex-wrap: wrap; padding: .5rem 0; }
  .site-brand img { height: 38px; }
}

@media (max-width: 480px) {
  .header-phone span { display: none; }
  .site-brand__sub { display: none; }
}

/* ==========================================================================
   5. Page head
   ========================================================================== */

.page-head {
  background: linear-gradient(180deg, var(--olive-tint) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0 2rem;
}
.page-head__eyebrow {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--olive); font-weight: 700; margin: 0 0 .5rem;
}
.page-head h1 { margin-bottom: .5rem; }
.page-head__lead { max-width: 62ch; color: var(--muted); margin: 0; }

.breadcrumbs { font-size: .82rem; color: var(--muted); margin: 0 0 .9rem; }
.breadcrumbs a { color: var(--olive); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { padding: 0 .35rem; color: rgba(32, 30, 31, .35); }

/* ==========================================================================
   6. Layout
   ========================================================================== */

.site-main { padding: 2.5rem 0 3rem; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.5rem; align-items: start; }
.layout--full { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 991px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* ==========================================================================
   7. Post cards
   ========================================================================== */

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 700px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.post-card__media { display: block; background: var(--cream); aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__media--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--olive); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem;
}

.post-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 1.16rem; margin-bottom: .55rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--olive); }
.post-card__excerpt { font-size: .93rem; color: var(--muted); margin-bottom: 1rem; }
.post-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

.chip {
  display: inline-block; padding: .22rem .6rem; margin-bottom: .6rem;
  background: var(--gold-tint); color: var(--olive-dark);
  border-radius: 100vmax; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.chip:hover { background: var(--gold); color: var(--ink); }

.meta { font-size: .8rem; color: var(--muted); }
.meta span + span::before { content: "•"; padding: 0 .4rem; color: rgba(32, 30, 31, .3); }

.readmore { font-size: .87rem; font-weight: 700; color: var(--olive); text-decoration: none; white-space: nowrap; }
.readmore:hover { color: var(--gold-dark); }
.readmore::after { content: " →"; }

/* ==========================================================================
   8. Single post
   ========================================================================== */

.entry { background: #fff; }
.entry__header { margin-bottom: 1.5rem; }
.entry__title { margin-bottom: .8rem; }

.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .8rem 0; margin-bottom: 1.5rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.byline strong { color: var(--ink); font-weight: 600; }

.entry__thumb { margin: 0 0 1.8rem; }
.entry__thumb img { width: 100%; border-radius: var(--radius); }

.entry__content { font-size: 1.02rem; }
.entry__content h2 {
  margin-top: 2.2rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
}
.entry__content h3 { margin-top: 1.7rem; color: var(--olive-dark); }
.entry__content h4 { margin-top: 1.4rem; }
.entry__content ul, .entry__content ol { padding-left: 1.35rem; }
.entry__content li::marker { color: var(--olive); }
.entry__content a { color: var(--olive-dark); }

.entry__content blockquote {
  margin: 1.8rem 0; padding: 1.1rem 1.35rem;
  background: var(--cream); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.entry__content blockquote p:last-child { margin-bottom: 0; }

.entry__content figure img { border-radius: var(--radius); }
.entry__content figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .5rem; }

.entry__content table {
  width: 100%; border-collapse: collapse;
  font-size: .92rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.entry__content thead th {
  background: var(--olive); color: #fff;
  text-align: left; font-weight: 700;
}
.entry__content th, .entry__content td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
.entry__content tbody tr:nth-child(even) { background: rgba(252, 249, 239, .7); }
.entry__content tbody tr:last-child td { border-bottom: 0; }

/* Wide comparison tables scroll instead of breaking the column. */
.entry__content .wp-block-table { overflow-x: auto; }
.entry__content .wp-block-table table { margin-bottom: 0; }
@media (max-width: 700px) {
  .entry__content > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.entry__content code {
  background: var(--cream); padding: .1rem .35rem; border-radius: .2rem; font-size: .9em;
}

.entry__footer { margin-top: 2.2rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
@media (max-width: 600px) { .post-nav { grid-template-columns: minmax(0, 1fr); } }
.post-nav a {
  display: block; padding: 1rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: #fff;
}
.post-nav a:hover { border-color: var(--gold); background: var(--cream); }
.post-nav__label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); font-weight: 700; margin-bottom: .3rem; }
.post-nav__title { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.4; }
.post-nav .next { text-align: right; }

.related { margin-top: 2.5rem; }
.related h2 { margin-bottom: 1.2rem; }

/* ==========================================================================
   9. Project CTA
   ========================================================================== */

.project-cta {
  background: var(--olive); color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  margin: 2.2rem 0;
}
.project-cta h2 { color: #fff; font-size: 1.35rem; margin-bottom: .4rem; }
.project-cta p { color: rgba(255, 255, 255, .85); font-size: .94rem; margin-bottom: 1.2rem; }
.project-cta__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem; margin-bottom: 1.4rem;
}
@media (max-width: 700px) { .project-cta__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.project-cta__stat {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: .5rem; padding: .7rem .8rem;
}
.project-cta__stat span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: .2rem; }
.project-cta__stat strong { font-size: 1.02rem; font-weight: 700; }
.project-cta__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.project-cta .btn--ghost { border-color: #fff; color: #fff; }
.project-cta .btn--ghost:hover { background: #fff; color: var(--olive-dark); }

/* ==========================================================================
   10. Sidebar
   ========================================================================== */

.sidebar { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.5rem; }
@media (max-width: 991px) { .sidebar { position: static; } }

.widget {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.widget__title {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--olive); font-weight: 700;
  padding-bottom: .6rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: .7rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.widget li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.widget li a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 600; }
.widget li a:hover { color: var(--olive); }
.widget .meta { display: block; margin-top: .2rem; font-weight: 400; }

.widget--snapshot { background: var(--cream); border-color: rgba(243, 179, 94, .45); }
.snapshot-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dotted rgba(32, 30, 31, .2); font-size: .9rem; }
.snapshot-row:last-of-type { border-bottom: 0; }
.snapshot-row span { color: var(--muted); }
.snapshot-row strong { color: var(--ink); text-align: right; }
.widget--snapshot .btn { margin-top: 1rem; }
.widget--snapshot .btn + .btn { margin-top: .55rem; }

.searchform { display: flex; gap: .5rem; }
.searchform input[type="search"] {
  flex: 1; min-width: 0;
  padding: .6rem .75rem;
  border: 1px solid #dcdcdc; border-radius: .3rem; background: #fff;
}
.searchform input[type="search"]:focus { border-color: var(--gold); outline: 2px solid var(--gold-tint); }

/* ==========================================================================
   11. Pagination
   ========================================================================== */

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: .3rem;
  font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--gold); background: var(--cream); }
.pagination .page-numbers.current { background: var(--olive); border-color: var(--olive); color: #fff; }

/* ==========================================================================
   12. States
   ========================================================================== */

.notice {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; background: var(--cream);
}
.notice h2 { margin-bottom: .5rem; }
.notice p { color: var(--muted); margin-bottom: 1.2rem; }

/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 2.2rem 0 6rem; text-align: center; }
@media (min-width: 992px) { .site-footer { padding-bottom: 2.2rem; } }

.footer-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.footer-nav li { margin: 0; padding: 0 .75rem; border-left: 1px solid var(--line); }
.footer-nav li:first-child { border-left: 0; }
.footer-nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; }
.footer-nav a:hover { color: var(--olive); }

.footer-disclaimer {
  max-width: 900px; margin: 0 auto;
  padding-top: 1rem; border-top: 1px dotted var(--muted);
  font-size: .82rem; line-height: 1.6; color: var(--muted);
}

/* ==========================================================================
   14. Floating actions
   ========================================================================== */

.float-whatsapp {
  position: fixed; left: 1.4rem; bottom: 1.6rem; z-index: 800;
  display: none;
  width: 3.4rem; height: 3.4rem; border-radius: 100vmax;
  background: #25d366; color: #fff;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); text-decoration: none;
}
.float-whatsapp svg { width: 1.9rem; height: 1.9rem; fill: currentColor; }
@media (min-width: 992px) { .float-whatsapp { display: flex; } }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  display: flex; gap: .6rem; align-items: center;
  padding: .6rem .8rem;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -2px 14px rgba(32, 30, 31, .1);
}
@media (min-width: 992px) { .mobile-bar { display: none; } }
.mobile-bar__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; flex: 0 0 auto;
  border-radius: .4rem; text-decoration: none; color: #fff;
}
.mobile-bar__icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.mobile-bar__icon--call { background: var(--olive); }
.mobile-bar__icon--wa { background: #25d366; }
.mobile-bar .btn { flex: 1; }