/*
  Signature: the default RebookMedia website design (website standard).
  Live parts (.rb-*) come from public/assets/css/rb-site.css; this file gives them the Signature look.
  Colours and fonts follow Website > Customize through var(--rb-brand) / var(--rb-font-heading) / var(--rb-font-body).
*/
:root { --sg-dark: #15181d; --sg-wrap: 1180px; --rb-sticky-top: 72px; }

body { font-family: var(--rb-font-body); line-height: 1.6; }
h1, h2, h3 { font-family: var(--rb-font-heading); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
a { color: var(--rb-brand); }

.sg-wrap { width: 100%; max-width: var(--sg-wrap); margin: 0 auto; padding: 0 24px; }
.sg-eyebrow { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rb-brand); font-weight: 600; margin-bottom: 10px; }
.sg-section { padding: 72px 0; }
.sg-section-soft { background: var(--rb-soft); }
.sg-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sg-section-head h2 { font-size: 36px; }
.sg-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.sg-link:hover { text-decoration: underline; }

/* Header */
.sg-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rb-line); }
.sg-header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.sg-nav { display: flex; align-items: center; }
.sg-header-actions { display: flex; align-items: center; gap: 18px; }
.sg-header-actions .rb-btn { padding: 9px 18px; }
@media (max-width: 1100px) and (min-width: 768px) {
  .sg-header-row { gap: 14px; }
  .sg-header .rb-logo-name { max-width: 22vw; }
  .sg-header-actions { gap: 12px; }
  .sg-header-actions .rb-account-login { font-size: 0; }
  .sg-header-actions .rb-account-login i { font-size: 18px; }
}

/* Hero */
.sg-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; background: var(--sg-dark) center / cover no-repeat; }
.sg-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.72) 100%); }
.sg-hero.rb-no-hero { min-height: 56vh; background: var(--sg-dark); }
.sg-hero.rb-no-hero::before { background: radial-gradient(1200px 500px at 85% 10%, color-mix(in srgb, var(--rb-brand) 45%, transparent), transparent 70%); }
.sg-hero-inner { position: relative; padding: 120px 24px 72px; }
.sg-hero .sg-eyebrow { color: rgba(255,255,255,.85); }
.sg-hero h1 { font-size: clamp(40px, 6.4vw, 76px); max-width: 900px; margin-bottom: 26px; }
.sg-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sg-btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.sg-btn-light:hover { background: #fff; color: var(--rb-text); filter: none; }

/* About + details */
.sg-about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.sg-about h2 { font-size: 36px; margin-bottom: 18px; }
.sg-about .rb-about p { font-size: 17px; color: #3b4048; }
.sg-card { background: #fff; border: 1px solid var(--rb-line); border-radius: 14px; padding: 24px; display: grid; gap: 22px; }
.sg-about > .sg-card:only-child { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.sg-card h3 { font-family: var(--rb-font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--rb-muted); margin-bottom: 8px; }

/* Call to action band */
.sg-cta { background: var(--rb-brand); color: var(--rb-on-brand); }
.sg-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 24px; }
.sg-cta h2 { font-size: 38px; }
.sg-cta p { margin: 8px 0 0; opacity: .85; }
.sg-cta .rb-btn { background: var(--rb-on-brand); color: var(--rb-brand); border-color: var(--rb-on-brand); }

/* Inner page header */
.sg-page-head { padding: 64px 0 28px; border-bottom: 1px solid var(--rb-line); margin-bottom: 36px; }
.sg-page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.sg-page-head p { color: var(--rb-muted); font-size: 17px; margin: 10px 0 0; max-width: 680px; }
.sg-page { padding-bottom: 80px; }

/* Contact */
.sg-contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }

/* Footer */
.sg-footer { background: var(--sg-dark); color: #c9ced6; padding: 56px 0 28px; }
.sg-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.sg-footer h3 { font-family: var(--rb-font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #8b93a0; margin-bottom: 12px; }
.sg-footer .rb-logo-name { color: #fff; }
.sg-footer .rb-menu { flex-direction: column; gap: 6px; }
.sg-footer .rb-menu a { color: #c9ced6; border: 0; padding: 2px 0; }
.sg-footer .rb-menu a:hover, .sg-footer .rb-menu a.is-active { color: #fff; }
.sg-footer .rb-menu-toggle { display: none !important; }
.sg-footer .rb-contact-details i { color: #8b93a0; }
.sg-footer-tag { margin: 14px 0 18px; max-width: 360px; color: #9aa3ad; }
.sg-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 13px; color: #8b93a0; }
.sg-footer-bottom a { color: inherit; }

@media (max-width: 960px) {
  .sg-about, .sg-contact { grid-template-columns: 1fr; gap: 32px; }
  .sg-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --rb-sticky-top: 60px; }
  .sg-wrap { padding: 0 16px; }
  .sg-header-row { height: 60px; gap: 10px; }
  .sg-header .rb-logo-name { font-size: 16px; max-width: 46vw; }
  .sg-header-actions { gap: 4px; }
  .sg-header-actions .rb-btn { display: none; }
  .sg-header-actions .rb-account-login { font-size: 0; }
  .sg-header-actions .rb-account-login i { font-size: 18px; padding: 8px; }
  .sg-nav { order: 3; }
  .sg-section { padding: 48px 0; }
  .sg-section-head h2, .sg-about h2 { font-size: 28px; }
  .sg-hero { min-height: 70vh; }
  .sg-hero-inner { padding: 96px 16px 40px; }
  .sg-cta-row { flex-direction: column; align-items: flex-start; padding: 40px 16px; }
  .sg-cta h2 { font-size: 28px; }
  .sg-page-head { padding: 36px 0 18px; margin-bottom: 24px; }
  .sg-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
