:root {
  --bg: #f5f3ee;
  --panel: #ffffff;
  --panel-soft: #f0eadf;
  --text: #1e1b18;
  --muted: #615b55;
  --border: rgba(30, 27, 24, 0.1);
  --brand: #1e6f73;
  --brand-strong: #124f52;
  --sand: #e9d7b2;
  --coral: #d7775b;
  --teal: #7bb7b3;
  --gold: #e0b65d;
  --shadow: 0 18px 45px rgba(18, 79, 82, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f6f2eb 0%, #f2efe9 100%);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.checkout-result {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 1.2rem 1.4rem;
  border: 2px solid var(--brand);
  border-radius: 12px;
  background: var(--brand-strong);
  color: white;
  text-align: center;
  white-space: pre-line;
  line-height: 1.7;
  font-weight: 700;
}

.site-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f3b40, #1f7175);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.church-subtitle {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow,
.kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--brand-strong);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  margin-bottom: 0;
}

.top-nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--brand-strong);
}

.cart-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  font-size: 0.75rem;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
  max-width: 560px;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.primary-btn,
.secondary-btn,
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.primary-btn {
  background: var(--brand-strong);
  color: white;
  box-shadow: var(--shadow);
}

.secondary-btn {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.primary-btn:hover,
.secondary-btn:hover,
.filter:hover {
  transform: translateY(-1px);
}

.hero-panel {
  background: linear-gradient(135deg, rgba(30, 111, 115, 0.12), rgba(224, 182, 93, 0.18));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.stat-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--muted);
}

.stat-card strong {
  font-size: 1.5rem;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 0.85rem;
}

.mini-card {
  min-height: 110px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255,255,255,0.3);
}

.mini-card.coral { background: linear-gradient(135deg, #d7775b, #b65a44); }
.mini-card.teal { background: linear-gradient(135deg, #7bb7b3, #3f8a8d); }
.mini-card.gold { background: linear-gradient(135deg, #e0b65d, #bc8441); }

.gallery-section {
  padding: 1rem 0 4rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter {
  border-color: var(--border);
  background: rgba(255,255,255,0.6);
  color: var(--muted);
  cursor: pointer;
}

.filter.active {
  background: var(--brand-strong);
  color: white;
  border-color: var(--brand-strong);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.photo-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(18, 79, 82, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(18, 79, 82, 0.12);
}

.photo-visual {
  min-height: 230px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.photo-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  background: #e7e0d8;
}

.photo-info {
  padding: 1rem 1rem 1.1rem;
}

.photo-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.photo-info h4 {
  margin: 0 0 0.35rem;
  font-size: 1.22rem;
}

.photo-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--brand-strong);
  font-weight: 700;
}

.shop-section {
  padding: 0 0 4rem;
}

.shop-intro {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.shop-card-image {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 3.2rem;
}

.shop-card-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.shop-card-body .eyebrow {
  margin-bottom: 0.3rem;
}

.shop-card h4 {
  min-height: 3.6em;
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.botanical-name {
  color: var(--muted);
  font-size: 0.9em;
  font-style: italic;
  font-weight: 500;
}

.shop-location {
  min-height: 2.8em;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.shop-note {
  min-height: 8.4em;
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.shop-card label,
.checkout-dialog label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
  color: var(--text);
  background: white;
}

.shop-card .primary-btn {
  width: 100%;
  margin-top: auto;
  cursor: pointer;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(30, 27, 24, 0.35);
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 30;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--panel);
  box-shadow: -18px 0 45px rgba(30, 27, 24, 0.16);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header,
.cart-summary > div,
.cart-item,
.cart-item-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cart-header h3 {
  margin: 0;
}

.icon-button {
  align-self: flex-start;
  font-size: 1.7rem;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 1.5rem 0;
}

.cart-item {
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item div:first-child,
.cart-item span {
  display: grid;
  gap: 0.25rem;
}

.cart-item span,
.empty-cart,
.cart-summary p,
.checkout-note,
.checkout-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.frame-options {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.frame-option {
  display: grid;
  grid-template-columns: auto 54px 1fr;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.frame-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(30, 111, 115, 0.08);
}

.frame-option input {
  width: auto;
}

.frame-swatch {
  width: 54px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background-position: center top;
  background-size: 100% auto;
  box-shadow: none;
}

.frame-option strong,
.frame-option small {
  display: block;
}

.frame-option small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 400;
}

.cart-item-actions button {
  border: 0;
  background: transparent;
  color: var(--coral);
  cursor: pointer;
  font-size: 1.4rem;
}

.cart-summary {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.cart-summary p {
  line-height: 1.5;
}

.checkout-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkout-dialog {
  width: min(500px, calc(100% - 2rem));
  border: 0;
  border-radius: 20px;
  padding: 1.5rem;
  color: var(--text);
  box-shadow: var(--shadow);
}

.checkout-dialog::backdrop {
  background: rgba(30, 27, 24, 0.45);
}

.checkout-dialog form {
  display: grid;
}

.checkout-dialog h3 {
  margin: 0 0 0.5rem;
}

.dialog-close {
  margin-left: auto;
}

.checkout-status {
  min-height: 1.3rem;
  margin: 0.8rem 0 0;
}

.about-section {
  padding: 0 0 4rem;
}

.about-box {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem 1.4rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: center;
}

.about-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  padding: 0 0 2.25rem;
  color: var(--muted);
}

.site-footer .container {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

@media (max-width: 760px) {
  .header-inner,
  .section-heading,
  .about-box,
  .hero-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner,
  .section-heading {
    display: flex;
  }

  .hero {
    padding-top: 3rem;
  }

  .top-nav {
    gap: 0.7rem;
    font-size: 0.95rem;
  }

  .cart-button {
    padding: 0;
  }

  .about-box {
    display: block;
  }
}
