/* Pablo Cruz · pablocruz.eu · style.css */

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

/* ── DARK THEME (default) ── */
:root {
  --bg:     #0B1F33;
  --bg2:    #0F2640;
  --bg3:    #122D4A;
  --bg4:    #162F4C;
  --gold:   #C6A663;
  --gold2:  #D4BC88;
  --golda:  rgba(198,166,99,0.15);
  --text1:  #F5F5F5;
  --text2:  #9AACBA;
  --text3:  #526474;
  --text4:  #2C3D4D;
  --line:   rgba(198,166,99,0.2);
  --linew:  rgba(255,255,255,0.07);
  --linew2: rgba(255,255,255,0.04);
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', Helvetica Neue, sans-serif;
  --shadow: rgba(0,0,0,0.3);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:     #F5F0E8;
  --bg2:    #EDE7DC;
  --bg3:    #E5DDD0;
  --bg4:    #DDD4C4;
  --gold:   #A07830;
  --gold2:  #B8922E;
  --golda:  rgba(160,120,48,0.12);
  --text1:  #0B1F33;
  --text2:  #1A3D5C;
  --text3:  #3A6080;
  --text4:  #6A8FA8;
  --line:   rgba(160,120,48,0.25);
  --linew:  rgba(11,31,51,0.1);
  --linew2: rgba(11,31,51,0.05);
  --shadow: rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text2);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg4); }

.skip {
  position: absolute; top: -100px; left: 20px;
  background: var(--gold); color: var(--bg);
  padding: 8px 16px; font-size: 12px;
  text-decoration: none; z-index: 999;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
nav.on {
  background: rgba(11,31,51,0.96);
  backdrop-filter: blur(20px);
  border-color: var(--linew);
}
[data-theme="light"] nav.on {
  background: rgba(245,240,232,0.96);
  border-color: var(--linew);
}

.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand svg { color: var(--gold); transition: color 0.2s; }
.nav-brand:hover svg { color: var(--gold2); }
.nav-brand-role {
  font-size: 11px; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text3);
}

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin-right: 8px; }
.nav-links a {
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text3);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text1); }
.nav-cta {
  font-size: 11px; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--line);
  color: var(--gold);
  text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--golda); }

/* Toggle buttons */
.nav-toggles { display: flex; align-items: center; gap: 6px; }

.toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--linew);
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.2s;
  font-family: var(--sans);
}
.toggle-btn:hover { border-color: var(--line); color: var(--text1); }
.toggle-btn.active { border-color: var(--gold); color: var(--gold); }

.lang-btn { width: auto; padding: 0 10px; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh; min-height: 680px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover; background-position: center 30%;
  transform: scale(1.04); transition: transform 8s ease;
}
.hero-img.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(11,31,51,0.72) 0%,
    rgba(11,31,51,0.82) 50%,
    rgba(11,31,51,0.95) 100%
  );
  transition: background 0.4s;
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(245,240,232,0.6) 0%,
    rgba(245,240,232,0.75) 50%,
    rgba(245,240,232,0.92) 100%
  );
}

.hero-body {
  position: relative; z-index: 2;
  max-width: 760px; padding: 0 24px;
  animation: fadeUp 1.2s ease 0.2s both;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 400; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 32px; height: 1px; background: var(--gold); opacity: 0.5;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 400; line-height: 0.9;
  color: var(--text1); letter-spacing: 0.04em; margin-bottom: 28px;
}
[data-theme="light"] h1 { color: var(--text2); }
h1 span { display: block; font-weight: 500; font-style: italic; color: var(--gold); }
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 400; font-style: italic;
  color: rgba(245,245,245,0.9); line-height: 1.4; margin-bottom: 44px;
}
[data-theme="light"] .hero-tagline { color: rgba(11,31,51,0.85); font-weight: 400; }
.hero-divider { width: 48px; height: 1px; background: var(--gold); opacity: 0.4; margin: 0 auto 36px; }
.hero-loc {
  font-size: 11px; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 48px;
}
[data-theme="light"] .hero-loc { color: rgba(11,31,51,0.5); }
.hero-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text3); animation: fadeUp 1s ease 1.4s both;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text3), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; padding: 14px 30px;
  border: 1px solid transparent; transition: all 0.25s; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); }
.btn-outline { background: transparent; color: var(--text2); border-color: var(--linew); }
.btn-outline:hover { border-color: var(--line); color: var(--text1); }
.btn-sm { padding: 10px 22px; font-size: 9.5px; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-submit { width: 100%; justify-content: center; }

/* ── SECTIONS ── */
.section {
  padding: 112px 56px;
  border-top: 1px solid var(--linew);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease, background 0.4s, border-color 0.4s;
}
.section.in { opacity: 1; transform: none; }
.inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: flex; align-items: center; gap: 16px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 52px;
}
.section-label::after { content: ''; flex: 0 0 40px; height: 1px; background: var(--gold); opacity: 0.4; }

