/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --bg: #FAF7F2;
  --text: #2C2C2C;
  --accent: #C4846A;
  --gold: #B8A98A;
  --light-gold: #E8DFD0;
  --muted: #9A9087;
  --white: #FFFFFF;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  position: relative;
}

/* ============================================
   FADE IN ANIMATIONS
   ============================================ */
/* Elements start transparent only if JS is active and adds .js-hidden */
.fade-in {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.js-hidden {
  opacity: 0;
  transform: translateY(28px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

.fade-in-delay-4 {
  transition-delay: 0.4s;
}

.fade-in-delay-5 {
  transition-delay: 0.5s;
}

/* ============================================
   NAVIGATION
   ============================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#nav.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  box-shadow: 0 1px 0 rgba(184, 169, 138, 0.2);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: color 0.4s;
}

#nav.scrolled .nav-logo {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
}

#nav.scrolled .nav-links a {
  color: var(--text);
}

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

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
  transition: background 0.3s, opacity 0.3s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.4s, transform 0.3s;
}

#nav.scrolled .hamburger span {
  background: var(--text);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
}

/* ============================================
   HERO
   ============================================ */
#hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

#hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30, 25, 20, 0.45) 0%, rgba(30, 25, 20, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  color: var(--white);
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  border-radius: 2px;
}

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

.btn-primary:hover {
  background: #b5755f;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

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

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6));
  margin: 0 auto;
  animation: scrollLine 2s 1.5s ease-in-out infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   INTRO
   ============================================ */
#intro {
  padding: 7rem 2rem;
  text-align: center;
}

#intro .container--narrow {
  border-top: 1px solid var(--light-gold);
  border-bottom: 1px solid var(--light-gold);
  padding: 4rem 2rem;
}

.intro-text {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.intro-text em {
  font-style: normal;
  color: var(--accent);
}

/* ============================================
   USPs
   ============================================ */
#usps {
  padding: 6rem 2rem;
  background: var(--text);
}

#usps .section-label {
  color: var(--gold);
}

#usps h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 4rem;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.usp-card {
  padding: 2rem;
  border: 1px solid rgba(184, 169, 138, 0.2);
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.3s;
}

.usp-card:hover {
  border-color: rgba(184, 169, 138, 0.5);
  transform: translateY(-4px);
}

.usp-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
}

.usp-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.usp-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ============================================
   TEMPLATES
   ============================================ */
#templates {
  padding: 7rem 2rem;
}

#templates .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

#templates h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

#templates .section-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.template-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(44, 44, 44, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(44, 44, 44, 0.12);
}

.template-preview {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.template-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

.template-info {
  padding: 1.75rem;
}

.template-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.template-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.template-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--light-gold);
  padding-bottom: 0.15rem;
  transition: border-color 0.3s, gap 0.3s;
}

.template-link:hover {
  border-color: var(--accent);
  gap: 0.7rem;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
#how {
  padding: 7rem 2rem;
  background: linear-gradient(135deg, #F5F0E8 0%, #FAF7F2 100%);
}

#how .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

#how h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 2.2rem;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 1px;
  background: linear-gradient(to right, var(--gold), var(--accent), var(--gold));
  opacity: 0.4;
}

.step {
  padding: 0 1.5rem;
  text-align: center;
}

.step-number {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--light-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(196, 132, 106, 0.12);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================
   PRICING
   ============================================ */
#pricing {
  padding: 7rem 2rem;
}

#pricing .section-header {
  text-align: center;
  margin-bottom: 1rem;
}

#pricing h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

#pricing .section-sub {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 4rem;
  font-size: 0.95rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--light-gold);
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.3s;
}

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

.pricing-card--featured {
  background: var(--text);
  border: 2px solid var(--gold);
  padding: 3.2rem 2.2rem;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(44, 44, 44, 0.2);
  z-index: 2;
  transform: translateY(-8px);
}

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

.pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--text);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  white-space: nowrap;
  font-weight: 500;
}

