/*
Theme Name: ECS Landing
Theme URI: https://expatconstructionservices.pt
Description: Ruhige, einseitige Landing Page (Seite im Aufbau) für Expat Construction Services Lda., Évora. Viersprachig PT / EN / DE / IT, Portugiesisch als Standard. Hero-Foto über Design › Customizer › Header-Bild austauschbar.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ecs-landing
*/

:root {
  --cream: #f6efe4;
  --cream-soft: rgba(246, 239, 228, .78);
  --terracotta: #c8754a;
  --ochre: #d9a86c;
  --ink: #2a1d14;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  font-family: var(--font-text);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.6;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero: ein Foto, bildschirmfüllend ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
  isolation: isolate;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  /* Fallback, solange kein Foto hinterlegt ist */
  background: radial-gradient(120% 90% at 70% 30%, #b9875a 0%, #7a4b2e 45%, #2a1d14 100%);
  animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) both;
}

/* warmer Verlauf für Lesbarkeit – unten-links dichter */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(32, 20, 12, .85) 0%, rgba(32, 20, 12, .45) 38%, rgba(32, 20, 12, 0) 62%),
    linear-gradient(to bottom, rgba(32, 20, 12, .4) 0%, rgba(32, 20, 12, 0) 20%),
    linear-gradient(90deg, rgba(40, 24, 14, .6) 0%, rgba(40, 24, 14, .25) 38%, rgba(40, 24, 14, 0) 60%);
}

/* ---------- Kopfzeile ---------- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}
.status::before {
  content: "";
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--ochre);
  box-shadow: 0 0 0 0 rgba(217, 168, 108, .6);
  animation: pulse 2.6s ease-out infinite;
}

.lang {
  display: flex;
  gap: .25rem;
  margin: 0; padding: 0;
  list-style: none;
}
.lang a {
  display: inline-block;
  text-decoration: none;
  font: 500 .8125rem/1 var(--font-text);
  letter-spacing: .1em;
  color: var(--cream-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .55rem .7rem;
  transition: color .2s, border-color .2s, background-color .2s;
}
.lang a:hover { color: var(--cream); }
.lang a[aria-current="true"] {
  color: var(--cream);
  border-color: rgba(246, 239, 228, .45);
  background: rgba(246, 239, 228, .08);
}
.lang a:focus-visible,
.phone:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* ---------- Inhalt ---------- */
.content {
  align-self: end;
  max-width: 48rem;
  padding-block: clamp(3rem, 10vh, 6rem) clamp(1.5rem, 4vh, 3rem);
  text-shadow: 0 1px 24px rgba(32, 20, 12, .35);
  animation: rise 1.4s .3s cubic-bezier(.2, .7, .2, 1) both;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e8bf86;
}

h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.375rem);
  letter-spacing: -.01em;
  color: var(--cream);
}
.services li:not(:last-child)::after {
  content: "·";
  color: var(--terracotta);
  margin: 0 .75rem;
}

/* ---------- Fußzeile ---------- */
.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 239, 228, .2);
  font-size: .9375rem;
  color: var(--cream-soft);
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  letter-spacing: .02em;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  background: var(--terracotta);
  transition: background-color .25s, transform .25s;
}
.phone:hover { background: #b5643b; transform: translateY(-1px); }
.phone svg { width: 1.1em; height: 1.1em; }

.location {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem);
  letter-spacing: -.005em;
  color: var(--cream);
}
.location .sep { color: var(--terracotta); margin: 0 .75rem; }

/* ---------- Bewegung ---------- */
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse  { 0% { box-shadow: 0 0 0 0 rgba(217,168,108,.55); } 80%,100% { box-shadow: 0 0 0 .6rem rgba(217,168,108,0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 560px) {
  .hero::after {
    background:
      linear-gradient(to top, rgba(32, 20, 12, .9) 0%, rgba(32, 20, 12, .6) 45%, rgba(32, 20, 12, 0) 72%),
      linear-gradient(to bottom, rgba(32, 20, 12, .4) 0%, rgba(32, 20, 12, 0) 20%);
  }
  .hero__bg { object-position: 52% 50%; }
  .top { flex-direction: column-reverse; align-items: flex-start; }
  .bottom { flex-direction: column; align-items: flex-start; }
  .phone { width: 100%; justify-content: center; }
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
