:root{
  /* Rustic Clay palette (beige/brown) */
  --bg:#F4EEE6;
  --card:#ffffff;
  --card-beige:#F0DFD0;
  --section-beige:#E8D2BF;
  --section-dark:#DECBB8;
  --accent:#9A5B3F;
  --accent-soft:rgba(154,91,63,0.35);
  --muted:#705A4B;
  --text:#3B271F;
}

/* Load 'The Seasons' from local fonts/ directory (single file provided). */
@font-face {
  font-family: 'The Seasons';
  src: url('fonts/theseasons.ttf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Emitha';
  src: url('fonts/emitha.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-color: var(--bg); /* flat neutral background to avoid colored gradient */
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Skip link for accessibility */
.skip-link{
  position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;
}

.skip-link:focus{position:static;width:auto;height:auto;padding:.5rem 1rem;background:#111;color:#fff;border-radius:6px;z-index:9999}

/* Make header fixed so it stays visible during scrolling */
.top-nav{position:fixed;left:0;top:0;width:100%;background:rgba(255,255,255,0.95);backdrop-filter:saturate(140%) blur(6px);border-bottom:1px solid rgba(15,23,42,0.04);z-index:999}
/* header height controls spacing so logo isn't clipped by browser UI or hero */
:root{--header-height:96px}
.top-nav{height:var(--header-height)}
.nav-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:center;padding:0 1rem;height:100%;gap:1.25rem;position:relative}

.hero{position:relative;width:100%;height:70vh;min-height:420px;display:block;overflow:hidden}
.hero-img{width:100%;height:100%;object-fit:cover;display:block}
.hero-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:1.25rem;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,0.18),rgba(0,0,0,0.45));}
.overlay-inner{pointer-events:auto;max-width:48ch;padding:0.5rem 0}
.header-logo{width:140px;height:auto;pointer-events:none}
.nav-left,.nav-right{display:flex;gap:1rem;align-items:center}
.nav-left a,.nav-right a{color:var(--text);text-decoration:none;font-weight:600}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:0.5rem}
.nav-toggle .bars{font-size:1.5rem;color:var(--text)}

