/* ===== VARIABLES ===== */
:root {
  --crimson:      #8B1A1A;
  --crimson-dark: #5E1010;
  --crimson-mist: rgba(139, 26, 26, 0.08);
  --cream:        #FAF7F3;
  --blush:        #F5EDE8;
  --white:        #FFFFFF;
  --charcoal:     #2C2523;
  --gray:         #6E6460;
  --border:       #E2D4CC;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --max-width: 1100px;
  --section-v: 5rem;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
figure { margin: 0; }

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ===== SHARED TYPOGRAPHY ===== */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--crimson);
  text-align: center;
  letter-spacing: 0.01em;
}

.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--crimson);
  margin: 0.6rem auto 0;
  opacity: 0.6;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

/* ===== HERO ===== */
.hero {
  background-color: var(--cream);
  padding: clamp(4rem, 10vw, 7rem) 1.5rem clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* subtle dot-grid watermark */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__logo {
  width: min(420px, 72vw);
  margin-inline: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 4px 18px rgba(139, 26, 26, 0.12));
}

.hero__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ===== ABOUT ===== */
.about {
  padding: var(--section-v) 1.5rem;
  background: var(--white);
}

.about .section-title {
  margin-bottom: 1.75rem;
}

.about__body {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}

.about__body p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.about__body p:last-child {
  margin-bottom: 0;
}

/* ===== GALLERY ===== */
.gallery {
  padding: var(--section-v) 1.5rem;
  background: var(--blush);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--border);
  /* subtle hatched placeholder when image is missing */
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(139, 26, 26, 0.04) 12px,
    rgba(139, 26, 26, 0.04) 13px
  );
}

.gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 26, 26, 0);
  transition: background 0.3s ease;
}

.gallery__link:hover .gallery__img    { transform: scale(1.05); }
.gallery__link:hover .gallery__overlay { background: rgba(139, 26, 26, 0.15); }

/* ===== LIGHTBOX (CSS-only via :target) ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
}

.lightbox:target {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 6, 0.9);
  cursor: zoom-out;
}

.lightbox__box {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 820px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.lightbox__box img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.55);
}

.lightbox__close {
  color: rgba(255, 255, 255, 0.75);
  font-size: 2rem;
  line-height: 1;
  padding: 0 0 0.5rem 0.5rem;
  transition: color 0.2s;
  cursor: pointer;
}

.lightbox__close:hover {
  color: var(--white);
}

/* ===== CONTACT ===== */
.contact {
  padding: var(--section-v) 1.5rem;
  background: var(--white);
}

.contact__inner {
  text-align: center;
}

.contact__list {
  display: inline-flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
  align-items: flex-start;
  text-align: left;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1rem;
}

.contact__icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: var(--crimson);
}

.contact__link {
  color: var(--charcoal);
  font-weight: 400;
  transition: color 0.2s;
}

.contact__link:hover {
  color: var(--crimson);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--crimson-dark);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.92);
}

.footer__tagline {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.footer__copy {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 580px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
