:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f1eb;
  --muted: #b8b2a8;
  --gold: #d6b36a;
  --gold-soft: rgba(214, 179, 106, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(214, 179, 106, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* =============================
   HEADER
============================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(5, 5, 5, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

.site-nav a {
  color: #e4ddd2;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold);
}

/* =============================
   PAGE SYSTEM
============================= */

main {
  flex: 1;
}

.page {
  display: none;
  padding: 56px 0 52px;
}

.page.active {
  display: block;
}

/* =============================
   HOME / HERO
============================= */

#page-home {
  padding-top: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 560px;
}

.hero-media {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #ecd49d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title {
  margin: 20px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 9ch;
}

.lead {
  max-width: 560px;
  margin: 0 0 30px;
  color: #e5ddd0;
  font-size: 1.02rem;
  line-height: 1.8;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =============================
   BUTTONS
============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-secondary {
  background: linear-gradient(180deg, #ecd39a, #d6b36a);
  color: #171717;
  box-shadow: 0 10px 22px rgba(214, 179, 106, 0.16);
}

.btn-primary:hover,
.btn-secondary:hover {
  box-shadow: 0 14px 28px rgba(214, 179, 106, 0.24);
}

/* =============================
   CARDS / IMAGE CARD
============================= */

.image-card,
.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card {
  width: 100%;
  max-width: 520px;
  margin: 0;
  overflow: hidden;
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.image-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 18px;
  background: rgba(255, 255, 255, 0.03);
}

.image-caption strong {
  font-size: 0.98rem;
}

.image-caption span {
  color: var(--muted);
  font-size: 0.92rem;
}

.card {
  padding: 24px;
}

.card h3,
.card h4 {
  margin-top: 0;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
}

/* =============================
   SECTION HEADERS
============================= */

.section-heading {
  margin-bottom: 28px;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: #ecd49d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.section-heading h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
}

.section-heading p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.muted {
  color: var(--muted);
}

/* =============================
   GALLERY
============================= */

/* GALLERY FILTER BUTTONS */
.gallery-filters {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gallery-filters button,
.gallery-filters .btn {
  min-height: 36px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 18px !important;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.gallery-filters button:hover,
.gallery-filters .btn:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-1px);
}

.gallery-filters button.active,
.gallery-filters .btn.active {
  background: var(--gold);
  color: #000;
}

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

.gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
}

.gallery-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.gallery-content h3 {
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.gallery-content p {
  margin: 0;
  line-height: 1.65;
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #edd39a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-row {
  margin-top: auto;
  padding-top: 18px;
}

/* =============================
   PRICING / CONTACT / FORMS
============================= */

.services-grid,
.contact-grid,
.checkout-grid {
  display: grid;
  gap: 22px;
}

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

.contact-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.service-title {
  font-size: 1.5rem;
}

.pricing-title {
  margin-bottom: 12px;
  color: #ecd49d;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
}

.pricing-header {
  color: #f4dfac;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #9f998f;
}

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

.contact-grid .card:last-child {
  display: grid;
  gap: 14px;
}

/* =============================
   CART
============================= */

#cart-items-card {
  margin-bottom: 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-item-details strong {
  display: block;
  margin-bottom: 6px;
}

.cart-item-actions button,
.remove-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.cart-total {
  margin-top: 16px;
  font-size: 1.08rem;
  font-weight: 700;
}

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

.checkout-actions {
  margin: 18px 0 22px;
}

.payment-block {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: #050505;
}

#card-container {
  margin: 14px 0 16px;
  padding: 0;
  border-radius: 16px;
  background: #111111;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  display: block;
}

/* =============================
   LIGHTBOX
============================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox.active {
  display: flex;
}

.lightbox-nav {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 1.9rem;
  cursor: pointer;
}

#lightbox-caption {
  color: #e8dfd1;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* =============================
   SITE MODAL
============================= */

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.site-modal.show {
  display: flex;
}

.site-modal-card {
  width: min(560px, 100%);
  position: relative;
  border: 1px solid var(--border);
  background: #111111;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.site-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

.site-modal-message {
  margin: 6px 0 18px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-modal.show {
  display: flex;
  opacity: 1;
}

.site-modal-card {
  width: min(560px, 100%);
  position: relative;
  border: 1px solid var(--border);
  background: #111111;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.site-modal.show .site-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =============================
   FOOTER
============================= */

.footer {
  margin-top: auto;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.93rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

/* =============================
   RESPONSIVE
============================= */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 36px;
  }

  .hero-title {
    font-size: clamp(2rem, 4vw, 3.6rem);
  }

  .hero-media .image-card,
  .image-card {
    max-width: 420px;
  }

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

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 18px;
  }

  .hero-grid,
  .contact-grid,
  .services-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-media {
    justify-content: flex-start;
  }

  .hero-media .image-card,
  .image-card {
    max-width: 620px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 22px));
  }

  .page {
    padding: 34px 0;
  }

  .hero-title {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
    line-height: 0.98;
    max-width: 10ch;
  }

  .lead {
    font-size: 1rem;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  .card,
  .site-modal-card {
    padding: 20px;
  }

  .cart-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cart-item img {
    width: 100%;
    max-width: 220px;
    height: auto;
  }
}
.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.success-card {
  max-width: 720px;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.success-eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 14px;
  opacity: 0.7;
}

.success-card h1 {
  margin: 0 0 16px;
  font-size: 2.2rem;
}

.success-copy {
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.7;
  opacity: 0.85;
}

.success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* PRICING GRID */
#page-pricing .services-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

#page-pricing .services-grid > * {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 900px) {
  #page-pricing .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

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

.payment-status {
  display: none;
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-line;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(6px);
}

.payment-status.info {
  color: #b8b2a8;
}

.payment-status.success {
  color: #4caf50;
}

#contact-form {
  display: grid;
  gap: 14px;
}

.contact-status {
  min-height: 20px;
  font-size: 0.95rem;
  color: #ff6b6b;
}

.contact-status.success {
  color: #4caf50;
}

input {
  padding: 8px;
  min-width: 120px;
}

.payment-status {
  white-space: pre-line;
}

.payment-status {
  margin-top: 16px;
  padding: 14px 16px;
  margin-bottom: 16px; /* 👈 add this */

  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-line;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

/* Error (red) */
.payment-status.error {
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 80, 80, 0.25);
  color: #ff6b6b;
}

/* Success (green) */
.payment-status.success {
  background: rgba(80, 200, 120, 0.08);
  border-color: rgba(80, 200, 120, 0.25);
  color: #4ade80;
}

/* Info (gold / brand tone) */
.payment-status.info {
  background: rgba(214, 179, 106, 0.08);
  border-color: rgba(214, 179, 106, 0.25);
  color: #e6d6ae;
}

.payment-status {
  opacity: 0;
  transform: translateY(6px);
}

.payment-status.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.input-error {
  border: 2px solid #dc2626 !important;
  background-color: #fff5f5;
}

.input-error:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.payment-status .payment-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  vertical-align: middle;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top: 2px solid rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  animation: payment-spin 0.8s linear infinite;
}

@keyframes payment-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#card-container iframe {
  display: block;
}

#square-pay-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

#square-pay-btn.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.status-select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #444;
  color: #fff;
  font-weight: 600;
  min-width: 140px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}

.status-paid {
  background-color: #1d4ed8 !important;
  color: #fff !important;
}

.status-processing {
  background-color: #b45309 !important;
  color: #fff !important;
}

.status-shipped {
  background-color: #7c3aed !important;
  color: #fff !important;
}

.status-completed {
  background-color: #059669 !important;
  color: #fff !important;
}

.status-cancelled {
  background-color: #b91c1c !important;
  color: #fff !important;
}

.status-pending {
  background-color: #4b5563 !important;
  color: #fff !important;
}
