/* =========================================================
   Millers Infinite — Luxury Real Estate Landing Page
   Design tokens
   ========================================================= */
:root{
  --red: #990100;
  --red-dark: #720100;
  --white: #FFFFFF;
  --bg-light: #F8F8F8;
  --text-dark: #222222;
  --text-muted: #6c6c6c;
  --gold: #990100; /* legacy alias, mapped to brand red */
  --gold-soft: #ece7e2; /* legacy alias, mapped to silver/gray */
  --olive: #6B6E3D;
  --olive-rgb: 107,110,61;
  --border-soft: #ece7e2;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 10px 30px rgba(34,34,34,0.06);
  --shadow-strong: 0 30px 60px rgba(34,34,34,0.14);

  --container: 1180px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--text-dark);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

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

a{ text-decoration:none; color:inherit; }

ul{ list-style:none; margin:0; padding:0; }

button{ font-family:var(--font); cursor:pointer; border:none; }

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

.center{ text-align:center; }

/* Reveal-on-scroll */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s ease, transform .8s ease;
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* Eyebrow label — structural device used consistently before every section title */
.eyebrow{
  font-size:12.5px;
  font-weight:600;
  letter-spacing:3.5px;
  text-transform:uppercase;
  color:var(--gold);
  margin:0 0 14px;
}

.section-title{
  font-size:clamp(28px, 3.4vw, 42px);
  font-weight:600;
  letter-spacing:-0.5px;
  margin:0 0 56px;
  color:var(--text-dark);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 34px;
  border-radius:100px;
  font-weight:600;
  font-size:15px;
  letter-spacing:.3px;
  transition:background .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease;
}

.btn-primary{
  background:var(--red);
  color:var(--white);
  box-shadow:0 14px 30px rgba(153,1,0,0.28);
}
.btn-primary:hover{
  background:var(--red-dark);
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(153,1,0,0.34);
}
.btn-block{ width:100%; }

.btn-outline{
  background:transparent;
  color:var(--white);
  border:1.5px solid rgba(255,255,255,0.65);
}
.btn-outline:hover{
  background:var(--white);
  color:var(--red);
  transform:translateY(-2px);
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar{
  background:var(--white);
  border-bottom:1px solid var(--border-soft);
  font-size:13px;
}
.topbar-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:9px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--text-muted);
}
.topbar-brand{ font-weight:600; letter-spacing:.5px; color:var(--text-dark); }
.topbar-tag{ letter-spacing:.3px; }
.topbar-right{ display:flex; align-items:center; gap:16px; }
.lang-toggle{
  background:transparent;
  border:1px solid var(--border-soft);
  color:var(--text-dark);
  font-family:var(--font);
  font-size:12px;
  font-weight:600;
  padding:5px 14px;
  border-radius:100px;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.lang-toggle:hover{ background:var(--red); color:var(--white); border-color:var(--red); }

@media (max-width: 640px){
  .topbar-tag{ display:none; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled{
  box-shadow:0 6px 24px rgba(34,34,34,0.06);
  border-color:var(--border-soft);
}
.header-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:18px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  font-size:20px;
  font-weight:700;
  letter-spacing:.3px;
  color:var(--text-dark);
}
.logo span{ color:var(--red); font-weight:400; }

.main-nav{ display:flex; align-items:center; gap:36px; font-size:14.5px; font-weight:500; }
.main-nav a{ color:var(--text-dark); position:relative; }
.main-nav a:not(.nav-cta):after{
  content:'';
  position:absolute; left:0; bottom:-6px;
  width:0; height:2px; background:var(--gold);
  transition:width .25s ease;
}
.main-nav a:not(.nav-cta):hover:after{ width:100%; }
.nav-cta{
  background:var(--red);
  color:var(--white) !important;
  padding:10px 22px;
  border-radius:100px;
  transition:background .25s ease, transform .25s ease;
}
.nav-cta:hover{ background:var(--red-dark); transform:translateY(-1px); }

@media (max-width: 860px){
  .main-nav a:not(.nav-cta){ display:none; }
}

@media (max-width: 480px){
  .header-inner{ padding:14px 20px; }
  .logo{ font-size:17px; }
  .nav-cta{
    padding:8px 16px;
    font-size:13px;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.85) 46%, rgba(255,255,255,0.55) 100%),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=1800&auto=format&fit=crop') center/cover no-repeat;
  padding:96px 0 130px;
}
.hero-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:64px;
  align-items:start;
}

