/* Ryan & Joselyn wedding site */
/* Replace colors, text, and photos as desired. */

:root{
  --bg: #f6efe9;
  --paper: #ffffff;
  --ink: #22302e;
  --muted: rgba(34, 48, 46, 0.72);
  --soft: rgba(34, 48, 46, 0.10);
  --shadow: 0 14px 40px rgba(0,0,0,0.10);
  --shadow2: 0 10px 26px rgba(0,0,0,0.08);
  --radius: 18px;
  --radius2: 22px;
  --gold: #c9aa66;
  --gold2: rgba(201,170,102,0.30);
  --max: 1060px;
  --g: 18px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.skip{
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: var(--shadow2);
  z-index: 1000;
}
.skip:focus{ left: 12px; }

.wrap{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246, 239, 233, 0.72);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand .amp{ color: var(--gold); }

.nav{
  display: none;
  gap: 14px;
}
.nav a{
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover{ background: rgba(255,255,255,0.50); color: var(--ink); }
.nav a.active{ background: rgba(255,255,255,0.62); color: var(--ink); }

.lang-switch{
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  padding: 4px;
}
.lang-btn{
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.lang-btn[aria-pressed="true"]{
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.section{
  padding: 64px 0;
}
.section.alt{
  background: rgba(255,255,255,0.32);
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.section-pad{ padding-top: 28px; }

.section-head{
  margin-bottom: 24px;
  text-align: center;
}
.section-head h2{
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: 0.2px;
  font-weight: 600;
}
.section-head .sub{
  margin: 10px auto 0;
  max-width: 54ch;
  color: var(--muted);
}

.paper{
  background: var(--paper);
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.paper::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/paper-texture.png");
  background-size: 900px auto;
  background-repeat: repeat;
  opacity: 0.14;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.card{
  padding: 22px;
}
.card h3{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}
.h2{
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
}

.hero{
  padding: 40px 0 26px;
}
.hero-card{
  --hero-pad: 18px;
  --hero-gap: 18px;
  --hero-leftcol: 150px;
  min-height: 460px;
  display: grid;
  grid-template-columns: var(--hero-leftcol) 1fr;
  gap: var(--hero-gap);
  align-items: stretch;
  padding: var(--hero-pad);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.floral-col{
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid rgba(201,170,102,0.18);
}
.floral-col::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0) 28%, rgba(255,255,255,0) 72%, rgba(255,255,255,0.92));
  pointer-events: none;
  z-index: 1;
}

.floral-col::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.95));
  pointer-events: none;
}
.floral-strip{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}
.hero-lines{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hero-lines::before,
.hero-lines::after{
  content: "";
  position: absolute;
  left: calc(var(--hero-pad) + var(--hero-leftcol) + var(--hero-gap));
  right: var(--hero-pad);
  height: 2px;
  background: linear-gradient(90deg, var(--gold2), var(--gold), var(--gold2));
  opacity: 0.95;
}
.hero-lines::before{ top: calc(var(--hero-pad) + 4px); }
.hero-lines::after{ bottom: calc(var(--hero-pad) + 4px); }

.hero-content{
  padding: 14px 10px 26px;
  position: relative;
  z-index: 2;
}

.kicker{
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: 0.7px;
  font-size: 13px;
  text-transform: uppercase;
}
.title{
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.08;
}

.hero-details{
  display: grid;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 18px;
}
.hero-details .row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: start;
}
.label{
  font-size: 13px;
  color: var(--muted);
  padding-top: 2px;
}
.value{
  font-size: 15px;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(201,170,102,0.18);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.btn:hover{
  background: rgba(201,170,102,0.26);
}
.btn.ghost{
  background: rgba(255,255,255,0.62);
}
.btn.ghost:hover{
  background: rgba(255,255,255,0.85);
}

.countdown{
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.62);
  width: fit-content;
}
.countdown-label{
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-value{
  font-size: 16px;
  font-weight: 600;
}

.grid{
  display: grid;
  gap: var(--g);
}
.grid.two{ grid-template-columns: 1fr; }
.grid.three{ grid-template-columns: 1fr; }

.invite-text p{
  margin: 0 0 10px;
}
.invite-text strong{
  font-weight: 700;
}
.inline{
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.inline:hover{ color: rgba(34,48,46,0.84); }

.map-links{
  margin-top: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}
.map-links .dot{
  opacity: 0.55;
}

.venue-summary{
  margin-top: 14px;
}

.venue-cards{
  margin-top: 16px;
}
.venue-card{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 18px;
}
.venue-card:hover{
  transform: translateY(-1px);
}
.venue-img{
  width: 120px;
  height: 84px;
  object-fit: contain;
  display: block;
}
.venue-title{
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
}
.venue-text{
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px){
  .venue-card{
    grid-template-columns: 1fr;
  }
  .venue-img{
    width: 100%;
    height: 120px;
  }
}

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 10px 0; }

.note{
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(201,170,102,0.10);
  border: 1px solid rgba(201,170,102,0.24);
  position: relative;
  z-index: 2;
}

.timecard{
  text-align: center;
}
.time{
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
}
.event{
  color: var(--muted);
  margin-top: 6px;
}
.subtle{
  padding: 18px 22px;
}
.center{ text-align: center; margin: 0; }

.small{ color: var(--muted); margin: 0; }
.tiny{ color: rgba(34,48,46,0.60); font-size: 12px; margin: 10px 0 0; }

.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.form{
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 2;
}
label span{
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
input, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  outline: none;
  font-size: 14px;
}
input:focus, select:focus{
  border-color: rgba(201,170,102,0.55);
  box-shadow: 0 0 0 4px rgba(201,170,102,0.16);
}
.row2{
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
}

.output{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
}
.output-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.output-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.message{
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: rgba(34,48,46,0.92);
}

.mini-callout{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(201,170,102,0.10);
  border: 1px solid rgba(201,170,102,0.24);
  position: relative;
  z-index: 2;
}
.badge{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(34,48,46,0.78);
  margin-bottom: 6px;
}

.gallery{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
.polaroid{
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 12px 12px 10px;
  box-shadow: var(--shadow2);
  cursor: zoom-in;
  position: relative;
}
.polaroid img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.polaroid figcaption{
  margin-top: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  text-align: center;
  color: rgba(34,48,46,0.86);
}

.tilt1{ transform: rotate(-1.2deg); }
.tilt2{ transform: rotate(1.0deg); }
.tilt3{ transform: rotate(-0.6deg); }
.tilt4{ transform: rotate(0.8deg); }
.tilt5{ transform: rotate(-0.9deg); }

.lightbox{
  border: none;
  padding: 0;
  background: transparent;
}
.lightbox::backdrop{
  background: rgba(0,0,0,0.62);
}
.lightbox img{
  max-width: min(92vw, 980px);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: block;
}
.close{
  position: absolute;
  top: -10px;
  right: -10px;
  width: 56px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.20);
  color: white;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.close:hover{
  background: rgba(255,255,255,0.32);
}

.footer{
  padding: 28px 0 48px;
}
.footer-card{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
}
.floral-mini{
  width: 120px;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(1.02);
  position: relative;
  z-index: 2;
}

.faq{
  display: grid;
  gap: 12px;
}
.faq-item{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.68);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.faq-item summary{
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  font-size: 18px;
  color: rgba(34,48,46,0.60);
}
.faq-item[open] summary::after{ content: "–"; }
.faq-item[open] summary{ background: rgba(201,170,102,0.14); }
.faq-item .answer{
  padding: 0 16px 14px;
  color: var(--muted);
}
.faq-item .answer p{ margin: 10px 0 0; }

/* Venue gallery (Travel page) */
.venue-gallery-wrap{
  padding: 22px;
}
.venue-gallery-head{
  text-align: center;
}
.venue-gallery{
  margin-top: 14px;
}
.photo-card{
  margin: 0;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 12px 12px 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.photo-link{
  display: block;
  cursor: pointer;
}
.photo-card img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.photo-card figcaption{
  margin-top: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  text-align: center;
  color: rgba(34,48,46,0.86);
}
.dot{
  opacity: 0.55;
  padding: 0 6px;
}

/* Language toggling */
[data-lang]{ display: none; }
html[data-language="en"] [data-lang="en"]{ display: revert; }
html[data-language="es"] [data-lang="es"]{ display: revert; }

/* Responsive */
@media (min-width: 840px){
  .nav{ display: flex; }
  .grid.two{ grid-template-columns: 1fr 1fr; }
  .grid.three{ grid-template-columns: 1fr 1fr 1fr; }
  .gallery{
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }
  .polaroid img{ height: 250px; }
}
@media (max-width: 520px){
  .hero-card{
    --hero-leftcol: 0px;
    --hero-gap: 0px;
    --hero-pad: 18px;
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .floral-col{
    height: 180px;
    border-radius: 18px;
  }
  .floral-col::after{ width: 0; }
  .hero-content{
    padding: 16px 6px 28px;
  }
  .hero-details .row{
    grid-template-columns: 70px 1fr;
  }
  .row2{ grid-template-columns: 1fr; }
  .footer-card{ grid-template-columns: 1fr; }
  .floral-mini{ width: 100%; height: 160px; }
}

