/* =============================
   The Copper Feather - style.css
   Modern editorial theme
   ============================= */

:root {
  --color-bg: #f7f3ef;
  --color-bg-alt: #ffffff;
  --color-text: #2a2a2a;
  --color-muted: #6b6b6b;
  --color-copper: #b87333;
  --color-copper-dark: #9a5f2a;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

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

/* =============================
   Header / Navigation
   ============================= */

.site-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 42px;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-copper);
}

/* =============================
   Hero Section
   ============================= */

.hero {
  padding: 5rem 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--color-muted);
  max-width: 480px;
}

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

.button {
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--color-copper);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-copper-dark);
}

.button-outline {
  border-color: var(--color-copper);
  color: var(--color-copper);
}

.button-outline:hover {
  background: rgba(184,115,51,0.1);
}

/* =============================
   Sections
   ============================= */

.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  margin-bottom: 2rem;
}

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

.card {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 6px;
  text-align: center;
}

.card p {
  color: var(--color-muted);
}

/* =============================
   UTM Keys
   ============================= */
.utm-box {
            /* Hidden by default */
            display: none; 
            background-color: #f0f9ff;
            border: 1px solid #bae6fd;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
            max-width: 400px;
        }

        .utm-box h3 { margin-top: 0; color: #0284c7; }
        
        .utm-row {
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid #e0f2fe;
            padding: 8px 0;
        }
        
        .utm-key { font-weight: bold; color: #555; }
        .utm-val { color: #000; font-family: monospace; }
        
        button {
            padding: 10px 20px;
            cursor: pointer;
            background-color: #0284c7;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
        }
        button:hover { background-color: #0369a1; }

/* =============================
   Footer
   ============================= */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =============================
   Responsive
   ============================= */

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .main-nav ul {
    gap: 1rem;
  }
}

/* =============================
   Special Overlay Popup
   ============================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 4rem 0;
}

.overlay-content {
  background: #fff;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border-radius: 8px;
  position: relative;
  animation: fadeInUp 0.4s ease;
}

.overlay-content h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

.overlay-content p {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================
   Overlay / Modal
   ============================= */

#overlay-backdrop {
  position: relative;              /* THIS is critical */
  height: 200px;
  max-width: 520px;
  width: 90%;'
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);

}

#overlay-modal {
  position: absolute;
  background: #ffffff;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem;
  max-width: 520px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  text-align: center;
  z-index: 9999;                 /* Above everything */

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

#overlay-modal h2 {
  font-family: 'Playfair Display', serif;
}

#overlay-close {
  position: relative;
  top: 12px;
  right: 14px;

  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}