/* /var/www/rbrs/public/assets/css/rbrs.css
   RBRS holding page styles. Brand blue matches the logo (#1F35D6). */

:root {
  --blue: #1F35D6;
  --blue-dark: #1A2CB3;
  --navy: #0E1A4F;
  --ink: #1B2233;
  --muted: #5B6478;
  --line: #DFE3EC;
  --bg: #FFFFFF;
  --bg-soft: #F4F6FB;
  --success-bg: #E7F6EC;
  --success-ink: #1C6B37;
  --error-bg: #FDECEC;
  --error-ink: #A12A2A;
  --radius: 8px;
  --wrap: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-small { padding: 7px 14px; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* Header */
.site-header { background: var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand img { width: 220px; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; }
.header-nav a:not(.btn):hover { text-decoration: underline; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 56px 0 72px; }
.hero h1 { color: #fff; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: #AEB9F5; margin-bottom: 12px; }
.lead { font-size: 1.15rem; max-width: 680px; color: #DDE2F8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 64px 0; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.two-col > * { min-width: 0; }

.about-panel { background: var(--bg-soft); border-radius: 12px; padding: 24px; }
.about-panel p:last-child { margin-bottom: 0; }

.services { background: var(--bg-soft); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.service-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); padding: 22px; }
.service-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.service-card li { margin-bottom: 4px; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list span { width: 70px; color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; }

.contact-form { background: var(--bg-soft); border-radius: 12px; padding: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #C7CDDA;
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field textarea { resize: vertical; }
.privacy-line { font-size: 0.9rem; color: var(--muted); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 500; }
.notice-success { background: var(--success-bg); color: var(--success-ink); }
.notice-error { background: var(--error-bg); color: var(--error-ink); }

/* Plain pages */
.page { padding: 48px 0 64px; }
.page h2 { font-size: 1.25rem; margin-top: 1.6em; }
.muted { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #B9C1E0; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 20px; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* Phones */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand img { width: 160px; }
  .header-nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 52px; }
  section { padding: 48px 0; }
  .two-col, .field-row { grid-template-columns: 1fr; gap: 24px; }
  .field-row { gap: 0; }
}
