:root {
  --primary-black: #19325B;
  --primary-gold: #D4AF37;
  --gold-hover: #F3D263;
  --bg-white: #FFFFFF;
  --bg-dark-gray: #19325B;
  --bg-off-white: #F9F9F9;
  --text-main: #333333;
  --text-muted: rgba(255, 255, 255, 0.84);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Utilities */
.text-gold {
  color: var(--primary-gold);
}

.text-black {
  color: var(--primary-black);
}

.text-white {
  color: var(--bg-white);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-gold);
  color: var(--primary-black);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}

.btn-secondary:hover {
  background-color: var(--bg-white);
  color: var(--primary-black);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

.btn-outline-gold:hover {
  background-color: var(--primary-gold);
  color: var(--primary-black);
  transform: translateY(-2px);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-smooth);
  background: rgba(25, 50, 91, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
  background: rgba(25, 50, 91, 0.95);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  transition: height var(--transition-smooth);
}

header.scrolled .nav-container {
  height: 70px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  color: var(--bg-white);
  line-height: 1;
  letter-spacing: 1px;
}

.logo-subtitle {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: var(--primary-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 24px;
  cursor: pointer;
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.bg-dark {
  background-color: var(--bg-dark-gray);
  color: var(--bg-white);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark p {
  color: var(--bg-white);
}

.bg-dark .property-card h1,
.bg-dark .property-card h2,
.bg-dark .property-card h3,
.bg-dark .property-card h4,
.bg-dark .property-card h5,
.bg-dark .property-card h6 {
  color: var(--bg-white);
}

.bg-dark .property-card p,
.bg-dark .property-card span {
  color: var(--text-muted);
}

.bg-dark .property-card .text-gold {
  color: var(--primary-gold) !important;
}

.section-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-gold);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 700px;
  margin: 0 auto 50px;
}

.bg-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.84);
}

/* Why Choose Us cards on About page */
.why-choose-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 50px;
}

.why-choose-card {
  width: min(100%, 280px);
  min-height: 270px;
  padding: 32px 28px 30px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-top: 4px solid var(--primary-gold);
  background: linear-gradient(180deg, #10264a 0%, #0c1d39 100%);
  box-shadow: 0 18px 40px rgba(8, 20, 44, 0.2);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

.why-choose-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(19, 36, 70, 0.16);
  border-color: rgba(212, 175, 55, 0.32);
}

.why-choose-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.why-choose-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.14);
  color: #9f7d16;
  font-size: 0.95rem;
}

.why-choose-head h3 {
  margin: 0;
  color: var(--bg-white);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.why-choose-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  line-height: 1.55;
  font-weight: 600;
}

/* About Page */
.about-page-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 150px;
  background:
    linear-gradient(120deg, rgba(9, 22, 48, 0.96), rgba(25, 50, 91, 0.82)),
    url('KYR%20Banners/3.jpg') center center / cover no-repeat;
}

.about-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(9, 22, 48, 0.12), rgba(9, 22, 48, 0.32));
}

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

.about-hero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about-hero-title {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--bg-white);
  font-size: 4.6rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.about-hero-subtitle {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
  line-height: 1.8;
}

.about-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  max-width: 980px;
}

.about-hero-point {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.about-hero-point span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-hero-point strong {
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.about-page-main {
  margin-top: -88px;
  padding-bottom: 28px;
}

.about-content-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  background: linear-gradient(180deg, #10264a 0%, #0c1d39 100%);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 24, 52, 0.18);
}

.about-copy-block {
  padding: 58px 58px 54px;
}

.about-section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-copy-block .section-title {
  margin-bottom: 30px;
  color: var(--bg-white);
}

.about-copy-block p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.95;
}

.about-statement {
  margin-top: 34px;
  padding: 28px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(25, 50, 91, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.24);
}

.about-statement p {
  margin: 0;
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.55;
}

.about-side-visual {
  position: relative;
  min-height: 100%;
  background: var(--primary-black);
}

.about-side-visual img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.about-side-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 22, 48, 0.08), rgba(9, 22, 48, 0.55));
}

