/* ============================================
   ALERAA CAPITAL — Design System
   Inspired by Square Peg VC aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --cream: #faedde;
  --teal-dark: #153b38;
  --coral: #fc5c58;
  --blue: #077db1;
  --amber: #ffa300;
  --teal-green: #008881;
  --white: #ffffff;
  --gray-light: #f5f0eb;
  --text-muted: #4a6b68;
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --border-radius-lg: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(21, 59, 56, 0.08);
  --shadow-hover: 0 8px 40px rgba(21, 59, 56, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--teal-dark);
  background-color: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(20px, 2.5vw, 28px); }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(250, 237, 222, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(21, 59, 56, 0.06);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--teal-dark);
  position: relative;
}

.nav-links a:hover {
  color: var(--coral);
}

.nav-links a.nav-cta {
  background: var(--coral);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
}

.nav-links a.nav-cta:hover {
  background: #e04e4a;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: var(--transition);
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a { font-size: 18px; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--teal-dark);
  color: var(--cream);
  padding: 180px 0 120px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(252, 92, 88, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 136, 129, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  margin-bottom: 24px;
  font-weight: 500;
}

.hero p {
  font-size: clamp(18px, 2vw, 22px);
  opacity: 0.85;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-small {
  padding: 160px 0 80px;
  min-height: 50vh;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-coral:hover {
  background: #e04e4a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 92, 88, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal-dark);
}

.btn-outline:hover {
  background: var(--teal-dark);
  color: var(--cream);
}

.btn-white {
  background: var(--cream);
  color: var(--teal-dark);
}

.btn-white:hover {
  background: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   PORTFOLIO MARQUEE
   ============================================ */
.marquee-section {
  padding: 80px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 24px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-card {
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 28px 36px;
  min-width: 280px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.marquee-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.marquee-card h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.marquee-card .stage {
  font-size: 13px;
  color: var(--text-muted);
}

.marquee-card .sector-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}

.tag-fintech { background: #e8f4fd; color: var(--blue); }
.tag-ai { background: #fff3e0; color: var(--amber); }
.tag-saas { background: #e0f7f5; color: var(--teal-green); }
.tag-health { background: #fce4ec; color: var(--coral); }
.tag-climate { background: #e8f5e9; color: #2e7d32; }

/* ============================================
   THEMES SECTION
   ============================================ */
.themes-section {
  padding: 120px 0;
}

.themes-section h2 {
  margin-bottom: 60px;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.theme-card {
  border-radius: var(--border-radius-lg);
  padding: 48px 36px;
  color: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.theme-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.theme-card.bg-coral { background: var(--coral); }
.theme-card.bg-blue { background: var(--blue); }
.theme-card.bg-amber { background: var(--amber); }
.theme-card.bg-teal { background: var(--teal-green); }
.theme-card.bg-dark { background: var(--teal-dark); }

.theme-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.theme-card p {
  font-size: 15px;
  opacity: 0.9;
}

/* ============================================
   NEWS / CARDS SECTION
   ============================================ */
.news-section {
  padding: 120px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.news-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.news-card-img {
  height: 220px;
  background: var(--teal-green);
  position: relative;
  overflow: hidden;
}

.news-card-img.img-blue { background: var(--blue); }
.news-card-img.img-amber { background: var(--amber); }

.news-card-body {
  padding: 32px;
}

.news-card-body .date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card-body h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.news-card-body p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ============================================
   BIG BLOCKS (3 across)
   ============================================ */
.blocks-section {
  padding: 80px 0;
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .blocks-grid { grid-template-columns: 1fr; }
}

.block-card {
  border-radius: var(--border-radius-lg);
  padding: 56px 40px;
  color: var(--white);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.block-card:hover {
  transform: scale(1.03);
}

.block-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.block-card p {
  font-size: 15px;
  opacity: 0.85;
}

.block-card .arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 24px;
  opacity: 0.7;
}

/* ============================================
   INFO BLOCKS (2 across)
   ============================================ */
.info-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 40px 0 80px;
}

@media (max-width: 768px) {
  .info-blocks { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 56px 48px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.info-card .label {
  font-size: 14px;
  font-weight: 500;
  color: var(--coral);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-card h3 {
  font-size: 32px;
  margin-bottom: 12px;
}

.info-card p {
  color: var(--text-muted);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: 100px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.stat-item .number {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  color: var(--teal-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 16px;
  color: var(--text-muted);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: 100px 0;
}

.testimonials-section h2 {
  margin-bottom: 60px;
}

.testimonial-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

.testimonial-carousel::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex-shrink: 0;
  width: 400px;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}

.testimonial-card .quote {
  font-size: 17px;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.8;
}

.testimonial-card .author {
  font-weight: 600;
  font-size: 15px;
}

.testimonial-card .company {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   FOUNDER FOCUS / CTA
   ============================================ */
.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  padding: 80px 0;
}

.team-member {
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-6px);
}

.team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  transition: var(--transition);
}

.team-member:hover img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-hover);
}

.team-member h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-member .role {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--teal-dark);
  background: transparent;
  color: var(--teal-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--teal-dark);
  color: var(--cream);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 36px;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.portfolio-card h4 {
  font-size: 22px;
  margin-bottom: 8px;
}

.portfolio-card .desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
  flex: 1;
}

.portfolio-card .meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portfolio-card .meta span {
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  padding: 80px 0;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  border: 2px solid #e8e0d6;
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--teal-dark);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-green);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.offices-list {
  margin-top: 40px;
}

.office-item {
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--coral);
}

.office-item h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.office-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--cream);
  border-top: 1px solid rgba(21, 59, 56, 0.08);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand .logo span { color: var(--coral); }

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--teal-dark);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-newsletter {
  margin-top: 16px;
}

.footer-newsletter input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 50px;
  border: 2px solid #e8e0d6;
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-newsletter button {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  background: var(--coral);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  background: #e04e4a;
}

.footer-bottom {
  border-top: 1px solid rgba(21, 59, 56, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGE-SPECIFIC: Themes page
   ============================================ */
.theme-detail {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.theme-detail h3 {
  margin-bottom: 16px;
}

.theme-detail p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.theme-detail .examples {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.theme-detail .examples span {
  background: var(--gray-light);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
