/* Future Prospect Strategy · Site styles
   Palette: warm cream + navy + terracotta (Andalusian-institutional) */

:root {
  --bg: #FBF7F0;
  --bg-alt: #F4EEE2;
  --ink: #14181F;
  --ink-soft: #4A5160;
  --muted: #8B8E94;
  --line: #E6DDC9;
  --primary: #1F3A5F;
  --primary-soft: #2D5285;
  --accent: #C2410C;
  --accent-soft: #E7691E;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* SIDEBAR (desktop) */
:root { --sidebar-w: 240px; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 60;
  background: var(--primary);
  color: #F2E6D8;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.28s ease;
}
.sidebar-brand {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(194,65,12,0.35);
}
.sidebar-brand .brand-mark {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  background: rgba(0,0,0,0.28);
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(194,65,12,0.4);
}
.sidebar-brand .brand-full {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  line-height: 1.35;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.sidebar-link {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-link.active {
  background: rgba(194,65,12,0.14);
  color: #fff;
  border-left-color: var(--accent);
}
.sidebar-lang {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 3px;
  margin-top: 20px;
}
.sidebar-lang button {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
}
.sidebar-lang button:hover { color: #fff; }
.sidebar-lang button.active { background: var(--accent); color: #fff; }

/* Mobile top header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  height: 62px;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  background: rgba(20, 24, 31, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease;
}
body.scrolled .mobile-header { background: rgba(20, 24, 31, 0.92); }

.mobile-brand {
  position: relative;
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-brand-badge,
.mobile-brand-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.32s ease, transform 0.32s ease;
  white-space: nowrap;
}
.mobile-brand-badge {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  background: rgba(31, 58, 95, 0.85);
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(194, 65, 12, 0.5);
  opacity: 1;
}
.mobile-brand-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #F2E6D8;
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}
body.scrolled .mobile-brand-badge {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}
body.scrolled .mobile-brand-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Sidebar toggle (mobile · inside .mobile-header) */
.sidebar-toggle {
  display: none;
  z-index: 80;
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.sidebar-toggle span {
  display: block;
  height: 2px;
  background: #F2E6D8;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sidebar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.open span:nth-child(2) { opacity: 0; }
.sidebar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,24,31,0.55);
  z-index: 55;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sidebar-scrim.visible { display: block; opacity: 1; }

/* Push main content beside sidebar */
main, .footer { margin-left: var(--sidebar-w); }

/* TOPBAR (legacy · not used with sidebar) */
.topbar {
  display: none;
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand-mark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.brand-full {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
}
.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active {
  background: var(--primary);
  color: #fff;
}

/* HERO — cinematic photo backdrop with Ken Burns */
.hero {
  position: relative;
  padding: 168px 0 132px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #14181F;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-sevilla.jpg');
  background-size: cover;
  background-position: center 38%;
  z-index: -3;
  transform: scale(1.06);
  animation: kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20, 24, 31, 0.30) 0%,
      rgba(20, 24, 31, 0.55) 45%,
      rgba(20, 24, 31, 0.85) 85%,
      rgba(20, 24, 31, 0.95) 100%),
    linear-gradient(95deg,
      rgba(31, 58, 95, 0.55) 0%,
      rgba(31, 58, 95, 0.15) 55%,
      rgba(31, 58, 95, 0) 100%);
  z-index: -2;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 55%, transparent 0%, transparent 35%, rgba(20, 24, 31, 0.45) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 820px;
  width: 100%;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-soft);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(38px, 5.8vw, 62px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #FBF7F0;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.lede {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(251, 247, 240, 0.86);
  max-width: 660px;
  margin-bottom: 44px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.cta {
  display: inline-block;
  padding: 15px 30px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.32);
}
.cta:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(194, 65, 12, 0.42);
}

@keyframes kenburns {
  0%   { transform: scale(1.06) translate(0%, 0%); }
  100% { transform: scale(1.20) translate(-2.5%, -1.8%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: scale(1.08); }
}

/* SECTIONS */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 56px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.prose p { font-size: 16px; color: var(--ink-soft); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* SERVICES */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 32px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); }
.card-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.3;
}
.card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* CONTACT */
.contact-list {
  list-style: none;
  margin-top: 24px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  font-size: 15px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a { color: var(--primary); text-decoration: none; border-bottom: 1px solid var(--primary); }
.contact-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* FOOTER */
.footer {
  background: var(--primary);
  color: #D9DEE7;
  padding: 48px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  margin-bottom: 8px;
}
.footer-meta {
  font-size: 13px;
  color: #A8B0C0;
  line-height: 1.6;
}
.footer-right p {
  font-size: 13px;
  color: #A8B0C0;
}
.footer-links { margin-top: 6px; }
.footer-links a {
  font-size: 12px;
  color: rgba(231, 105, 30, 0.85);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(231, 105, 30, 0.35);
}
.footer-links a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .mobile-header { display: flex; }
  .sidebar-toggle { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  }
  .sidebar.open { transform: translateX(0); }
  main, .footer { margin-left: 0; }
  .hero { padding-top: 130px; }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .brand-full { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .cards { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; }
}
