/* ============================================
   DERE HOUSE — Wedding & Event Photography
   Moody dark-editorial stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Jost:wght@300;400;500&display=swap');

:root {
  /* Dark editorial base */
  --bg: #0c0c0c;          /* page background — near-black charcoal */
  --bg-raised: #161616;    /* slightly lighter panels (cards, footer variation) */
  --text: #f1efe9;         /* warm off-white body text */
  --text-dim: #a9a6a0;     /* muted warm grey — labels, captions */
  --line: rgba(241, 239, 233, 0.14); /* hairline borders/dividers on dark bg */
  --line-strong: rgba(241, 239, 233, 0.28);

  /* Bright accent — the "pop" surface (CTAs, featured card) */
  --accent: #f3ede0;       /* warm ivory */
  --accent-text: #14120f;  /* near-black text for use on accent surfaces */
  --accent-dim: #8a8578;

  /* Legacy pure values, used sparingly for punch (hero title etc.) */
  --black: #0c0c0c;
  --white: #ffffff;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.01em;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
}

.logo span {
  font-weight: 300;
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  gap: 42px;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  flex-shrink: 0;
  z-index: 110;
}

.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  color: var(--white);
  position: relative;
  padding: 40px 24px;
}

.hero .eyebrow {
  color: var(--line-strong);
  color: #d8d5cc;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  max-width: 900px;
  color: var(--white);
}

.hero p.sub {
  margin-top: 26px;
  max-width: 520px;
  font-size: 1rem;
  color: #d8d5cc;
  font-weight: 300;
}

.hero-cta {
  margin-top: 42px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 38px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 0.25s ease, color 0.25s ease;
}

/* For use on dark surfaces */
.btn-light {
  color: var(--text);
  border-color: var(--text);
}
.btn-light:hover {
  background: var(--text);
  color: var(--bg);
}

/* For use on the bright ivory accent surfaces */
.btn-dark {
  color: var(--accent-text);
  border-color: var(--accent-text);
}
.btn-dark:hover {
  background: var(--accent-text);
  color: var(--accent);
}

/* ---------- Sections ---------- */
section {
  padding: 110px 0;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-heading .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--line-strong);
  margin: 26px auto 0;
}

/* ---------- Bright accent CTA panel ---------- */
.cta-panel {
  background: var(--accent);
  color: var(--accent-text);
  text-align: center;
}

.cta-panel .eyebrow {
  color: var(--accent-dim);
}

.cta-panel h2 {
  color: var(--accent-text);
}

/* ---------- Intro / About preview on home ---------- */
.intro-row {
  max-width: 720px;
  margin: 0 auto;
}

.intro-photo {
  margin-top: 36px;
}

.intro-photo .frame,
.intro-photo img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4/5;
}

.intro-row h3 {
  font-size: 1.9rem;
  margin-bottom: 22px;
  color: var(--text);
}

.intro-row p {
  color: var(--text-dim);
  margin-bottom: 26px;
}

/* ---------- Category tiles (home portfolio teaser) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  background: var(--bg);
}

.category-tile {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  color: var(--white);
}

.category-tile .frame {
  position: absolute;
  inset: 0;
}

.category-tile .tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0) 55%);
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- Placeholder frames (swap for real <img>/<video>) ---------- */
.frame {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    135deg,
    #1c1c1c,
    #1c1c1c 12px,
    #262626 12px,
    #262626 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

.frame.light {
  background: repeating-linear-gradient(
    135deg,
    #2a2a2a,
    #2a2a2a 12px,
    #333333 12px,
    #333333 24px
  );
  color: #ccc;
}

/* ---------- Portfolio filter ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.filter-btn {
  padding: 10px 26px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.gallery-grid {
  column-count: 3;
  column-gap: 26px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 26px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item .frame {
  transition: transform 0.5s ease;
}

.gallery-item:hover .frame {
  transform: scale(1.03);
}

.gallery-section {
  margin-bottom: 20px;
}

.gallery-section h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text);
}

.gallery-section .cat-count {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 32px;
  display: block;
}

/* ---------- Services / Packages ---------- */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.package {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
}

.package.featured {
  background: var(--accent);
  color: var(--accent-text);
}

.package .pkg-hours {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--text);
}

.package.featured .pkg-hours {
  color: var(--accent-text);
}

.package .pkg-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 10px 0 30px;
}

.package.featured .pkg-label {
  color: var(--accent-dim);
}

.package .pkg-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.package ul {
  list-style: none;
  margin: 0 0 10px;
}

.package li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.package.featured li {
  border-top: 1px solid rgba(20,18,15,0.15);
}

.package li:last-child {
  border-bottom: 1px solid var(--line);
}

.package.featured li:last-child {
  border-bottom: 1px solid rgba(20,18,15,0.15);
}

.pkg-includes-line {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 18px 0 26px;
  line-height: 1.55;
}

.package.featured .pkg-includes-line {
  color: var(--accent-dim);
}


/* ---------- About page ---------- */
.about-hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 70px;
  align-items: center;
}

.about-photo {
  display: flex;
  justify-content: flex-end;
}

.about-photo .frame,
.about-photo img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy p {
  margin-bottom: 20px;
  color: var(--text-dim);
}

.about-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 30px;
  color: var(--text);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.about-stats div {
  padding: 46px 20px;
  border-right: 1px solid var(--line-strong);
}

.about-stats div:last-child {
  border-right: none;
}

.about-stats .stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  display: block;
  color: var(--text);
}

.about-stats .stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
  display: block;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-details h3 {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-details .item {
  margin-bottom: 34px;
}

.contact-details a {
  font-size: 1.1rem;
  border-bottom: 1px solid transparent;
}

.contact-details a:hover {
  border-color: var(--accent);
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 4px;
  margin-bottom: 26px;
  font-family: var(--sans);
  font-size: 1rem;
  background: transparent;
  color: var(--text);
}

form.contact-form input::placeholder,
form.contact-form textarea::placeholder {
  color: var(--text-dim);
}

form.contact-form label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

form.contact-form button {
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #080808;
  color: var(--text-dim);
  padding: 70px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 34px;
  list-style: none;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: #6f6c66;
  letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-wrap { padding: 16px 24px; }

  .nav-toggle { display: flex; }

  /* Mobile nav dropdown */
  .nav-wrap { position: relative; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 28px 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    z-index: 105;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }

  body.nav-open {
    overflow: hidden;
  }

  .container { padding: 0 24px; }

  .about-hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    justify-content: center;
    margin-top: 40px;
  }

  .about-photo .frame,
  .about-photo img {
    max-width: 320px;
  }

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

  .gallery-grid {
    column-count: 2;
  }

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

  .package { padding: 40px 28px; }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-stats div {
    border-right: none;
    border-bottom: 1px solid var(--line-strong);
  }

  .about-stats div:last-child { border-bottom: none; }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .footer-row {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 18px 26px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }

  section { padding: 64px 0; }

  .logo {
    font-size: 1.25rem;
    letter-spacing: 0.16em;
  }

  .hero { padding: 32px 20px; }

  .btn {
    padding: 14px 26px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .gallery-grid { column-count: 1; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }

  .about-copy h1,
  .section-heading h2 {
    font-size: 1.7rem;
  }

  .package { padding: 36px 22px; }

  .pkg-includes-line,
  .about-copy p,
  .intro-row p {
    font-size: 0.88rem;
  }
}
