/* ── CORNWALL REALTY — DESIGN V2 ─────────────────────────────────────────────
   Load AFTER nav-fix.css: <link rel="stylesheet" href="/css/design-v2.css">
   Luxury editorial overhaul — diagonal accents, refined typography, depth
───────────────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   1. NAVBAR — always visible, glass morphism, refined
   ═══════════════════════════════════════════════════════════════════════════ */

.navbar {
  background: rgba(10,10,10,0.88) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,162,122,0.15);
}
.navbar.scrolled {
  background: rgba(10,10,10,0.97) !important;
  border-bottom-color: rgba(201,162,122,0.08);
}
.navbar-logo-img {
  height: 40px !important;
  transition: transform 0.3s ease;
  filter: none !important;  /* We have a proper white PNG now, no need for CSS invert hack */
}
.navbar-logo:hover .navbar-logo-img {
  transform: scale(1.04);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. HERO — diagonal split + CR monogram watermark + depth
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  min-height: 94vh;
  background: #0a0a0a;
}

/* Diagonal split — matching business card aesthetic */
.hero-geo::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -5%;
  width: 55%;
  height: 115%;
  background: linear-gradient(145deg, #111 0%, #0d0d0d 40%, #080808 100%);
  transform: skewX(-8deg);
  border-left: 1px solid rgba(201,162,122,0.12);
}

/* Warm gold atmosphere on right side */
.hero-geo::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 70% 40%, rgba(201,162,122,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 80%, rgba(178,34,34,0.04) 0%, transparent 50%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Accent line — inspired by business card diagonal */
.hero-accent-line {
  position: absolute;
  top: 0;
  right: 36%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    transparent 5%,
    rgba(201,162,122,0.3) 20%,
    rgba(201,162,122,0.5) 50%,
    rgba(201,162,122,0.3) 80%,
    transparent 95%
  );
  transform: skewX(-8deg);
}

/* Second accent line for depth */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 34.5%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    transparent 15%,
    rgba(201,162,122,0.1) 40%,
    rgba(201,162,122,0.1) 60%,
    transparent 85%
  );
  transform: skewX(-8deg);
  z-index: 1;
}

/* Subtle grid pattern */
.hero::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px) !important;
  background-size: 100px 100px;
}

/* Red accent bar at very top — matching business card */
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--red) 0%, var(--red) 60%, transparent 100%);
  z-index: 10;
}

/* CR Monogram watermark in hero */
.hero-monogram {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 1.3s forwards;
}
.hero-monogram svg {
  width: 280px;
  height: 280px;
  opacity: 0.06;
  filter: drop-shadow(0 0 40px rgba(201,162,122,0.1));
}

/* Hero content refinements */
.hero-content {
  padding: 80px 0 100px !important;
  max-width: 680px !important;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem) !important;
  letter-spacing: -0.02em;
  line-height: 0.95 !important;
}
.hero h1 em {
  background: linear-gradient(135deg, var(--gold) 0%, #e8d5b7 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1rem !important;
  letter-spacing: 0.01em;
  line-height: 1.85 !important;
}

/* Eyebrow */
.hero-eyebrow-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}

/* Float stat cards — more refined */
.hero-float-stats {
  right: 5% !important;
}
.hero-float-stat {
  background: rgba(10,10,10,0.6) !important;
  border: 1px solid rgba(201,162,122,0.15) !important;
  border-left: 3px solid var(--gold) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 175px !important;
  padding: 16px 22px !important;
  transition: all 0.35s ease;
}
.hero-float-stat:hover {
  border-color: rgba(201,162,122,0.35) !important;
  background: rgba(10,10,10,0.8) !important;
  transform: translateX(-4px);
}
.hero-float-num {
  font-size: 1.8rem !important;
  color: var(--gold) !important;
  font-weight: 300 !important;
}

/* CTA buttons in hero */
.hero-actions .btn-primary {
  background: var(--red);
  border-color: var(--red);
  padding: 16px 36px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}
.hero-actions .btn-primary:hover {
  background: var(--red-deep);
  box-shadow: 0 8px 32px rgba(178,34,34,0.4);
  transform: translateY(-3px);
}
.hero-actions .btn-ghost {
  padding: 16px 36px;
  border-color: rgba(201,162,122,0.4);
  color: var(--gold-light);
}
.hero-actions .btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201,162,122,0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. QUICKNAV — refine gold accent
   ═══════════════════════════════════════════════════════════════════════════ */