h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400; line-height: 1.08;
  color: var(--text1); letter-spacing: -0.01em; margin-bottom: 20px;
}
h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.section-rule { width: 100%; height: 1px; background: var(--linew); margin-bottom: 48px; }
.body-text { font-size: 16px; font-weight: 300; color: var(--text2); line-height: 1.85; max-width: 640px; }

/* ── ABOUT ── */
#about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; }
.about-copy { padding-right: 72px; border-right: 1px solid var(--linew); }
.about-copy p { font-size: 16px; font-weight: 300; color: var(--text2); line-height: 1.9; margin-bottom: 22px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-list { padding-left: 72px; }
.pillar {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--linew2);
  transition: padding-left 0.22s, border-color 0.22s; cursor: default;
}
.pillar:first-child { border-top: 1px solid var(--linew2); }
.pillar:hover { padding-left: 8px; border-color: var(--linew); }
.pillar-n { font-family: var(--serif); font-size: 13px; color: var(--gold); opacity: 0.6; flex-shrink: 0; margin-top: 1px; }
.pillar-t { font-size: 14px; font-weight: 300; color: var(--text2); line-height: 1.5; }
.pillar:hover .pillar-t { color: var(--text1); }

/* ── FOCUS ── */
#focus { background: var(--bg3); }
.focus-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.focus-copy p { font-size: 16px; font-weight: 300; color: var(--text2); line-height: 1.85; margin-bottom: 18px; }
.focus-items { display: flex; flex-direction: column; gap: 1px; }
.focus-item {
  padding: 22px 24px; border: 1px solid var(--linew);
  display: flex; gap: 20px; align-items: flex-start;
  transition: background 0.22s, border-color 0.22s;
  background: var(--bg3);
}
.focus-item:hover { background: var(--bg2); border-color: var(--line); }
.focus-item-num { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--text4); line-height: 1; flex-shrink: 0; margin-top: 2px; }
.focus-item-title { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text1); margin-bottom: 6px; }
.focus-item-desc { font-size: 14px; font-weight: 300; color: var(--text2); line-height: 1.75; }

/* ── APPROACH ── */
#approach { background: var(--bg); }
.approach-header { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-bottom: 64px; align-items: end; }
.approach-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--linew); border: 1px solid var(--linew); }
.step { background: var(--bg); padding: 36px 28px; position: relative; transition: background 0.22s; }
.step:hover { background: var(--bg2); }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gold); opacity: 0; transition: opacity 0.22s;
}
.step:hover::before { opacity: 0.6; }
.step-n { font-family: var(--serif); font-size: 44px; font-weight: 300; color: var(--text4); line-height: 1; margin-bottom: 20px; }
.step-t { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text1); margin-bottom: 12px; }
.step-d { font-size: 14px; font-weight: 300; color: var(--text2); line-height: 1.75; }

/* ── MARKETS ── */
#markets { background: var(--bg2); padding: 0; }
.markets-layout { display: grid; grid-template-columns: 360px 1fr; min-height: 480px; }
.markets-copy { padding: 80px 56px; border-right: 1px solid var(--linew); display: flex; flex-direction: column; justify-content: center; }
.markets-copy p { font-size: 15px; font-weight: 300; color: var(--text2); line-height: 1.85; margin-bottom: 18px; }
.markets-copy p:last-child { margin-bottom: 0; }
.markets-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mkt { padding: 38px 44px; border-right: 1px solid var(--linew); border-bottom: 1px solid var(--linew); position: relative; overflow: hidden; transition: background 0.25s; cursor: default; }
.mkt:nth-child(2n) { border-right: none; }
.mkt:nth-child(n+5) { border-bottom: none; }
.mkt:hover { background: var(--bg3); }
.mkt-bg { font-family: var(--serif); font-size: 72px; font-weight: 300; font-style: italic; color: var(--gold); opacity: 0.06; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; line-height: 1; }
.mkt-name { font-family: var(--serif); font-size: 24px; font-weight: 300; color: var(--text1); margin-bottom: 5px; position: relative; }
.mkt-detail { font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); position: relative; }
.mkt:hover .mkt-name { color: var(--gold); }

/* ── COLLABORATIONS ── */
#collaborations { background: var(--bg3); }
.collab-intro { max-width: 640px; margin-bottom: 56px; }
.collab-intro p { font-size: 15px; font-style: italic; font-family: var(--serif); color: var(--text2); line-height: 1.8; }
.collab-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--linew); border: 1px solid var(--linew); }
.ccard { background: var(--bg3); padding: 36px 32px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: background 0.22s; position: relative; overflow: hidden; }
.ccard[href]:hover { background: var(--bg2); }
.ccard::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--gold); opacity: 0; transition: opacity 0.22s; }
.ccard[href]:hover::after { opacity: 0.4; }
.ccard-name { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--text1); }
.ccard-geo { font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); opacity: 0.7; }
.ccard-desc { font-size: 14px; font-weight: 300; color: var(--text3); line-height: 1.55; margin-top: 4px; }
.ccard-visit { font-size: 9.5px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); opacity: 0; transition: opacity 0.22s; margin-top: 8px; }
.ccard[href]:hover .ccard-visit { opacity: 0.6; }

