/* ============================================
   HungryPages — Food Truck Template Platform
   Main Gallery Page Stylesheet
   Mobile-first | Bold & Vibrant
   ============================================ */

/* --- Custom Properties --- */
:root {
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --secondary: #1A1A2E;
  --accent: #FBBF24;
  --bg: #0F0F1A;
  --bg-light: #1A1A2E;
  --bg-card: #232340;
  --text: #F0F0F0;
  --text-muted: #9CA3AF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);

  /* Badge palette */
  --badge-red: #DC2626;
  --badge-amber: #D97706;
  --badge-yellow: #EAB308;
  --badge-deepred: #B91C1C;
  --badge-pink: #EC4899;
  --badge-brown: #92400E;
  --badge-tomato: #EF4444;
  --badge-green: #16A34A;
  --badge-blue: #0284C7;
  --badge-purple: #7C3AED;
}

/* ============================================
   1. Reset & Base
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   2. Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  line-height: 1.7;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

.accent-text,
.text-accent {
  color: var(--primary);
}

/* ============================================
   3. Navigation
   ============================================ */
.nav,
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.nav-scrolled,
.navbar.nav-scrolled {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  padding: 0.65rem 1.5rem;
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo-text strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: none;
}

@media (min-width: 768px) {
  .logo-subtitle {
    display: inline;
  }
}

.nav-logo .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
  font-size: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

/* Hamburger */
.hamburger,
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span,
.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle .hamburger {
  position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle .hamburger::before {
  top: -7px;
}

.nav-toggle .hamburger::after {
  top: 7px;
}

.nav-open .hamburger span:nth-child(1),
.nav-open .nav-toggle .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .hamburger span:nth-child(2),
.nav-open .nav-toggle .hamburger {
  opacity: 0;
}

.nav-open .hamburger span:nth-child(3),
.nav-open .nav-toggle .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-light);
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
}

.nav-open .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.mobile-menu-close:hover {
  background: var(--primary);
  color: #fff;
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.mobile-menu a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 998;
}

.nav-open .mobile-overlay {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   4. Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1565123409695-7b5ef63a2efb?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dot / grid pattern background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

/* Gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 26, 0.65) 0%,
    rgba(15, 15, 26, 0.88) 55%,
    var(--bg) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: heroFadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: heroFadeUp 0.8s 0.15s ease forwards;
  opacity: 0;
}

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

/* Hero search bar */
.hero-search {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  align-items: center;
  animation: heroFadeUp 0.8s 0.3s ease forwards;
  opacity: 0;
}

.hero-search .search-bar {
  width: 100%;
}

.hero-search .btn-primary {
  width: 100%;
}

.hero-search input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-light);
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* Search bar inner wrapper */
.search-bar {
  position: relative;
}

.search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar input {
  padding-left: 2.75rem !important;
}

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  animation: heroFadeUp 0.8s 0.5s ease forwards;
  opacity: 0;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   5. About / Feature Cards
   ============================================ */
.about {
  padding: 4rem 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
}

/* ============================================
   6. Filter Buttons
   ============================================ */