.hero-left{ padding-top:24px; }

.hero h1{
  font-size:clamp(34px, 4.2vw, 54px);
  line-height:1.14;
  font-weight:700;
  letter-spacing:-0.5px;
  margin:0 0 22px;
  max-width:560px;
}

/* Signature element: the horizon line — a thin red line that draws itself in,
   evoking the waterline of a coastal property. Reused as a divider motif. */
.horizon-line{
  display:block;
  width:0%;
  height:2px;
  background:linear-gradient(90deg, var(--gold), var(--gold-soft));
  margin-bottom:28px;
  animation:draw-line 1.4s cubic-bezier(.2,.7,.2,1) .3s forwards;
}
@keyframes draw-line{ to{ width:120px; } }

.hero-lead{
  font-size:16.5px;
  font-weight:500;
  color:var(--text-dark);
  max-width:520px;
  margin:0 0 18px;
}

.hero-desc{
  font-size:15px;
  color:var(--text-muted);
  max-width:520px;
  margin:0 0 34px;
}

.badge-list{ display:flex; flex-direction:column; gap:14px; }
.badge-list li{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:15px;
  font-weight:500;
  color:var(--text-dark);
}
.badge-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px; height:26px;
  border-radius:50%;
  background:rgba(153,1,0,0.08);
  color:var(--red);
  font-size:13px;
  flex-shrink:0;
}

/* Lead card */
.hero-right{ display:flex; justify-content:center; }
.lead-card{
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-strong);
  padding:38px 34px 34px;
  width:100%;
  max-width:400px;
  border-top:3px solid var(--gold);
  animation: glow-pulse 2.6s ease-in-out 1s 3;
}
@keyframes glow-pulse{
  0%, 100% { box-shadow: var(--shadow-strong), 0 0 0 0 rgba(var(--olive-rgb), 0); }
  50% { box-shadow: var(--shadow-strong), 0 0 34px 8px rgba(var(--olive-rgb), 0.38); }
}
@media (prefers-reduced-motion: reduce){
  .lead-card{ animation:none; }
}
.lead-card h3{
  font-size:21px;
  font-weight:600;
  margin:0 0 8px;
}
.lead-desc{
  font-size:14px;
  color:var(--text-muted);
  margin:0 0 26px;
}

.field{ margin-bottom:16px; }
.field label{
  display:block;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.3px;
  color:var(--text-dark);
  margin-bottom:6px;
}
.field input, .field select{
  width:100%;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1.5px solid var(--border-soft);
  background:var(--bg-light);
  font-family:var(--font);
  font-size:14px;
  color:var(--text-dark);
  transition:border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus{
  outline:none;
  border-color:var(--gold);
  background:var(--white);
}
.field select{ appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6c6c' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat:no-repeat; background-position:right 14px center; background-size:16px; }

.radio-group{ display:flex; flex-direction:column; gap:10px; }
.radio-option{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:13.5px;
  color:var(--text-dark);
  cursor:pointer;
}
.radio-option input[type="radio"]{
  accent-color:var(--red);
  width:16px;
  height:16px;
  flex-shrink:0;
  cursor:pointer;
}

.lead-form .btn{ margin-top:6px; }

.hero-wave{
  position:absolute;
  left:0; right:0; bottom:-2px;
  line-height:0;
}
.hero-wave svg{ width:100%; height:70px; display:block; }
.hero-wave path{ fill:var(--bg-light); }

@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-left{ padding-top:0; }
  .hero-right{ justify-content:stretch; }
  .lead-card{ max-width:none; }
}
@media (max-width: 560px){
  .hero{ padding:64px 0 96px; }
}

/* =========================================================
   WHY MILLERS INFINITE
   ========================================================= */
.why{ background:var(--bg-light); padding:110px 0; }

.feature-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:28px;
}
.feature-card{
  background:var(--white);
  padding:38px 28px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
  transition:transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-strong);
}
.feature-icon{
  width:52px; height:52px;
  border-radius:50%;
  background:rgba(153,1,0,0.06);
  color:var(--red);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px;
}
.feature-icon svg{ width:24px; height:24px; }
.feature-card h3{ font-size:17.5px; font-weight:600; margin:0 0 10px; }
.feature-card p{ font-size:14px; color:var(--text-muted); margin:0; }

@media (max-width: 980px){
  .feature-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 560px){
  .feature-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   PROPERTY CATEGORIES
   ========================================================= */
.categories{ padding:110px 0; }

.category-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:26px;
}
.category-card{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  background:var(--white);
  transition:box-shadow .3s ease, transform .3s ease;
}
.category-card:hover{ box-shadow:var(--shadow-strong); transform:translateY(-4px); }
.category-img{
  height:190px;
  background-size:cover;
  background-position:center;
  overflow:hidden;
  transform:scale(1);
  transition:transform .55s ease;
}
.category-card:hover .category-img{ transform:scale(1.08); }
.category-body{ padding:20px 22px 26px; }
.category-body h3{ font-size:16.5px; font-weight:600; margin:0 0 8px; }
.category-body p{ font-size:13.5px; color:var(--text-muted); margin:0; }

@media (max-width: 980px){
  .category-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 560px){
  .category-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   HOW IT WORKS — timeline
   ========================================================= */
.process{ background:var(--bg-light); padding:110px 0; }

.timeline{
  position:relative;
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:24px;
}
.timeline-track{
  position:absolute;
  top:22px; left:0; right:0;
  height:1.5px;
  background:linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft));
}
.step{
  position:relative;
  text-align:center;
  padding-top:0;
}
.step-num{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  margin:0 auto 20px;
  border-radius:50%;
  background:var(--white);
  border:1.5px solid var(--gold);
  color:var(--red);
  font-weight:700;
  font-size:14px;
  position:relative;
  z-index:2;
}
.step h4{
  font-size:14.5px;
  font-weight:600;
  margin:0;
  padding:0 6px;
  max-width:180px;
  margin:0 auto;
}

@media (max-width: 900px){
  .timeline{ grid-template-columns:1fr; gap:36px; }
  .timeline-track{ top:0; bottom:0; left:22px; right:auto; width:1.5px; height:auto; background:linear-gradient(180deg, var(--gold-soft), var(--gold), var(--gold-soft)); }
  .step{ display:flex; align-items:center; gap:20px; text-align:left; }
  .step-num{ margin:0; flex-shrink:0; }
  .step h4{ max-width:none; }
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta{
  background:linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding:110px 0;
  color:var(--white);
}
.final-cta h2{
  font-size:clamp(28px, 3.6vw, 42px);
  font-weight:600;
  margin:0 0 20px;
  letter-spacing:-0.5px;
}
.final-cta p{
  font-size:16px;
  max-width:600px;
  margin:0 auto 30px;
  color:rgba(255,255,255,0.85);
}
.cta-tagline{
  font-size:14.5px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:rgba(255,255,255,0.95);
  margin:0 0 28px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background:var(--text-dark);
  color:rgba(255,255,255,0.75);
  padding:42px 0;
}
.footer-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.footer-brand{ font-weight:600; color:var(--white); letter-spacing:.3px; }
.footer-social{ display:flex; gap:16px; }
.footer-social a{
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.2);
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, border-color .25s ease;
}
.footer-social svg{ width:16px; height:16px; }
.footer-social a:hover{ background:var(--gold); border-color:var(--gold); color:var(--text-dark); }
.footer-copy{ font-size:13px; color:rgba(255,255,255,0.5); }

@media (max-width: 640px){
  .footer-inner{ flex-direction:column; text-align:center; }
}

#why, #opportunities, #process, #contact{
  scroll-margin-top: 96px;
}

/* =========================================================
   ARABIC / RTL MODE
   ========================================================= */
body.lang-ar{
  font-family:'Tajawal', 'Poppins', sans-serif;
}
body.lang-ar .btn,
body.lang-ar .lang-toggle,
body.lang-ar .main-nav,
body.lang-ar input,
body.lang-ar select,
body.lang-ar label{
  font-family:'Tajawal', 'Poppins', sans-serif;
}
html[dir="rtl"] .field select{
  background-position:left 14px center;
}
html[dir="rtl"] input[type="tel"]{
  direction:rtl;
  text-align:right;
}
html[dir="rtl"] .badge-icon{
  margin-inline-start:0;
}
html[dir="rtl"] *{
  letter-spacing:normal !important;
}