/* ER ESTATES SA — White / Grey Redesign
   Clean, airy, high-end feel. White background, grey text, subtle borders.
*/

:root{
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --text: #5f646b;          /* grey text */
  --text-strong: #1a1d21;   /* headings */
  --muted: #7a8088;

  --border: rgba(26,29,33,0.12);
  --border-soft: rgba(26,29,33,0.08);

  --shadow: 0 18px 60px rgba(0,0,0,0.08);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);

  --radius-lg: 22px;
  --radius: 16px;

  --btn: #1a1d21;
  --btn-text: #ffffff;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
a.underline{ text-decoration: underline; text-underline-offset: 3px; }
.container{ width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand img{
  width: 64px; height: 64px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--border-soft);
}
.brand .stack{ display:flex; flex-direction:column; }
.brand strong{
  letter-spacing: 0.12em;
  font-size: 0.96rem;
  color: var(--text-strong);
}
.brand span{
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Nav */
nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
nav a{
  color: var(--muted);
  font-size: 0.94rem;
  padding: 8px 10px;
  border-radius: 999px;
  transition: 160ms ease;
}
nav a:hover{ color: var(--text-strong); background: rgba(0,0,0,0.04); }

/* Actions */
.actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.select{
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.02);
  color: var(--text-strong);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 650;
  outline: none;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.02);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.94rem;
  transition: 160ms ease;
  cursor:pointer;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); background: rgba(0,0,0,0.05); }
.btn.primary{
  background: var(--btn);
  color: var(--btn-text);
  border-color: var(--btn);
}
.btn.primary:hover{ filter: brightness(1.05); }
.btn:disabled{ opacity:0.55; cursor:not-allowed; transform:none; }

/* Hero */
.hero{
  padding: 58px 0 20px;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset: -120px -200px auto -200px;
  height: 420px;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(0,0,0,0.06), transparent 65%),
    radial-gradient(closest-side at 70% 60%, rgba(0,0,0,0.04), transparent 60%);
  pointer-events:none;
}
.hero-grid{
  position: relative;
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.panel{
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-main{
  padding: 30px;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(0,0,0,0.02);
  color: var(--muted);
  font-size: 0.9rem;
}
.kicker b{ color: var(--text-strong); }

h1{
  margin: 14px 0 10px;
  font-size: clamp(2.1rem, 3.1vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.lead{
  margin: 0 0 18px;
  max-width: 64ch;
  color: var(--text);
  font-size: 1.05rem;
}

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}
.meta-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}
.chip{
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(0,0,0,0.02);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Side panel */
.hero-side{ padding: 18px; display:flex; flex-direction:column; gap: 12px; }
.side-block{
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.00));
}
.side-block h3{
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: 0.98rem;
}
.side-block p{ margin:0; color: var(--muted); font-size: 0.94rem; }
.side-block a{ color: var(--text-strong); }
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border-soft);
  color: var(--text-strong);
  font-weight: 800;
  font-size: 0.82rem;
}

/* Sections */
section{ padding: 46px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.section-head h2{
  margin:0;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.section-head p{ margin:0; max-width: 65ch; color: var(--muted); }

/* Cards grid */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.card{
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.card h3{
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 1.02rem;
}
.card p{ margin:0; color: var(--text); }
.icon{
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.02);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 10px;
  color: var(--text-strong);
}
.icon svg{ width: 18px; height: 18px; }

/* Process */
.steps{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step{
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.step .num{
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.03);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: var(--text-strong);
}
.step h3{ margin: 10px 0 6px; color: var(--text-strong); font-size: 1.00rem; }
.step p{ margin:0; color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact-wrap{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: stretch;
}
.box{
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.item{
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.015);
}
.item small{ display:block; margin-bottom: 4px; color: var(--muted); }
.item a{ color: var(--text-strong); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Form */
form{ display:grid; gap: 10px; margin-top: 10px; }
label{ font-size: 0.9rem; color: var(--muted); }
input, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(26,29,33,0.14);
  background: #fff;
  color: var(--text-strong);
  padding: 12px 12px;
  outline: none;
  font-size: 0.96rem;
}
input::placeholder, textarea::placeholder{ color: rgba(26,29,33,0.35); }
input:focus, textarea:focus{ border-color: rgba(26,29,33,0.30); }
textarea{ min-height: 120px; resize: vertical; }

.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.helper{ color: var(--muted); font-size: 0.9rem; margin: 2px 0 0; }

.notice{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.02);
  color: var(--muted);
  font-size: 0.9rem;
}

.error{
  display:none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(170,40,40,0.22);
  background: rgba(170,40,40,0.06);
  color: rgba(140,35,35,0.95);
  font-weight: 700;
}
.success{
  display:none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(20,120,70,0.20);
  background: rgba(20,120,70,0.06);
  color: rgba(20,120,70,0.95);
  font-weight: 750;
}

/* Policy pages */
.policy{
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.policy h2{ margin-top:0; color: var(--text-strong); }
.policy h3{ margin: 18px 0 8px; color: var(--text-strong); }
.policy p, .policy li{ color: var(--text); }
.policy ul{ padding-left: 18px; }

/* Footer */
footer{
  padding: 26px 0 42px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fineprint{ margin-top: 10px; color: rgba(26,29,33,0.45); font-size: 0.85rem; }

/* Cookie banner */
.cookie-banner{
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
  display:none;
}
.cookie-banner .row{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.cookie-banner .text{ min-width: 260px; flex: 1; }
.cookie-banner .text b{ color: var(--text-strong); }
.cookie-banner .text p{ margin: 6px 0 0; color: var(--muted); }
.cookie-banner .controls{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.map{
  overflow:hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  nav{ display:none; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .contact-wrap{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .form-row{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .brand{ min-width:auto; }
}
