/* ==========================================================================
   Rajmudra Realty - Shared Stylesheet
   Used across all pages: Home, About, Projects, Project details, Contact
   ========================================================================== */

:root {
    --ink: #161616;
    --muted: #5f6864;
    --surface: #ffffff;
    --soft: #f5faf7;
    --soft-blue: #eef8fb;
    --green: #155e3c;
    --green-dark: #0f3f2b;
    --yellow: #e4bd24;
    --yellow-soft: #fff5bf;
    --line: #dce6e0;
    --danger: #a82727;
    --shadow: 0 20px 48px rgba(17, 24, 39, 0.14);
    --shadow-soft: 0 12px 28px rgba(17, 24, 39, 0.08);
    --radius: 8px;
    --font-body: "Inter", Arial, "Helvetica Neue", sans-serif;
    --font-heading: "Poppins", Arial, "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fbfdfa;
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.55;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 44px));
    margin: 0 auto;
}

/* ---------- Top bar ---------- */
.topbar {
    background: #123529;
    color: #fff;
    font-size: 14px;
    padding: 9px 0;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.topbar a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(15, 63, 43, 0.06);
}

.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 270px;
}

.brand-logo {
    width: 64px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 21px;
    line-height: 1.1;
    font-weight: 700;
    color: #071426;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-tagline {
    color: #b77915;
    background: linear-gradient(90deg, #9d6710, #f2d06b, #9d6710);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    animation: taglineFlash 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #26322d;
    font-size: 15px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.nav-links > a:not(.btn) {
    padding: 10px 0;
    line-height: 1;
    position: relative;
}

.nav-links > a:not(.btn):hover {
    color: var(--green);
}

.nav-links > a.active:not(.btn) {
    color: var(--green);
    font-weight: 700;
}

.nav-links > a.active:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 12px 18px;
    min-height: 46px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: var(--yellow);
    color: #151515;
    box-shadow: 0 12px 26px rgba(228, 189, 36, 0.22);
}

.btn-dark {
    background: var(--green-dark);
    color: #fff;
}

.nav-links .btn {
    min-height: 46px;
    padding: 0 20px;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
}

.nav-links .btn:hover {
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--green-dark);
    border-color: var(--line);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: calc(100vh - 120px);
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background-size: cover;
    background-position: 58% center;
    padding: 84px 0;
}

.hero-content {
    width: min(980px, 100%);
    padding-top: 18px;
}

.hero-content > * {
    animation: heroFadeUp 0.9s ease both;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.08s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.16s;
}

.hero-content > *:nth-child(4) {
    animation-delay: 0.24s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    font-family: var(--font-heading);
    margin: 20px 0 18px;
    font-size: 64px;
    line-height: 1.04;
    max-width: 720px;
    font-weight: 700;
}

.hero p {
    margin: 0;
    max-width: 620px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
}

.hero-fact {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(228, 189, 36, 0.34);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(15, 63, 43, 0.96), rgba(21, 94, 60, 0.9));
    padding: 18px;
    box-shadow: 0 16px 34px rgba(5, 20, 13, 0.28);
    backdrop-filter: blur(8px);
}

.hero-fact::after {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -80%;
    width: 44%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-22deg);
    animation: cardFlash 3.6s ease-in-out infinite;
    pointer-events: none;
}

.hero-fact:nth-child(2)::after {
    animation-delay: 0.55s;
}

.hero-fact:nth-child(3)::after {
    animation-delay: 1.1s;
}

.hero-fact strong {
    font-family: var(--font-heading);
    display: block;
    color: #fff;
    font-size: 21px;
    line-height: 1.15;
    white-space: nowrap;
}

.hero-fact span {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Page hero (compact, for inner pages) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, var(--green-dark), var(--green));
    padding: 72px 0 64px;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(228, 189, 36, 0.18), transparent 45%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-family: var(--font-heading);
    margin: 14px 0 12px;
    font-size: 46px;
    line-height: 1.08;
    font-weight: 700;
}

