/* MGI Property Investments — Site Stylesheet */

:root {
  --color-navy: #0d1b2e;
  --color-navy-light: #1c3454;
  --color-teal: #0f8b8d;
  --color-teal-dark: #0b6d6f;
  --color-teal-bright: #14b8bb;
  --color-gold: #e0ac4c;
  --color-gold-bright: #f2c572;
  --color-bg: #f7f8fa;
  --color-white: #ffffff;
  --color-text: #2b333d;
  --color-text-muted: #5c6772;
  --color-border: #e3e7ec;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(18, 35, 59, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 35, 59, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 27, 46, 0.18);
  --max-width: 1180px;
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

/* Scroll-reveal (JS adds .in-view when element enters viewport) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.grid-3 > .reveal:nth-child(1), .grid-4 > .reveal:nth-child(1), .steps > .reveal:nth-child(1) { transition-delay: 0.05s; }
.grid-3 > .reveal:nth-child(2), .grid-4 > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: 0.15s; }
.grid-3 > .reveal:nth-child(3), .grid-4 > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: 0.25s; }
.grid-4 > .reveal:nth-child(4) { transition-delay: 0.35s; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn::after {
  content: "\2192";
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(120deg, var(--color-gold-bright), var(--color-gold));
  color: var(--color-navy);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(224, 172, 76, 0.4); }

.btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
  color: var(--color-white);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); border-color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--color-teal);
  color: var(--color-teal-dark);
}
.btn-outline:hover { background: var(--color-teal); color: var(--color-white); box-shadow: 0 10px 24px rgba(15,139,141,0.28); }

/* Header */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(13,27,46,0.08); }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-navy);
  white-space: nowrap;
}
.logo span { color: var(--color-teal); }
.logo img { height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.nav-links a {
  color: var(--color-navy);
  font-weight: 500;
}
.nav-links a.active,
.nav-links a:hover { color: var(--color-teal); text-decoration: none; }

.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-cta .btn { padding: 10px 18px; font-size: 0.85rem; white-space: nowrap; }

.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 20px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .nav-cta-mobile { display: block; margin-top: 4px; }
  .nav-cta-mobile .btn { display: flex; width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .logo { font-size: 1.05rem; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-navy-light) 45%, var(--color-teal-dark) 100%);
  background-size: 220% 220%;
  animation: gradientShift 16s ease infinite;
  color: var(--color-white);
  padding: 110px 0 90px;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
  animation: floatShape 12s ease-in-out infinite;
}
.hero-shape.s1 { width: 340px; height: 340px; background: var(--color-teal-bright); top: -80px; right: 8%; animation-duration: 14s; }
.hero-shape.s2 { width: 220px; height: 220px; background: var(--color-gold); bottom: -60px; left: 4%; animation-duration: 10s; animation-delay: -3s; }
.hero-shape.s3 { width: 160px; height: 160px; background: #ffffff; top: 40%; right: 30%; opacity: 0.12; animation-duration: 16s; animation-delay: -6s; }
@keyframes floatShape {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  33% { transform: translateY(-24px) translateX(14px) scale(1.06); }
  66% { transform: translateY(16px) translateX(-10px) scale(0.96); }
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(216, 169, 79, 0.15);
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: var(--color-white); margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 1.6rem; color: var(--color-gold); font-family: var(--font-heading); }
.hero-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.hero-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Marquee ticker */
.marquee {
  background: var(--color-navy);
  color: rgba(255,255,255,0.9);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marqueeScroll 26s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.marquee-track span::after { content: "\2726"; color: rgba(255,255,255,0.35); margin-left: 40px; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card ul { margin: 18px 0; padding: 0; list-style: none; }
.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--color-text);
}
.hero-card .checkmark {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-teal);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--color-white); }
.section-header { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: block;
  color: var(--color-teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15,139,141,0.3);
}
.card .icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(15, 139, 141, 0.1);
  color: var(--color-teal);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover .icon { transform: scale(1.1) rotate(-4deg); background: var(--color-teal); color: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step .step-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--color-teal), var(--color-navy-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Testimonials */
.testimonial {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px; right: 18px;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  color: rgba(15,139,141,0.12);
  line-height: 1;
}
.testimonial p.quote { color: var(--color-text); font-style: italic; }
.testimonial .stars { color: var(--color-gold); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial .author { font-weight: 600; color: var(--color-navy); font-size: 0.9rem; }
.testimonial .location { color: var(--color-text-muted); font-size: 0.85rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--color-teal-dark), var(--color-teal), var(--color-navy-light));
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.85); }

/* Forms */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--color-navy); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  background: var(--color-white);
}
.consent-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
}
.consent-field input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.consent-field label { font-size: 0.82rem; color: var(--color-text-muted); font-weight: 400; }
.form-fineprint { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 12px; }
.form-fineprint a { color: var(--color-teal-dark); }

/* Contact info block */
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
@media (max-width: 860px) { .contact-info { grid-template-columns: 1fr; } }
.contact-info .card { text-align: center; }

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--color-white); font-size: 0.95rem; margin-bottom: 16px; }
.site-footer .logo { color: var(--color-white); margin-bottom: 12px; }
.footer-logo-img {
  width: 148px;
  height: auto;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 10px 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.9rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

/* Legal pages */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: 2em; }
.legal-content .updated { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 2em; }
.legal-content .callout {
  background: rgba(15,139,141,0.08);
  border-left: 4px solid var(--color-teal);
  padding: 18px 20px;
  border-radius: 8px;
  margin: 1.5em 0;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-teal-dark) 100%);
  background-size: 220% 220%;
  animation: gradientShift 18s ease infinite;
  color: var(--color-white);
  padding: 76px 0;
  text-align: center;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--color-white); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-navy);
  color: white;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }
