/* ==========================================================================
   Yaneth Reyes — Fine Jewelry Inspired by Nature
   Palette: ivory canvas, deep forest green, warm gold
   Type: Cormorant Garamond (display) + Montserrat (body)
   ========================================================================== */

:root {
  --ivory: #FAF6EF;
  --cream: #F1EAE0;
  --forest: #1E3A2C;
  --forest-deep: #152A1F;
  --forest-soft: #2C5240;
  --gold: #C39A3B;
  --gold-soft: #D9BC7A;
  --gold-text: #8A6A1F;
  --ink: #262620;
  --muted: #5C594F;
  --line: #E3DACA;
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 3px;
  --shadow-soft: 0 18px 45px -18px rgba(30, 58, 44, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  /* Fluid base: 16px on phones, easing up to ~17.5px on desktop for easier reading */
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.09rem);
  font-weight: 400;
  line-height: 1.68;
}

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

a { color: var(--gold-text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--forest);
}

p { margin: 0 0 var(--space-2); }

.container {
  width: min(1200px, 90vw);
  margin-inline: auto;
}

.container--narrow { width: min(780px, 90vw); }

/* --------------------------------------------------------------------------
   Utility text
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: var(--space-2);
}

.eyebrow--light { color: var(--gold-soft); }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}

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

.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease),
              border-color 220ms var(--ease), transform 220ms var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--solid {
  background: var(--forest);
  color: var(--ivory);
}

.btn--solid:hover { background: var(--forest-soft); }

.btn--ghost {
  border-color: var(--gold);
  color: var(--gold-text);
  background: transparent;
}

.btn--ghost:hover { background: rgba(195, 154, 59, 0.1); }

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

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

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest-deep);
  border-bottom: 1px solid rgba(217, 188, 122, 0.25);
}

.topbar {
  background: #0E211A;
  border-bottom: 1px solid rgba(217, 188, 122, 0.15);
}

.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.topbar a {
  color: var(--gold-soft);
  text-decoration: none;
  /* Generous vertical padding keeps these at the 44px tap-target minimum on phones */
  padding: 0.72rem 0.2rem;
  transition: color 200ms var(--ease);
}

.topbar a:hover { color: var(--ivory); }

.topbar__sep { color: rgba(217, 188, 122, 0.45); }

@media (max-width: 480px) {
  .topbar__inner { justify-content: center; }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.65rem 0;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__brand img {
  height: 58px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
}

.site-nav a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  padding: 0.5rem 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.site-nav a:hover { color: var(--gold-soft); }

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(217, 188, 122, 0.5);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-soft);
  margin: 4px 0;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--forest-deep);
    border-bottom: 1px solid rgba(217, 188, 122, 0.25);
    padding: 0.5rem 4vw 1.25rem;
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid rgba(250, 246, 239, 0.08);
  }

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

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(195, 154, 59, 0.08), transparent 60%),
    var(--ivory);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
}

.hero h1 {
  /* Smaller floor so the headline doesn't dominate a phone screen */
  font-size: clamp(2.15rem, 5.2vw, 4.2rem);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero__figure {
  position: relative;
  margin: 0;
}

.hero__figure::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  z-index: 0;
}

.hero__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero__caption {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   Ornament divider
   -------------------------------------------------------------------------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  margin: 0 auto var(--space-3);
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: clamp(40px, 8vw, 90px);
  background: linear-gradient(to var(--dir, right), transparent, var(--gold-soft));
}

.ornament::before { --dir: right; }
.ornament::after { --dir: left; }

/* --------------------------------------------------------------------------
   Embedded consultation form (Jotform)
   -------------------------------------------------------------------------- */

.form-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(0.5rem, 2vw, 1.25rem);
  overflow: hidden;
}

.form-frame iframe {
  display: block;
  width: 100%;
  /* The embed handler sets the real height; this is the pre-load reservation
     so the section doesn't jump as the form arrives. */
  min-height: 780px;
  border: none;
}

.form-note {
  margin-top: var(--space-3);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.section--cream { background: var(--cream); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.section__head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.section__head .lede { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Feature cards (home) & gallery (collections)
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.piece {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}

.piece:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.piece__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream);
}

.piece__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.piece:hover .piece__media img { transform: scale(1.045); }

.piece__body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.piece__body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.piece__body p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Gallery variant: clickable buttons for lightbox */

.gallery-grid {
  display: grid;
  /* Larger minimum keeps pieces to 3 roomy columns on desktop rather than 4 cramped ones */
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.gallery-item {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}

.gallery-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.gallery-item figure { margin: 0; }

.gallery-item .gallery-item__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.gallery-item:hover img { transform: scale(1.045); }

.gallery-item figcaption {
  padding: 1rem 1.1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-item figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.15rem;
}

/* --------------------------------------------------------------------------
   Dark quote band
   -------------------------------------------------------------------------- */

.band {
  background:
    radial-gradient(90% 130% at 15% 0%, rgba(195, 154, 59, 0.14), transparent 55%),
    var(--forest-deep);
  color: var(--ivory);
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.band blockquote {
  margin: 0 auto;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ivory);
}

.band cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   Split feature (about teaser, visit blocks)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.split--reverse .split__media { order: 2; }

.split__media {
  margin: 0;
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.split__media::after {
  content: "";
  position: absolute;
  inset: 10% -5% -5% 10%;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  z-index: -1;
}

.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* --------------------------------------------------------------------------
   Visit / contact
   -------------------------------------------------------------------------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.info-card h3 {
  font-size: 1.45rem;
  margin-bottom: var(--space-1);
}

.info-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.info-card .placeholder {
  color: #A0764B;
  font-style: italic;
}

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 8;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

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

.site-footer {
  background: var(--forest-deep);
  color: rgba(250, 246, 239, 0.78);
  padding: clamp(3rem, 7vw, 4.5rem) 0 var(--space-4);
  text-align: center;
}

.site-footer__logo {
  width: min(320px, 70vw);
  margin: 0 auto var(--space-3);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  margin-bottom: var(--space-3);
}

.site-footer nav a {
  color: var(--ivory);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer nav a:hover { color: var(--gold-soft); }

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: var(--space-3);
}

.site-footer__social a {
  color: var(--gold-soft);
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}

.site-footer__social a:hover {
  color: var(--ivory);
  transform: translateY(-2px);
}

.site-footer__social svg { display: block; }

.site-footer__meta {
  font-size: 0.82rem;
  line-height: 1.9;
}

.site-footer__meta a { color: var(--gold-soft); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(21, 42, 31, 0.92);
}

.lightbox.is-open { display: flex; }

.lightbox__inner {
  max-width: min(860px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__inner img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
  margin-top: var(--space-2);
  color: var(--ivory);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  background: transparent;
  border: 1px solid rgba(250, 246, 239, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--ivory);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.lightbox__close:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .piece,
  .gallery-item,
  .piece__media img,
  .gallery-item img {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; text-align: center; }
  .site-header__brand img { height: 46px; }
}
