:root {
  --background: 210 20% 98%;
  --foreground: 215 30% 12%;
  --card: 0 0% 100%;
  --card-foreground: 215 30% 12%;
  --primary: 215 65% 18%;
  --primary-foreground: 40 100% 97%;
  --secondary: 38 92% 55%;
  --secondary-foreground: 215 65% 12%;
  --muted: 210 15% 93%;
  --muted-foreground: 215 12% 46%;
  --accent: 38 92% 55%;
  --accent-foreground: 215 65% 12%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214 20% 88%;
  --input: 214 20% 88%;
  --ring: 215 65% 18%;
  --radius: 0.75rem;

  --gradient-hero: linear-gradient(135deg, hsl(215 65% 18%) 0%, hsl(215 50% 28%) 100%);
  --gradient-warm: linear-gradient(135deg, hsl(38 92% 55%) 0%, hsl(28 90% 50%) 100%);
  --shadow-card: 0 4px 24px -4px hsl(215 30% 12% / 0.08);
  --shadow-card-hover: 0 12px 32px -8px hsl(215 30% 12% / 0.15);
  --shadow-hero: 0 20px 60px -12px hsl(215 65% 18% / 0.35);
}

* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: 'DM Sans', sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

a {
  color: inherit;
  text-decoration: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 5rem;
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 2rem;
  padding-left: 2rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }
}

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }

.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-0\.5 { gap: 0.125rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }

.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.absolute { position: absolute; }
.fixed { position: fixed; }
.relative { position: relative; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.left-0 { left: 0; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }

.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }

.min-w-0 { min-width: 0; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-9 { width: 2.25rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }

.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-9 { height: 2.25rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }

.min-h-screen { min-height: 100vh; }
.min-h-\[90vh\] { min-height: 90vh; }

.max-w-none { max-width: none; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }

.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-20 { padding-top: 5rem; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }

.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-card\/90 { background-color: hsl(var(--card) / 0.9); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/75 { background-color: hsl(var(--primary) / 0.75); }
.bg-primary-foreground\/10 { background-color: hsl(var(--primary-foreground) / 0.1); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-secondary\/10 { background-color: hsl(var(--secondary) / 0.1); }
.bg-secondary\/20 { background-color: hsl(var(--secondary) / 0.2); }

.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-body { font-family: 'DM Sans', sans-serif; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-foreground { color: hsl(var(--foreground)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-primary-foreground\/40 { color: hsl(var(--primary-foreground) / 0.4); }
.text-primary-foreground\/60 { color: hsl(var(--primary-foreground) / 0.6); }
.text-primary-foreground\/70 { color: hsl(var(--primary-foreground) / 0.7); }
.text-primary-foreground\/75 { color: hsl(var(--primary-foreground) / 0.75); }
.text-primary-foreground\/80 { color: hsl(var(--primary-foreground) / 0.8); }
.text-secondary { color: hsl(var(--secondary)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-destructive { color: hsl(var(--destructive)); }

.fill-secondary { fill: hsl(var(--secondary)); }

.border-border { border-color: hsl(var(--border)); }
.border-secondary\/30 { border-color: hsl(var(--secondary) / 0.3); }
.border-primary-foreground\/10 { border-color: hsl(var(--primary-foreground) / 0.1); }
.border-primary-foreground\/20 { border-color: hsl(var(--primary-foreground) / 0.2); }

.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.break-all { word-break: break-all; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.backdrop-blur-md {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.shadow-card { box-shadow: var(--shadow-card); }
.shadow-hero { box-shadow: var(--shadow-hero); }

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-shadow {
  transition-property: box-shadow;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .group-hover\:bg-secondary\/20 {
  background-color: hsl(var(--secondary) / 0.2);
}

.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:text-secondary:hover { color: hsl(var(--secondary)); }
.hover\:brightness-110:hover { filter: brightness(1.1); }
.hover\:shadow-card-hover:hover { box-shadow: var(--shadow-card-hover); }
.hover\:bg-primary-foreground\/20:hover { background-color: hsl(var(--primary-foreground) / 0.2); }

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px var(--gm-ring-color, hsl(var(--ring)));
}

.focus\:ring-secondary:focus {
  --gm-ring-color: hsl(var(--secondary));
}

.placeholder\:text-muted-foreground::placeholder {
  color: hsl(var(--muted-foreground));
  opacity: 1;
}

.prose {
  max-width: 65ch;
}

.text-gradient-warm {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

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

#quote-form input,
#quote-form select,
#quote-form textarea {
  font: inherit;
}

#quote-form input.border-destructive,
#quote-form select.border-destructive,
#quote-form textarea.border-destructive {
  border-color: hsl(var(--destructive));
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .md\:h-16 { height: 4rem; }
  .md\:h-20 { height: 5rem; }

  .md\:p-10 { padding: 2.5rem; }
  .md\:p-14 { padding: 3.5rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }

  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
