/* ============================================
   Cemetery Direct — Main Stylesheet
   Brand Colors: Green #2EAA6E, Dark #1a1a2e, White
   ============================================ */

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

:root {
  --brand-green: #2EAA6E;
  --brand-green-dark: #238F5A;
  --brand-green-light: #E8F5EE;
  --brand-green-50: #f0faf5;
  --dark: #1a1a2e;
  --dark-800: #2d2d44;
  --dark-700: #3d3d5c;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --amber-100: #fef3c7;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1140px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  color: var(--slate-700);
  line-height: 1.7;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-green-dark);
}

h1, h2, h3, h4 {
  color: var(--slate-900);
  line-height: 1.2;
  font-weight: 800;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 64px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    height: 52px;
  }
}

.logo span {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--slate-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-green-dark);
  background: var(--brand-green-light);
}

.nav-cta {
  background: var(--brand-green) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
}

.nav-cta:hover {
  background: var(--brand-green-dark) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-700);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 16px 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  color: var(--slate-700);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
  text-decoration: none;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a.nav-cta-mobile {
  display: inline-block;
  background: var(--brand-green);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  margin-top: 12px;
  border-bottom: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* ============================================
   Hero Sections
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--dark-800) 50%, #1a3d2e 100%);
  color: var(--white);
  padding: 80px 0 90px;
}

.hero .container {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(46, 170, 110, 0.15);
  color: #6ee7a8;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(46, 170, 110, 0.25);
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: #6ee7a8;
}

.hero p {
  font-size: 1.15rem;
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 640px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--brand-green);
  color: var(--white);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--brand-green);
  border: 2px solid var(--brand-green);
}

.btn-outline-dark:hover {
  background: var(--brand-green);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--brand-green-dark);
}

.btn-white:hover {
  background: var(--slate-50);
  color: var(--brand-green-dark);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--slate-50);
}

.section-dark {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--slate-500);
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================
   Cards / Grid
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-green);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ============================================
   Stats Row
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 28px 20px;
  background: var(--brand-green-light);
  border-radius: 12px;
  border: 1px solid rgba(46, 170, 110, 0.15);
}

.stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-green-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--slate-600);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   How It Works Steps
   ============================================ */
.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--brand-green);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--slate-600);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 32px;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-quote::before {
  content: "\201C";
  font-size: 2rem;
  color: var(--brand-green);
  font-weight: 700;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate-900);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* ============================================
   Comparison Table
   ============================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.comparison-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  border-bottom: 2px solid var(--slate-200);
}

.comparison-table th:last-child {
  color: var(--brand-green-dark);
}

.comparison-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--slate-100);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--slate-900);
}

.comparison-table td:last-child {
  color: var(--brand-green-dark);
  font-weight: 600;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--slate-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(46, 170, 110, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Placeholder Boxes
   ============================================ */
.placeholder-box {
  background: var(--slate-100);
  border: 2px dashed var(--slate-300);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  color: var(--slate-500);
}

.placeholder-box h3 {
  color: var(--slate-600);
  margin-bottom: 8px;
}

.placeholder-box p {
  font-size: 0.9rem;
}

/* ============================================
   Info Sidebar Boxes
   ============================================ */
.info-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}

.info-box h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.info-box-green {
  background: var(--brand-green-light);
  border-color: rgba(46, 170, 110, 0.2);
}

/* Ordered step list in sidebar */
.step-list {
  list-style: none;
  padding: 0;
}

.step-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.step-list li:last-child {
  margin-bottom: 0;
}

.step-list .step-num {
  width: 28px;
  height: 28px;
  background: var(--brand-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-list .step-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-900);
}

.step-list .step-desc {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* ============================================
   Signup Form (Cemetery Onboarding)
   ============================================ */
.signup-form-section {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--brand-green-light);
}

.form-note {
  font-size: 0.82rem;
  color: var(--slate-500);
  font-style: italic;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--amber-100);
  border-radius: 8px;
}

/* ============================================
   Check List
   ============================================ */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--slate-700);
}

.check-list li::before {
  content: "✓";
  color: var(--brand-green);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================
   CTA Banners
   ============================================ */
.cta-banner {
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  margin: 0 8px 12px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 56px 0 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 12px;
  color: var(--slate-500);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--slate-400);
  font-size: 0.88rem;
  padding: 4px 0;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--dark-700);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--slate-500);
  text-align: center;
}

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 56px 0 64px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section {
    padding: 56px 0;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
  .cta-banner h2 {
    font-size: 1.6rem;
  }
  .signup-form-section {
    padding: 24px;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* Layout helpers for 3/5 + 2/5 split */
.layout-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .layout-split {
    grid-template-columns: 1fr;
  }
}

/* Product image placeholder */
.product-image-placeholder {
  background: var(--slate-100);
  border-radius: 16px;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 0.88rem;
}

/* ============================================
   Hero with Background Image
   ============================================ */
.hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(26,26,46,0.82) 50%, rgba(26,61,46,0.85) 100%);
  z-index: 1;
}

.hero-image .container {
  position: relative;
  z-index: 2;
}

/* ============================================
   Content Image Styles
   ============================================ */
.section-image {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.section-image-sm {
  border-radius: 12px;
  height: 240px;
  width: 100%;
  object-fit: cover;
}

.image-rounded {
  border-radius: 16px;
  overflow: hidden;
}

.image-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image + Text Split Layout */
.split-image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-image-text.reverse {
  direction: rtl;
}

.split-image-text.reverse > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .split-image-text,
  .split-image-text.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.split-image-text img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Product Gallery Cards */
.product-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin: -32px -32px 20px -32px;
  width: calc(100% + 64px);
}

.card-with-image {
  padding-top: 0;
  overflow: hidden;
}

.card-with-image .product-card-image {
  margin: 0 0 20px 0;
  width: 100%;
  border-radius: 12px 12px 0 0;
}

/* Atmosphere image strip */
.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0;
}

.image-strip img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .image-strip {
    grid-template-columns: 1fr;
  }
  .image-strip img {
    height: 180px;
  }
}

/* Footer logo */
.footer-brand img {
  height: 48px !important;
  width: auto;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
}

.badge-green {
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
}

.badge-amber {
  background: var(--amber-100);
  color: var(--amber-700);
}

/* Inter font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
