/* ============================================
   My CV Template - Main Stylesheet
   Theme: Navy (#1B1F5E) + Amber (#F5A623)
   Fonts: Montserrat (headings), Open Sans (body)
   ============================================ */

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

:root {
  --navy: #333366;
  --navy-dark: #222244;
  --navy-light: #444488;
  --amber: #FF9900;
  --amber-dark: #E68A00;
  --amber-light: #FFCC66;
  --white: #FFFFFF;
  --off-white: #FAF8F5;
  --light-grey: #F0EDEA;
  --mid-grey: #8A8A8A;
  --dark-text: #1A1A2E;
  --body-text: #4A4A5A;
  --shadow: 0 2px 20px rgba(27, 31, 94, 0.08);
  --shadow-lg: 0 8px 40px rgba(27, 31, 94, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--body-text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber); }

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

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

.section { padding: 80px 0; }

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--mid-grey);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 31, 94, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm { padding: 10px 24px; font-size: 0.875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.125rem; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(27, 31, 94, 0.05);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-logo img { height: 44px; width: auto; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  position: relative;
  letter-spacing: 0.3px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width var(--transition);
}

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

.navbar-cta { margin-left: 8px; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 50%, #EDE8FF 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 31, 94, 0.06);
  color: var(--navy);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--amber);
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  color: var(--body-text);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--light-grey);
}

.hero-stat strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  color: var(--navy);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--mid-grey);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-mockup {
  width: 380px;
  height: 520px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-grey);
  overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateY(-5deg);
}

.hero-mockup-header {
  height: 80px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.hero-mockup-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.2rem;
}

.hero-mockup-name {
  margin-left: 16px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.hero-mockup-title {
  color: var(--amber-light);
  font-size: 0.8rem;
  margin-top: 2px;
}

.hero-mockup-body { padding: 24px; }

.mockup-section {
  margin-bottom: 20px;
}

.mockup-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}

.mockup-line {
  height: 8px;
  background: var(--light-grey);
  border-radius: 4px;
  margin-bottom: 6px;
}

.mockup-line.short { width: 60%; }
.mockup-line.medium { width: 80%; }
.mockup-line.long { width: 95%; }

.hero-float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
}

.hero-float-badge.top-right {
  top: 20px;
  right: -20px;
}

.hero-float-badge.bottom-left {
  bottom: 40px;
  left: -20px;
  animation-delay: 1.5s;
}

.hero-float-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-green { background: #E8F5E9; }
.badge-blue { background: #E3F2FD; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Features Section --- */
.features { background: var(--white); }

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

.feature-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(245, 166, 35, 0.2);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.feature-card p { color: var(--mid-grey); font-size: 0.95rem; margin-bottom: 0; }

/* --- Templates Section --- */
.templates { background: var(--off-white); }

.template-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.template-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--light-grey);
  background: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--body-text);
  cursor: pointer;
  transition: all var(--transition);
}

.template-tab.active,
.template-tab:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

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

.template-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.template-preview {
  height: 320px;
  background: var(--light-grey);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-preview-inner {
  width: 65%;
  height: 85%;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 16px;
  position: relative;
}

.preview-header-bar {
  height: 40px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.preview-line {
  height: 6px;
  background: #E0E0E0;
  border-radius: 3px;
  margin-bottom: 5px;
}

.preview-line.w50 { width: 50%; }
.preview-line.w60 { width: 60%; }
.preview-line.w70 { width: 70%; }
.preview-line.w80 { width: 80%; }
.preview-line.w90 { width: 90%; }
.preview-line.w100 { width: 100%; }

.template-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 16px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-free {
  background: #22C55E;
  color: var(--white);
}

.badge-premium {
  background: var(--amber);
  color: var(--navy);
}

.template-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 31, 94, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.template-info { padding: 24px; }

.template-info h3 { font-size: 1.1rem; margin-bottom: 4px; }

.template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

.template-price.free { color: #22C55E; }

.template-includes {
  font-size: 0.8rem;
  color: var(--mid-grey);
}

/* --- How It Works --- */
.how-it-works { background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--light-grey);
}

.step-card { text-align: center; position: relative; }

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--mid-grey); }

