/* ─────────────────────────────────────────────────────────────
   Two Brothers Event — Apple-minimal stylesheet
   ───────────────────────────────────────────────────────────── */

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

:root {
  --black:  #1a1a1a;
  --gray-1: #444;
  --gray-2: #777;
  --gray-3: #aaa;
  --gray-4: #d4d4d4;
  --gray-5: #f0f0f0;
  --white:  #ffffff;
  --accent: #1a1a1a;
  --radius: 4px;
  --max:    1100px;
  --serif:  Georgia, "Times New Roman", serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { color: var(--gray-1); max-width: 65ch; }

.serif { font-family: var(--serif); }
.caps  { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
.muted { color: var(--gray-2); }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img { width: 40px; height: 40px; }

.nav-logo-text {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--black);
  line-height: 1.1;
}

.nav-logo-text span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-2);
  font-family: var(--sans);
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--gray-1);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-links .btn-nav {
  background: var(--black);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-links .btn-nav:hover { opacity: 0.75; }

.nav-links .btn-nav-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-3);
  padding: 7px 18px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links .btn-nav-outline:hover { border-color: var(--black); color: var(--black); }

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-4);
    padding: 16px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--gray-5); font-size: 1rem; }
  .nav-links .btn-nav { margin-top: 8px; display: inline-block; border-bottom: none; }
  .nav-links .btn-nav-outline { margin-top: 8px; display: inline-block; border-bottom: none; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.1s;
}

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

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

.btn-primary:hover { opacity: 0.8; }

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

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

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 24px 80px;
  background: var(--white);
}

.hero-logo {
  width: clamp(120px, 20vw, 180px);
  margin-bottom: 40px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 20px;
}

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

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-1);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-cta-pair {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-portfolio-link {
  font-size: 0.8125rem;
  color: var(--gray-2);
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.hero-portfolio-link:hover { color: var(--black); }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--gray-3);
  margin: 0 auto;
}

/* ── About section ───────────────────────────────────────── */
.about {
  background: var(--gray-5);
  border-top: 1px solid var(--gray-4);
  border-bottom: 1px solid var(--gray-4);
}

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

.about-inner .section-label {
  display: block;
  margin-bottom: 24px;
}

.about-inner h2 { margin-bottom: 24px; }
.about-inner p  { margin: 0 auto 20px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}

.service-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius);
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

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

/* ── Portfolio preview ────────────────────────────────────── */
.portfolio-preview h2,
.portfolio-full h2 {
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--gray-2);
  margin: 0 auto 48px;
  font-size: 0.95rem;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-5);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background 0.3s;
}

.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.35); }

.gallery-item-label {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
  font-family: var(--sans);
}

.gallery-item:hover .gallery-item-label { opacity: 1; transform: translateY(0); }

/* Placeholder tiles */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gray-5);
  border: 1px solid var(--gray-4);
}

.gallery-placeholder svg { opacity: 0.25; }
.gallery-placeholder span { font-size: 0.75rem; color: var(--gray-3); letter-spacing: 0.1em; text-transform: uppercase; }

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

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

.portfolio-cta {
  text-align: center;
  margin-top: 48px;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 1000px;
  width: 100%;
}

.lightbox-img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }

.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.6);
  margin: 0 auto 36px;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--black);
}

.cta-banner .btn-primary:hover { opacity: 0.85; }

.cta-btn-pair {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-btn-light {
  background: var(--white);
  color: var(--black);
}

.cta-btn-light:hover { opacity: 0.85; }

.cta-btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.cta-btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ── Quote Form Page ──────────────────────────────────────── */
.quote-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.quote-submit-row {
  padding-top: 8px;
}

.quote-submit-row .btn {
  width: 100%;
  justify-content: center;
}

.quote-submit-note {
  font-size: 0.75rem;
  color: var(--gray-3);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
  max-width: none;
}

/* ── Order Form Page ──────────────────────────────────────── */
.order-header {
  text-align: center;
  padding: 64px 24px 48px;
  border-bottom: 1px solid var(--gray-4);
  margin-bottom: 0;
}

.order-header h1 { margin-bottom: 12px; }
.order-header p   { margin: 0 auto; }

.order-layout {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

@media (max-width: 767px) {
  .order-layout {
    padding: 24px 16px 32px;
  }
}

/* ── Form Styles ──────────────────────────────────────────── */
.form-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-4);
}

