/* Padel Projects — shared styles */

:root {
  --navy: #0B1F3A;
  --blue: #1F5FBF;
  --accent: #C8F03C;
  --ground: #F4F6F2;
  --white: #FFFFFF;
  --line: #DDE3DA;
  --input-line: #B9C3B4;
  --text-muted: #3B4A5E;
  --text-soft: #56657A;
  --text-legal: #24344A;
  --on-navy: #D3DCE8;
  --whatsapp: #128C7E;

  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-logo: 'Montserrat', sans-serif;

  --radius: 14px;
  --container: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--navy);
  font-family: var(--font-body);
}

a { color: var(--navy); }
a:hover { color: var(--blue); }

input, select, textarea, button { font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }

img, svg { display: block; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10001;
  background: var(--accent);
  color: var(--navy);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.eyebrow--accent { color: var(--accent); }

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.display--xl { font-size: clamp(48px, 7vw, 88px); line-height: 0.95; letter-spacing: -0.5px; }
.display--page { font-size: clamp(48px, 7vw, 84px); line-height: 0.95; }
.display--legal { font-size: clamp(42px, 6vw, 72px); line-height: 0.95; }
.display--lg { font-size: clamp(38px, 5vw, 56px); }
.display--md { font-size: 40px; }
.display--md-tight { font-size: 40px; line-height: 1.05; }

.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.on-navy { color: var(--on-navy); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border: 0;
  cursor: pointer;
}
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { color: var(--navy); filter: brightness(1.05); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { color: var(--white); background: #13305A; }
.btn--ghost { color: var(--white); padding: 15px 27px; border: 1px solid rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { color: var(--white); border-color: var(--white); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
}
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */

.site-header { background: var(--navy); color: var(--white); }
.site-header__inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand:hover { color: var(--white); }
.brand img { flex: none; width: 51px; height: 46px; }
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-logo);
  line-height: 1;
  font-weight: 500;
}
.brand__name { font-size: 17px; letter-spacing: 0.32em; }
.brand__tag { font-size: 10.5px; letter-spacing: 0.24em; color: var(--on-navy); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a { color: var(--white); text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: var(--accent); }
.main-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.main-nav .main-nav__cta {
  background: var(--accent);
  color: var(--navy);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.main-nav .main-nav__cta:hover { color: var(--navy); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--on-navy); }
.site-footer__inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.site-footer__group { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--white); }

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand-stack img { width: 80px; height: 72px; }
.brand-stack__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-logo);
  font-weight: 500;
  line-height: 1;
}
.brand-stack__name { font-size: 13px; letter-spacing: 0.32em; }
.brand-stack__tag { font-size: 9px; letter-spacing: 0.24em; }

/* ---------- Homepage hero ---------- */

.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero__inner {
  padding-top: 72px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__copy p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--on-navy); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}
.badge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.hero__art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero__court {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 2;
  background: var(--blue);
  border-radius: 10px;
  padding: 18px;
  transform: rotate(-4deg);
}
.hero__court svg { width: 100%; height: 100%; }

/* ---------- Stats band ---------- */

.stats { background: var(--accent); }
.stats__inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; }
.stat__label { font-size: 15px; font-weight: 500; }

/* ---------- Sections ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section-head--services { margin-bottom: 48px; }
.section-head--courts { margin-bottom: 32px; }

.services { padding-top: 104px; padding-bottom: 56px; }
.services .section-head > div { max-width: 640px; }
.services .section-head > p { max-width: 420px; }

.card-grid { display: grid; gap: 20px; }
.card-grid--services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid--courts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid--projects { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
}
.service-card__nr { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--blue); }
.service-card h3 { margin: 0; font-size: 20px; font-weight: 700; }
.service-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

.why { padding-top: 24px; padding-bottom: 56px; }
.why__box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.why__copy { flex: 1 1 360px; min-width: 0; }
.why__copy h2 { margin-bottom: 16px; }
.checklist {
  flex: 1 1 360px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
}
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; }

/* ---------- Court & project cards ---------- */

.courts { padding-top: 72px; padding-bottom: 72px; }

.court-card,
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.court-card[hidden],
.project-card[hidden] { display: none; }

.media {
  background: var(--blue);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.media--court { height: 190px; }
.media--court svg { width: 70%; }
.media--project { aspect-ratio: 16 / 10; font-size: 14px; }
.media--project svg { width: 56%; }
.media__caption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; }
.media--project .media__caption { left: 14px; bottom: 12px; font-size: 14px; }
.media__tag {
  position: absolute;
  right: 12px;
  top: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}
.media__tag--accent {
  left: 14px;
  right: auto;
  top: 14px;
  background: var(--accent);
  color: var(--navy);
  font-size: 13px;
  padding: 6px 12px;
}

.court-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.court-card__body h3 { font-size: 30px; }
.court-card__type { font-size: 14px; font-weight: 700; color: var(--blue); }
.court-card__body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); flex: 1; }
.court-card__ask { align-self: flex-start; margin-top: 6px; font-weight: 700; font-size: 15px; padding: 10px 0; }

.project-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.project-card__city { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--blue); }
.project-card__body h2 { font-size: 32px; }
.project-card dl {
  margin: 4px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  font-size: 14px;
}
.project-card dt { color: var(--text-soft); }
.project-card dd { margin: 2px 0 0; font-weight: 700; }