.quicknav-tabs {
  border-bottom: 1px solid rgba(201,162,122,0.2) !important;
  background: rgba(10,10,10,0.98) !important;
}
.qnt {
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  padding: 14px 24px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. TICKER — more subtle, refined
   ═══════════════════════════════════════════════════════════════════════════ */

.ticker {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  padding: 14px 0;
}
.ticker-item {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. SERVICE CARDS — more depth, gold hover accent
   ═══════════════════════════════════════════════════════════════════════════ */

.services-grid {
  border: none;
  gap: 1px;
  background: var(--grey-100);
}
.service-card {
  border-right: none;
  background: var(--white);
  transition: all 0.4s var(--ease-out);
}
.service-card::before {
  height: 3px;
  background: linear-gradient(to right, var(--red), var(--gold));
}
.service-card:hover {
  background: var(--cream);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  z-index: 1;
}
.service-num {
  font-size: 4rem !important;
  background: linear-gradient(180deg, var(--grey-200) 0%, rgba(224,219,211,0.3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
}
.service-card:hover .service-num {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.service-link {
  font-size: 0.72rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}
.service-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.35s var(--ease-out);
}
.service-card:hover .service-link::after {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. LISTING ALERTS — more prominent
   ═══════════════════════════════════════════════════════════════════════════ */

.alert-signup-banner {
  border: none !important;
  border-left: 4px solid var(--gold) !important;
  background: var(--white) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
}
.alert-signup-banner:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. ABOUT SECTION — diagonal split like business card
   ═══════════════════════════════════════════════════════════════════════════ */

.about-split {
  position: relative;
  overflow: hidden;
}

/* Diagonal accent line across the about section */
.about-split::before {
  content: '';
  position: absolute;
  top: 0;
  left: 45%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(201,162,122,0.25) 30%, rgba(201,162,122,0.25) 70%, transparent);
  transform: skewX(-8deg);
  z-index: 1;
}

.about-split-img {
  position: relative;
  overflow: hidden;
}

/* Red top stripe on the about image panel (like business card) */
.about-split-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  z-index: 2;
}

/* CR Monogram in about section — large, elegant watermark */
.about-monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.about-monogram svg {
  width: 200px;
  height: 200px;
  opacity: 0.12;
}

.about-split-content {
  padding: 80px 72px !important;
}
.about-split-content .sec-tag {
  color: var(--gold) !important;
}
.about-split-content .sec-tag::before {
  background: var(--gold) !important;
}
.about-split-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

/* Credential items — refined */
.about-cred {
  font-size: 0.88rem !important;
  padding: 6px 0;
  transition: all 0.2s ease;
}
.about-cred::before {
  width: 6px !important;
  height: 6px !important;
  background: var(--gold) !important;
  border-radius: 0 !important;
  transform: rotate(45deg);
}
.about-cred:hover {
  color: rgba(255,255,255,0.9) !important;
  padding-left: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. COMMUNITIES GRID — refined hover states
   ═══════════════════════════════════════════════════════════════════════════ */

.communities-masonry {
  gap: 3px;
}
.community-tile {
  transition: all 0.5s var(--ease-out);
}
.community-tile:hover {
  z-index: 2;
}
.community-tile-content {
  padding: 24px !important;
}
.community-tile h4 {
  font-size: 1.3rem !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.community-tile-state {
  font-size: 0.6rem !important;
  letter-spacing: 0.22em !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. CTA DARK — more drama
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-dark {
  padding: 110px 0 !important;
}
.cta-dark::before {
  background: linear-gradient(to right, transparent, var(--gold), transparent) !important;
  opacity: 0.4;
}
.cta-dark::after {
  background: linear-gradient(to right, transparent, rgba(201,162,122,0.3), transparent) !important;
}
.cta-dark h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. FOOTER — refined with monogram accent
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
  position: relative;
  border-top: 3px solid var(--red) !important;
}
.footer::before {
  content: '';
  position: absolute;
  top: 60px;
  right: 40px;
  width: 180px;
  height: 180px;
  background: url('/images/logo_gold.png') no-repeat center/contain;
  opacity: 0.03;
  pointer-events: none;
}
.footer-logo-img {
  height: 48px !important;
  margin-bottom: 20px !important;
  filter: none !important;  /* Proper white transparent PNG */
}
.footer-tagline {
  font-size: 0.86rem !important;
  color: rgba(255,255,255,0.4) !important;
}
.footer-naid {
  color: rgba(255,255,255,0.25) !important;
  line-height: 1.6 !important;
}
.footer-bottom {
  border-top: 1px solid rgba(201,162,122,0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. PAGE HERO — refined for interior pages
   ═══════════════════════════════════════════════════════════════════════════ */

.page-hero {
  padding: 170px 0 90px !important;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--red), var(--gold), transparent);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. SEC HEADS — refined tag styling
   ═══════════════════════════════════════════════════════════════════════════ */

.sec-tag::before {
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, var(--red), transparent) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. BUTTONS — refined globally
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  border-radius: 0;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #d4ad85 100%) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 2px 12px rgba(201,162,122,0.2);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #d4ad85 0%, var(--gold-light) 100%) !important;
  box-shadow: 0 6px 24px rgba(201,162,122,0.35) !important;
  transform: translateY(-3px) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. SCROLL TOP — refined
   ═══════════════════════════════════════════════════════════════════════════ */

.scroll-top-btn {
  border-radius: 0 !important;
  border: 1px solid rgba(201,162,122,0.2) !important;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.2rem !important;
}
.scroll-top-btn:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-monogram { display: none; }
  .hero-content { max-width: 600px !important; }
  .about-split-content { padding: 48px 36px !important; }
}

@media (max-width: 768px) {
  .hero { min-height: 85vh; }
  .hero-content { padding: 50px 0 70px !important; }
  .hero-topbar { height: 2px; }
  .cta-dark { padding: 70px 0 !important; }
  .about-split::before { display: none; }
  .footer::before { display: none; }
  .page-hero { padding: 140px 0 60px !important; }
}