/* Mobile menu sidebar */
.mobile-menu{position:fixed;top:0;right:-300px;width:280px;height:100%;background:white;box-shadow:-4px 0 15px rgba(0,0,0,0.1);transition:right 0.3s ease-in-out;z-index:1000}
.mobile-menu.open{right:0}
.mobile-menu-inner{padding:2rem 1.5rem;position:relative}
.mobile-menu-close{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:var(--card-beige);color:var(--text);border-radius:999px;cursor:pointer;box-shadow:0 6px 14px rgba(62,39,31,0.12);position:absolute;top:1.25rem;right:1.25rem}
.mobile-nav a{display:block;padding:1rem 0;font-size:1.2rem;color:var(--text);text-decoration:none;border-bottom:1px solid #f0f0f0}

body.mobile-open{overflow:hidden}

/* ensure main content starts below header so fixed header doesn't overlap */
main{padding-top:var(--header-height)}
.names{font-size:3.2rem;margin:0;font-weight:700;letter-spacing:0.02em;text-shadow:0 2px 10px rgba(0,0,0,0.45);font-family:'The Seasons', 'Great Vibes', cursive}
.wedding-date{margin-top:0.45rem;color:#fff;font-weight:600;text-shadow:0 1px 6px rgba(0,0,0,0.35);font-family:'The Seasons', 'Great Vibes', cursive}

.section{padding:3rem 1rem;background:transparent}
.section.alt{background:linear-gradient(180deg,rgba(250,250,255,0.5),rgba(242,242,255,0.6))}
.section-inner{max-width:1100px;margin:0 auto;width:100%}
.section-title{
  font-size:3.25rem;
  margin:0 0 1.5rem;
  font-family:'The Seasons', 'Great Vibes', cursive;
  font-weight:normal;
  text-align:center;
}
.muted{color:var(--muted);margin:0 0 .25rem}
.venue{font-weight:600;margin:0}
.time{margin:0.5rem 0 1rem}
.time-actions{display:flex;flex-direction:column;gap:0.5rem;align-items:flex-start;margin:0.5rem 0 0.75rem}
.time-actions .time{margin:0}
.action-row{margin:0 0 0.25rem}
.map-link,
.calendar-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  padding:.6rem 1rem;
  min-height:44px;
  width:100%;
  max-width:320px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  border:1px solid rgba(0,0,0,0.08);
  background:#fff;
  color:inherit;
}

/* Buttons on dark card */
.inv-black .map-link{border-color:rgba(255,255,255,0.18);color:#fff}

.rsvp-embed{margin-top:1rem;border:1px solid rgba(15,23,42,0.06);border-radius:8px;overflow:hidden}
.rsvp-embed iframe{width:100%;min-height:500px;border:0}

/* Invitation card styles */
.inv-card{display:flex;align-items:center;min-height:72vh;position:relative;overflow:hidden}
.inv-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  filter:grayscale(35%);
  opacity:0.18;
  z-index:0;
}
.inv-card .section-inner{position:relative;z-index:1}
.inv-grid{display:flex;gap:2rem;align-items:stretch;width:100%}
.inv-grid > .card{flex:1 1 0}
.inv-grid > .map-embed{flex:2 1 0}
.inv-card .card{max-width:none;margin:0;padding:2.5rem;border-radius:14px;box-shadow:0 14px 34px rgba(62,39,31,0.12);background:var(--card-beige);position:relative;overflow:hidden;border:1px solid rgba(59,39,31,0.08)}
.card-corner{position:absolute;right:1.25rem;bottom:1.25rem;width:160px;height:160px;border-radius:14px;object-fit:cover;box-shadow:0 10px 22px rgba(62,39,31,0.2);border:2px solid rgba(255,255,255,0.7);display:none}
.map-embed{border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,0.06);background:#fff;aspect-ratio:4/3;min-height:280px}
.map-embed iframe{width:100%;height:100%;min-height:280px;border:0;display:block}
.inv-ecru{background:#E2CBB6}
.inv-ecru::before{background-image:url('https://res.cloudinary.com/gabriela-patryk-2026/image/upload/w_2400,c_fill,g_auto,f_auto,q_auto,dpr_auto,fl_progressive/v1770767023/kosciol_aszu9x.jpg')}
.inv-ecru .card{background:var(--card-beige);color:#000}
.inv-grey{background:#F1E6DA}
.inv-grey::before{background-image:url('https://res.cloudinary.com/gabriela-patryk-2026/image/upload/w_2400,c_fill,g_auto,f_auto,q_auto,dpr_auto,fl_progressive/v1770767088/sala_tp5mxp.jpg')}
.inv-grey .card{background:var(--card-beige);color:#000}
.inv-black{background:#D8C3AE}
.inv-black .card{background:var(--card-beige);color:var(--text)}
.inv-black .card a, .inv-black .card .map-link{color:var(--text)}
.inv-card h2{margin-top:0}
.section-photo{display:flex;justify-content:center;margin:0 0 1.5rem}
.section-photo img{width:100%;max-width:520px;height:auto;border-radius:12px;box-shadow:0 12px 28px rgba(62,39,31,0.12);display:block}
.photo-wide .section-photo img{max-width:900px}
.card-dark .rsvp-embed{border-color:rgba(62,42,31,0.08)}


/* Intro section (invitation + photo) */
.intro-section{background:var(--bg)}
.intro-grid{display:flex;gap:2.5rem;align-items:center}
.intro-card{flex:1.1;background:#fff;border:2px solid var(--accent-soft);border-radius:16px;padding:2.5rem;text-align:center;box-shadow:0 12px 28px rgba(62,39,31,0.08)}
.intro-card .intro-line{margin:0.5rem 0}
.intro-quote{margin:0.5rem auto 1.25rem;max-width:32ch;font-family:'Emitha', cursive;font-size:3.9rem;line-height:1.2;color:var(--accent)}
.intro-image{flex:1}
.intro-image img{width:100%;height:auto;display:block;border-radius:12px;box-shadow:0 12px 28px rgba(62,39,31,0.12)}

/* Countdown */
.countdown-section{background:var(--bg);padding-top:1.5rem;padding-bottom:1.5rem}
.countdown-card{margin:0 auto;max-width:900px;background:var(--card-beige);border-radius:16px;padding:1.75rem 2rem;text-align:center;box-shadow:0 10px 26px rgba(62,39,31,0.08)}
.countdown-label{margin:0 0 1rem;color:var(--text);font-family:'The Seasons', 'Great Vibes', cursive;font-weight:normal;letter-spacing:0.02em;font-size:2rem}
.countdown{display:flex;justify-content:center;gap:1.5rem;flex-wrap:wrap}
.countdown-item{min-width:90px}
.countdown-value{display:block;font-size:2.5rem;font-weight:700;color:var(--text)}
.countdown-unit{display:block;font-size:.9rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--muted)}

/* Kontakt section */
.site-footer{display:none}


@media (min-width:720px){
  .hero{height:80vh}
  /* Double the previous desktop size to match the request */
  .names{font-size:5.8rem}
  .wedding-date{font-size:2.2rem}
  .rsvp-embed iframe{min-height:640px}
  /* footer removed */
}

@media (max-width: 820px){
  .section.inv-card{min-height:auto;display:block;align-items:stretch}
  .inv-grid{flex-direction:column;gap:1.25rem}
  .inv-grid > .card,
  .inv-grid > .map-embed{flex:0 0 auto}
  .map-embed{aspect-ratio:16/10;width:100%;min-height:220px}
  .map-embed iframe{min-height:220px}
  .section{padding:2.25rem 1rem}
  .inv-card .card{padding:1.75rem;display:block;overflow:visible}
  .inv-card .card .card-corner{display:none}
}

@media (max-width: 980px){
  .intro-grid{flex-direction:column}
  .intro-card{text-align:center}
}

@media (max-width: 768px) {
  .nav-left, .nav-right {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-inner {
    justify-content: space-between;
  }
  .header-logo{
    width: 120px;
  }
}

@media (max-width:519px){
  /* Slightly reduce overlay size on very small screens */
  .hero-overlay{padding:.75rem}
  .names{font-size:1.35rem}
  .wedding-date{font-size:.95rem}
  .section-title{font-size:2rem}
  .countdown-value{font-size:2rem}
  .countdown-label{font-size:1.6rem}
  .intro-quote{font-size:2.2rem}
  .inv-card .card{padding:1.5rem}
}

/* Smooth scrolling for in-page links */
html{scroll-behavior:smooth}
