:root {
  --cream: #F5F0E8;
  --warm-white: #FDFBF7;
  --terracotta: #C4663A;
  --terracotta-dark: #A84E26;
  --charcoal: #2C2825;
  --warm-gray: #6B625A;
  --sand: #D9CFC2;
  --light-sand: #EDE7DC;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
}

/* Base */
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--cream); }

/* Paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Typography */
.title, .subtitle, h1, h2, h3, h4 { font-family: var(--font-display); color: var(--charcoal); }
.content, p, .label, .help, span, a, li { font-family: var(--font-body); }
em.accent { font-style: italic; color: var(--terracotta); }

/* Navbar */
.navbar { background: rgba(245, 240, 232, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--sand); }
.navbar-item.brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--charcoal); }
.navbar-item.brand span { color: var(--terracotta); font-weight: 400; font-style: italic; }
.navbar-item { color: var(--warm-gray); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.navbar-item:hover { color: var(--terracotta); }
.navbar-burger span { background-color: var(--charcoal); }

/* Buttons */
.button.is-primary { background: var(--terracotta); border-color: transparent; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.03em; transition: all 0.3s ease; }
.button.is-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.button.is-primary.is-rounded { box-shadow: 0 4px 20px rgba(196, 102, 58, 0.25); }
.button.is-primary.is-rounded:hover { box-shadow: 0 6px 30px rgba(196, 102, 58, 0.35); }
.button.is-outlined.is-dark { border-color: var(--sand); color: var(--charcoal); font-family: var(--font-body); font-weight: 500; }
.button.is-outlined.is-dark:hover { border-color: var(--terracotta); color: var(--terracotta); background: transparent; }
.button.is-ghost { color: var(--terracotta); text-decoration: none; font-family: var(--font-body); }
.button.is-ghost:hover { color: var(--terracotta-dark); background: rgba(196, 102, 58, 0.06); }

/* Hero */
.hero.is-fullheight { background: var(--cream); }
.hero .hero-tag { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--terracotta); }
.hero .title.is-1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.hero .subtitle { color: var(--warm-gray); font-weight: 300; font-size: 1.15rem; }
.hero-body { position: relative; overflow: hidden; }
.hero-body::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 102, 58, 0.08) 0%, transparent 70%); animation: float 12s ease-in-out infinite;
}
.hero-body::after {
  content: ''; position: absolute; bottom: -10%; left: -5%; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 155, 126, 0.08) 0%, transparent 70%); animation: float 15s ease-in-out infinite reverse;
}
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -30px) scale(1.05); } }

/* Staggered fade-in */
.fade-up { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.fade-up.d1 { animation-delay: 0.2s; }
.fade-up.d2 { animation-delay: 0.4s; }
.fade-up.d3 { animation-delay: 0.6s; }
.fade-up.d4 { animation-delay: 0.8s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Feature cards */
.card.feature-card { background: var(--warm-white); border: 1px solid var(--sand); border-radius: 16px; box-shadow: none; transition: transform 0.3s, box-shadow 0.3s; }
.card.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(44, 40, 37, 0.06); }
.card .feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--light-sand); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 0.75rem; }
.card .card-content .title { font-size: 1.4rem; font-weight: 600; }
.card .card-content p { font-weight: 300; color: var(--warm-gray); line-height: 1.7; }

/* Process */
.section.process { background: var(--warm-white); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--light-sand); border: 2px solid var(--sand);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; color: var(--terracotta); flex-shrink: 0; position: relative; z-index: 1;
}
.step-row:not(:last-child) .step-num::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 1.5px; height: calc(100% + 1.25rem); background: var(--sand);
}
.step-row .title.is-5 { font-weight: 600; }
.step-row p { font-weight: 300; color: var(--warm-gray); line-height: 1.7; }

/* CTA banner */
.cta-box { background: var(--charcoal); border-radius: 24px; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 102, 58, 0.2) 0%, transparent 70%); }
.cta-box .title { color: var(--cream); }
.cta-box .subtitle { color: var(--sand); }

/* Sections & Footer */
.section .title.is-2 { font-weight: 700; letter-spacing: -0.02em; }
.section .subtitle { color: var(--warm-gray); font-weight: 300; }
.footer { background: var(--cream); border-top: 1px solid var(--sand); padding: 2.5rem; }
.footer p { color: var(--warm-gray); font-size: 0.8rem; font-weight: 300; }

