/* Lily Luxe Floral - base styles */

:root {
  --color-cream: #faf6f1;
  --color-blush: #e8c4c4;
  --color-sage: #8a9a7e;
  --color-charcoal: #2e2a26;
  --color-gold: #b8915f;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--color-gold);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  .site-header {
    flex-wrap: wrap;
  }
}

/* Hero */

.hero {
  position: relative;
  text-align: center;
  padding: 6rem 1.5rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 42, 38, 0.3), rgba(46, 42, 38, 0.55));
  z-index: -1;
}

.hero.has-photo h1,
.hero.has-photo p.subtitle {
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.hero p.subtitle {
  font-size: 1.1rem;
  color: var(--color-sage);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero:not(.has-photo) {
  min-height: auto;
  padding: 5rem 1.5rem 4rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--color-charcoal);
  color: var(--color-cream);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--color-gold);
}

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

.btn-outline:hover {
  background: var(--color-charcoal);
  color: var(--color-cream);
}

/* Sections */

.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background: #f1e9e0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* Grid */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Cards */

.card {
  background: #fff;
  padding: 2rem;
  text-align: center;
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: -2rem -2rem 1.5rem;
  width: calc(100% + 4rem);
  max-width: calc(100% + 4rem);
}

/* Gallery */

.feature-banner {
  position: relative;
  height: 50vh;
  min-height: 320px;
  max-height: 560px;
  overflow: hidden;
}

.feature-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.masonry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.masonry-grid img {
  flex-grow: 1;
  height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 600px) {
  .masonry-grid img {
    height: 200px;
  }
}

.masonry-grid img:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 28px rgba(46, 42, 38, 0.18);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.6rem 1rem;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-gold);
}

@media (max-width: 600px) {
  .lightbox {
    padding: 1rem;
  }
  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5rem;
    padding: 0.4rem 0.6rem;
  }
}

/* Testimonial */

.testimonial {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sage);
}

/* Form */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 1.6fr 1fr;
  }
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d9d2c3;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-sage);
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status[data-state="success"] {
  color: var(--color-sage);
}

.form-status[data-state="error"] {
  color: #a3433a;
}

/* Contact info sidebar */

.contact-info h3 {
  font-size: 1rem;
  margin-top: 2rem;
}

.contact-info h3:first-of-type {
  margin-top: 0;
}

.contact-info a {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-charcoal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.social-link:hover {
  background: var(--color-gold);
}

/* Collection cards */

.collection-intro {
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: center;
}

.collection-order-info {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(46, 42, 38, 0.75);
}

.collection-order-info a {
  color: var(--color-gold);
  text-decoration: underline;
}

.collection-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.collection-card {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.collection-card:hover img {
  transform: scale(1.06);
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.5rem;
  text-align: left;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0) 45%, rgba(20, 18, 16, 0.8) 100%);
}

.collection-card-overlay h3 {
  color: #fff;
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.collection-card-overlay span {
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* Collection pricing dialog */

.collection-dialog {
  border: none;
  padding: 0;
  max-width: 760px;
  width: calc(100% - 2.5rem);
  max-height: 88vh;
  overflow: hidden;
  background: #fff;
}

.collection-dialog::backdrop {
  background: rgba(20, 18, 16, 0.85);
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-height: 88vh;
  overflow-y: auto;
}

@media (min-width: 700px) {
  .dialog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dialog-images {
  display: grid;
  gap: 2px;
}

.dialog-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dialog-body {
  position: relative;
  padding: 2rem;
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-charcoal);
}

.dialog-close:hover {
  color: var(--color-gold);
}

.price-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  font-size: 0.92rem;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee2d6;
}

.price-list li span:last-child {
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.85rem;
  color: rgba(46, 42, 38, 0.7);
}

.site-footer a {
  text-decoration: underline;
}