/* ---------- Banners ---------- */

.banner-section { padding-bottom: 72px; }
.banner-section--top { padding-top: 16px; }
.banner {
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.banner > div { max-width: 640px; }
.banner h2 { margin-bottom: 10px; }
.banner p { margin: 0; font-size: 17px; line-height: 1.6; }
.banner--navy { background: var(--navy); color: var(--white); }
.banner--navy p { color: var(--on-navy); }
.banner--accent { background: var(--accent); }
.banner--accent h2 { font-size: 42px; }

/* ---------- Contact ---------- */

.contact { background: var(--white); border-top: 1px solid var(--line); }
.contact__inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact__info .eyebrow { margin-bottom: 0; }
.contact__details { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; font-size: 16px; }
.contact__label { font-size: 13px; color: var(--text-soft); font-weight: 500; }
.contact__details a { font-weight: 700; text-decoration: none; }
.contact__details .contact__value { font-weight: 700; }

.contact__panel { flex: 2 1 520px; min-width: 0; background: var(--ground); border-radius: var(--radius); padding: 32px; }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field input,
.field select,
.field textarea {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--input-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
}
.field select { padding: 0 10px; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.form__submit { grid-column: 1 / -1; }
.form__submit .btn { padding: 16px 32px; min-height: 52px; }

.form-thanks { display: flex; flex-direction: column; gap: 12px; padding: 32px 0; }
.form-thanks[hidden] { display: none; }
.form-thanks h3 { font-size: 36px; }
.form-thanks p { margin: 0; font-size: 17px; line-height: 1.6; }
.link-button {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 10px 0;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- Page heroes (Proiecte / Legal) ---------- */

.page-hero { background: var(--navy); color: var(--white); }
.page-hero__inner {
  padding-top: 64px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.page-hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-hero__copy .eyebrow { margin-bottom: 0; }
.page-hero__copy p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--on-navy); max-width: 600px; }
.page-hero__stats { display: flex; flex-wrap: wrap; gap: 40px; }
.page-hero__stat-value { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--accent); }
.page-hero__stat-label { font-size: 15px; color: var(--on-navy); }

.page-hero--legal .page-hero__inner { padding-top: 56px; padding-bottom: 64px; flex-direction: column; align-items: stretch; gap: 16px; }
.page-hero--legal .eyebrow { margin-bottom: 0; }
.page-hero--legal p { margin: 0; font-size: 17px; color: var(--on-navy); }

.projects { padding-top: 56px; padding-bottom: 96px; }
.projects .chip-group { margin-bottom: 32px; }

/* ---------- Legal ---------- */

.legal-layout {
  padding-top: 48px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}
.toc {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.toc__title { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }

.legal { flex: 999 1 560px; min-width: 0; max-width: 820px; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 56px 0 16px;
  scroll-margin-top: 24px;
}
.legal h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; color: var(--text-legal); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .table-wrap { overflow-x: auto; margin-bottom: 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
.legal th { text-align: left; background: var(--navy); color: var(--white); padding: 12px 14px; font-weight: 700; }
.legal td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-legal); line-height: 1.5; }
.legal code { font-size: 14px; background: #EEF1EA; padding: 2px 6px; border-radius: 4px; }

/* ---------- WhatsApp button ---------- */

.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9990;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ---------- Cookie consent ---------- */

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  justify-content: center;
}
.cc-banner__box {
  width: 100%;
  max-width: 1040px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(11, 31, 58, 0.22);
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.cc-banner__copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cc-banner__copy h2 { font-size: 24px; }
.cc-banner__copy p,
.cc-dialog > p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.cc-banner__copy a { color: var(--navy); font-weight: 700; }
.cc-banner__actions { flex: 1 1 300px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.cc-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.cc-btn--outline { background: var(--white); color: var(--navy); padding: 0 20px; }
.cc-btn--link { border: 0; background: transparent; color: var(--navy); text-decoration: underline; padding: 0 18px; }

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 31, 58, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cc-dialog {
  width: 100%;
  max-width: 640px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cc-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cc-dialog__head h2 { font-size: 30px; }
.cc-close {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--ground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-option {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cc-option > div { flex: 1; min-width: 0; }
.cc-option label { font-weight: 700; font-size: 16px; }
.cc-option p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.cc-option input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.cc-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cc-dialog__policy { font-size: 14px; color: var(--navy); }

.cc-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(11, 31, 58, 0.18);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

[hidden] { display: none !important; }

.accent-stroke { stroke: var(--accent); }
.accent-fill { fill: var(--accent); }
.banner-section--cta { padding-bottom: 96px; }

/* ---------- Contact form feedback ---------- */

.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__alert {
  grid-column: 1 / -1;
  background: #FDECEC;
  border: 1px solid #E5A3A3;
  color: #8A1C1C;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
}
.field__error { margin: 0; font-size: 13px; font-weight: 500; color: #B42318; }
.consent .field__error { margin-top: 4px; }
.field [aria-invalid="true"] { border-color: #B42318; }
.form [type="submit"]:disabled { opacity: 0.7; cursor: progress; }

.media--project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
