/* ============================================
   MATILDE — A Floral & Select Decor Destination
   Navy · White · Gold
   ============================================ */

:root {
  --navy: #1c2340;
  --navy-deep: #141a30;
  --gold: #b3945a;
  --gold-soft: #cfb887;
  --white: #ffffff;
  --ivory: #faf8f4;
  --ink: #22283f;
  --serif: 'EB Garamond', Georgia, serif;
  --display: 'Marcellus', 'Times New Roman', serif;
  --romance: 'Fraunces', 'EB Garamond', Georgia, serif;
  --script: 'Monsieur La Doulaise', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Top bar ---------- */

.topbar {
  background: var(--white);
  color: var(--gold);
  border-bottom: 1px solid rgba(28, 35, 64, 0.08);
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem 4vw;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw 1rem 2vw;
  background: var(--white);
  border-bottom: 1px solid rgba(28, 35, 64, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(179, 148, 90, 0.5);
}

.logo {
  font-family: var(--script);
  font-size: 3rem;
  line-height: 1;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px;
  margin-left: auto;
  cursor: pointer;
  position: relative;
  z-index: 300;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

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

/* Desktop: nav lives in the header bar */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.main-nav a {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

/* Dropdown (desktop hover panel) */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(28, 35, 64, 0.1);
  box-shadow: 0 14px 34px rgba(20, 26, 48, 0.12);
  list-style: none;
  min-width: 172px;
  padding: 0.15rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.dropdown li { display: block; width: 100%; }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.16rem 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  line-height: 1.2;
  border-bottom: none;
  white-space: nowrap;
}

.dropdown li a:hover {
  background: var(--ivory);
  color: var(--gold);
}

/* Mobile: hamburger + right-side drawer */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(380px, 86vw);
    background: var(--white);
    border-left: 1px solid rgba(179, 148, 90, 0.4);
    padding: 7rem 3rem 3rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 200;
    overflow-y: auto;
  }

  body.nav-open { overflow: hidden; }

  body.nav-open .main-nav {
    transform: translateX(0);
    box-shadow: -18px 0 44px rgba(20, 26, 48, 0.35);
  }

  /* Scrim sits BELOW the header (z-index 100) so the drawer and X button
     inside the header stay bright and tappable */
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(20, 26, 48, 0.45);
    z-index: 90;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .main-nav a { color: var(--navy); font-size: 1rem; letter-spacing: 0.16em; }
  .main-nav a:hover, .main-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 0.8rem 0 0 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .dropdown li a { padding: 0; font-size: 0.85rem; color: var(--gold); }
  .dropdown li a:hover { background: none; color: var(--navy); }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ivory);
  color: var(--ink);
  text-align: center;
  border-bottom: 1px solid rgba(179, 148, 90, 0.4);
  padding: 8rem 6vw 8.5rem;
}

.hero .eyebrow,
.eyebrow {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: var(--romance);
  font-style: italic;
  font-size: clamp(1.9rem, 5.4vw, 4.6rem);
  font-weight: 430;
  font-optical-sizing: auto;
  letter-spacing: 0.015em;
  text-transform: none;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--navy);
  margin: 0 auto 2rem;
}

/* Home hero title is long — scale with viewport so it never wraps */
.hero:not(.hero--interior) h1 { font-size: min(5.5vw, 4.6rem); }

.hero p {
  max-width: 58ch;
  margin: 0 auto 2.75rem;
  text-align: left;
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(34, 40, 63, 0.85);
}

/* Interior page hero (shorter) */
.hero--interior { padding: 5.5rem 6vw 6rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 2.75rem;
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

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

.btn--solid { background: var(--gold); color: var(--navy); }
.btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn--navy { border-color: var(--navy); color: var(--navy); }
.btn--navy:hover { background: var(--navy); color: var(--white); }

/* ---------- Sections ---------- */

section { padding: 5.5rem 6vw; }

.section-title {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1rem;
}

.rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 0 auto 3rem;
}

.lede {
  max-width: 62ch;
  margin: 0 auto;
  text-align: left;
  font-size: 1.25rem;
}

.section--ivory {
  background: var(--ivory);
  border-top: 1px solid rgba(179, 148, 90, 0.4);
  border-bottom: 1px solid rgba(179, 148, 90, 0.4);
}

/* ---------- Offerings grid (home) ---------- */

.offerings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1180px;
  margin: 3.5rem auto 0;
}

