@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Art Deco Color Palette */
  --emerald: #1C4431;
  --emerald-dark: #0f261b;
  --gold: #D4AF37;
  --gold-light: #f2d77a;
  --cream: #FDFBF7;
  --charcoal: #111111;
  --light-gray: #E5E0D8;

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Lato', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Subtle Art Deco Background Pattern */
  background-image: radial-gradient(var(--light-gray) 1px, transparent 1px);
  background-size: 30px 30px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--emerald);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 1. Top Bar */
.top-bar {
  background-color: var(--charcoal);
  color: var(--gold);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--gold);
}

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

.top-bar-left,
.top-bar-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-left i {
  margin-right: 0.5rem;
}

.top-bar a:hover {
  color: var(--cream);
}

/* 2. Header / Navbar */
.header {
  background-color: var(--emerald);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--cream);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-link:hover {
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--emerald);
  border: 2px solid var(--gold);
}

.btn-gold:hover {
  background-color: var(--charcoal);
  color: var(--gold);
  border-color: var(--charcoal);
}

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

.btn-emerald-outline:hover {
  background-color: var(--emerald);
  color: var(--gold);
}

/* 3. Hero Section */
.hero {
  background-color: var(--emerald-dark);
  color: var(--gold);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  background-image: linear-gradient(rgba(15, 38, 27, 0.8), rgba(15, 38, 27, 0.8)), url('../img/midascode-beautiful-home-1680787_1920.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 8px solid var(--gold);
}

.hero-box {
  border: 2px solid var(--gold);
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(15, 38, 27, 0.85);
}

.hero h1 {
  color: var(--gold);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.breadcrumb {
  color: var(--cream);
  font-family: var(--font-sans);
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* 4. Main Content Basics */
.section-padding {
  padding: 6rem 0;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--charcoal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' stroke='%23d4af37' stroke-width='1.5' fill='none' opacity='0.25'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  background-position: center;
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--emerald);
}

.section-divider {
  width: 100px;
  height: 3px;
  background-color: var(--gold);
  margin: 0 auto 3rem auto;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

/* Pricing Plan */
.pricing-card {
  background: var(--cream);
  border: 2px solid var(--emerald);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: -12px;
  bottom: -12px;
  background-color: var(--gold);
  z-index: -1;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card:hover::before {
  top: 12px;
  left: 12px;
  right: -16px;
  bottom: -16px;
}

.pricing-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.pricing-price {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--emerald);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 1rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: "✦";
  color: var(--gold);
  position: absolute;
  left: 0;
}

/* Blog Cards */
.blog-card {
  background-color: var(--cream);
  border: 1px solid var(--light-gray);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 3px solid var(--gold);
}

.blog-content {
  padding: 2rem;
}

.blog-meta {
  color: var(--emerald);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Detail Pages (Prose) */
.prose {
  max-width: 800px;
  margin: 0 auto;
  background: var(--cream);
  padding: 4rem;
  border: 1px solid var(--light-gray);
}

.prose h2 {
  margin-top: 2rem;
}

.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.prose ul {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.prose-img {
  width: 100%;
  border: 4px solid var(--emerald);
  margin: 2rem 0;
}

/* 5. CTA Section */
.global-cta {
  background-color: var(--emerald);
  color: var(--gold);
  padding: 5rem 0;
  text-align: center;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}

.global-cta h2 {
  color: var(--gold);
  font-size: 2.5rem;
}

/* 6. Footer */
.footer {
  background-color: var(--emerald-dark);
  color: var(--cream);
  padding: 5rem 0 2rem 0;
  border-top: 6px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  text-align: left;
}

.footer-col h4 {
  color: var(--cream);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  display: inline-block;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p,
.footer-col li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--light-gray);
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: inherit;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding-top: 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--light-gray);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.footer-bottom-links a {
  color: var(--gold);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: var(--cream);
  border: 4px solid var(--emerald);
  padding: 3rem;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--emerald);
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-serif);
  color: var(--emerald);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--emerald);
  font-family: var(--font-sans);
  background-color: transparent;
}

.form-group input:focus {
  outline: 2px solid var(--gold);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.3rem;
}

.checkbox-group label {
  font-weight: 400;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--charcoal);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--emerald);
  color: var(--cream);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  border-top: 2px solid var(--gold);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-btns {
  display: flex;
  gap: 1rem;
}

/* Responsive and Mobile Optimization */
@media (max-width: 768px) {

  /* Layout Grids */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Header & Navigation */
  .header .container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    text-align: center;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
    align-items: center;
  }

  /* Top Bar */
  .top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.5rem;
  }

  .top-bar-left,
  .top-bar-right {
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
  }

  /* Hero Sections */
  .hero {
    padding: 4rem 1rem !important;
  }

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

  .hero-box {
    padding: 2rem 1rem;
    max-width: 100%;
    border-width: 1px;
  }

  /* Main Content Adjustments */
  .section-padding {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .prose {
    padding: 2rem 1rem;
    margin: 0;
    max-width: 100%;
    border-left: none !important;
    border-right: none !important;
  }

  /* Form / Modal */
  .modal-content {
    padding: 2rem 1.5rem;
    width: 95%;
  }

  /* Footer */
  .footer {
    padding: 3rem 1rem 2rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-grid ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Cookie Banner */
  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}