/* ============================================================
   DESERT SAGE DRAFTING — Global Design System
   desertsagedrafting.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand Colors */
  --sage:         #5C7A5C;   /* Primary sage green */
  --sage-dark:    #3D5C3D;   /* Deep sage */
  --sage-light:   #8FAE8F;   /* Light sage */
  --sage-mist:    #EEF3EE;   /* Near-white sage tint */
  --sand:         #C4A882;   /* Warm sandstone accent */
  --sand-light:   #E8D9C4;   /* Light sand */
  --sand-dark:    #8C6E4A;   /* Deep sand/tan */
  --terracotta:   #B5633A;   /* CTA / accent */
  --terracotta-dark: #8A4520;
  --cream:        #FAF8F4;   /* Page background */
  --cream-dark:   #F0EBE3;   /* Section alternates */
  --charcoal:     #2A2A28;   /* Primary text */
  --charcoal-mid: #4A4A46;   /* Secondary text */
  --charcoal-light:#7A7A74;  /* Muted text */
  --white:        #FFFFFF;
  --border:       #DDD6C8;   /* Subtle borders */

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  /* Spacing */
  --section-pad:  6rem 0;
  --container:    1160px;
  --radius:       4px;
  --radius-lg:    8px;

  /* Transitions */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans:        0.3s var(--ease);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Typography Scale ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
h5 { font-size: 0.85rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

p { color: var(--charcoal-mid); line-height: 1.8; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
  display: block;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border: 2px solid var(--terracotta);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181,99,58,0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}
.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sage {
  background: var(--sage);
  color: var(--white);
  border: 2px solid var(--sage);
}
.btn-sage:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92,122,92,0.28);
}

.btn-outline-sage {
  background: transparent;
  color: var(--sage);
  border: 2px solid var(--sage);
}
.btn-outline-sage:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Section Utilities ── */
.section { padding: var(--section-pad); }
.section-alt { background: var(--cream-dark); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p { color: var(--sand-light); }
.section-sage { background: var(--sage); }
.section-sage h2, .section-sage h3 { color: var(--white); }
.section-sage p, .section-sage .eyebrow { color: var(--sage-mist); }

.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header p { max-width: 600px; margin-top: 1rem; }
.section-header.centered p { margin: 1rem auto 0; }

/* ── Divider ── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--sand);
  margin: 1.2rem 0;
}
.centered .divider { margin: 1.2rem auto; }

/* ── Grid Helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--trans);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.10);
}
.card-body { padding: 2rem; }
.card-img { width: 100%; height: 240px; object-fit: cover; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--trans);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(92,122,92,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  background: var(--sage-mist);
  color: var(--sage-dark);
}

/* ── Price Tag ── */
.price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--sage-dark);
}
.price-tag span { font-size: 1rem; font-weight: 400; color: var(--charcoal-light); }

/* ── Toast / Alert ── */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-success { background: #EEF7EE; color: #2D6A2D; border-left: 4px solid var(--sage); }
.alert-error   { background: #FFF0EE; color: #8A2020; border-left: 4px solid var(--terracotta); }
.alert-info    { background: var(--sage-mist); color: var(--sage-dark); border-left: 4px solid var(--sage-light); }

/* ── Page Hero (reusable) ── */
.page-hero {
  background: var(--charcoal);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--sand); }
.page-hero p { color: var(--sand-light); max-width: 580px; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--charcoal-light);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--sage-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.4; }

/* ── Checklist ── */
.checklist { display: flex; flex-direction: column; gap: 0.65rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--charcoal-mid);
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: var(--sage);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-sage   { color: var(--sage); }
.text-sand   { color: var(--sand-dark); }
.text-muted  { color: var(--charcoal-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-up { animation: fadeUp 0.7s var(--ease) both; }
.animate-fade-up-delay-1 { animation: fadeUp 0.7s 0.15s var(--ease) both; }
.animate-fade-up-delay-2 { animation: fadeUp 0.7s 0.3s var(--ease) both; }
.animate-fade-up-delay-3 { animation: fadeUp 0.7s 0.45s var(--ease) both; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-pad: 4rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
}
