/* ==========================================================================
   Aurea Real Estate - Main Stylesheet
   WordPress Theme for Pinegrow Conversion
   ========================================================================== */

/* ==========================================================================
   CSS Variables (Design Tokens)
   ========================================================================== */
:root {
  /* Colors - HSL Format */
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  
  --primary: 45 93% 47%;
  --primary-foreground: 240 5.9% 10%;
  
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 45 93% 47%;
  
  /* Gold Palette */
  --gold-light: 45 100% 70%;
  --gold: 45 93% 47%;
  --gold-dark: 45 93% 35%;
  
  /* Spacing */
  --radius: 0.5rem;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: hsl(var(--gold-light));
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  position: relative;
  padding: 5rem 0;
}

.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header--scrolled {
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--primary));
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, hsl(var(--gold-light)), hsl(var(--gold)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__nav {
  display: none;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.header__nav-link {
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width 0.3s ease;
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__cta {
  display: none;
}

@media (min-width: 768px) {
  .header__cta {
    display: inline-flex;
  }
}

.header__mobile-toggle {
  display: flex;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
}

@media (min-width: 768px) {
  .header__mobile-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: hsl(var(--background) / 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.5rem;
  display: none;
}

.mobile-menu--open {
  display: block;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu__link {
  color: hsl(var(--foreground));
  font-size: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, hsl(var(--gold)), hsl(var(--gold-dark)));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 20px hsl(var(--gold) / 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px hsl(var(--gold) / 0.4);
}

.btn--outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn--outline:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--primary));
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    hsl(var(--background)) 0%,
    hsl(var(--background) / 0.8) 50%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 9999px;
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__title-highlight {
  background: linear-gradient(135deg, hsl(var(--gold-light)), hsl(var(--gold)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
  background: hsl(var(--background));
  padding: 5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats__item {
  text-align: center;
  padding: 2rem 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.stats__item:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-4px);
}

.stats__value {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.stats__label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Methodology Section
   ========================================================================== */
.methodology {
  background: hsl(var(--card));
  padding: 6rem 0;
}

.methodology__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.methodology__label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.methodology__title {
  margin-bottom: 1rem;
}

.methodology__description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.methodology__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .methodology__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .methodology__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.methodology__card {
  position: relative;
  padding: 2rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.methodology__card:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-4px);
}

.methodology__card-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--primary) / 0.1);
}

.methodology__card-icon {
  width: 3rem;
  height: 3rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.methodology__card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.methodology__card-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   Investment Map Section
   ========================================================================== */
.investment-map {
  background: hsl(var(--background));
  padding: 6rem 0;
}

.investment-map__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .investment-map__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.investment-map__content {
  order: 2;
}

@media (min-width: 1024px) {
  .investment-map__content {
    order: 1;
  }
}

.investment-map__label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.investment-map__title {
  margin-bottom: 1rem;
}

.investment-map__description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.investment-map__locations {
  display: grid;
  gap: 1rem;
}

.investment-map__location {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.investment-map__location:hover,
.investment-map__location--active {
  border-color: hsl(var(--primary));
}

.investment-map__location-image {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.investment-map__location-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.investment-map__location-roi {
  font-size: 0.875rem;
  color: hsl(var(--primary));
}

.investment-map__visual {
  order: 1;
}

@media (min-width: 1024px) {
  .investment-map__visual {
    order: 2;
  }
}

.investment-map__image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
}

.investment-map__image {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Developers Section
   ========================================================================== */
.developers {
  background: hsl(var(--background));
  padding: 6rem 0;
}

.developers__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.developers__label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.developers__title {
  margin-bottom: 1rem;
}

.developers__description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.developers__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .developers__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .developers__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.developers__card {
  position: relative;
  padding: 2rem 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.developers__card:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-4px);
}

.developers__card-image {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid hsl(var(--border));
}

.developers__card-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.developers__card-projects {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
  background: hsl(var(--card));
  padding: 6rem 0;
}

.cta__inner {
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--secondary)));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  text-align: center;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  width: 20rem;
  height: 20rem;
  background: hsl(var(--primary) / 0.15);
  border-radius: 50%;
  filter: blur(100px);
}

.cta__glow--1 {
  top: -10rem;
  left: -10rem;
}

.cta__glow--2 {
  bottom: -10rem;
  right: -10rem;
}

.cta__content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
  margin: 0 auto;
}

.cta__title {
  margin-bottom: 1rem;
}

.cta__title-highlight {
  color: hsl(var(--primary));
}

.cta__description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand {
  max-width: 20rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__logo-icon {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--primary));
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, hsl(var(--gold-light)), hsl(var(--gold)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__tagline {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer__section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__links {
  list-style: none;
}

.footer__link {
  display: block;
  padding: 0.5rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: hsl(var(--primary));
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer__contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copyright {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal-link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer__legal-link:hover {
  color: hsl(var(--primary));
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }

/* ==========================================================================
   WordPress Specific Overrides
   ========================================================================== */
.wp-block {
  max-width: 1280px;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Admin bar adjustment */
.admin-bar .header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}