.pricing-tier-name {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.pricing-card--featured .pricing-tier-name {
  color: var(--gold);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.pricing-card--featured .pricing-price {
  color: var(--white);
}

.pricing-suffix {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pricing-card--featured .pricing-suffix {
  color: rgba(255, 255, 255, 0.5);
}

.pricing-tagline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gold);
}

.pricing-card--featured .pricing-tagline {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(184, 169, 138, 0.25);
}

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

.pricing-features li {
  font-size: 0.85rem;
  padding: 0.4rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
}

.pricing-features li .check {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.pricing-features li .cross {
  color: #CCC;
  font-size: 0.8rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.pricing-features li .feature-text {
  color: var(--text);
}

.pricing-features li .feature-text.muted {
  color: #CCC;
}

.pricing-card--featured .pricing-features li .feature-text {
  color: rgba(255, 255, 255, 0.85);
}

.pricing-card--featured .pricing-features li .check {
  color: var(--gold);
}

.pricing-card:not(.pricing-card--featured) .btn-pricing {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  background: transparent;
  border: 1px solid var(--light-gold);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
}

.pricing-card:not(.pricing-card--featured) .btn-pricing:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pricing-card--featured .btn-pricing {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background: var(--accent);
  border: none;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
  font-family: var(--font-body);
}

.pricing-card--featured .btn-pricing:hover {
  background: #b5755f;
  transform: translateY(-2px);
}

.pricing-reassurance {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.pricing-reassurance a {
  color: var(--accent);
  border-bottom: 1px solid var(--light-gold);
  padding-bottom: 1px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
#testimonials {
  padding: 7rem 2rem;
  background: var(--text);
}

#testimonials .section-label {
  color: var(--gold);
}

#testimonials h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 2.5rem;
  border: 1px solid rgba(184, 169, 138, 0.2);
  border-radius: 4px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.testimonial-author {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.testimonial-location {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.2rem;
}

/* ============================================
   FINAL CTA
   ============================================ */
#cta-final {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 35, 25, 0.7) 0%, rgba(30, 25, 20, 0.75) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
}

.cta-content h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 700px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: #1E1E1E;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-socials a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: opacity 0.3s;
}

.footer-socials a:hover {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.footer-signoff {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
#admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}

#admin-overlay.active {
  display: flex;
}

.admin-login {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  width: 360px;
  text-align: center;
}

.admin-login h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.admin-login p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.admin-login input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--light-gold);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.3s;
}

.admin-login input:focus {
  border-color: var(--accent);
}

.admin-login-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

.admin-login-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.admin-login-btn:hover {
  background: #b5755f;
}

.admin-login-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none;
}

/* Admin Panel */
#admin-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  flex-direction: row;
  background: #F4F4F4;
}

#admin-panel.active {
  display: flex;
}

.admin-sidebar {
  width: 220px;
  background: #1E1E1E;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 400;
}

.admin-sidebar-header p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.2rem;
}

.admin-nav {
  flex: 1;
  padding: 0.75rem 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.admin-nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav-item.active {
  color: var(--white);
  border-left-color: var(--accent);
  background: rgba(196, 132, 106, 0.1);
}

.admin-nav-item .nav-icon {
  font-size: 1rem;
}

.admin-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-sidebar-footer button {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.admin-sidebar-footer button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-topbar {
  background: var(--white);
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.admin-topbar h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
}

.admin-topbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  border: none;
  letter-spacing: 0.05em;
}

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

.admin-btn-primary:hover {
  background: #b5755f;
}

.admin-btn-secondary {
  background: #F4F4F4;
  color: var(--text);
  border: 1px solid #E0E0E0;
}

.admin-btn-secondary:hover {
  background: #E8E8E8;
}

.admin-btn-danger {
  background: #FDECEA;
  color: #C0392B;
  border: 1px solid #FADBD8;
}

.admin-btn-danger:hover {
  background: #FADBD8;
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-field-group {
  background: var(--white);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #F0F0F0;
}

.admin-field-group h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #F0F0F0;
  color: var(--text);
  font-weight: 400;
}

.admin-field {
  margin-bottom: 0.9rem;
}

.admin-field:last-child {
  margin-bottom: 0;
}

.admin-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-field input[type="text"],
.admin-field input[type="email"],
.admin-field input[type="url"],
.admin-field input[type="number"],
.admin-field input[type="password"],
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: var(--accent);
}

.admin-field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.admin-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-field-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.admin-field input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 2px 4px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  cursor: pointer;
}

.admin-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.admin-toggle input[type="checkbox"] {
  display: none;
}

.toggle-track {
  width: 38px;
  height: 20px;
  background: #DDD;
  border-radius: 20px;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-toggle input:checked+.toggle-track {
  background: var(--accent);
}

.admin-toggle input:checked+.toggle-track::after {
  transform: translateX(18px);
}

.toggle-label {
  font-size: 0.82rem;
  color: var(--text);
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.admin-image-preview {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 0.4rem;
  display: none;
}

.admin-image-preview.show {
  display: block;
}

.admin-save-indicator {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-mobile-warning {
  display: none;
  background: #FFF3CD;
  border: 1px solid #FFE69C;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #664D03;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.import-export-row {
  display: flex;
  gap: 0.5rem;
}

.import-export-row label {
  flex: 1;
}

.hidden-file-input {
  display: none;
}

/* Feature items in pricing admin */
.features-help {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps-grid::before {
    display: none;
  }

  .templates-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .pricing-card--featured {
    transform: none;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

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

  .admin-field-row,
  .admin-field-row-3 {
    grid-template-columns: 1fr;
  }

  .admin-mobile-warning {
    display: block;
  }

  .admin-sidebar {
    width: 180px;
  }

  .admin-nav-item {
    padding: 0.7rem 1rem;
  }
}

@media (max-width: 480px) {
  .admin-sidebar {
    display: none;
  }
}