/* =========================================================
   Signed Sealed Delivered — Handmade Wedding Stationery
   ========================================================= */

:root {
  --ivory: #faf8f4;
  --cream: #f3efe8;
  --charcoal: #2b2926;
  --ink: #46423d;
  --taupe: #8a8177;
  --gold: #b99668;
  --gold-dark: #a2814f;
  --blush: #d9b8b4;
  --white: #ffffff;
  --font-body: 'Raleway', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
  --font-script: 'Tangerine', cursive;
  --header-h: 92px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-dark); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--charcoal); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

.section { padding: 110px 0; }

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: .04em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 28px;
  position: relative;
}

.kicker {
  font-family: var(--font-script);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 4px;
}

.dot {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--blush);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: super;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 16px 42px;
  border-radius: 40px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
}

.btn-light {
  color: var(--white);
  border-color: rgba(255,255,255,.85);
  background: transparent;
}
.btn-light:hover { background: var(--white); color: var(--charcoal); }

.btn-dark {
  color: var(--white);
  background: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-dark:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 58px; width: auto; transition: height .3s ease; }
.logo .logo-dark { display: none; }

#site-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

#site-nav a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
}
#site-nav a:hover { color: var(--gold); }

.nav-social a { display: inline-flex; align-items: center; }

#site-header.scrolled {
  background: rgba(250, 248, 244, .97);
  box-shadow: 0 1px 24px rgba(43, 41, 38, .09);
}
#site-header.scrolled .logo img { height: 48px; }
#site-header.scrolled .logo-light { display: none; }
#site-header.scrolled .logo-dark { display: block; }
#site-header.scrolled #site-nav a { color: var(--charcoal); }
#site-header.scrolled #site-nav a:hover { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: all .3s ease;
}
#site-header.scrolled .nav-toggle span,
#site-header.nav-open .nav-toggle span { background: var(--charcoal); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,.42) 0%, rgba(20,18,16,.28) 55%, rgba(20,18,16,.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  color: var(--white);
  opacity: .95;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--white);
  margin: 10px 0 6px;
}

.hero-sub {
  font-size: .95rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 42px;
}

.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.hero-dots button,
.quote-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.9);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s ease;
}
.hero-dots button.is-active,
.quote-dots button.is-active { background: var(--white); }

/* ---------- Our Story ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.story-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 14px 36px rgba(43,41,38,.14);
}
.story-photos img:nth-child(2) { transform: translateY(26px); }
.story-photos img:nth-child(3) { transform: translateY(-10px); }
.story-photos img:nth-child(4) { transform: translateY(16px); }

.story-text p { margin-bottom: 18px; }
.signoff { margin-top: 26px; font-size: 1.05rem; color: var(--charcoal); }

/* ---------- Portfolio ---------- */
.portfolio-intro { padding-bottom: 40px; }
.portfolio-intro p { margin-bottom: 14px; }

.portfolio { padding-top: 40px; background: var(--cream); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
  padding-top: 40px;
}

.design {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
}

.design-img {
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(43,41,38,.12);
}
.design-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .6s ease;
}
.design:hover .design-img img { transform: scale(1.05); }

.design h3 {
  font-family: var(--font-script);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.design p { font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.testimonials-overlay {
  background: rgba(24, 22, 20, .55);
  padding: 150px 0;
}

.quote-slider { position: relative; min-height: 220px; }

.quote-slider blockquote {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  color: var(--white);
}
.quote-slider blockquote.is-active { opacity: 1; visibility: visible; position: relative; }

.quote-slider p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 26px;
}

.quote-slider footer {
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blush);
}

.quote-dots { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- Consultation ---------- */
.consultation { background: var(--ivory); }
.consult-text p { margin-bottom: 18px; }

.consult-form form {
  background: var(--white);
  padding: 44px;
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(43,41,38,.1);
}

.form-row { margin-bottom: 16px; }
.form-row.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid #e5dfd5;
  border-radius: 3px;
  padding: 14px 16px;
  transition: border-color .25s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; }

.consult-form .btn { width: 100%; }

/* ---------- Contact ---------- */
.contact-banner {
  height: 420px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.contact-banner-overlay {
  position: absolute; inset: 0;
  background: rgba(24,22,20,.15);
}

.contact { background: var(--white); }
.contact .two-col { align-items: start; }

.contact-details p { margin-bottom: 12px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--taupe);
}
.contact-line svg { color: var(--gold); flex-shrink: 0; }

.contact-social {
  display: flex;
  gap: 18px;
  margin-top: 28px;
}
.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid #e5dfd5;
  border-radius: 50%;
  color: var(--charcoal);
  transition: all .3s ease;
}
.contact-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.contact-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(43,41,38,.12);
  filter: saturate(.85);
}

/* ---------- Footer ---------- */
#site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.75);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo { height: 44px; width: auto; }

#site-footer p { font-size: .82rem; letter-spacing: .06em; }

.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: var(--white);
  transition: all .3s ease;
}
.back-top:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Keep offset transforms on story photos once revealed */
.story-photos.reveal.is-visible { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .section { padding: 80px 0; }

  .two-col { grid-template-columns: 1fr; gap: 56px; }

  .portfolio-grid { grid-template-columns: 1fr; gap: 48px; }

  .nav-toggle { display: block; }

  #site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(250,248,244,.98);
    box-shadow: 0 20px 30px rgba(43,41,38,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }
  #site-header.nav-open #site-nav { max-height: 420px; }

  #site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 18px 0;
  }
  #site-nav li { width: 100%; text-align: center; }
  #site-nav a {
    display: block;
    padding: 14px 0;
    color: var(--charcoal) !important;
  }
  .nav-social { display: inline-block; width: auto !important; padding: 0 10px; }

  #site-header.nav-open { background: rgba(250,248,244,.98); }
  #site-header.nav-open .logo-light { display: none; }
  #site-header.nav-open .logo-dark { display: block; }

  .testimonials, .contact-banner { background-attachment: scroll; }
}

@media (max-width: 600px) {
  :root { --header-h: 76px; }

  .logo img { height: 44px; }

  .design { grid-template-columns: 1fr; }
  .design-img img { aspect-ratio: 4 / 3; }

  .form-row.split { grid-template-columns: 1fr; }

  .consult-form form { padding: 28px; }

  .story-photos img:nth-child(n) { transform: none; }

  .footer-inner { flex-direction: column; text-align: center; }

  .contact-banner { height: 260px; }
}
