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

:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #8b6914;
  --accent-light: #d4a72c;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --bg-muted: #edf2f7;
  --border: #e2e8f0;
  --success: #38a169;
  --error: #e53e3e;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);

  --radius: 8px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary);
}

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

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.nav-cta {
  font-size: 0.9rem;
  padding: 10px 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom, var(--bg-soft) 0%, var(--bg) 100%);
  padding-bottom: 80px;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  margin: 60px auto 0;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.hero .btn {
  margin: 8px;
}

/* Trust Section */
.trust-section {
  background: var(--bg);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.badge svg {
  color: var(--success);
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--bg);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 12px;
  margin-bottom: 48px;
}

.features-section h2 {
  text-align: center;
}

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 50%;
  color: var(--primary);
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Examples Section */
.examples-section {
  padding: 80px 0;
  background: var(--bg-soft);
}

.examples-section h2 {
  text-align: center;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.example-preview {
  height: 200px;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  background-size: cover;
  background-position: center;
}

.example-preview.classic {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

.example-preview.modern {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.example-preview.faith {
  background: linear-gradient(135deg, #744210 0%, #975a16 100%);
}

.example-preview.celebration {
  background: linear-gradient(135deg, #276749 0%, #38a169 100%);
}

.example-card h4 {
  margin-bottom: 4px;
}

.example-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background: var(--bg);
}

.pricing-section h2 {
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing-header h3 {
  margin-bottom: 8px;
}

.price {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--primary);
}

.price-note {
  color: var(--text-light);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
}

.pricing-features svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Process Section */
.process-section {
  padding: 80px 0;
  background: var(--bg-soft);
}

.process-section h2 {
  text-align: center;
}

.process-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
  }
}

.step {
  text-align: center;
  max-width: 200px;
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.step h4 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.step-arrow {
  margin-top: 24px;
  color: var(--text-light);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--bg);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

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

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item h4 {
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: var(--bg-soft);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 24px;
  }
}

.footer .logo {
  color: white;
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* Order Form Page Styles */
.order-page {
  min-height: 100vh;
  background: var(--bg-soft);
}

.order-header {
  background: var(--bg);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.order-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.order-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.progress-step {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.progress-step.active {
  background: var(--primary);
}

.form-section {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.form-section h3 {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group .optional {
  color: var(--text-light);
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group .hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* File Upload */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-soft);
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--bg-muted);
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--bg-muted);
}

.upload-zone svg {
  color: var(--text-light);
  margin-bottom: 16px;
}

.upload-zone h4 {
  margin-bottom: 8px;
}

.upload-zone p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.upload-zone input[type="file"] {
  display: none;
}

.uploaded-files {
  margin-top: 16px;
}

.uploaded-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  margin-top: 8px;
}

.uploaded-file img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.uploaded-file .file-info {
  flex: 1;
}

.uploaded-file .file-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.uploaded-file .file-size {
  color: var(--text-light);
  font-size: 0.8rem;
}

.uploaded-file .remove-file {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  padding: 8px;
}

/* Style Selection */
.style-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .style-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.style-option {
  position: relative;
}

.style-option input {
  position: absolute;
  opacity: 0;
}

.style-option label {
  display: block;
  padding: 16px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.style-option input:checked + label {
  border-color: var(--primary);
  background: var(--bg-soft);
}

.style-preview {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: 4px;
}

/* Order Summary */
.order-summary {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 16px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Thank You Page */
.thankyou-page {
  min-height: 100vh;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-content {
  text-align: center;
  max-width: 500px;
  padding: 40px;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: white;
  border-radius: 50%;
}

.thankyou-content h1 {
  margin-bottom: 16px;
}

.thankyou-content p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.order-details {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  margin-bottom: 32px;
}

.order-details h4 {
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

/* Loading State */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