.page-hero p {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.breadcrumb {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.02em;
}

.breadcrumb a:hover {
    color: var(--yellow);
}

/* ---------- Sections ---------- */
section {
    padding: 86px 0;
}

.hero + .section-soft,
.page-hero + .section-soft {
    padding-top: 72px;
}

.section-soft {
    background: var(--soft);
}

.section-blue {
    background: var(--soft-blue);
}

.section-dark {
    background: var(--green-dark);
    color: #fff;
}

.section-head {
    width: 100%;
    max-width: none;
    margin-bottom: 42px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
    gap: 40px;
    align-items: end;
}

.section-head.compact {
    grid-template-columns: 1fr;
    max-width: 760px;
}

.section-title {
    max-width: 760px;
}

.section-head p {
    margin: 0;
}

.section-kicker {
    color: var(--green);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}

.section-dark .section-kicker {
    color: var(--yellow);
}

h2 {
    font-family: var(--font-heading);
    margin: 0;
    font-size: 38px;
    line-height: 1.18;
    font-weight: 700;
}

h3 {
    font-family: var(--font-heading);
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 600;
}

p {
    color: var(--muted);
}

.section-dark p,
.section-dark .muted {
    color: rgba(255, 255, 255, 0.76);
}

.muted {
    color: var(--muted);
}

/* ---------- Grids & cards ---------- */
.grid {
    display: grid;
    gap: 22px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    min-height: 100%;
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(21, 94, 60, 0.22);
    box-shadow: var(--shadow);
}

.card strong {
    display: block;
    font-size: 18px;
}

.card p {
    margin: 8px 0 0;
}

.feature-number {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(21, 94, 60, 0.12), rgba(228, 189, 36, 0.22));
    color: var(--green-dark);
    font-weight: 800;
    margin-bottom: 16px;
    transition: background 0.32s ease, color 0.32s ease, transform 0.32s ease;
}

.feature-number svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card:hover .feature-number {
    background: linear-gradient(135deg, var(--green-dark), #2e8b57);
    color: #fff;
    transform: translateY(-2px);
}

.amenity span svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Project listing cards ---------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: rgba(21, 94, 60, 0.22);
    box-shadow: var(--shadow);
}

.project-thumb {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-thumb .placeholder-art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 0.04em;
    background:
        radial-gradient(circle at 80% 15%, rgba(228, 189, 36, 0.32), transparent 50%),
        linear-gradient(135deg, var(--green-dark), var(--green));
}

.status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--yellow);
    color: #151515;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge.ongoing {
    background: var(--yellow);
}

.status-badge.upcoming {
    background: #cfe9da;
    color: var(--green-dark);
}

.project-body {
    padding: 24px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.project-body h3 {
    font-size: 22px;
}

.project-loc {
    color: var(--green);
    font-weight: 700;
    font-size: 13px;
}

.project-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-body .btn {
    margin-top: 6px;
    width: fit-content;
}

/* ---------- Media grid ---------- */
.media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    gap: 44px;
    align-items: center;
}

.media-frame {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.media-frame img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.media-frame:hover img {
    transform: scale(1.035);
}

.layout-frame img {
    object-position: 56% 42%;
}

/* ---------- Lists ---------- */
.check-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    color: #26322d;
}

.check-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--yellow);
    margin-top: 7px;
}

.section-dark .check-list li {
    color: rgba(255, 255, 255, 0.88);
}

/* ---------- Tables ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1060px;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 14px;
}

th {
    background: var(--green-dark);
    color: #fff;
    font-size: 13px;
    position: sticky;
    top: 0;
}

tbody tr:nth-child(even) td {
    background: #f7fbf9;
}

.price {
    font-weight: 800;
    color: var(--green-dark);
    white-space: nowrap;
}

.tag {
    display: inline-flex;
    border-radius: var(--radius);
    background: #eaf5ef;
    color: var(--green-dark);
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.note {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--muted);
    font-size: 14px;
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.note:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

/* ---------- Plan cards ---------- */
.plan-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.34s ease, box-shadow 0.34s ease;
}

.plan-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.plan-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.plan-card:hover img {
    transform: scale(1.045);
}

.plan-body {
    padding: 26px;
}

.plan-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

/* ---------- Amenities ---------- */
.amenities-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
    gap: 26px;
    align-items: stretch;
}

.amenity-visuals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 16px;
}

.amenity-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #dce6e0;
    box-shadow: var(--shadow-soft);
    min-height: 210px;
}

.amenity-photo.large {
    grid-column: 1 / -1;
}

.amenity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.85s ease;
}

.amenity-photo:hover img {
    transform: scale(1.06);
}

.amenity-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 16px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.76));
    color: #fff;
    font-weight: 800;
}