.filters,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Category badge colors */
.badge-red     { background: var(--badge-red); color: #fff; }
.badge-amber   { background: var(--badge-amber); color: #fff; }
.badge-yellow  { background: var(--badge-yellow); color: #1a1a1a; }
.badge-deepred { background: var(--badge-deepred); color: #fff; }
.badge-pink    { background: var(--badge-pink); color: #fff; }
.badge-brown   { background: var(--badge-brown); color: #fff; }
.badge-tomato  { background: var(--badge-tomato); color: #fff; }
.badge-green   { background: var(--badge-green); color: #fff; }
.badge-blue    { background: var(--badge-blue); color: #fff; }
.badge-purple  { background: var(--badge-purple); color: #fff; }

/* ============================================
   7. Template Cards Grid
   ============================================ */
.templates-section {
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.templates-grid,
.template-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.template-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Card image wrapper — holds preview, badge, and overlay */
.card-image {
  position: relative;
  overflow: hidden;
}

/* Card preview with scaled iframe */
.card-preview {
  position: relative;
  width: 100%;
  padding-top: 62.5%;
  overflow: hidden;
  background: var(--bg-light);
}

.card-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 400%;
  transform: scale(0.25);
  transform-origin: top left;
  border: none;
  pointer-events: none;
}

/* Category badge on card */
.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hover overlay with Live Demo button */
.card-overlay,
.card-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.template-card:hover .card-overlay,
.template-card:hover .card-preview-overlay {
  opacity: 1;
}

.card-overlay .btn,
.card-preview-overlay .btn {
  transform: translateY(8px);
  transition: transform 0.3s ease, background 0.25s ease, color 0.25s ease;
}

.template-card:hover .card-overlay .btn,
.template-card:hover .card-preview-overlay .btn {
  transform: translateY(0);
}

/* Card body */
.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.card-body p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   8. Card Tags
   ============================================ */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ============================================
   9. Process / How It Works
   ============================================ */
.process {
  padding: 4rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.process-grid,
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
}

.process-step,
.step-card {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 107, 53, 0.12);
  border-radius: 50%;
  border: 2px solid var(--primary);
  position: relative;
  z-index: 1;
}

.step-icon {
  margin-bottom: 1rem;
}

.process-step h3,
.step-card h3,
.step-title {
  margin-bottom: 0.5rem;
}

.process-step p,
.step-card p,
.step-desc {
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Connecting line (visible on larger screens) */
.process-line {
  display: none;
}

/* ============================================
   10. Testimonials
   ============================================ */
.testimonials {
  padding: 4rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Poppins', serif;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial-card p {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-light);
  border: 2px solid rgba(255, 107, 53, 0.3);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   11. Contact / CTA Section
   ============================================ */
.cta-section,
.contact-cta {
  padding: 4rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  margin: 2rem 0 0;
}

.cta-section h2,
.contact-cta h2,
.cta-title {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-section p,
.contact-cta > .container > .cta-content > p,
.cta-subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.cta-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.cta-form input {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cta-form input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.cta-disclaimer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

/* ============================================
   12. Footer
   ============================================ */
.footer,
.site-footer {
  background: var(--bg-light);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-brand .nav-logo {
  margin-bottom: 0.75rem;
}

.footer-brand p,
.footer-tagline {
  font-size: 0.85rem;
  max-width: 280px;
  color: var(--text-muted);
}

.footer-col h4,
.footer-links h4,
.footer-heading {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.footer-col a,
.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-col a:hover,
.footer-links a:hover {
  color: var(--primary);
  padding-left: 0.25rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: background 0.25s ease, color 0.25s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2rem 0 1.25rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
}

.footer-copyright {
  margin-bottom: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.25s ease, color 0.25s ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   13. Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.btn-light {
  background: #fff;
  color: var(--secondary);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--text);
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ============================================
   14. Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   15. Utility / Misc
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 4rem 0;
}

/* ============================================
   16. Responsive — Tablet (768px)
   ============================================ */
@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-search {
    flex-direction: row;
    align-items: center;
  }

  .hero-search .search-bar {
    flex: 1;
  }

  .hero-search .btn-primary {
    width: auto;
    flex-shrink: 0;
  }

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

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

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

  /* Connecting line between steps */
  .process-line {
    display: block;
    position: absolute;
    top: 26px;
    left: calc(33.33% + 26px);
    width: calc(33.33% - 52px);
    height: 2px;
    background: rgba(255, 107, 53, 0.25);
  }

  .process-line:nth-of-type(2) {
    left: calc(66.66% + 26px);
  }

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

  .cta-form {
    flex-direction: column;
  }

  .cta-input-group {
    flex-direction: row;
    align-items: center;
  }

  .cta-input-group input {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  /* Hide hamburger, show desktop nav */
  .hamburger,
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .mobile-menu,
  .mobile-overlay {
    display: none;
  }
}

/* ============================================
   17. Responsive — Desktop (1024px)
   ============================================ */
@media (min-width: 1024px) {
  h1 { font-size: 3.25rem; }

  .hero-content h1 {
    font-size: 3.75rem;
  }

  .hero-content p {
    font-size: 1.15rem;
  }

  .nav,
  .navbar {
    padding: 1.15rem 3rem;
  }

  .nav-scrolled,
  .navbar.nav-scrolled {
    padding: 0.75rem 3rem;
  }

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

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

  .about,
  .process,
  .testimonials,
  .templates-section {
    padding: 5rem 2rem;
  }

  .cta-section,
  .contact-cta {
    padding: 5rem 2rem;
  }

  .footer,
  .site-footer {
    padding: 4rem 2rem 1.5rem;
  }
}

/* ============================================
   18. Responsive — Small Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }

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

  .hero-content p {
    font-size: 0.95rem;
  }

  .templates-grid,
  .template-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .features-grid {
    gap: 1rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn {
    padding: 0.65rem 1.15rem;
    font-size: 0.85rem;
  }

  .cta-section {
    padding: 3rem 1rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }
}
