/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display&display=swap');

/* ── Tokens ── */
:root {
  color-scheme: light;
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #2d6a4f;
  --accent-light: #d8f3dc;
  --border: #e8e4df;
  --radius: 1rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container { width: min(100% - 2rem, 900px); margin-inline: auto; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(250, 248, 245, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}
.logo {
  color: var(--text);
  text-decoration: none;
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
}
.nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text);
}
.nav-toggle svg { display: block; }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }
  .nav ul.open { display: flex; }
  .nav { position: relative; }
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}
.hero-wave {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(14deg); }
  20%  { transform: rotate(-8deg); }
  30%  { transform: rotate(14deg); }
  40%  { transform: rotate(-4deg); }
  50%  { transform: rotate(10deg); }
  60%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.headline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto 0.5rem;
  line-height: 1.5;
}
.location {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.hero-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.55rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.hero-links a:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ── Sections ── */
.section { padding: 2.5rem 0; }
.section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.section-subtitle {
  margin-top: -0.2rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ── Prose ── */
.prose p {
  margin-top: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Ventures ── */
.ventures-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.venture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.venture-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.venture-card .type {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.venture-card h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.1rem;
}
.venture-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.45;
}

/* ── Card Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}
.card .status {
  display: inline-block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: var(--accent-light);
  border-radius: 999px;
}
.card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.card-links {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.card-links a {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.card-links a:hover { border-bottom-color: var(--accent); }

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.skill-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 0.65rem;
}
.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill-card li {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.skill-card li:last-child { border-bottom: none; }

/* ── Contact ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
  margin: 0 auto;
}
.contact-card p {
  margin: 0.4rem 0;
  line-height: 1.55;
}
.contact-card .muted {
  font-size: 0.88rem;
}
.contact-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.15s;
}
.contact-links a:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.contact-links a.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.contact-links a.secondary:hover {
  border-color: var(--accent);
  opacity: 1;
}

/* ── Contact Form ── */
.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 680px;
  margin: 0 auto;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.required {
  color: #c0392b;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.5;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b6b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.captcha-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.form-submit:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.form-status {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
  padding: 0;
  border-radius: 0.5rem;
  min-height: 1.5rem;
}
.form-status.success {
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.75rem 1rem;
}
.form-status.error {
  color: #c0392b;
  background: #fde8e8;
  padding: 0.75rem 1rem;
}

/* Contact alt section below form */
.contact-alt {
  text-align: center;
}
.contact-alt h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.contact-alt p {
  font-size: 0.92rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Nav active state */
.nav-active {
  color: var(--accent) !important;
}

/* ── Muted ── */
.muted { color: var(--muted); }

/* ── Floating Chat Widget ── */
.chat-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.chat-fab-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18), 0 3px 8px rgba(0,0,0,0.1);
}
.chat-fab-toggle svg {
  transition: transform 0.25s;
}
.chat-fab.open .chat-fab-toggle svg {
  transform: rotate(45deg);
}
.chat-fab-menu {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}
.chat-fab.open .chat-fab-menu {
  display: flex;
  animation: chatFadeIn 0.2s ease;
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-fab-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}
.chat-fab-item span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
  border-radius: 2rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.chat-fab-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.chat-fab-item:hover .chat-fab-icon {
  transform: scale(1.08);
}
.chat-fab-icon.messenger {
  background: #0084ff;
  color: #fff;
}
.chat-fab-icon.whatsapp {
  background: #25d366;
  color: #fff;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
