/* Irsta Foto – site styles. No framework; ~one file. */

@font-face {
  font-family: "Armata";
  src: url("fonts/armata-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #1f2429;
  --muted: #5a6570;
  --bg: #ffffff;
  --bg-alt: #f3f5f7;
  --bg-dark: #1b2024;
  --line: #dde2e6;
  --accent: #4fc3f7;          /* brand light blue, from the old navbar */
  --accent-ink: #0b6fa4;      /* same hue, dark enough for text on white */
  --accent-on-dark: #8fd8fb;
  --ok: #2e7d32;
  --err: #c62828;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 6px 20px rgb(0 0 0 / .08);
  --head: "Armata", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 60px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--body);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.35rem; margin-top: 1.6em; }
h4 { font-size: 1.1rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(48rem, 100% - 2rem); }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--bg); padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; }

.icon { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 3px solid var(--accent);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { font-family: var(--head); font-size: 1.4rem; color: var(--ink); text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 6px;
  font-family: var(--head); color: var(--ink); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current] { background: var(--bg-alt); color: var(--accent-ink); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 1.4rem; cursor: pointer;
  }
  .site-nav { position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 3px solid var(--accent); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .site-nav a { padding: .75rem .5rem; font-size: 1.1rem; }
}

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

.hero {
  position: relative; height: min(88vh, 60rem); min-height: 26rem;
  background: var(--bg-dark); color: #fff; overflow: hidden;
}
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / .65), transparent 55%);
}
.hero__intro { position: absolute; left: 0; right: 0; bottom: 2.5rem; z-index: 2; pointer-events: none; }
.hero__intro h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem); margin: 0; text-shadow: 0 2px 12px rgb(0 0 0 / .4); }
.hero__intro p { font-size: 1.15rem; margin: .3rem 0 0; max-width: 36rem; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.hero__caption {
  position: absolute; right: 1rem; bottom: 2.5rem; z-index: 3;
  background: rgb(255 255 255 / .9); color: var(--ink);
  font-family: var(--head); padding: .45rem .9rem; border-radius: 999px;
}
.hero__slide:hover .hero__caption { background: #fff; color: var(--accent-ink); }
@media (max-width: 640px) {
  .hero__caption { top: 1rem; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

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

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #e9edf0; }
.section--dark .lead, .section--dark .small { color: #b9c3ca; }
.section--dark a { color: var(--accent-on-dark); }
.section--photo { position: relative; isolation: isolate; }
.section--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--photo) center / cover no-repeat;
  filter: grayscale(1); opacity: .22;
}

.cols { display: grid; gap: 2rem 3rem; }
@media (min-width: 800px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols--center { align-items: center; }

.wide { width: 100%; border-radius: var(--radius); margin: 0 0 1.5rem; }
.side-img { margin: 0 0 1rem; }
.side-img img { border-radius: var(--radius); }
@media (min-width: 640px) {
  .side-img { float: right; width: min(40%, 320px); margin: 0 0 1rem 1.5rem; }
}

.notice {
  border-left: 4px solid var(--accent); background: #e9f7fe;
  padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.1rem;
}
.note { padding-left: 1rem; border-left: 3px solid #f0b429; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 1.6em; margin-bottom: .35em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.section--dark .checks li::before { color: #7ed787; }

.panel { background: var(--bg); border-radius: var(--radius); padding: clamp(1.2rem, 1rem + 1vw, 2rem); box-shadow: var(--shadow); }
.panel > :first-child { margin-top: 0; }

/* ---------- Services ---------- */

.services {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.service {
  display: flex; flex-direction: column; background: var(--bg); color: var(--ink); text-decoration: none;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.service:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 12px 28px rgb(0 0 0 / .14); }
.service__img { aspect-ratio: 1; background: var(--bg-alt); overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease; }
.service__img img.is-fading { opacity: 0; }
.service__title { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; font-family: var(--head); }
.service__title .icon { color: var(--accent-ink); }

/* ---------- Prices ---------- */

.acc { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: .75rem; }
.acc summary {
  cursor: pointer; list-style: none; padding: 1rem 1.25rem; font-family: var(--head); font-size: 1.15rem;
  display: flex; justify-content: space-between; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent-ink); }
.acc[open] summary::after { content: "–"; }
.acc__body { padding: 0 1.25rem 1.25rem; display: flow-root; }

.table-scroll { overflow-x: auto; margin: 1rem 0; }
.prices { border-collapse: collapse; min-width: min(100%, 28rem); font-variant-numeric: tabular-nums; }
.prices caption { text-align: left; font-weight: 600; padding-bottom: .4rem; }
.prices th, .prices td { padding: .5rem .9rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.prices th:first-child { text-align: left; }
.prices thead th { background: var(--bg-alt); font-weight: 600; border-bottom: 2px solid var(--line); }
.prices tbody th { font-weight: 400; }
.prices tbody tr:hover { background: #f8fafb; }

/* ---------- Wedding ---------- */

.packages { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.package { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.package--top { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.package h4 { margin: 0 0 .7rem; display: flex; flex-direction: column; }
.package h4 span, .addons dt span { color: var(--accent-ink); font-family: var(--body); font-weight: 600; }
.package h4 span { font-size: 1.3rem; }
.addons dt { font-weight: 600; margin-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.addons dd { margin: .25rem 0 0; color: var(--muted); }
.addons dd p:last-child { margin-bottom: 0; }

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

.gallery { columns: 4 220px; column-gap: 1rem; margin-top: 2.5rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; }
.gallery img { width: 100%; border-radius: 6px; }
.gallery figcaption { font-size: .92rem; padding: .35rem .1rem 0; color: #c8d0d6; }
.gallery figcaption span { color: var(--accent-on-dark); font-variant-numeric: tabular-nums; }

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

.contact { display: grid; gap: 2rem; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 18rem; align-items: start; } }
.contact__card { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; display: grid; gap: 1rem; }
.contact__card a, .contact__card p { display: flex; gap: .6rem; align-items: flex-start; margin: 0; color: var(--ink); text-decoration: none; }
.contact__card a:hover { color: var(--accent-ink); }
.contact__card .contact__name { font-family: var(--head); font-size: 1.1rem; }
.contact__card .icon { color: var(--accent-ink); margin-top: .2em; }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  padding: .7rem .8rem; border: 1px solid #b9c2c9; border-radius: 8px; width: 100%;
}
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus, .form textarea:focus { border-color: var(--accent-ink); outline: 3px solid rgb(79 195 247 / .35); outline-offset: 0; }
.form__error { display: none; color: var(--err); font-weight: 400; font-size: .88rem; }
.form .is-invalid { border-color: var(--err); }
.form .is-invalid + .form__error { display: block; }
.form__status { margin: 0; padding: .8rem 1rem; border-radius: 8px; }
.form__status.is-ok { background: #e8f5e9; color: #1b5e20; }
.form__status.is-error { background: #ffebee; color: #8e1c1c; }

.button {
  justify-self: start; font: inherit; font-family: var(--head); font-size: 1.05rem;
  background: var(--accent-ink); color: #fff; border: 0; border-radius: 8px; padding: .75rem 1.8rem; cursor: pointer;
}
.button:hover { background: #095a86; }
.button:disabled { opacity: .6; cursor: default; }

/* ---------- Blog ---------- */

.blog__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.blog__title { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); margin: 0; }
.archive { position: relative; }
.archive summary {
  cursor: pointer; list-style: none; font-family: var(--head);
  border: 1px solid var(--line); border-radius: 8px; padding: .5rem 1rem; background: var(--bg);
}
.archive summary::-webkit-details-marker { display: none; }
.archive summary::after { content: " ▾"; color: var(--accent-ink); }
.archive__list {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20;
  width: min(24rem, 90vw); max-height: 60vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius); box-shadow: 0 10px 40px rgb(0 0 0 / .2); padding: .5rem 1rem 1rem;
}
.archive__list h2 { font-size: 1rem; margin: 1rem 0 .3rem; color: var(--muted); }
.archive__list ul { list-style: none; padding: 0; margin: 0; }
.archive__list a { display: block; padding: .25rem 0; text-decoration: none; color: var(--ink); }
.archive__list a:hover { color: var(--accent-ink); }
.archive__list a[aria-current] { font-weight: 600; color: var(--accent-ink); }
.archive__list time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .3rem; }

.post__date { color: var(--muted); font-family: var(--head); margin-bottom: .2rem; }
.post__body .blog-header { font-family: var(--head); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); line-height: 1.2; margin: 0 0 1rem; }
.post__body img, .post__body .blogimg { width: 100%; border-radius: 6px; margin: 1rem 0; }
.post__body .float-right { float: right; margin: 0 0 1rem 1.5rem; max-width: 45%; }
.post__body .text-center { text-align: center; }
.post__body iframe, .post__body video { max-width: 100%; }
.post__body::after { content: ""; display: table; clear: both; }
.post__permalink { font-size: .9rem; }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.post-nav a { display: flex; flex-direction: column; text-decoration: none; max-width: 48%; font-family: var(--head); }
.post-nav small { color: var(--muted); font-family: var(--body); }
.post-nav__older { text-align: right; margin-left: auto; }

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

.site-footer { background: var(--bg-dark); color: #c8d0d6; padding: 3rem 0 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent-on-dark); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer__brand { font-family: var(--head); font-size: 1.4rem; color: #fff; margin: 0; }
.site-footer address { font-style: normal; line-height: 2; }
.site-footer__legal { font-size: .85rem; color: #8d99a3; border-top: 1px solid #333b41; padding-top: 1rem; margin-top: 2rem; }
