/* ==========================================================================
   Easemeck Technologies — Design System & Custom Styles
   Based strictly on the Easemeck Pitch Deck Design Language
   Palette:
     Deep green:   #0B3D2E (Header, footer, dark sections, headings)
     Darker green: #0E4D3A (Cards on dark sections)
     Leaf green:   #2F6B3A (Buttons, links, small rules, accents)
     Soft leaf:    #5C8A3C (Accents, highlights)
     Beige:        #F5EED3 (Highlight bands, headings on dark sections)
     Cream:        #FFFDF5 (Light sections)
     White:        #FFFFFF (Cards on light sections)
     Body text:    #2B2B2B
     Muted text:   #5A6B5E
   ========================================================================== */

:root {
  --deep-green: #0B3D2E;
  --darker-green: #0E4D3A;
  --leaf-green: #2F6B3A;
  --soft-leaf: #5C8A3C;
  --beige: #F5EED3;
  --cream: #FFFDF5;
  --white: #FFFFFF;
  --body-text: #2B2B2B;
  --muted-text: #5A6B5E;
  --border-subtle: rgba(47, 107, 58, 0.15);
  --border-beige: #E6DCB8;
  --shadow-card: 0 4px 20px -2px rgba(11, 61, 46, 0.08);
  --shadow-elevated: 0 10px 30px -4px rgba(11, 61, 46, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body-text);
  background-color: var(--cream);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Rules */
h1, h2, h3, h4, .font-heading {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  letter-spacing: -0.02em;
}

.heading-rule {
  width: 56px;
  height: 4px;
  background-color: var(--leaf-green);
  border-radius: 2px;
  margin-top: 14px;
}

.heading-rule-beige {
  width: 56px;
  height: 4px;
  background-color: var(--beige);
  border-radius: 2px;
  margin-top: 14px;
}

/* Card Design System */
.card-light {
  background-color: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.card-dark {
  background-color: var(--darker-green);
  color: var(--beige);
  border-radius: 16px;
  border: 1px solid rgba(245, 238, 211, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card-dark:hover {
  transform: translateY(-3px);
  border-color: var(--beige);
}

/* Button System */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--leaf-green);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  border: 2px solid var(--leaf-green);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #24552D;
  border-color: #24552D;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 107, 58, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--beige);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  border: 2px solid var(--beige);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--beige);
  color: var(--deep-green);
  transform: translateY(-1px);
}

.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--leaf-green);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  border: 2px solid var(--leaf-green);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn-secondary-dark:hover {
  background-color: var(--leaf-green);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Image Frames & Crop Precision */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: #E2E8F0;
  border: 1px solid rgba(11, 61, 46, 0.12);
}

.img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.img-frame:hover img {
  transform: scale(1.02);
}

/* Labelled Placeholder Styling */
.placeholder-box {
  background-color: #E2E8F0;
  border: 2px dashed #94A3B8;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #475569;
}

/* Monogram Avatar */
.monogram-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--leaf-green), var(--deep-green));
  color: var(--beige);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(11, 61, 46, 0.2);
  border: 2px solid var(--beige);
}

/* Accordion FAQ */
.faq-item {
  border-bottom: 1px solid rgba(245, 238, 211, 0.15);
  transition: background-color 0.2s ease;
}

.faq-button {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--beige);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-button:hover {
  color: #FFFFFF;
}

.faq-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
  fill: var(--beige);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  color: #E2EFE7;
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.active .faq-content {
  max-height: 400px;
  padding-bottom: 20px;
  transition: max-height 0.4s ease-in-out;
}

/* Sticky Header styling */
header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--deep-green);
  border-bottom: 1px solid rgba(245, 238, 211, 0.12);
  backdrop-filter: blur(8px);
}
