:root {
  --primary: #c9211d;
  --primary-hover: #a31b17;
  --dark-bg: #22415e;
  --card-bg: #ffffff;
  --text-dark: #2e1c12;
  --text-muted: #6b5a50;
  --border-color: #eadfd6;
  --radius: 8px;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text-dark);
  background-color: #fdf8f3;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

/* Layout Containers */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero Section (CSS Grid) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.badge {
  display: inline-block;
  background-color: #fff1cc;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-bg);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #f3e6d8;
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: #e8d5c4;
}

/* Hero Preview Card */
.hero-card {
  background: var(--dark-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.code-preview pre {
  color: #ffc72c;
  font-family: monospace;
  font-size: 0.95rem;
  overflow-x: auto;
}

.dots {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red {
  background-color: #c9211d;
}
.yellow {
  background-color: #ff6f00;
}
.green {
  background-color: #ffc72c;
}

/* Stats Bar (CSS Grid) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  margin: 2rem 0 4rem 0;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Section Title */
.section {
  padding: 2rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--dark-bg);
}

.section-title p {
  color: var(--text-muted);
}

/* Services / Features Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  background: var(--dark-bg);
  color: white;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius);
  margin: 4rem 0;
}

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

.cta-banner p {
  color: #e8d5c4;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Card Overrides */
.contact-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow:
    0 10px 25px -5px rgba(34, 65, 94, 0.10),
    0 8px 10px -6px rgba(34, 65, 94, 0.05);
  border: 1px solid var(--border-color);
}

/* Form Structure */
.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark, #2e1c12);
}

/* Form Inputs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #d9c7b8;
  border-radius: var(--radius, 8px);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #fdf8f3;
  color: var(--text-dark, #2e1c12);
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

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

/* Interactive States */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary, #c9211d);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(201, 33, 29, 0.15);
}

/* Captcha Styling */
.captcha-wrapper {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius, 8px);
  box-shadow: 0 4px 6px -1px rgba(201, 33, 29, 0.25);
  transition:
    transform 0.15s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(201, 33, 29, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Image placeholders (replace with real <img> when photos are ready) */
.image-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(135deg, #fff1cc, #ffd9b0);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  color: var(--dark-bg);
  font-weight: 600;
  padding: 1rem;
  overflow: hidden;
}

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

.image-banner {
  margin: 2rem 0;
}

.banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -5px rgba(34, 65, 94, 0.15);
}

img {
  max-width: 100%;
}

/* Mobile */
@media (max-width: 767px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .logo img {
    height: 40px;
  }

  nav {
    display: flex;
    gap: 1.25rem;
  }

  nav a {
    margin-left: 0;
  }

  main {
    padding: 1rem;
  }

  .hero-grid {
    padding: 1.5rem 0;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .image-banner {
    margin: 1rem -1rem;
  }

  .banner-img {
    border-radius: 0;
  }

  .contact-card {
    padding: 1.5rem;
  }
}