/* Order page info */
.order-info .title.is-2 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; }
.order-info > p { font-weight: 300; color: var(--warm-gray); line-height: 1.7; }
.info-item .icon-box { width: 36px; height: 36px; border-radius: 10px; background: var(--light-sand); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.info-item strong { color: var(--charcoal); font-weight: 500; display: block; }
.info-item span { font-weight: 300; color: var(--warm-gray); font-size: 0.95rem; }

/* Form card */
.order-form-card { background: var(--warm-white); border: 1px solid var(--sand); border-radius: 20px; padding: 2.5rem; box-shadow: 0 8px 40px rgba(44, 40, 37, 0.05); }
.order-form-card .label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warm-gray); }
.order-form-card .input,
.order-form-card .textarea,
.order-form-card .select select {
  background: var(--cream); border: 1.5px solid var(--sand); border-radius: 12px;
  font-family: var(--font-body); color: var(--charcoal); box-shadow: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.order-form-card .input:focus,
.order-form-card .textarea:focus,
.order-form-card .select select:focus {
  border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(196, 102, 58, 0.1);
}
.order-form-card .input::placeholder,
.order-form-card .textarea::placeholder { color: var(--sand); }

/* Photo entries (completed uploads) */
.photo-entry { background: var(--cream); border: 1.5px solid var(--sand); border-radius: 14px; padding: 1.25rem; transition: border-color 0.3s; }
.photo-entry:hover { border-color: var(--terracotta); }
.photo-entry .photo-number { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--terracotta); }

/* File drop zone */
.drop-zone-ready .file-drop {
  border: 2px dashed var(--sand); border-radius: 10px; padding: 1.25rem 1rem; text-align: center;
  cursor: pointer; position: relative; background: var(--warm-white); transition: border-color 0.3s, background 0.3s;
}
.drop-zone-ready .file-drop:hover,
.drop-zone-ready .file-drop.dragover { border-color: var(--terracotta); background: rgba(196, 102, 58, 0.03); }
.drop-zone-ready .file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone-ready .file-drop p { font-size: 0.85rem; color: var(--warm-gray); font-weight: 300; margin: 0; }
.drop-zone-ready .file-drop p strong { color: var(--terracotta); font-weight: 500; }
.drop-zone-ready .file-drop .file-hint { font-size: 0.75rem; color: var(--sand); }

/* Uploading state (shown inside a photo-entry during upload) */
.photo-entry .file-drop.uploading {
  border: 1.5px solid var(--sand); border-radius: 10px; padding: 1.25rem 1rem; text-align: center;
  background: var(--light-sand); pointer-events: none;
}
.photo-entry .file-drop.uploading p { font-size: 0.85rem; color: var(--warm-gray); font-weight: 300; margin: 0; }
.photo-entry .file-drop.upload-error {
  border: 1.5px solid #c0392b; border-radius: 10px; padding: 1.25rem 1rem; text-align: center;
  background: rgba(192, 57, 43, 0.04);
}
.photo-entry .file-drop.upload-error p { font-size: 0.85rem; color: var(--charcoal); font-weight: 300; margin: 0; }
.photo-entry .file-drop.upload-error .file-hint { font-size: 0.75rem; color: #c0392b; }

.file-preview-status {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--terracotta);
}

/* Upload progress bar */
.upload-progress { height: 3px; background: var(--sand); border-radius: 2px; margin-top: 0.5rem; overflow: hidden; display: none; }
.upload-progress.active { display: block; }
.upload-progress .bar { height: 100%; background: var(--terracotta); border-radius: 2px; transition: width 0.3s ease; width: 0%; }
.upload-progress .bar.indeterminate { width: 40%; animation: indeterminate 1.2s ease-in-out infinite; }
@keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* Totals, notes, success */
.designs-total { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--charcoal); text-align: right; padding: 0.5rem 0; }
.designs-total span { color: var(--terracotta); }

.form-note { text-align: center; font-size: 0.78rem; color: var(--sand); font-weight: 300; margin-top: 0.75rem; }
.form-notice { text-align: center; font-size: 0.72rem; color: var(--sand); font-weight: 300; line-height: 1.5; }

.form-success { display: none; text-align: center; padding: 3rem 1rem; }
.form-success.show { display: block; }
.form-success .icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success .title { font-size: 1.8rem; }
.form-success p { font-weight: 300; color: var(--warm-gray); }

/* Upload remove button */
.btn-remove {
  background: none; border: 1.5px solid var(--sand); cursor: pointer; color: var(--warm-gray);
  font-size: 0.78rem; font-family: var(--font-body); font-weight: 500;
  padding: 0.3rem 0.75rem; line-height: 1.4; border-radius: 8px; transition: all 0.2s;
}
.btn-remove:hover { color: #c0392b; border-color: #c0392b; background: rgba(192, 57, 43, 0.05); }

/* Image preview after upload */
.file-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--warm-white);
  border: 1.5px solid var(--terracotta);
  border-radius: 10px;
}
.file-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--light-sand);
}
.file-preview-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.file-preview-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
  .order-form-card { padding: 1.5rem; }
  .photo-entry { padding: 1rem; }
}