.about-side-badge {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  z-index: 1;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(9, 22, 48, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.about-side-badge span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-side-badge strong {
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.5;
}

.about-values-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.about-values-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.about-value-card {
  position: relative;
  min-height: 220px;
  padding: 34px 30px 30px;
  border-radius: 20px;
  background: linear-gradient(180deg, #10264a 0%, #0c1d39 100%);
  border: 1px solid rgba(212, 175, 55, 0.16);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.about-value-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-value-card p {
  margin: 0;
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.8;
}

/* Footer */
footer {
  background-color: var(--primary-black);
  color: var(--bg-white);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  color: var(--bg-white);
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  color: var(--bg-white);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--bg-white);
  transition: all var(--transition-smooth);
}

.social-links a:hover {
  background-color: var(--primary-gold);
  color: var(--primary-black);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: var(--bg-white);
  font-size: 0.9rem;
}

/* ---------------- Property Cards Global ---------------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.team-member-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, #10264a 0%, #0c1d39 100%);
  border: 1px solid rgba(212, 175, 55, 0.16);
  box-shadow: var(--shadow-card);
  min-height: 100%;
}

.team-member-photo {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(25, 50, 91, 0.96), rgba(48, 78, 125, 0.92));
}

.team-member-name {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--bg-white);
}

.team-member-title {
  margin-bottom: 12px;
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-member-bio {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 16px;
}

.team-member-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-member-links a {
  color: var(--bg-white);
  font-weight: 600;
  word-break: break-word;
}

.team-member-links a i {
  margin-right: 8px;
  color: var(--primary-gold);
}

.premium-auth-grid,
.premium-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.property-card {
  background: linear-gradient(180deg, #10264a 0%, #0c1d39 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-gold);
}

.property-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.property-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary-gold);
  color: var(--primary-black);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.property-info {
  padding: 25px;
}

.property-info p {
  color: rgba(255, 255, 255, 0.88);
}

.property-developer {
  color: var(--primary-gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.property-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--bg-white);
}

.property-location {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 25px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.meta-value {
  font-weight: 700;
  color: var(--bg-white);
  font-size: 1rem;
}

.property-card .btn {
  width: 100%;
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--primary-black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left var(--transition-smooth);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Global Section Layouts */
  .why-cards {
    grid-template-columns: 1fr 1fr !important;
  }

  .about-teaser {
    grid-template-columns: 1fr !important;
  }

  .about-hero-title {
    font-size: 3.6rem;
  }

  .about-hero-points {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .about-content-panel {
    grid-template-columns: 1fr;
  }

  .about-values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-members-grid,
  .premium-auth-grid,
  .premium-tools-grid {
    grid-template-columns: 1fr !important;
  }

  .property-grid {
    grid-template-columns: 1fr 1fr !important;
    /* Force override inline styles if any */
  }

  .hero h1 {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Global Section Layouts */
  .hero h1 {
    font-size: 2.8rem !important;
    line-height: 1.2 !important;
  }

  .about-page-hero {
    padding: 100px 0 130px;
  }

  .about-hero-title {
    font-size: 2.9rem;
    line-height: 1.02;
  }

  .about-hero-subtitle {
    font-size: 1.05rem;
  }

  .about-page-main {
    margin-top: -70px;
  }

  .about-copy-block {
    padding: 40px 24px 36px;
  }

  .about-statement p {
    font-size: 1.2rem;
  }

  .about-side-badge {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .team-member-card {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 22px;
  }

  .hero p {
    font-size: 1.1rem !important;
    margin-bottom: 30px !important;
  }

  .hero-btns {
    flex-direction: column;
  }

  .why-cards {
    grid-template-columns: 1fr !important;
  }

  .property-grid {
    grid-template-columns: 1fr !important;
  }

  .team-member-card {
    grid-template-columns: 1fr;
  }

  .team-member-photo {
    width: 100px;
    height: 100px;
  }

  /* Form and Text Inputs Mobile Fix */
  input,
  select,
  textarea {
    font-size: 16px;
    /* Prevents iOS auto-zoom */
  }

  /* Flexbox Overrides for Mobile */
  .container>div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .container>div[style*="display: flex"]>div {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .about-page-hero {
    padding: 88px 0 120px;
  }

  .about-hero-title {
    font-size: 2.25rem;
  }

  .about-copy-block p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .hero p {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
