:root {
  --bg: #f5fafd;
  /* Very light powder blue tint for background */
  --surface: #ffffff;
  --surface-soft: #eef7fb;
  --text: #1a2b3c;
  /* Deep navy for luxury contrast */
  --muted: #5c7a91;
  /* Muted steel blue */
  --gold: #b0d4e3;
  /* Core Powder Blue */
  --gold-strong: #8fbcd1;
  /* Stronger Powder Blue */
  --line: rgba(143, 188, 209, 0.2);
  --shadow: 0 12px 30px rgba(26, 43, 60, 0.08);
  /* Sophisticated darker shadow */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Manrope, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  animation: page-enter 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(143, 188, 209, 0.15), transparent 44%),
    radial-gradient(circle at 88% 14%, rgba(176, 212, 227, 0.1), transparent 48%),
    linear-gradient(140deg, #f0f7fa, #ffffff 45%, #f5fafd 100%);
  z-index: -1;
}

/* Add a subtle geometric pattern to the background */
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%238fbcd1' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--text);
  /* Darker for more contrast */
}

.topbar-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.topbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.topbar-links {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.section {
  padding: 7rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(143, 188, 209, 0.05), rgba(255, 255, 255, 0.95));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: all 400ms ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 88px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.logo-mark {
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  font-family: 'Playfair Display', serif;
}

.site-nav {
  display: flex;
  gap: 1.3rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 260ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.38rem;
  width: 100%;
  height: 2px;
  background: var(--gold-strong);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: var(--gold-strong);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.45rem 0.65rem;
  border-radius: 9px;
  cursor: pointer;
}

.nav-actions {
  display: inline-flex;
  gap: 0.55rem;
}

.btn-link {
  border-color: var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  padding: 0.55rem 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 12px;
  padding: 0.82rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease,
    color 280ms ease;
}

.btn-brand {
  color: var(--text);
  /* Dark navy text for better contrast on light blue */
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: 0 8px 24px rgba(143, 188, 209, 0.3);
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(143, 188, 209, 0.4);
}

.btn-outline {
  border-color: var(--gold-strong);
  color: var(--text);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.1rem;
  align-items: center;
}

.hero-image-section {
  width: 100%;
  min-height: calc(100vh - 122px);
}

.hero-image {
  width: 100%;
  min-height: calc(100vh - 122px);
  background:
    linear-gradient(to top, rgba(26, 43, 60, 0.5), rgba(26, 43, 60, 0.1)),
    url("./images/gtextandassociates cover.jpg") center / cover no-repeat;
  animation: hero-drift 14s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  padding: 2rem;
  color: #fff;
  z-index: 2;
  animation: fade-up 1s ease-out forwards;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  opacity: 0.95;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-hero {
  text-align: center;
  padding-top: 4.4rem;
  padding-bottom: 3.2rem;
}

.page-hero p {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--gold-strong);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: block;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.1;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 61ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.stats {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 1rem;
}

.stat h3 {
  color: var(--text);
  /* Navy for stats */
  margin-bottom: 0.2rem;
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #ffffff, #fff5f7);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-label {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-card p {
  color: var(--muted);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0 1.2rem;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.card-btn {
  width: 100%;
}

.about-grid,
.why-grid,
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-points {
  display: grid;
  gap: 1.2rem;
}

.about-points article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 1.5rem;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
  box-shadow: 0 4px 20px rgba(143, 188, 209, 0.08);
}

.center {
  text-align: center;
}

.card-grid,
.property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 1.8rem;
  transition: all 400ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 20px rgba(143, 188, 209, 0.08);
}

.service-card h3 {
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}

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

.property-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 400ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 30px rgba(179, 18, 47, 0.06);
}

.property-image {
  height: 240px;
}

.property-image.one {
  background:
    linear-gradient(to top, rgba(6, 7, 11, 0.5), rgba(6, 7, 11, 0.1)),
    url("./images/modern_dubai_apartment_exterior_1770977763338.png") center / cover;
}

.property-image.two {
  background:
    linear-gradient(to top, rgba(6, 7, 11, 0.5), rgba(6, 7, 11, 0.1)),
    url("https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=1200&q=80") center / cover;
}

.property-image.three {
  background:
    linear-gradient(to top, rgba(6, 7, 11, 0.5), rgba(6, 7, 11, 0.1)),
    url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80") center / cover;
}

.property-body {
  padding: 1rem;
}

.property-body p {
  color: var(--muted);
}

.property-meta {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--gold-strong);
  font-size: 0.9rem;
}

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

.event-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 1.15rem;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
}

.event-meta {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold-strong);
  font-size: 0.76rem;
  font-weight: 700;
}

.benefits {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.benefits li {
  margin-bottom: 0.65rem;
}

.testimonial {
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(143, 188, 209, 0.1), rgba(255, 255, 255, 0.98));
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 340ms ease;
}

.testimonial p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.testimonial h4 {
  margin-bottom: 0;
  color: var(--gold-strong);
}

.cta {
  border-top: 1px solid var(--line);
}

.contact-form {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
}

.service-card:hover,
.property-card:hover,
.about-points article:hover,
.event-card:hover,
.testimonial:hover,
.contact-form:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(143, 188, 209, 0.25);
  border-color: var(--gold-strong);
}

.property-card:hover .property-image {
  transform: scale(1.04);
}

.property-image {
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes hero-drift {
  from {
    background-position: center 46%;
  }

  to {
    background-position: center 54%;
  }
}

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

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

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  color: var(--text);
  padding: 0.8rem 0.85rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: 2px solid rgba(216, 25, 61, 0.35);
  border-color: transparent;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.7rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-wrap div {
  display: inline-flex;
  gap: 1rem;
}

.dual-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.feature-text {
  animation: fade-right 1s ease-out;
}

@keyframes fade-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@media (max-width: 980px) {

  .hero-grid,
  .about-grid,
  .why-grid,
  .cta-grid,
  .card-grid,
  .property-grid,
  .dual-feature {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .dual-feature {
    text-align: center;
  }

  .luxury-perks li {
    justify-content: center;
  }

  .site-nav,
  .btn-outline,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav.is-open {
    display: grid;
    position: absolute;
    top: 78px;
    right: 4%;
    width: min(260px, 92vw);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem;
    gap: 0.5rem;
  }

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

  .topbar-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0;
    text-align: center;
  }
}