/* Cazacu Family Ministry — stiluri
   Culori: albastrul canalului, auriul grâului (din logo), cenușiul stepei dobrogene */
:root {
  --ink: #1a1d1f;
  --ink-soft: #4a5156;
  --canal: #12394a;
  --canal-deep: #0b2733;
  --wheat: #d4a43c;
  --wheat-dark: #8a6416;
  --steppe: #edefea;
  --line: #d6d9d2;
  --white: #ffffff;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--canal); text-underline-offset: 3px; }
a:hover { color: var(--canal-deep); }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; background: var(--white); padding: .5rem 1rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .6em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 40ch; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.2em; }

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--sans); padding: .95rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--wheat); color: var(--ink); }
.btn-gold:hover { background: #e2b552; color: var(--ink); }
.btn-dark { background: var(--canal); color: var(--white); }
.btn-dark:hover { background: var(--canal-deep); color: var(--white); }
.btn-line { border-color: currentColor; color: var(--canal); background: transparent; }
.btn-line:hover { background: var(--canal); color: var(--white); border-color: var(--canal); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Antet */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand img { width: 190px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav a { display: block; padding: .55rem .8rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: var(--radius); }
.nav a:hover { color: var(--canal); background: var(--steppe); }
.nav a[aria-current="page"] { color: var(--canal); box-shadow: inset 0 -2px 0 var(--wheat); border-radius: 0; }
.nav .nav-cta { margin-left: .5rem; padding: .7rem 1.2rem; }
.nav .nav-cta:hover { background: #e2b552; color: var(--ink); }
.nav .nav-cta[aria-current="page"] { box-shadow: none; border-radius: var(--radius); }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: .5rem .3rem; margin-left: -.5rem; cursor: pointer; color: var(--ink); }
.sub-toggle span { display: block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub { position: absolute; top: 100%; left: -1rem; display: none; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(11,39,51,.35); width: 520px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: grid; }
.sub-col a { padding: .4rem .6rem; font-size: .95rem; color: var(--ink-soft); }
.sub-col .sub-head { font-family: var(--serif); font-size: 1.15rem; color: var(--canal); border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: .3rem; padding-bottom: .5rem; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; } .menu-toggle .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--white); overflow-y: auto; padding: 1rem 1.25rem 2rem; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { padding: 1rem .25rem; font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--wheat); padding-left: .9rem; }
  .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .has-sub > a { flex: 1; }
  .sub-toggle { padding: 1rem; margin: 0; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .sub { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 1rem .75rem; }
  .sub-col { margin-bottom: .75rem; }
  .nav .nav-cta { margin: 1rem 0 0; }
  .nav li:last-child { border: 0; }
}

/* Secțiuni */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tint { background: var(--steppe); }
.section-dark { background: var(--canal); color: #e8eef0; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.btn) { color: var(--wheat); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }
.section-dark .section-head p { color: #c3d1d6; }

/* Prima pagină */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 76px); max-height: 860px; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem); padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.hero-text h1 { margin-bottom: .35em; }
.hero-text .lead { margin-bottom: 2rem; }
.hero-photo { position: relative; overflow: hidden; background: var(--canal); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 40%; }
.hero-place { position: absolute; left: 0; bottom: 0; background: var(--white); padding: .75rem 1.25rem; font-weight: 600; font-size: .95rem; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-photo { order: -1; aspect-ratio: 16 / 10; }
}

.verse-band { position: relative; color: var(--white); background: var(--canal-deep) url("/assets/img/grau.jpg") center 60% / cover no-repeat; }
.verse-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,39,51,.92) 0%, rgba(11,39,51,.7) 55%, rgba(11,39,51,.25) 100%); }
.verse-band .wrap { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }
.verse-band blockquote { margin: 0; max-width: 18ch; font-family: var(--serif); font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.08; font-weight: 400; font-style: italic; }
.verse-band cite { display: block; margin-top: 1.5rem; font: 600 1rem var(--sans); font-style: normal; color: var(--wheat); }
.verse-band p { max-width: 46ch; margin-top: 1.5rem; color: #d7e1e4; font-size: 1.1rem; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.values h3 { font-size: 1.6rem; padding-top: 1rem; border-top: 2px solid var(--wheat); }
.values p { color: var(--ink-soft); }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; gap: 1.5rem; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.cat { padding: 2rem 0; border-top: 1px solid var(--line); }
.cat h3 { font-size: 2rem; margin-bottom: .3em; }
.cat ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.cat li a { display: flex; justify-content: space-between; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.cat li a:hover { color: var(--canal); padding-left: .35rem; }
.cat li a::after { content: "›"; color: var(--wheat-dark); font-size: 1.3rem; line-height: 1; }
.cat-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.cat-logo img, .cat-logo .badge-logo { width: 48px; height: 48px; border-radius: 4px; }
.badge-logo { background: var(--canal); color: var(--white); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; }
.btn-line-light { color: var(--white); }
.btn-line-light:hover { background: var(--white); color: var(--canal); border-color: var(--white); }

.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-strip h2 { margin: 0 0 .3em; }
.cta-strip p { margin: 0; color: #c3d1d6; max-width: 48ch; }

/* Antet de pagină */
.page-head { background: var(--steppe); padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .25em; }
.page-head p { font-size: 1.2rem; color: var(--ink-soft); max-width: 52ch; margin: 0; }

/* Despre */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 2rem 0; }
.facts div { padding: 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .9rem; color: var(--ink-soft); }
.facts dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.5rem; }
.kids { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; margin: 0 0 1.5rem; }
.kids li { background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: .4rem 1rem; }
.kids b { font-weight: 600; }
.ig-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--white); max-width: 30rem; }
.ig-card:hover { border-color: var(--canal); color: var(--ink); }
.ig-card .ig-logo { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; padding: 8px; }
.ig-card .ig-logo img { width: 100%; }
.ig-card strong { display: block; font-size: 1.1rem; }
.ig-card span { color: var(--ink-soft); font-size: .95rem; }
.person { display: grid; grid-template-columns: 14rem 1fr; gap: 3rem; }
.person h2 { position: sticky; top: 110px; align-self: start; }
@media (max-width: 860px) { .person { grid-template-columns: 1fr; gap: 0; } .person h2 { position: static; } }
.scripture { margin: 2rem 0 0; padding: 1.5rem 0 0 1.5rem; border-left: 3px solid var(--wheat); font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; }
.scripture cite { display: block; margin-top: .75rem; font: 600 .95rem var(--sans); font-style: normal; color: var(--wheat-dark); }
.city-list { padding-left: 1.2rem; }
.city-list li { margin-bottom: .6rem; }
.city-list li::marker { color: var(--wheat-dark); }
.vision { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; margin: 0 0 1.5rem; max-width: 30ch; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.why h3 { font-size: 1.3rem; }
.why p { color: inherit; opacity: .88; }

/* Proiecte */
.proj-cat { padding-block: clamp(3.5rem, 7vw, 6rem); }
.proj-cat + .proj-cat { border-top: 1px solid var(--line); }
.proj-cat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.proj-cat-head img { width: 56px; height: 56px; border-radius: 4px; }
.proj-cat-head .badge-logo { width: 56px; height: 56px; border-radius: 4px; background: var(--canal); color: var(--white); display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; }
.project { display: grid; grid-template-columns: 16rem 1fr; gap: 3rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.project h3 { font-size: 1.9rem; }
.project .tag { display: block; color: var(--wheat-dark); font-weight: 600; font-size: .95rem; margin-top: -.3rem; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; gap: .5rem; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stats div { background: var(--steppe); padding: 1rem 1.25rem; border-radius: var(--radius); }
.stats b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.stats span { font-size: .92rem; color: var(--ink-soft); }
.source { font-size: .88rem; color: var(--ink-soft); }

/* Formulare */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #b9beb6; border-radius: var(--radius); padding: .8rem .9rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--canal); box-shadow: 0 0 0 3px rgba(18,57,74,.18); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 500; }
.notice-ok { background: #e3f1e6; color: #1d5a2c; border: 1px solid #b7dcbf; }
.notice-err { background: #fbe9e7; color: #8a2a1c; border: 1px solid #f0c3bc; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: .35rem; }

/* Magazin */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }
.product { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.product-art { background: var(--steppe); aspect-ratio: 1; display: grid; place-items: center; padding: 1.5rem; }
.product-art svg { width: 78%; height: auto; }
.product-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 1.35rem; margin-bottom: .25em; }
.price { font-weight: 700; font-size: 1.15rem; color: var(--canal); margin-bottom: .5rem; }
.product p { color: var(--ink-soft); font-size: .97rem; }
.order-box { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--white); }
.order-lines { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.order-line { display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: .75rem; align-items: end; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.order-line .name { font-weight: 600; align-self: center; }
.order-line .name small { display: block; font-weight: 400; color: var(--ink-soft); }
@media (max-width: 600px) { .order-line { grid-template-columns: 1fr 1fr; } .order-line .name { grid-column: 1 / -1; } }
.total { font-size: 1.2rem; font-weight: 700; text-align: right; margin: .5rem 0 1.5rem; }

/* Donează */
.give { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .give { grid-template-columns: 1fr; } }
.give-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); display: flex; flex-direction: column; }
.give-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.give-card-head img.org { width: 72px; height: 72px; border-radius: 6px; }
.give-card-head .vital-mark { width: 72px; height: 72px; border-radius: 6px; background: var(--canal); color: var(--white); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 1.05rem; line-height: 1.05; }
.flags { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-soft); }
.flags img { width: 32px; height: auto; border: 1px solid var(--line); border-radius: 2px; }
.give-card p { color: var(--ink-soft); }
.accounts { margin: .5rem 0 1.5rem; display: grid; gap: .6rem; }
.acc { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--steppe); padding: .8rem 1rem; border-radius: var(--radius); flex-wrap: wrap; }
.acc span { font-size: .9rem; color: var(--ink-soft); }
.acc code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .98rem; word-break: break-all; }
.copy { background: none; border: 1px solid var(--line); border-radius: 4px; padding: .3rem .6rem; font: 500 .85rem var(--sans); cursor: pointer; color: var(--canal); }
.copy:hover { border-color: var(--canal); }
.give-card .btn { margin-top: auto; align-self: flex-start; }

/* Contact */
.people { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.person-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; background: var(--white); }
.person-card h3 { font-size: 1.4rem; margin-bottom: .4em; }
.person-card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.person-card li { margin-bottom: .2rem; }
.wa { display: inline-flex; align-items: center; gap: .5rem; background: #1f7a45; color: var(--white); text-decoration: none; padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; }
.wa:hover { background: #17633a; color: var(--white); }
.wa svg { width: 18px; height: 18px; fill: currentColor; }
.big-social { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Subsol */
.site-footer { background: var(--canal-deep); color: #c3d1d6; padding-top: 4rem; }
.site-footer a { color: #e8eef0; text-decoration: none; }
.site-footer a:hover { color: var(--wheat); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 200px; margin-bottom: 1.25rem; }
.footer-h { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.social a:hover { border-color: var(--wheat); }
.social svg { width: 19px; height: 19px; fill: currentColor; }

.rounded { border-radius: var(--radius); }
.section-dark .scripture { color: var(--white); }
.section-dark .scripture cite { color: var(--wheat); }
.section-dark .city-list li::marker { color: var(--wheat); }
.lead p:last-child, .cta-strip p:last-child { margin-bottom: 0; }
div.lead { margin-bottom: 2rem; }
