:root {
  --primary-color: #39271D; /* Dark Earthy Brown */
  --secondary-color: #D32F2F; /* Hero Red */
  --accent-color: #E53935;
  --text-color: #4A4A4A;
  --light-bg: #FFFCF7; /* Warm White */
  --white: #FFFFFF;
  --border-color: #E0E0E0;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
  min-height: 100%;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-red { color: var(--secondary-color); }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-color); color: var(--white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 0.9rem;
  gap: 10px;
}

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

.btn-primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(211, 47, 47, 0.3);
}

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

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

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -15px;
  left: 0;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.mobile-menu-btn {
  display: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  overflow: hidden;
  margin-top: 70px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 30px;
  font-family: var(--font-body);
  opacity: 0.9;
}

.hero-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.hero-price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
  display: block;
}

.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* General Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 30px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 18px 25px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--light-bg);
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #fafafa; }

/* Cards & Components */
.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border-top: 3px solid var(--secondary-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

/* FAQs Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.faq-question {
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover { color: var(--secondary-color); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  color: var(--text-color);
}

.faq-answer p { padding-bottom: 20px; }

.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--secondary-color); }

/* Form */
.lead-form {
  background: var(--white);
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-top: 4px solid var(--secondary-color);
}

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: var(--primary-color); }
.form-control {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
  transition: var(--transition);
  background-color: #fafafa;
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: var(--white);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* Footer */
footer {
  background-color: var(--primary-color);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 20px;
}

footer h4 { color: var(--white); margin-bottom: 20px; }
footer a { color: rgba(255,255,255,0.7); display: block; margin-bottom: 10px; }
footer a:hover { color: var(--secondary-color); }

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    z-index: 999;
  }
  
  .nav-links.active { max-height: 400px; }
  .nav-links li { text-align: left; }
  .nav-links a { display: block; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; }
  .mobile-menu-btn { display: block; }
  .hero-title { font-size: 2.2rem; }
  .hero { margin-top: 60px; height: auto; padding: 100px 0; }
  .section-padding { padding: 50px 0; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

/* Mobile Sticky Bar - visible on mobile, hidden on desktop */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #39271D;
  border-top: 2px solid #D32F2F;
  padding: 10px 14px;
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.mobile-bar-actions {
  display: flex;
  gap: 8px;
}

.mobile-bar-actions .btn {
  flex: 1;
  padding: 12px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
}

/* Show bar on mobile/tablet */
@media (max-width: 860px) {
  .mobile-bar {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
}

/* EOI Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #39271D;
  border: 1px solid #D32F2F;
  width: 100%;
  max-width: 440px;
  padding: 32px;
  border-radius: 12px;
  position: relative;
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  border: none;
}

.modal-close:hover {
  color: #D32F2F;
}

.modal-card .form-head {
  text-align: center;
  margin-bottom: 24px;
}

.modal-card .form-head h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 6px;
}

.modal-card .form-head p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.modal-card .form-label {
  color: rgba(255,255,255,0.8);
}

.modal-card .form-control {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.modal-card .form-control:focus {
  border-color: #D32F2F;
  background: rgba(0, 0, 0, 0.6);
}

.modal-card .form-control::placeholder {
  color: rgba(255,255,255,0.4);
}
