/* ===================================
   RHEINBLICK PRESTIGE - GEOMETRIC STRUCTURED DESIGN
   Luxury Real Estate CSS - Complete Styles
   =================================== */

/* CSS RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #1a3a52;
  background: #ffffff;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #1a3a52;
}

h1 {
  font-size: 48px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
}

p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: #c9a961;
  transition: all 0.3s ease;
}

a:hover {
  color: #1a3a52;
}

ul {
  list-style-position: inside;
  margin-bottom: 16px;
}

li {
  margin-bottom: 8px;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* GEOMETRIC DESIGN ELEMENTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, #c9a961 0%, transparent 100%);
}

/* HEADER */
header {
  background: #ffffff;
  border-bottom: 3px solid #1a3a52;
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(26, 58, 82, 0.08);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.logo img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a3a52;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #c9a961;
  border-bottom-color: #c9a961;
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  background: #1a3a52;
  color: #ffffff;
  border: 3px solid #c9a961;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 58, 82, 0.3);
}

.mobile-menu-toggle:hover {
  background: #c9a961;
  color: #1a3a52;
  transform: rotate(90deg);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: #1a3a52;
  z-index: 1999;
  padding: 80px 32px 32px;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 3px solid #c9a961;
  color: #c9a961;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: #c9a961;
  color: #1a3a52;
  transform: rotate(90deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav a {
  color: #f4f1ea;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 2px solid rgba(201, 169, 97, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: #c9a961;
  padding-left: 16px;
  border-bottom-color: #c9a961;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: 0;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: #c9a961;
  color: #1a3a52;
  border-color: #c9a961;
}

.btn-primary:hover {
  background: #1a3a52;
  color: #c9a961;
  border-color: #c9a961;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 58, 82, 0.2);
}

.btn-secondary {
  background: transparent;
  color: #1a3a52;
  border-color: #1a3a52;
}

.btn-secondary:hover {
  background: #1a3a52;
  color: #c9a961;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 58, 82, 0.2);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #1a3a52 0%, #2a4a62 100%);
  color: #f4f1ea;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: linear-gradient(45deg, transparent 40%, rgba(201, 169, 97, 0.1) 50%, transparent 60%);
  transform: rotate(45deg);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #c9a961 0%, #1a3a52 50%, #c9a961 100%);
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #f4f1ea;
  font-size: 56px;
  margin-bottom: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subheadline {
  font-size: 20px;
  margin-bottom: 32px;
  color: #f4f1ea;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.trust-indicator {
  font-size: 14px;
  color: #c9a961;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, #1a3a52 0%, #2a4a62 100%);
  color: #f4f1ea;
  padding: 60px 20px 40px;
  margin-bottom: 60px;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #c9a961 0%, #1a3a52 50%, #c9a961 100%);
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 16px;
  color: #c9a961;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: #c9a961;
}

.page-hero h1 {
  color: #f4f1ea;
  margin-bottom: 16px;
}

.page-hero p {
  color: #f4f1ea;
  opacity: 0.9;
}

/* GRID LAYOUTS - FLEXBOX ONLY */
.value-grid,
.property-grid,
.district-grid,
.services-grid,
.testimonial-grid,
.category-grid,
.price-grid,
.benefit-grid,
.viewing-options,
.contact-methods,
.milestones,
.mission-vision-grid,
.team-grid,
.achievements-grid,
.team-contacts-grid,
.faq-list,
.trends-grid,
.forecast-grid,
.metrics-grid,
.pricing-list,
.lifestyle-grid,
.steps-grid,
.suggestions-grid,
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 32px;
}

/* CARD STYLES */
.value-item,
.property-card,
.district-card,
.service-item,
.testimonial-card,
.category-card,
.price-tier,
.benefit-item,
.viewing-option,
.contact-method,
.milestone,
.mv-item,
.team-member,
.achievement,
.contact-card,
.faq-item,
.trend-item,
.forecast-item,
.metric-card,
.pricing-item,
.lifestyle-item,
.step-item,
.suggestion-item,
.stat-item,
.service-detail,
.district-content {
  flex: 1 1 280px;
  max-width: 100%;
  background: #f4f1ea;
  padding: 32px 24px;
  border: 3px solid #1a3a52;
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.value-item::before,
.property-card::before,
.district-card::before,
.service-item::before,
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 6px;
  background: #c9a961;
  transition: width 0.3s ease;
}

.value-item:hover,
.property-card:hover,
.district-card:hover,
.service-item:hover,
.category-card:hover,
.benefit-item:hover,
.trend-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(26, 58, 82, 0.15);
  border-color: #c9a961;
}

.value-item:hover::before,
.property-card:hover::before,
.district-card:hover::before,
.service-item:hover::before,
.category-card:hover::before {
  width: 120px;
}

/* TESTIMONIALS */
.testimonial-card {
  background: #ffffff;
  border: 3px solid #c9a961;
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 64px;
  color: rgba(201, 169, 97, 0.2);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.testimonial-card p {
  color: #1a3a52;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: #c9a961;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* PROPERTY CARDS */
.property-card h3 {
  color: #1a3a52;
  margin-bottom: 8px;
}

.property-location {
  color: #c9a961;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.property-price {
  font-size: 28px;
  font-weight: 700;
  color: #1a3a52;
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
}

.property-details {
  color: #1a3a52;
  font-size: 14px;
  opacity: 0.8;
}

/* SERVICE ITEMS */
.service-price {
  font-size: 20px;
  font-weight: 700;
  color: #c9a961;
  margin-top: 16px;
  border-top: 2px solid rgba(26, 58, 82, 0.2);
  padding-top: 16px;
}

/* SECTION SUBHEADLINES */
.section-subheadline {
  font-size: 18px;
  color: #1a3a52;
  opacity: 0.8;
  margin-bottom: 40px;
  text-align: center;
}

/* TEXT CENTERING */
h2 {
  text-align: center;
}

/* CTA SECTIONS */
.cta-banner,
.cta-consultation,
.cta-personalized,
.cta-meet-us,
.consultation-cta,
.immediate-contact,
.email-confirmation {
  background: linear-gradient(135deg, #1a3a52 0%, #2a4a62 100%);
  color: #f4f1ea;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  margin-bottom: 0;
}

.cta-banner::before,
.cta-consultation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 6px;
  background: #c9a961;
}

.cta-banner h2,
.cta-consultation h2,
.cta-personalized h2,
.cta-meet-us h2,
.consultation-cta h2 {
  color: #f4f1ea;
  font-size: 40px;
  margin-bottom: 16px;
}

.cta-banner p,
.cta-consultation p,
.cta-personalized p,
.cta-meet-us p,
.consultation-cta p {
  color: #f4f1ea;
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.availability-note,
.consultation-note {
  font-size: 14px;
  color: #c9a961;
  margin-top: 24px;
  font-weight: 600;
}

/* FOOTER */
footer {
  background: #1a3a52;
  color: #f4f1ea;
  padding: 60px 0 0;
  border-top: 6px solid #c9a961;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1 1 220px;
}

.footer-section h3,
.footer-section h4 {
  color: #c9a961;
  margin-bottom: 16px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section p {
  color: #f4f1ea;
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #f4f1ea;
  font-size: 14px;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.footer-nav a:hover {
  color: #c9a961;
  padding-left: 8px;
  opacity: 1;
}

.footer-bottom {
  border-top: 2px solid rgba(201, 169, 97, 0.3);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: #f4f1ea;
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

/* LEGAL CONTENT */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-section {
  background: #f4f1ea;
  padding: 32px;
  margin-bottom: 32px;
  border-left: 6px solid #c9a961;
}

.legal-section h2,
.legal-section h3 {
  color: #1a3a52;
  margin-bottom: 16px;
}

.legal-section p,
.legal-section ul {
  color: #1a3a52;
  line-height: 1.8;
}

.legal-section ul {
  padding-left: 24px;
}

.legal-section li {
  margin-bottom: 12px;
}

/* CONTACT PAGE */
.contact-option,
.contact-method {
  text-align: center;
}

.contact-option h3,
.contact-method h3 {
  color: #1a3a52;
  margin-bottom: 16px;
}

.form-info {
  background: #f4f1ea;
  padding: 32px;
  border: 3px solid #c9a961;
  border-radius: 0;
  text-align: center;
  margin: 32px 0;
}

.form-info p {
  font-size: 16px;
  margin-bottom: 12px;
}

.form-info strong {
  color: #1a3a52;
}

.office-info {
  background: #f4f1ea;
  padding: 32px;
  border-left: 6px solid #c9a961;
  margin: 32px 0;
}

.office-info p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* THANK YOU PAGE */
.thank-you-hero {
  background: linear-gradient(135deg, #1a3a52 0%, #2a4a62 100%);
  color: #f4f1ea;
  padding: 100px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.thank-you-content h1 {
  color: #f4f1ea;
  font-size: 56px;
  margin-bottom: 24px;
}

.confirmation-message {
  font-size: 20px;
  color: #f4f1ea;
  margin-bottom: 32px;
}

.response-time,
.overall-rating,
.market-status,
.spam-notice {
  text-align: center;
  font-size: 14px;
  color: #c9a961;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 24px;
}

/* DISTRICT & SERVICE DETAILS */
.district-info {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 3px solid #1a3a52;
}

.district-info p {
  margin-bottom: 12px;
  font-size: 14px;
}

.district-tagline {
  font-size: 18px;
  color: #c9a961;
  font-style: italic;
  margin-bottom: 16px;
}

.position {
  color: #c9a961;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* COOKIE CONSENT BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a3a52;
  color: #f4f1ea;
  padding: 24px;
  z-index: 9999;
  border-top: 4px solid #c9a961;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}

#cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1 1 300px;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #f4f1ea;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #c9a961;
  color: #1a3a52;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.cookie-btn-secondary {
  background: transparent;
  border-color: #c9a961;
  color: #c9a961;
}

.cookie-btn-secondary:hover {
  background: #c9a961;
  color: #1a3a52;
}

/* COOKIE MODAL */
#cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 58, 82, 0.95);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

#cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: #ffffff;
  max-width: 600px;
  width: 100%;
  padding: 40px;
  border: 4px solid #c9a961;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 2px solid #1a3a52;
  color: #1a3a52;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-modal-close:hover {
  background: #1a3a52;
  color: #c9a961;
}

.cookie-modal-content h2 {
  color: #1a3a52;
  margin-bottom: 24px;
}

.cookie-category {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f4f1ea;
}

.cookie-category h3 {
  color: #1a3a52;
  font-size: 18px;
  margin-bottom: 8px;
}

.cookie-category p {
  font-size: 14px;
  color: #1a3a52;
  opacity: 0.8;
  margin-bottom: 12px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.cookie-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-toggle label {
  cursor: pointer;
  font-size: 14px;
  color: #1a3a52;
  font-weight: 600;
}

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  .hero {
    padding: 60px 20px;
  }

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

  .hero-subheadline {
    font-size: 16px;
  }

  .main-nav {
    display: none;
  }

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

  .value-item,
  .property-card,
  .district-card,
  .service-item,
  .testimonial-card,
  .category-card,
  .price-tier,
  .benefit-item,
  .team-member,
  .achievement,
  .contact-card,
  .metric-card,
  .pricing-item,
  .lifestyle-item,
  .step-item,
  .suggestion-item {
    flex: 1 1 100%;
  }

  .hero-cta,
  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    flex: 1 1 100%;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }

  .cookie-btn {
    flex: 1 1 100%;
  }

  .section {
    padding: 30px 15px;
  }

  .cta-banner,
  .cta-consultation,
  .thank-you-hero {
    padding: 60px 20px;
  }

  .cta-banner h2,
  .cta-consultation h2 {
    font-size: 28px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .value-item,
  .property-card,
  .district-card,
  .service-item,
  .category-card,
  .benefit-item,
  .team-member,
  .metric-card {
    flex: 1 1 calc(50% - 12px);
  }
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

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

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

/* SMOOTH SCROLLING */
html {
  scroll-behavior: smooth;
}

/* FOCUS STYLES FOR ACCESSIBILITY */
a:focus,
button:focus,
input:focus {
  outline: 3px solid #c9a961;
  outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
  .mobile-menu-toggle,
  .mobile-menu,
  #cookie-banner,
  #cookie-modal {
    display: none;
  }
}