/* ── ABOUT SECTION ── */
#about-section { background: var(--bg); }
.about-layout { display: grid; grid-template-columns: 280px 1fr; gap: 80px; align-items: start; }
.about-portrait { width: 100%; aspect-ratio: 3/4; background: var(--bg2); border: 1px solid var(--linew); overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; filter: grayscale(20%); transition: filter 0.4s; }
.about-portrait:hover img { filter: grayscale(0%); }
.about-copy p { font-size: 16px; font-weight: 300; color: var(--text2); line-height: 1.9; margin-bottom: 20px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-links { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* ── CONTACT ── */
#contact { background: var(--bg2); text-align: center; padding: 112px 56px; opacity: 1; transform: none; }
.contact-inner { max-width: 560px; margin: 0 auto; }
#contact .section-label { justify-content: center; }
#contact h2 { text-align: center; margin-bottom: 20px; }
.contact-text { font-family: var(--serif); font-size: 20px; font-style: italic; font-weight: 300; color: var(--text2); line-height: 1.65; margin-bottom: 52px; }
.contact-form-wrap { text-align: left; margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.form-group label { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text3); }
.form-group input, .form-group textarea {
  background: var(--bg3); border: 1px solid var(--linew);
  color: var(--text1); font-family: var(--sans); font-size: 14px; font-weight: 300;
  padding: 12px 16px; outline: none; transition: border-color 0.2s; resize: none; width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text4); }
.form-group input:focus, .form-group textarea:focus { border-color: rgba(198,166,99,0.4); }
.form-check { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 22px; }
.form-check input { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.form-check label { font-size: 12px; font-weight: 300; color: var(--text3); line-height: 1.5; cursor: pointer; }
.form-check a { color: var(--gold); text-decoration: none; }
.form-check a:hover { color: var(--gold2); }
.form-hidden { display: none; }
.contact-or { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text3); margin: 24px 0; text-align: center; }
.contact-btns { display: flex; justify-content: center; gap: 13px; flex-wrap: wrap; }
.contact-meta { border-top: 1px solid var(--linew); padding-top: 32px; display: flex; justify-content: center; gap: 52px; flex-wrap: wrap; margin-top: 44px; }
.cmeta { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cmeta-l { font-size: 10px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text3); }
.cmeta-v { font-size: 14px; font-weight: 300; color: var(--text2); }

/* ── FOOTER ── */
footer { background: var(--bg); border-top: 1px solid var(--linew); padding: 24px 56px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; transition: background 0.4s; }
.ft-brand { display: flex; align-items: center; gap: 12px; }
.ft-brand svg { color: var(--gold); opacity: 0.4; }
.ft-name { font-family: var(--serif); font-size: 15px; font-weight: 300; letter-spacing: 0.1em; color: var(--text3); }
.ft-center { font-family: var(--serif); font-size: 13px; font-style: italic; color: var(--text3); text-align: center; }
.ft-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ft-location { font-size: 10.5px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text3); }
.ft-privacy { font-size: 10.5px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.ft-privacy:hover { color: var(--text2); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scrollLine { 0%,100% { opacity: 0.3; } 50% { opacity: 0.8; } }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 22px; }
  .nav-brand-role, .nav-links li:not(:last-child) { display: none; }
  .section { padding: 72px 22px; }
  #contact { padding: 80px 22px; }
  footer { padding: 22px 22px; }
  .focus-layout, .approach-header { grid-template-columns: 1fr; gap: 44px; }
  .approach-steps { grid-template-columns: 1fr 1fr; }
  .markets-layout { grid-template-columns: 1fr; }
  .markets-copy { padding: 52px 22px; border-right: none; border-bottom: 1px solid var(--linew); }
  .collab-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { padding-right: 0; border-right: none; border-bottom: 1px solid var(--linew); padding-bottom: 44px; }
  .about-list { padding-left: 0; padding-top: 44px; }
  .about-layout { grid-template-columns: 1fr; gap: 44px; }
  .form-row { grid-template-columns: 1fr; }
  .ft-center { display: none; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(48px, 14vw, 72px); }
  .approach-steps, .collab-grid, .markets-grid { grid-template-columns: 1fr; }
  .hero-btns, .contact-btns { flex-direction: column; align-items: center; }
  footer { flex-direction: column; text-align: center; }
  .ft-right { align-items: center; }
}

/* Hero name split — light mode */
[data-theme="light"] h1 .name-plain { color: var(--text2); }
