/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  --background: 210 20% 98%;
  --foreground: 215 35% 15%;
  --card: 0 0% 100%;
  --card-foreground: 215 35% 15%;
  --primary: 210 65% 22%;
  --primary-foreground: 210 20% 98%;
  --secondary: 180 30% 94%;
  --secondary-foreground: 210 65% 22%;
  --muted: 210 15% 95%;
  --muted-foreground: 215 15% 48%;
  --accent: 180 45% 40%;
  --accent-foreground: 0 0% 100%;
  --border: 210 20% 90%;
  --gold: 38 70% 55%;
  --gold-foreground: 38 70% 15%;
  --radius: 0.5rem;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }

/* ── Gradient utilities ───────────────────────────────────────────────── */
.bg-gradient-primary { background: linear-gradient(135deg, hsl(210,65%,22%) 0%, hsl(180,45%,40%) 100%); }
.bg-gradient-accent  { background: linear-gradient(135deg, hsl(180,45%,40%) 0%, hsl(180,55%,50%) 100%); }
.bg-hero-overlay     { background: linear-gradient(135deg, hsla(210,65%,22%,0.85) 0%, hsla(180,45%,30%,0.75) 100%); }

.text-gradient-primary {
  background: linear-gradient(135deg, hsl(210,65%,22%) 0%, hsl(180,45%,40%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Shadow utilities ─────────────────────────────────────────────────── */
.shadow-card     { box-shadow: 0 4px 24px -4px hsla(210,65%,22%,0.08); }
.shadow-elevated { box-shadow: 0 12px 40px -8px hsla(210,65%,22%,0.12); }
.shadow-hero     { box-shadow: 0 20px 60px -12px hsla(210,65%,22%,0.25); }

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
.animate-fade-up { animation: fade-up 0.7s ease-out forwards; }
.animate-fade-in { animation: fade-in 0.5s ease-out forwards; }

/* ── Button styles ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
}
.btn:focus-visible { box-shadow: 0 0 0 2px hsl(var(--accent)), 0 0 0 4px hsl(var(--background)); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.875rem; }
.btn-md { height: 2.5rem;  padding: 0 1rem; }
.btn-lg { height: 2.75rem; padding: 0.75rem 2rem; font-size: 1rem; }

.btn-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-default:hover { background-color: hsl(210 65% 18%); }

.btn-hero {
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(180 55% 50%));
  color: #fff;
  box-shadow: 0 4px 15px hsla(180,45%,40%,0.35);
}
.btn-hero:hover {
  box-shadow: 0 6px 20px hsla(180,45%,40%,0.45);
  transform: translateY(-1px);
  color: #fff;
}

.btn-hero-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-gold {
  background-color: hsl(var(--gold));
  color: hsl(var(--gold-foreground));
  font-weight: 600;
}
.btn-gold:hover { background-color: hsl(38 70% 50%); }

/* ── Form controls ───────────────────────────────────────────────────── */
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}
.form-input::placeholder,
.form-textarea::placeholder { color: hsl(var(--muted-foreground)); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 2px hsla(180,45%,40%,0.2);
}
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled { opacity: 0.5; cursor: not-allowed; }

.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7a8d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.625rem center; padding-right: 2.25rem; }
.form-select option[value=""] { color: hsl(var(--muted-foreground)); }

.form-textarea { resize: none; }

.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground)); margin-bottom: 0.375rem; }

/* ── Modal ───────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-box {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  color: hsl(var(--muted-foreground));
  line-height: 1;
  transition: color 0.15s;
}
.modal-close:hover { color: hsl(var(--foreground)); }

/* ── Toast ───────────────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }

.toast {
  display: flex; align-items: flex-start; gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-width: 22rem;
  pointer-events: auto;
  animation: toast-slide-in 0.3s ease-out;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
.toast-success { border-left: 4px solid hsl(var(--accent)); }
.toast-error   { border-left: 4px solid hsl(0 84% 60%); }

@keyframes toast-slide-in  { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-slide-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* ── Navbar ──────────────────────────────────────────────────────────── */
#navbar { background-color: rgba(255,255,255,0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#mobile-menu { animation: fade-in 0.2s ease-out; }

/* ── Pricing highlight overrides ────────────────────────────────────── */
.pricing-card-highlight {
  background: linear-gradient(135deg, hsl(210,65%,22%) 0%, hsl(180,45%,40%) 100%);
  color: hsl(var(--primary-foreground));
  border: none;
  transform: scale(1.05);
}
.pricing-card-highlight:hover { transform: scale(1.05) translateY(-8px); box-shadow: 0 24px 60px hsla(210,65%,22%,0.35) !important; }
.pricing-card:hover { transform: translateY(-6px); }

.pricing-card-highlight .text-muted  { color: rgba(255,255,255,0.65) !important; }
.pricing-card-highlight .text-muted2 { color: rgba(255,255,255,0.55) !important; }
