/* ============================
   GIRONA INVEST — STYLESHEET
   Aesthetic: Refined editorial, warm terracotta + stone, 
   Cormorant display + DM Sans body
   ============================ */

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

:root {
  --terra: #C4622D;
  --terra-light: #E8B49A;
  --terra-pale: #F5EDE6;
  --stone: #2C2820;
  --stone-mid: #6B6159;
  --stone-light: #B8AD9E;
  --stone-pale: #F2EDE8;
  --cream: #FAF7F3;
  --white: #FFFFFF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1180px;
  --radius: 3px;
  --radius-lg: 8px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--stone);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 100px 0; }

.section-header { margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--stone);
}
.section-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}

.center-action { text-align: center; margin-top: 48px; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--terra);
  color: var(--white);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #a8521f; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  color: var(--stone);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid var(--stone-light);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.btn-ghost:hover { color: var(--terra); border-color: var(--terra); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 247, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 173, 158, 0.3);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--stone);
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--terra);
  color: white;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.logo-mark.sm { width: 26px; height: 26px; font-size: 11px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.logo-text em { font-style: italic; color: var(--terra); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--stone-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--stone); }
.nav-links .nav-cta {
  color: var(--terra);
  border: 1px solid var(--terra-light);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-links .nav-cta:hover { background: var(--terra); color: white; }

.burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--stone); border-radius: 2px;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #f5ede6 0%, #faf7f3 55%, #f0ebe3 100%);
  z-index: 0;
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.hero-map-outline {
  position: absolute; right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle at 60% 40%, rgba(196,98,45,0.07) 0%, transparent 70%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: 80px; padding-bottom: 100px;
  max-width: 760px;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-mid);
  margin-bottom: 20px;
  font-weight: 400;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--stone);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--terra);
}
.hero-sub {
  font-size: 17px;
  color: var(--stone-mid);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-actions {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--stone);
  line-height: 1;
}
.stat-label {
  font-size: 12px; color: var(--stone-mid);
  margin-top: 4px;
}
.stat-div {
  width: 1px; height: 40px;
  background: var(--stone-light);
  opacity: 0.4;
}

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone-light);
  z-index: 2;
}
.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: var(--stone-light);
  margin: 8px auto 0;
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.15); }
}

/* ---- WHY SECTION ---- */
.why { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--stone-pale);
  border: 1px solid var(--stone-pale);
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.why-card {
  background: var(--white);
  padding: 40px 32px;
  transition: background var(--transition);
}
.why-card:hover { background: var(--cream); }
.why-icon {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--terra-light);
  font-weight: 300;
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--stone);
}
.why-card p { font-size: 14px; color: var(--stone-mid); line-height: 1.7; }

/* ---- KNOWLEDGE PREVIEW ---- */
.knowledge-preview { background: var(--cream); }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.topic-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(184,173,158,0.4);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.topic-card:hover {
  border-color: var(--terra-light);
  box-shadow: 0 8px 32px rgba(196,98,45,0.08);
  transform: translateY(-2px);
}
.topic-tag {
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
}
.topic-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--stone);
}
.topic-card p { font-size: 14px; color: var(--stone-mid); }
.topic-arrow {
  position: absolute;
  bottom: 20px; right: 24px;
  font-size: 18px;
  color: var(--terra-light);
  transition: transform var(--transition), color var(--transition);
}
.topic-card:hover .topic-arrow {
  transform: translateX(4px);
  color: var(--terra);
}

/* ---- AREAS STRIP ---- */
.areas-strip { background: var(--terra-pale); padding: 72px 0; }
.areas-row {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.area-pill {
  display: inline-block;
  border: 1px solid var(--terra-light);
  color: var(--terra);
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.area-pill:hover { background: var(--terra); color: white; border-color: var(--terra); }

/* ---- PROFESSIONALS TEASER ---- */
.professionals-teaser { background: var(--stone); color: var(--cream); }
.professionals-teaser .section-tag { color: var(--terra-light); }
.professionals-teaser h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 20px;
}
.professionals-teaser p { color: var(--stone-light); max-width: 440px; margin-bottom: 32px; }
.pro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.pro-tags {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.pro-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--stone-light);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 100px;
}

/* ---- NEWSLETTER ---- */
.newsletter { background: var(--cream); }
.newsletter-inner {
  max-width: 700px;
  text-align: center;
}
.nl-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 12px;
}
.nl-text p { color: var(--stone-mid); margin-bottom: 32px; }
.nl-form {
  display: flex; gap: 0;
  max-width: 440px; margin: 0 auto 12px;
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.nl-form input {
  flex: 1; padding: 14px 18px;
  border: none; background: white;
  font-family: var(--font-body); font-size: 14px; color: var(--stone);
  outline: none;
}
.nl-form button {
  padding: 14px 24px;
  background: var(--terra); color: white;
  border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px;
  transition: background var(--transition);
}
.nl-form button:hover { background: #a8521f; }
.nl-note { font-size: 12px; color: var(--stone-light); }

/* ---- FOOTER ---- */
.footer { background: #1C1814; color: var(--stone-light); }
.footer-inner {
  padding: 64px 2rem 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { font-size: 13px; color: #6B6159; max-width: 280px; line-height: 1.6; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 0.03em;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong {
  font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--stone-light);
  font-weight: 500; margin-bottom: 4px;
}
.footer-links a {
  color: #6B6159; font-size: 14px; text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 2rem;
  max-width: var(--max-w); margin: 0 auto;
  font-size: 12px; color: #4A4540;
}

/* ---- PAGE STYLES (for sub-pages) ---- */
.page-hero {
  padding: 140px 0 80px;
  background: var(--terra-pale);
  border-bottom: 1px solid rgba(184,173,158,0.3);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 16px;
}
.page-hero p { color: var(--stone-mid); max-width: 560px; font-size: 17px; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 64px 0;
}
.article-card {
  background: var(--white);
  border: 1px solid rgba(184,173,158,0.4);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none; color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}
.article-card:hover { border-color: var(--terra-light); transform: translateY(-2px); }
.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 400;
  margin-bottom: 10px;
}
.article-card p { font-size: 14px; color: var(--stone-mid); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .pro-split { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; }
  .stat-div { display: none; }
  .nl-form { flex-direction: column; border: none; }
  .nl-form input {
    border: 1px solid var(--stone-light);
    border-radius: var(--radius);
  }
  .nl-form button {
    border-radius: var(--radius);
  }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .container { padding: 0 1.25rem; }
  .footer-links { grid-template-columns: 1fr; }
}
