/* =============================================================
   SYNERAGARD 24 — Interior pages (shared)
   ============================================================= */

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  background: var(--sg-black);
  color: #fff;
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: var(--sp-8);
  overflow: hidden;
  isolation: isolate;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 400px at 85% -20%, rgba(253,210,3,0.16), transparent 60%),
    linear-gradient(180deg, #121316, var(--sg-black));
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16z' fill='none' stroke='%23FDD203' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
.page-banner h1 { color: #fff; font-size: var(--fs-4xl); max-width: 20ch; }
.page-banner p { color: #C9CCD2; font-size: var(--fs-lg); max-width: 60ch; margin-top: var(--sp-4); }
.page-banner .eyebrow { color: var(--sg-gold); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.breadcrumbs a { color: rgba(255,255,255,0.7); }
.breadcrumbs a:hover { color: var(--sg-gold); }
.breadcrumbs li[aria-current] { color: var(--sg-gold); }
.breadcrumbs .sep { color: rgba(255,255,255,0.4); }
/* light variant (on white pages) */
.breadcrumbs--light a { color: var(--text-muted); }
.breadcrumbs--light li[aria-current] { color: var(--sg-gold-600); }
.breadcrumbs--light .sep { color: var(--sg-slate-400); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group.full { grid-column: 1 / -1; }
.field-group label { font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--heading); }
.field-group label .req { color: var(--sg-danger); }
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field-group textarea { min-height: 140px; resize: vertical; }
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus { outline: none; border-color: var(--sg-gold); box-shadow: 0 0 0 4px var(--ring); }
.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error textarea { border-color: var(--sg-danger); }
.field-error { color: var(--sg-danger); font-size: var(--fs-xs); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: var(--fs-xs); color: var(--text-muted); }
.alert { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); margin-bottom: var(--sp-5); font-size: var(--fs-sm); }
.alert--success { background: #E7F6EF; color: #0F6B47; border: 1px solid #B8E4CF; }
.alert--error { background: #FBEAE8; color: #A02D20; border: 1px solid #F1C3BD; }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-9); align-items: start; }
.contact-cards { display: grid; gap: var(--sp-4); }
.contact-card { display: flex; gap: var(--sp-4); padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.contact-card__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-md); display: grid; place-items: center; background: var(--sg-gold-100); color: var(--sg-black); }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: var(--fs-base); margin-bottom: 2px; }
.contact-card a, .contact-card p { color: var(--text-muted); font-size: var(--fs-sm); }
.contact-card a:hover { color: var(--sg-gold-600); }
.map-embed { border: 0; width: 100%; height: 360px; border-radius: var(--r-lg); margin-top: var(--sp-6); }
.map-fallback { height: 360px; border-radius: var(--r-lg); margin-top: var(--sp-6); display: grid; place-items: center; text-align: center; background: var(--sg-slate-100); color: var(--text-muted); border: 1px dashed var(--border); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-7); box-shadow: var(--sh-md); }

/* ---------- Services hub ---------- */
.svc-group { margin-bottom: var(--sp-9); }
.svc-group__head { display: flex; align-items: baseline; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.svc-group__head h2 { font-size: var(--fs-2xl); }
.svc-group__line { flex: 1; height: 1px; background: var(--border); }

/* ---------- Service single ---------- */
.svc-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-9); align-items: start; }
.svc-body h2 { font-size: var(--fs-2xl); margin: var(--sp-7) 0 var(--sp-3); }
.svc-body h3 { font-size: var(--fs-xl); margin: var(--sp-6) 0 var(--sp-2); }
.svc-body p { color: var(--text-muted); margin-bottom: var(--sp-4); }
.svc-body ul.checks { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0; }
.svc-body ul.checks li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--text); }
.svc-body ul.checks svg { width: 22px; height: 22px; color: var(--sg-gold-600); flex-shrink: 0; margin-top: 2px; }
.svc-aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: var(--sp-5); }
.svc-aside__card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); background: var(--surface); }
.svc-aside__card.dark { background: var(--sg-black); color: #fff; }
.svc-aside__card.dark h3 { color: #fff; }
.svc-aside__card.dark p { color: #A7ABB4; font-size: var(--fs-sm); }
.svc-aside__list { display: grid; gap: 2px; }
.svc-aside__list a { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.5rem; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text); }
.svc-aside__list a:hover, .svc-aside__list a.is-active { background: var(--sg-gold-100); color: var(--sg-black); font-weight: var(--fw-semibold); }

/* ---------- About ---------- */
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.value-card__icon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--sg-black); color: var(--sg-gold); margin-bottom: var(--sp-4); }
.value-card__icon svg { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .contact-grid, .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .values__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal / prose pages ---------- */
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: var(--fs-xl); margin-top: var(--sp-8); }
.legal h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.legal p, .legal li { color: var(--text-muted); }
.legal p { margin-top: var(--sp-3); }
.legal ul { margin: var(--sp-3) 0 0; padding-left: 1.25rem; list-style: disc; display: grid; gap: var(--sp-2); }
.legal a { color: var(--sg-gold-600); font-weight: var(--fw-medium); text-decoration: underline; }
.legal__updated { display: inline-block; margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--sg-slate-500); }
.legal__toc { background: var(--sg-slate-50); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); margin-bottom: var(--sp-7); }
.legal__toc ul { list-style: none; padding: 0; }
.legal__toc a { text-decoration: none; }

/* ---------- Simple content grids reused across pages ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--sh-sm); }
.tile__icon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--sg-gold-100); color: var(--sg-black); margin-bottom: var(--sp-4); }
.tile__icon svg { width: 26px; height: 26px; }
.tile h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.tile p { color: var(--text-muted); font-size: var(--fs-sm); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.gallery-grid figure { position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--sg-black), #1b1d22); box-shadow: var(--sh-sm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-4); color: #fff; font-size: var(--fs-sm); font-weight: var(--fw-medium); background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.member { text-align: center; }
.member__photo { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--sg-black), #23252b); display: grid; place-items: center; margin-bottom: var(--sp-4); }
.member__photo svg { width: 48px; height: 48px; color: var(--sg-gold); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: var(--fs-lg); }
.member span { color: var(--sg-gold-600); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.timeline { max-width: 820px; margin-inline: auto; display: grid; gap: var(--sp-6); }
.timeline__item { display: grid; grid-template-columns: 120px 1fr; gap: var(--sp-5); align-items: start; }
.timeline__year { font-weight: var(--fw-extra); color: var(--sg-gold-600); font-size: var(--fs-xl); }
.posts-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }

@media (max-width: 900px) {
  .tiles, .posts-list { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tiles, .posts-list, .team-grid, .gallery-grid { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 70px 1fr; }
}