.offering-card {
  background: var(--white);
  border: 1px solid rgba(28, 35, 64, 0.1);
  border-top: 2px solid var(--gold);
  text-align: center;
  padding-bottom: 2.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.offering-card:hover {
  box-shadow: 0 18px 44px rgba(20, 26, 48, 0.12);
  transform: translateY(-4px);
}

.offering-card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.offering-card p {
  padding: 0 2rem;
  margin-bottom: 1.75rem;
  font-size: 1.08rem;
  text-align: left;
}

.offering-card .card-link {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

/* Imagery — gold-matted frames; placeholders until photography is added */
.img-frame {
  aspect-ratio: 4 / 3;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Applied when a real photo is inside: white mat + gold frame */
.img-frame--photo {
  background: var(--white);
  border: 1px solid var(--gold);
  padding: 10px;
}

.img-frame--tall { aspect-ratio: 3 / 4; }

.img-frame svg { width: 46%; height: auto; opacity: 0.9; }

/* ---------- Two-column feature ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.feature h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.feature p { margin-bottom: 1.25rem; }

.feature .rule { margin: 0 0 2rem; }

/* ---------- Detail list ---------- */

.details {
  max-width: 820px;
  margin: 3rem auto 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(28, 35, 64, 0.12);
}

.detail-row:last-child { border-bottom: 1px solid rgba(28, 35, 64, 0.12); }

.detail-row h4 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Quote band ---------- */

.quote-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 5rem 6vw;
}

.quote-band blockquote {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 300;
  font-style: italic;
  max-width: 30ch;
  margin: 0 auto;
  line-height: 1.5;
}

.quote-band cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  background: var(--ivory);
}

.cta-band p {
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.cta-band p.text-left { text-align: left; max-width: 62ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 6vw 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto 3.5rem;
}

.footer-brand .footer-logo {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.footer-grid h4 {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-soft);
  margin-bottom: 1.5rem;
}

.footer-grid a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 0.6rem;
  transition: color 0.25s, border-color 0.25s;
}

.footer-grid a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.footer-grid p { color: rgba(255, 255, 255, 0.85); }

.hours-note { font-style: italic; }

.instagram-link svg {
  width: 34px;
  height: 34px;
  stroke: var(--white);
  transition: stroke 0.25s;
}

.instagram-link { border-bottom: none !important; }
.instagram-link:hover svg { stroke: var(--gold-soft); }

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Gallery ---------- */

.gallery-grid {
  columns: 3;
  column-gap: 1.75rem;
  max-width: 1180px;
  margin: 3rem auto 0;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.75rem;
}

.gallery-item .img-frame { aspect-ratio: auto; }
.gallery-item .frame-3-4 { aspect-ratio: 3 / 4; }
.gallery-item .frame-1-1 { aspect-ratio: 1 / 1; }
.gallery-item .frame-4-5 { aspect-ratio: 4 / 5; }

.gallery-item figcaption {
  font-family: var(--display);
  margin-top: 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

@media (max-width: 960px) { .gallery-grid { columns: 2; } }
@media (max-width: 600px) { .gallery-grid { columns: 1; } }

/* ---------- Contact form ---------- */

.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.form-note {
  background: var(--ivory);
  border-left: 2px solid var(--gold);
  padding: 1.1rem 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
}

.contact-form { margin-top: 1rem; }

.form-row { margin-bottom: 1.75rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.contact-form label {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.req { color: var(--gold); }

.field-help {
  font-size: 1rem;
  font-style: italic;
  color: rgba(34, 40, 63, 0.7);
  margin: -0.1rem 0 0.6rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(28, 35, 64, 0.28);
  border-radius: 0;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b3945a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(179, 148, 90, 0.18);
}

.form-row.hidden { display: none; }

/* Honeypot — hide from humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

.form-submit { text-align: center; margin-top: 2.5rem; }

.form-banner {
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  text-align: center;
  font-size: 1.15rem;
  border: 1px solid;
}

.form-banner--success {
  border-color: var(--gold);
  background: var(--ivory);
  color: var(--navy);
}

.form-banner--error {
  border-color: #a33c3c;
  background: #faf1f1;
  color: #7c2d2d;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  section { padding: 3.5rem 6vw; }
  .hero { padding: 4.5rem 6vw 5rem; }
  .hero--interior { padding: 3.75rem 6vw 4.25rem; }
  .topbar { font-size: 0.68rem; letter-spacing: 0.18em; }
  .logo img { height: 84px; }
  .quote-band { padding: 3.5rem 6vw; }
  .site-footer { padding: 3.5rem 6vw 2.5rem; }
  .offerings { gap: 1.75rem; }
  .gallery-grid { column-gap: 1.25rem; }
  .details { margin-top: 2rem; }
}

@media (max-width: 860px) {
  .logo img { height: 96px; }
  .feature { grid-template-columns: 1fr; gap: 2.5rem; }
  .detail-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero { padding: 5rem 6vw; }
}

/* ---------- Logo image & natural gallery masonry ---------- */

.logo img { height: 123px; width: auto; display: block; }

.gallery-item .img-frame { display: block; }
.gallery-item .img-frame img { height: auto; }

/* ---------- Instagram embed (home) ---------- */

.insta-section { text-align: center; }

.insta-handle {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.insta-embed {
  max-width: 540px;
  margin: 2.5rem auto;
  border: 1px solid var(--gold);
  background: var(--white);
  padding: 10px;
}

.insta-embed iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
}

@media (max-width: 640px) {
  .insta-embed iframe { height: 520px; }
}
