/* Header Preview Styles - Logo Badge + Split Layout */
:root {
  --primary: #388E3C;
  --accent: #38b2ac;
  --text: #1a1a1a;
  --muted: #4a5568;
  --bg: #ffffff;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

.header-preview {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(46, 125, 50, 0.1);
  box-shadow: 0 2px 20px rgba(46, 125, 50, 0.08);
  z-index: 50;
}

.header-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  overflow-x: visible; /* allow content to be visible */
  width: 100%;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo badge removed */

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.brand-text {
  min-width: 200px;
}

.brand-text h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #D4AF37 !important;
}
.brand-text p {
  margin: 2px 0 0;
  color: #D4AF37 !important;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.divider {
  width: 1px;
  height: 120px;
  background: rgba(46, 125, 50, 0.2);
  margin-left: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  text-decoration: none;
  color: #388E3C !important;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: #388E3C;
  border-radius: 2px;
}

.actions { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  flex-shrink: 0;
  min-width: 0;
}

.actions .btn.outline {
  padding: 0.5rem 1rem;
  border: 2px solid #388E3C;
  border-radius: 25px;
  color: #388E3C;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  background: transparent;
}

.actions .btn.outline:hover {
  background: #388E3C;
  color: white;
}

.btn-cta {
  background: linear-gradient(135deg, #388E3C, #2E7D32);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  animation: pulse-glow 2s infinite;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-cta:hover::before {
  left: 100%;
}

.cta {
  background: linear-gradient(135deg, #388E3C, #2E7D32);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  animation: pulse-glow 2s infinite;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.cta:hover::before {
  left: 100%;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(56,142,60,0.3), 0 0 10px rgba(56,142,60,0.2);
  }
  50% {
    box-shadow: 0 0 10px rgba(56,142,60,0.5), 0 0 20px rgba(56,142,60,0.3), 0 0 30px rgba(56,142,60,0.1);
  }
}

/* Premium gold brand text - smaller size for header */
.brand-text h1 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFD700, #DAA520, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(218, 165, 32, 0.3);
}

.brand-text p {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #B8860B !important;
  text-shadow: 0 1px 2px rgba(184, 134, 11, 0.2);
}


.phone {
  color: #388E3C !important;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.phone:hover {
  color: #2E7D32 !important;
  transform: scale(1.05);
}

/* Demo hero so you can see overlay behavior */
.demo-hero {
  height: 260px;
  background: linear-gradient(120deg, rgba(0,82,163,0.08), rgba(56,178,172,0.08));
  display: grid;
  place-items: center;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

@media (max-width: 900px) {
  .header-wrap { flex-wrap: wrap; gap: 12px; max-width: 100vw; }
  .divider { display: none; }
  .nav { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
}

/* Extra clamps for small phones and zoomed scenarios */
@media (max-width: 600px) {
  .header-preview, .header-wrap, .nav, .actions { max-width: 100vw; overflow-x: clip; }
  .brand, .nav, .actions { min-width: 0; }
  .brand-text h1, .brand-text p { white-space: normal; }
  .header-wrap { padding: 10px 12px; }
  .nav a { padding: 8px 10px; }
  .nav a::after { left: 10px; right: 10px; }
  .btn-cta { padding: 8px 10px; }
  .phone { font-size: 0.95rem; word-break: keep-all; }
}

@media (max-width: 420px) {
  .nav { gap: 4px; }
  .nav a { padding: 6px 8px; font-size: 0.95rem; }
  .btn-cta { padding: 6px 8px; font-size: 0.95rem; }
  .phone { font-size: 0.9rem; }
}

/* Brand logo styling */
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brand-text h1 {
  font-size: 20px;
  margin: 0;
  line-height: 1.2;
}

.brand-text p {
  font-size: 11px;
  margin: 0;
  opacity: 0.9;
}