.form-section:last-child { border-bottom: none; }

.form-section-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-4);
}

.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group.three { grid-template-columns: repeat(3, 1fr); }
.field-group.full  { grid-template-columns: 1fr; }

@media (max-width: 600px) {
  .field-group,
  .field-group.three { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }

label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-2);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-4);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea { resize: vertical; min-height: 90px; }

/* Checkboxes */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
  margin-top: 4px;
}

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

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-1);
  user-select: none;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1.5px solid var(--gray-3);
  border-radius: 3px;
  cursor: pointer;
  accent-color: var(--black);
  flex-shrink: 0;
}

/* Radio */
.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray-1);
}

.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--black);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Line Items ───────────────────────────────────────────── */
.line-items-list { display: flex; flex-direction: column; gap: 16px; }

.line-item {
  border: 1px solid var(--gray-4);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--gray-5);
  position: relative;
}

.line-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.line-item-number {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-2);
}

.line-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-3);
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.line-item-remove:hover { color: #cc0000; }

.add-line-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px dashed var(--gray-3);
  color: var(--gray-2);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 12px 20px;
  border-radius: var(--radius);
  width: 100%;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  margin-top: 8px;
}

.add-line-item:hover { border-color: var(--black); color: var(--black); }

/* ── Deposit ──────────────────────────────────────────────── */
.deposit-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--gray-5);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius);
  cursor: pointer;
}

.deposit-toggle-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--black);
  cursor: pointer;
  flex-shrink: 0;
}

.deposit-toggle-label strong { display: block; font-size: 0.9375rem; margin-bottom: 4px; }
.deposit-toggle-label span   { font-size: 0.85rem; color: var(--gray-2); }

.deposit-options {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-4);
}

.deposit-options.visible { display: block; }

.deposit-amount-choices {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.deposit-amount-card {
  flex: 1;
  border: 1.5px solid var(--gray-4);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.deposit-amount-card input[type="radio"] { accent-color: var(--black); }

.deposit-amount-card:has(input:checked),
.deposit-amount-card.selected {
  border-color: var(--black);
  background: rgba(0,0,0,0.03);
}

.deposit-amount-info strong { display: block; font-size: 1.1rem; font-family: var(--serif); }
.deposit-amount-info span   { font-size: 0.8rem; color: var(--gray-2); }

#stripe-element-container {
  padding: 14px;
  border: 1px solid var(--gray-4);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 44px;
  transition: border-color 0.2s;
}

#stripe-element-container.focused { border-color: var(--black); }

.stripe-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gray-2);
  margin-top: 8px;
}

/* ── Order summary (now at bottom, full width) ────────────── */
.order-sidebar {
  margin-top: 40px;
  max-width: 100%;
}

.sidebar-card {
  border: 1px solid var(--gray-4);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-card-header {
  padding: 20px 24px;
  background: var(--black);
  color: var(--white);
}

.sidebar-card-header h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.sidebar-card-header p { font-size: 0.8rem; color: rgba(255,255,255,0.55); max-width: none; }

/* Desktop: collapsible wrapper is always open */
.sidebar-collapsible { overflow: visible; max-height: none; }

/* Toggle button — hidden on desktop */
.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  color: rgba(255,255,255,0.85);
  padding: 5px 8px;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-icon { transition: transform 0.25s ease; display: block; }
.sidebar-toggle[aria-expanded="true"] .sidebar-toggle-icon { transform: rotate(180deg); }

@media (max-width: 767px) {
  .sidebar-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    user-select: none;
  }

  .sidebar-toggle { display: flex; }

  /* Collapsible: closed by default on mobile */
  .sidebar-collapsible {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .sidebar-collapsible.is-open {
    max-height: 600px;
  }
}

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

.sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-5);
  font-size: 0.875rem;
}

.sidebar-item:last-child { border-bottom: none; }
.sidebar-item-label { color: var(--gray-2); }
.sidebar-item-value { font-weight: 500; }

.sidebar-actions { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 10px; }

.sidebar-actions .btn { width: 100%; justify-content: center; }

