/* REDCOM Group – homepage styles. Colors follow the RedCom portal apps
   (MainNavigationApp / CustomerPortalApp): primary #9d2f3a, hover #7d1f2a, background #f5f5f5. */

:root {
  --red: #9d2f3a;
  --red-dark: #7d1f2a;
  --red-tint: #f7ecee;
  --text: #1f2937;
  --muted: #5b6470;
  --line: #e5e7eb;
  --bg: #f5f5f5;
  --card: #ffffff;
  --footer: #1f2937;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.12);
  --wrap: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}

.brand img { height: 46px; width: auto; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

.main-nav ul { list-style: none; display: flex; gap: 4px; }

.main-nav a {
  display: block; padding: 10px 12px;
  color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 4px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.btn-primary:hover { background: var(--red-dark); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.btn-ghost { color: var(--red); border: 2px solid var(--red); padding: 10px 22px; }
.btn-ghost:hover { background: var(--red); color: #fff; text-decoration: none; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--red-tint); color: var(--red-dark); text-decoration: none; }

/* ---------- Hero (start page) ---------- */

.hero { background: var(--bg); padding: 72px 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; color: var(--red); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.15; font-weight: 700; margin-bottom: 20px; }
.hero .lead { font-size: 19px; color: var(--muted); margin-bottom: 32px; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img img { width: 100%; max-width: 560px; margin-left: auto; mix-blend-mode: multiply; }

/* ---------- Page header (subpages) ---------- */

.page-head { background: var(--bg); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; margin-bottom: 14px; }
.page-head .lead { font-size: 19px; color: var(--muted); max-width: 820px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

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

.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; line-height: 1.25; }
.section-intro { color: var(--muted); max-width: 760px; margin-bottom: 36px; font-size: 18px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; border-left: 4px solid var(--red);
}
.card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.3; }
.card p { color: var(--muted); font-size: 16px; }

a.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s; }
a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
a.card:hover h3 { color: var(--red); }
.card .more { margin-top: auto; padding-top: 16px; color: var(--red); font-weight: 600; font-size: 15px; }

.value-card { border-left: none; border-top: 4px solid var(--red); }

/* News teaser */
a.card.news-card { display: grid; grid-template-columns: 240px 1fr; padding: 0; overflow: hidden; border-left: none; }
a.card.news-card.no-img { grid-template-columns: 1fr; border-left: 4px solid var(--red); }
.news-card .news-img { background: var(--bg); }
.news-card .news-img img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: center 20%; }
.news-card .news-img img.fit-contain { object-fit: contain; background: #fff; padding: 8px; }
.news-card .news-body { padding: 26px 28px; display: flex; flex-direction: column; }
.news-date { font-size: 14px; color: var(--red); font-weight: 600; margin-bottom: 6px; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; padding: 56px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; }
.cta-band p { opacity: 0.9; margin-top: 4px; }

/* ---------- Content (prose) ---------- */

.prose { padding: 56px 0 72px; overflow-wrap: anywhere; }
.prose h2 { font-size: 26px; line-height: 1.3; margin: 48px 0 16px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; line-height: 1.35; margin: 36px 0 12px; }
.prose h4 { font-size: 18px; margin: 26px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 20px 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.prose ul li::before {
  content: ''; position: absolute; left: 4px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--red);
}
.prose figure { margin: 28px 0; }
.prose figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.prose .claim {
  font-size: 20px; font-weight: 600; color: var(--red);
  border-left: 4px solid var(--red); padding: 4px 0 4px 18px; margin: 0 0 28px;
}
.prose .box {
  background: var(--bg); border-radius: var(--radius); padding: 24px 28px; margin: 24px 0;
}
.prose .box > :last-child { margin-bottom: 0; }

.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.prose ul.checklist li::before {
  content: '✓'; background: none; color: var(--red); font-weight: 700;
  width: auto; height: auto; top: 0; left: 0;
}

.legal { font-size: 16px; }
.legal h2 { font-size: 21px; margin-top: 36px; }
.legal h3 { font-size: 18px; margin-top: 24px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-grid .card p { color: var(--text); font-size: 17px; }
.contact-grid .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); font-weight: 700; margin-bottom: 8px; }

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

.site-footer { background: var(--footer); color: #d1d5db; padding: 48px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 10px; font-size: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; font-size: 14px; color: #9ca3af; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-img img { max-width: 420px; margin: 0 auto; }
  .grid-3, .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav-toggle-label {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; cursor: pointer; border-radius: 4px;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; width: 24px; height: 2px; background: var(--text); position: relative; content: '';
  }
  .nav-toggle-label span::before { position: absolute; top: -7px; }
  .nav-toggle-label span::after { position: absolute; top: 7px; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 0; }
  .main-nav a { border-bottom: 1px solid var(--line); border-left: 3px solid transparent; padding: 14px 12px; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--red); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 38px; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 52px 0; }
  .grid-3, .grid-2, .contact-grid, .checklist, .footer-grid { grid-template-columns: 1fr; }
  a.card.news-card { grid-template-columns: 1fr; }
  .news-card .news-img img { height: 220px; object-position: center 25%; }
  .prose { padding: 40px 0 56px; }
}
