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

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:      #1a6b72;
  --primary-dark: #0f4a50;
  --accent:       #3dbfb8;
  --accent-light: #a8e6e3;
  --dark:         #0d1f2d;
  --surface:      #ffffff;
  --surface-2:    #f2fafa;
  --surface-3:    #e4f4f4;
  --muted:        #5a7d82;
  --muted-light:  #b8d4d6;
  --text:         #1a2e32;
  --text-soft:    #4a6a70;
  --border:       #d4ecee;
  --shadow-sm:    0 2px 8px rgba(26,107,114,0.08);
  --shadow-md:    0 8px 28px rgba(26,107,114,0.14);
  --shadow-lg:    0 20px 60px rgba(26,107,114,0.18);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-soft); }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212,236,238,0.6);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.75rem 2rem;
  background: rgba(255,255,255,0.97);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: white;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--surface-3);
}

.nav-links .btn-nav {
  background: var(--primary);
  color: white;
  padding: 0.45rem 1.1rem;
}

.nav-links .btn-nav:hover {
  background: var(--primary-dark);
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 18px rgba(26,107,114,0.30);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,107,114,0.40);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--accent-light);
}

.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  box-shadow: 0 4px 18px rgba(61,191,184,0.30);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61,191,184,0.45);
}

.btn-lg {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Section Layout ────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 540px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent-light);
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.82rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

/* ─── Form Styles ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(61,191,184,0.12);
}

.form-input::placeholder { color: var(--muted-light); }

.form-error {
  color: #e05555;
  font-size: 0.83rem;
  margin-top: 0.35rem;
}

/* ─── Alert / Toast ─────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(61,191,184,0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(61,191,184,0.3);
}

.alert-error {
  background: rgba(224,85,85,0.08);
  color: #c03333;
  border: 1px solid rgba(224,85,85,0.2);
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes floatBall {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-18px) scale(1.03); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.animate-fade-up.delay-1 { animation-delay: 0.15s; }
.animate-fade-up.delay-2 { animation-delay: 0.3s; }
.animate-fade-up.delay-3 { animation-delay: 0.45s; }
.animate-fade-up.delay-4 { animation-delay: 0.6s; }

/* ─── Gradient text ─────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Chip / Badge ──────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  background: var(--surface-3);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.chip-accent {
  background: rgba(61,191,184,0.12);
  color: var(--primary);
}

/* ─── Page wrapper (for non-home pages) ─────────────────────── */
.page-wrapper {
  padding-top: 80px;
  min-height: 100vh;
}

/* ─── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 1rem 1.2rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links a { width: 100%; text-align: center; padding: 0.7rem; }

  .section { padding: 3.5rem 0; }
  .section-lg { padding: 4.5rem 0; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 0.85rem 1.8rem; font-size: 0.95rem; }
}