.amenity-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.amenity {
    min-height: 118px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    align-content: start;
    gap: 14px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.amenity:hover {
    transform: translateY(-6px);
    border-color: rgba(228, 189, 36, 0.5);
    box-shadow: var(--shadow-soft);
}

.amenity span {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    display: inline-grid;
    place-items: center;
    background: #eaf5ef;
    color: var(--green);
    font-weight: 900;
    font-size: 18px;
}

.amenity strong {
    font-size: 16px;
    line-height: 1.35;
}

/* ---------- Specs ---------- */
.spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.spec {
    border-top: 3px solid var(--yellow);
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.spec:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.spec ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

/* ---------- Gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    grid-auto-flow: dense;
}

.gallery figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    min-height: 250px;
    background: #dce6e0;
    box-shadow: var(--shadow-soft);
}

.gallery figure.wide {
    grid-column: span 2;
}

.gallery figure.tall {
    grid-row: span 2;
    min-height: 516px;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.85s ease;
}

.gallery figure:hover img {
    transform: scale(1.06);
}

.gallery figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
    color: #fff;
    padding: 42px 14px 14px;
    font-weight: 800;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
    gap: 46px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.contact-item {
    border-left: 4px solid var(--yellow);
    padding-left: 14px;
}

.contact-item strong {
    display: block;
}

.lead-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.map-frame {
    margin-top: 40px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    line-height: 0;
}

.map-frame iframe {
    width: 100%;
    height: 380px;
    border: 0;
}

/* ---------- Stats strip ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.stat {
    text-align: center;
    padding: 8px;
}

.stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1;
    color: var(--yellow);
}

.stat span {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.72s ease, transform 0.72s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal.in-view.card:hover,
.reveal.in-view.plan-card:hover,
.reveal.in-view.project-card:hover {
    transform: translateY(-7px);
}

.reveal.in-view.spec:hover {
    transform: translateY(-5px);
}

.reveal.in-view.note:hover {
    transform: translateY(-4px);
}

.reveal.in-view.amenity:hover {
    transform: translateY(-6px);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFlash {
    0% {
        left: -80%;
    }

    42%,
    100% {
        left: 130%;
    }
}

@keyframes taglineFlash {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ---------- Forms ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfdad4;
    border-radius: var(--radius);
    min-height: 48px;
    padding: 12px 13px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(21, 94, 60, 0.12);
}

.success {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: #e7f7ed;
    color: var(--green-dark);
    font-weight: 700;
}

.success.show {
    display: block;
}

/* ---------- Callout / note banner ---------- */
.callout {
    border: 1px dashed rgba(21, 94, 60, 0.45);
    background: #f0f8f3;
    border-radius: var(--radius);
    padding: 18px 20px;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
    background: #101611;
    color: #fff;
    padding: 56px 0 96px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-grid-simple {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.footer h3 {
    margin-bottom: 6px;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.footer-nav a:hover {
    color: var(--yellow);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.social-link:hover {
    transform: translateY(-4px);
    background: rgba(228, 189, 36, 0.14);
    border-color: rgba(228, 189, 36, 0.38);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.disclaimer {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 18px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 12px;
    z-index: 30;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 24px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sticky-cta strong {
    display: block;
    font-size: 14px;
}

.sticky-cta span {
    color: var(--muted);
    font-size: 13px;
}

.sticky-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero {
        min-height: 74vh;
        padding: 74px 0;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-fact strong {
        font-size: 19px;
    }

    .grid-4,
    .amenity-list,
    .gallery,
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3,
    .notes,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-head {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .section-head p {
        max-width: 720px;
    }

    .media-grid,
    .amenities-layout,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .topbar {
        font-size: 13px;
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .nav-links .btn {
        width: auto;
    }

    .hero {
        min-height: auto;
        padding: 64px 0;
        background-position: 42% center;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-fact strong {
        font-size: 20px;
    }

    .hero-facts,
    .grid-2,
    .grid-3,
    .grid-4,
    .notes,
    .spec-list,
    .amenity-list,
    .project-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 31px;
    }

    section {
        padding: 58px 0;
    }

    .hero + .section-soft,
    .page-hero + .section-soft {
        padding-top: 52px;
    }

    .media-frame img {
        min-height: 300px;
    }

    .amenity-visuals {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .amenity-photo.large {
        grid-column: auto;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery figure,
    .gallery figure.tall {
        min-height: 260px;
        grid-column: auto;
        grid-row: auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .sticky-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .sticky-actions .btn {
        flex: 1 1 120px;
    }
}

/* ==========================================================================
   PRO UI/UX ENHANCEMENTS
   ========================================================================== */

::selection {
    background: rgba(228, 189, 36, 0.32);
    color: var(--green-dark);
}

:focus-visible {
    outline: 3px solid rgba(21, 94, 60, 0.45);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---- Scroll progress bar ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 60;
    background: linear-gradient(90deg, var(--green), var(--yellow));
    box-shadow: 0 0 12px rgba(228, 189, 36, 0.5);
    transition: width 0.08s linear;
}

/* ---- Header: shrink + elevate on scroll ---- */
.site-header {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(15, 63, 43, 0.12);
}

.nav {
    transition: min-height 0.3s ease;
}

.site-header.scrolled .nav {
    min-height: 66px;
}

.site-header.scrolled .brand-logo {
    width: 54px;
    height: 48px;
    transition: width 0.3s ease, height 0.3s ease;
}

.brand-logo {
    transition: width 0.3s ease, height 0.3s ease, transform 0.4s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.06) rotate(-2deg);
}

/* ---- Buttons: moving sheen ---- */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: inherit;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn:hover::after {
    left: 140%;
}

.btn-primary:hover {
    box-shadow: 0 16px 32px rgba(228, 189, 36, 0.34);
}

.btn-dark:hover {
    box-shadow: 0 16px 32px rgba(15, 63, 43, 0.3);
}

/* ---- Nav links: animated underline ---- */
.nav-links > a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
    transition: right 0.28s ease;
}

.nav-links > a:not(.btn):hover::after {
    right: 0;
}

.nav-links > a.active:not(.btn)::after {
    right: 0;
}

/* ---- Section kicker accent ---- */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.7;
}

/* ---- Premium project cards (clickable) ---- */
a.project-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.project-card {
    position: relative;
    isolation: isolate;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(140deg, rgba(228, 189, 36, 0.6), rgba(21, 94, 60, 0.25), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 63, 43, 0.2);
}

.project-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5, 20, 13, 0.5));
    opacity: 0.65;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card:hover .project-thumb::after {
    opacity: 0.85;
}

.project-thumb .view-pill {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green-dark);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease, gap 0.3s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.project-card:hover .view-pill {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .view-pill {
    gap: 12px;
}

.project-body .btn {
    width: 100%;
    margin-top: 4px;
}

.project-card:hover .project-body .btn {
    background: var(--yellow);
    color: #151515;
}

/* ---- Status badge: glass pill with dot ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: badgePulse 2.4s ease-out infinite;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(21, 94, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(21, 94, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(21, 94, 60, 0);
    }
}

/* ---- Premium placeholder art ---- */
.placeholder-art,
.placeholder-tile {
    position: relative;
    overflow: hidden;
}

.placeholder-art::before,
.placeholder-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
    pointer-events: none;
}

.placeholder-art::after {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -60%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-22deg);
    animation: cardFlash 4.5s ease-in-out infinite;
}

/* ---- Cards: subtle top accent on hover ---- */
.card {
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::after {
    transform: scaleX(1);
}

/* ---- Stats: refined ---- */
.stat strong {
    background: linear-gradient(180deg, #f6db7e, var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Hero scroll cue ---- */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    z-index: 2;
}

.scroll-cue::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: #fff;
    border-radius: 2px;
    animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 0; }
}

/* ---- Back to top ---- */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 84px;
    z-index: 35;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--green-dark);
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 63, 43, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--green);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Amenity / spec / plan lift refinement ---- */
.amenity span {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.amenity:hover span {
    background: var(--yellow);
    color: #151515;
    transform: rotate(-6deg) scale(1.08);
}

/* ---- Table row hover ---- */
tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover td {
    background: #eef8f1;
}

/* ---- Page hero: animated aurora ---- */
.page-hero {
    background-size: 180% 180%;
    animation: auroraShift 16s ease-in-out infinite;
}

@keyframes auroraShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---- Premium amenity cards ---- */
.amenity {
    grid-template-columns: 52px 1fr;
    align-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    min-height: 92px;
    position: relative;
    overflow: hidden;
}

.amenity::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 189, 36, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.5s ease;
    pointer-events: none;
}

.amenity::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--green), var(--yellow));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.amenity:hover::after {
    opacity: 1;
    transform: scale(1.15);
}

.amenity:hover::before {
    transform: scaleY(1);
}

.amenity span {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-dark), #2e8b57);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 12px 22px rgba(21, 94, 60, 0.26);
}

.amenity strong {
    align-self: center;
    font-size: 16px;
}

.amenity:hover {
    border-color: rgba(228, 189, 36, 0.55);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
}

@media (max-width: 760px) {
    .amenity {
        min-height: 84px;
    }
}

/* ---- Creatives poster wall (project galleries) ---- */
.poster-wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.poster {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 9 / 16;
    border: 1px solid var(--line);
    background: #0f3f2b;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease;
}

.poster:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster:hover img {
    transform: scale(1.05);
}

.poster figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(180deg, transparent, rgba(5, 20, 13, 0.82));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.poster-feature {
    grid-row: span 2;
    aspect-ratio: auto;
}

@media (max-width: 1000px) {
    .poster-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .poster-feature {
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .poster-wall {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
