/* ═══════════════════════════════════════════════
   LeoMultiService — Design System v2.2
   Modern orange · Costa del Sol renovations
   ═══════════════════════════════════════════════ */

:root {
  --primary: #e8501c;
  --primary-hover: #d04400;
  --primary-light: #fef3ee;
  --bg: #fdfcfb;
  --surface: #f5f3f0;
  --surface-dark: #1c1917;
  --fg: #1c1917;
  --muted: #57534e;
  --muted-light: #a8a29e;
  --border: rgba(28, 25, 23, 0.1);
  --border-strong: rgba(28, 25, 23, 0.2);
  --whatsapp: #25d366;
  --whatsapp-hover: #1da851;
  --font-sans: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --max-w: 72rem;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.serif { font-family: var(--font-serif); font-weight: 400; }
.italic { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.skip-link {
  position: absolute;
  top: -100px; left: 0; z-index: 100;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ── Kicker ── */
.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding-inline: 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--whatsapp-hover); }

.btn--dark { background: var(--surface-dark); color: #fff; }
.btn--dark:hover { background: #292524; }

.btn--outline {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--border-strong);
}
.btn--outline:hover { border-color: var(--fg); background: var(--fg); color: #fff; }

.btn--outline-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.2); border-color: #fff; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Section base ── */
.section { scroll-margin-top: 5rem; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--surface-dark); color: #fff; }
.section-pad { padding-block: 4rem; }
@media (min-width: 768px) { .section-pad { padding-block: 6rem; } }

.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  font-weight: 400;
  margin-top: 0.75rem;
}
.section-head h2 .italic { font-style: italic; color: var(--primary); }
.section-head p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
}

/* ─────────── NAV ─────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.site-nav__logo img { height: 3.75rem; width: auto; }
@media (min-width: 768px) { .site-nav__logo img { height: 4.5rem; } }

.site-nav__links {
  display: none;
  gap: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav__links a {
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.site-nav__links a:hover { color: var(--fg); }
.site-nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.site-nav__links a:hover::after { transform: scaleX(1); }

@media (min-width: 768px) { .site-nav__links { display: flex; } }

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav__lang {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.lang-btn.active { background: var(--fg); color: #fff; }
.lang-btn:hover:not(.active) { background: var(--surface); }

.site-nav__cta { display: none; }
@media (min-width: 640px) { .site-nav__cta { display: inline-flex; } }

.wa-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 100;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition);
}
.wa-float:hover { transform: scale(1.08); }
@media (min-width: 768px) { .wa-float { display: none; } }

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 90vh;
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.1fr 1fr; }
}
.hero__panel {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding-block: 4rem;
}
.hero__panel-inner { max-width: 34rem; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.02;
  font-weight: 400;
  margin-top: 0.75rem;
}
.hero h1 .italic { font-style: italic; }
.hero__lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.9;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__actions .btn { min-height: 3.5rem; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
}
.hero__trust-item svg { flex-shrink: 0; }

.hero__photo {
  position: relative;
  overflow: hidden;
  min-height: 30rem;
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 1023px) {
  .hero__photo { min-height: 24rem; order: -1; }
}

/* ─────────── SERVICES ─────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(28, 25, 23, 0.08);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ─────────── PORTFOLIO ─────────── */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

.gallery__tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(28,25,23,0.85), transparent);
  color: #fff;
}
.gallery__tag .kicker { color: var(--primary); }
.gallery__tag h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .gallery__item--tall { grid-row: span 2; aspect-ratio: 3 / 4; }
}

/* ─────────── TRUST ─────────── */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-card { text-align: center; }
.trust-card__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}
.trust-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.trust-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  max-width: 20rem;
  margin-inline: auto;
}

/* ─────────── AREA ─────────── */
.area-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .area-grid { grid-template-columns: 1fr 1fr; }
}

.area-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.06);
}
.area-map img {
  width: 100%;
  height: auto;
  display: block;
}

.area-towns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.area-towns li {
  list-style: none;
  padding: 0.4rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}
@media (max-width: 480px) {
  .area-towns { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────── CONTACT ─────────── */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  font-weight: 400;
  margin-top: 0.75rem;
}
.contact-info h2 .italic { font-style: italic; color: var(--primary); }
.contact-info p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 28rem;
}

.contact-channels {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.contact-channel:hover { border-color: var(--primary); background: var(--primary-light); }
.contact-channel__icon {
  width: 2.5rem; height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.contact-channel__icon--wa { background: rgba(37, 211, 102, 0.1); color: var(--whatsapp); }
.contact-channel__icon--mail { background: var(--primary-light); color: var(--primary); }
.contact-channel__text { display: flex; flex-direction: column; }
.contact-channel__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-light); }
.contact-channel__value { font-weight: 600; font-size: 1rem; }

.contact-signature {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.contact-signature__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
}
.contact-signature p { margin-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; }

/* ── Form ── */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(28, 25, 23, 0.05);
}
@media (min-width: 640px) { .contact-form { padding: 2.5rem; } }

.form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 480px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 479px) { .form-grid .span-2 { grid-column: span 1; } }

.form-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.5rem 0.875rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 80, 28, 0.12);
}
.form-field textarea { padding-block: 0.75rem; min-height: 7rem; resize: vertical; }

.form-consent {
  display: flex;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted);
  align-items: flex-start;
}
.form-consent input {
  width: 1.25rem; height: 1.25rem;
  margin-top: 0.125rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.form-consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-submit-row { margin-top: 0.5rem; }
.form-submit-row .btn { width: 100%; }

/* ─────────── CTA BANNER ─────────── */
.cta-banner {
  background: var(--primary);
  color: #fff;
}
.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding-block: 3.5rem;
}
@media (min-width: 768px) {
  .cta-banner__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
}
.cta-banner p { margin-top: 0.5rem; opacity: 0.9; }

/* ─────────── FOOTER ─────────── */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,0.7);
}
.footer-main {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .footer-main { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-blurb { font-size: 0.9375rem; line-height: 1.6; max-width: 24rem; }

.footer-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}
@media (min-width: 640px) {
  .footer-bar { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ─────────── LEGAL ─────────── */
.legal-page main {
  max-width: 48rem;
  padding-block: 3rem 5rem;
}
.legal-page h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.back-link { margin-bottom: 1.5rem; }
.back-link a { color: var(--primary); font-size: 0.875rem; }

.legal-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.legal-prose p {
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.legal-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.legal-owner {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.legal-owner dt { font-weight: 700; margin-top: 0.5rem; }
.legal-owner dt:first-child { margin-top: 0; }
.legal-owner dd { margin-left: 0; color: var(--muted); }

/* ─────────── THANKS ─────────── */
.thanks-box {
  max-width: 32rem;
  text-align: center;
  margin-inline: auto;
}
.thanks-box .check {
  width: 4rem; height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.thanks-box h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

/* ─────────── UTILITIES ─────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