/* ── Mobile submit (shown only on mobile, sidebar hidden) ─── */
.mobile-submit-section { display: none; }

@media (max-width: 767px) {
  .mobile-submit-section {
    display: block;
    padding-top: 32px;
    margin-top: 0;
  }
  .mobile-submit-section .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }
}

/* ── Success state ────────────────────────────────────────── */
.success-message {
  display: none;
  text-align: center;
  padding: 80px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.success-message.visible { display: block; }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--white);
  font-size: 1.5rem;
}

.success-message h2 { margin-bottom: 16px; }
.success-message p  { margin: 0 auto 32px; }

/* ── Form error ───────────────────────────────────────────── */
.field-error {
  font-size: 0.75rem;
  color: #cc0000;
  margin-top: 4px;
}

input.error, select.error, textarea.error {
  border-color: #cc0000;
}

.form-global-error {
  background: #fff5f5;
  border: 1px solid #fcc;
  color: #cc0000;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 24px;
  display: none;
}

.form-global-error.visible { display: block; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--gray-4);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand img { width: 48px; margin-bottom: 12px; }
.footer-brand p   { font-size: 0.875rem; color: var(--gray-2); }

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a  { font-size: 0.9rem; color: var(--gray-1); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--black); }

.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Admin page ───────────────────────────────────────────── */
.admin-body {
  background: var(--gray-5);
  min-height: 100vh;
}

.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: 8px;
  padding: 40px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.login-card img { width: 56px; margin: 0 auto 24px; }
.login-card h1  { font-size: 1.4rem; margin-bottom: 8px; }
.login-card p   { font-size: 0.875rem; margin-bottom: 32px; }

.login-form { text-align: left; }
.login-form .field { margin-bottom: 20px; }
.login-form .btn   { width: 100%; justify-content: center; }

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

@media (max-width: 720px) {
  .admin-layout { grid-template-columns: 1fr; }
}

.admin-sidebar {
  background: var(--black);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.admin-sidebar-logo img { width: 32px; filter: invert(1); }

.admin-sidebar-logo span {
  font-family: var(--serif);
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.2;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color 0.2s, background 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.admin-main {
  padding: 32px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-header h1 { font-size: 1.75rem; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-new     { background: #e8f5e9; color: #2e7d32; }
.badge-paid    { background: #e3f2fd; color: #1565c0; }
.badge-default { background: var(--gray-5); color: var(--gray-2); }

/* Table */
.orders-table-wrap { overflow-x: auto; }

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gray-4);
}

.orders-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--gray-5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-2);
  border-bottom: 1px solid var(--gray-4);
  white-space: nowrap;
}

.orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-5);
  color: var(--gray-1);
  vertical-align: middle;
}

.orders-table tr:last-child td { border-bottom: none; }

.orders-table tr:hover td { background: rgba(0,0,0,0.015); cursor: pointer; }

.orders-table .name-col { font-weight: 500; color: var(--black); }

/* Order detail */
.order-detail { display: none; }
.order-detail.visible { display: block; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

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

.detail-card {
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: 6px;
  overflow: hidden;
}

.detail-card-title {
  padding: 12px 20px;
  background: var(--gray-5);
  border-bottom: 1px solid var(--gray-4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-2);
}

.detail-card-body { padding: 20px; }

.detail-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-5);
  font-size: 0.875rem;
}

.detail-row:last-child { border-bottom: none; }
.detail-row-label { color: var(--gray-2); flex: 0 0 140px; }
.detail-row-value { font-weight: 400; color: var(--black); }

.line-items-admin { display: flex; flex-direction: column; gap: 12px; }

.li-admin-card {
  background: var(--gray-5);
  border: 1px solid var(--gray-4);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.875rem;
}

.li-admin-card strong { display: block; margin-bottom: 4px; color: var(--black); }
.li-admin-card span   { color: var(--gray-2); }

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }
.hidden { display: none !important; }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 16px;
}

/* ── Spinner ──────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-primary .spinner { border-top-color: var(--white); }
.btn-outline .spinner { border-color: rgba(0,0,0,0.2); border-top-color: var(--black); }

/* ── Transitions ──────────────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.4s ease both;
}

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

/* ── Hide mobile submit section (sidebar now at bottom on all sizes) ── */
.mobile-submit-section {
  display: none;
}