/* --- Blog Preview --- */
.blog-preview { background: var(--off-white); }

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

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  height: 200px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-icon {
  font-size: 3rem;
  opacity: 0.15;
  color: var(--white);
  position: absolute;
}

.blog-category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--amber);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-body { padding: 24px; }

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--mid-grey);
  margin-bottom: 16px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--mid-grey);
}

.read-more {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.85rem;
}

.read-more:hover { color: var(--amber); }

/* --- Testimonials --- */
.testimonials { background: var(--navy); color: var(--white); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-subtitle { color: rgba(255,255,255,0.6); }

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

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px;
}

.testimonial-stars {
  color: var(--amber);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.testimonial-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 { color: var(--navy); margin-bottom: 16px; }
.cta-section p { color: var(--navy-dark); opacity: 0.8; font-size: 1.15rem; margin-bottom: 32px; }

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-top: 16px; }
.footer-brand img { height: 40px; }

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--amber);
  color: var(--navy);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  padding: 48px 40px;
  position: relative;
  animation: modalIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--mid-grey);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.modal-close:hover { background: var(--light-grey); }

.modal h2 { font-size: 1.5rem; margin-bottom: 8px; }
.modal p { color: var(--mid-grey); margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius-sm);
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--dark-text);
  transition: border-color var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--navy);
}

.form-note {
  font-size: 0.75rem;
  color: var(--mid-grey);
  margin-top: 12px;
}

/* --- Blog Page --- */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.15rem; }

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* --- Blog Article --- */
.article-hero {
  padding: 140px 0 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}

.article-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.article-meta .category {
  background: var(--amber);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.article-hero h1 { color: var(--white); font-size: 2.5rem; max-width: 800px; }

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.75rem;
}

.article-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.tip-box {
  background: rgba(245, 166, 35, 0.08);
  border-left: 4px solid var(--amber);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.tip-box strong {
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
}

/* --- Templates Page specific --- */
.template-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.templates-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 160px;
  background: #FFFFFF;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-text h2 { margin-bottom: 20px; }
.about-text p { font-size: 1.05rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.value-card { text-align: center; padding: 32px; }

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

/* --- Newsletter --- */
.newsletter {
  background: var(--off-white);
  padding: 60px 0;
}

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

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--light-grey);
  border-radius: 50px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--navy);
}

/* --- Success message --- */
.success-message {
  text-align: center;
  padding: 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #E8F5E9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: #22C55E;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-mockup { transform: none; }
  .hero-float-badge { display: none; }

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

  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }

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

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 60px 0; }

  .navbar-links { display: none; }
  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--light-grey);
  }
  .mobile-toggle { display: flex; }

  .features-grid,
  .templates-grid,
  .blog-grid,
  .testimonials-grid,
  .blog-page-grid,
  .templates-page-grid,
  .values-grid { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

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

  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .hero-mockup { width: 300px; height: 420px; }
  .template-preview { height: 260px; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

/* --- Template color variants --- */
.preview-navy .preview-header-bar { background: var(--navy); }
.preview-amber .preview-header-bar { background: var(--amber); }
.preview-teal .preview-header-bar { background: #0D9488; }
.preview-rose .preview-header-bar { background: #E11D48; }
.preview-slate .preview-header-bar { background: #475569; }
.preview-violet .preview-header-bar { background: #7C3AED; }
.preview-emerald .preview-header-bar { background: #059669; }
.preview-orange .preview-header-bar { background: #EA580C; }
.preview-indigo .preview-header-bar { background: #4F46E5; }

/* Sidebar layout for template preview */
.preview-sidebar {
  display: grid;
  grid-template-columns: 35% 1fr;
  height: 100%;
}

.preview-sidebar-left {
  padding: 12px;
}

.preview-sidebar-right {
  padding: 12px;
}

.preview-sidebar-left .preview-line { background: rgba(255,255,255,0.3); }
