/* OneRoof - built to the exact spec of the Claude Design export "OneRoof Rebrand.dc.html" */

/* ---------- Self-hosted fonts (no CDN) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/poppins-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/poppins-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/poppins-600.woff2) format('woff2');
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #F3F0E3;
  color: #0E2233;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: #B8813F; text-decoration: none; }
a:hover { color: #14395C; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
::selection { background: #B8813F; color: #F3F0E3; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 74px;
  display: flex; align-items: center;
  padding: 0 clamp(20px, 6vw, 110px);
  background: #14395C;
  border-bottom: 1px solid rgba(243, 240, 227, 0.12);
}
.header-inner {
  max-width: 1180px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo { display: flex; align-items: center; }
.header-logo:hover { opacity: 0.85; }
.header-logo img { height: 60px; width: auto; }
.or-navlinks { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.or-navlinks a {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px;
  color: rgba(243, 240, 227, 0.82);
}
.or-navlinks a:hover { color: #B8813F; }
.btn-header {
  display: inline-flex; align-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 14.5px;
  color: #FBFAF4; background: #B8813F;
  padding: 10px 20px; border-radius: 9px; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn-header:hover { background: #9C6D34; color: #FBFAF4; transform: translateY(-1px); }

/* ---------- Shared section pieces ---------- */
.eyebrow {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 24px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #B8813F;
}
.section-inner { max-width: 1180px; margin: 0 auto; }
.h2 {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.08;
  letter-spacing: -0.015em; text-wrap: balance;
  margin-top: 16px;
}
.roofline { height: 24px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #14395C; color: #F3F0E3;
  min-height: auto; display: flex; align-items: center;
  padding: 118px clamp(20px, 6vw, 110px) 64px;
}
.hero-art {
  position: absolute; right: -6vw; top: 50%; transform: translateY(-50%);
  height: min(88vh, 820px); width: auto; opacity: 0.06; pointer-events: none;
}
/* Hero content sits in the same 1180px centred column as the header, sections
   and footer; the heading itself stays capped at 960px. */
.hero-inner { position: relative; max-width: 1180px; width: 100%; margin: 0 auto; }
.hero h1 {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: clamp(40px, 6.2vw, 80px); line-height: 1.03;
  letter-spacing: -0.02em; text-wrap: balance; color: #F3F0E3;
  max-width: 960px; margin-top: 16px;
}
.hero-sub {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(18px, 1.55vw, 23px); line-height: 1.6; text-wrap: balance;
  color: rgba(243, 240, 227, 0.78); max-width: 62ch; margin-top: 22px;
}
.hero-sub strong { font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-primary {
  display: inline-flex; align-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 16px;
  color: #FBFAF4; background: #B8813F;
  padding: 15px 28px; border-radius: 11px;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: #9C6D34; color: #FBFAF4; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 16px;
  color: #F3F0E3; background: transparent;
  border: 1px solid rgba(243, 240, 227, 0.35);
  padding: 15px 28px; border-radius: 11px; transition: .2s;
}
.btn-ghost:hover { background: rgba(243, 240, 227, 0.08); border-color: #F3F0E3; color: #F3F0E3; }

/* ---------- Why OneRoof ---------- */
.why {
  scroll-margin-top: 74px; background: #F3F0E3; color: #0E2233;
  padding: clamp(52px, 6vw, 92px) clamp(20px, 6vw, 110px);
}
.or-why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 2vw, 28px); row-gap: clamp(28px, 3vw, 40px);
}
.why-intro { grid-column: 1; grid-row: 1; }
.why-intro .h2 { color: #14395C; }
.why-intro p {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.65; text-wrap: pretty;
  color: rgba(14, 34, 51, 0.82); max-width: 520px; margin-top: 20px;
}
.why-fee {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6;
  color: rgba(14, 34, 51, 0.82); max-width: 520px;
  margin-top: 18px;
}
.why-fee strong { font-weight: 600; color: #B8813F; }
.why-figure {
  grid-column: 2; grid-row: 1; align-self: stretch;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 57, 92, 0.16);
}
.why-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-card {
  background: #FBFAF4; border: 1px solid rgba(20, 57, 92, 0.08);
  border-radius: 22px; padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 12px 34px rgba(20, 57, 92, 0.05);
}
.why-card-a { grid-column: 1; grid-row: 2; }
.why-card-b { grid-column: 2; grid-row: 2; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(184, 129, 63, 0.12);
  display: flex; align-items: center; justify-content: center; color: #B8813F;
}
.why-card h3 {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 22px;
  color: #14395C; margin-top: 22px;
}
.why-card p {
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 16px;
  line-height: 1.62; color: rgba(14, 34, 51, 0.8); margin-top: 10px;
}

/* ---------- The service ---------- */
.service {
  scroll-margin-top: 74px; background: #14395C; color: #F3F0E3;
  padding: clamp(52px, 6vw, 92px) clamp(20px, 6vw, 110px);
}
.service-head { max-width: 1100px; }
.service-head .h2 { color: #F3F0E3; }
.service-lede {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.65; text-wrap: pretty;
  color: rgba(243, 240, 227, 0.78); max-width: 640px; margin-top: 18px;
}
.or-service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr;
  gap: 22px; margin-top: clamp(28px, 3vw, 40px);
}
.service-card {
  background: rgba(243, 240, 227, 0.05);
  border: 1px solid rgba(243, 240, 227, 0.13);
  border-radius: 16px; padding: 26px;
}
.service-card-title { display: flex; align-items: center; gap: 12px; }
.service-card h3 {
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 17px;
  white-space: nowrap; color: #F3F0E3;
}
.service-card p {
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14.5px;
  line-height: 1.5; color: rgba(243, 240, 227, 0.68); margin-top: 12px;
}
.service-more {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(15.5px, 1.25vw, 18.5px); line-height: 1.6;
  color: rgba(243, 240, 227, 0.72);
  margin-top: clamp(30px, 3.4vw, 46px);
}
.service-more strong { font-weight: 600; color: #F3F0E3; }
.next-block { margin-top: clamp(30px, 3.4vw, 46px); }
.or-compliance-panel {
  position: relative; overflow: hidden;
  border: 1px solid rgba(20, 57, 92, 0.08); border-radius: 20px;
  background: #FBFAF4;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex; align-items: center;
}
.compliance-mark {
  position: absolute; right: 40px; top: 50%;
  transform: translateY(-50%); height: 115%;
  opacity: 0.07; pointer-events: none;
}
.compliance-content {
  position: relative;
  padding: clamp(28px, 3.2vw, 40px) clamp(26px, 3.2vw, 40px);
  max-width: 620px;
}
.pill {
  display: inline-flex; align-items: center;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #FBFAF4;
  background: #B8813F; border-radius: 999px; padding: 7px 16px;
}
.compliance-content h3 {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15;
  letter-spacing: -0.015em; color: #14395C; margin-top: 16px;
}
.compliance-content p {
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 16px;
  line-height: 1.55; text-wrap: pretty;
  color: rgba(14, 34, 51, 0.82); max-width: 54ch; margin-top: 11px;
}
.compliance-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13px;
  color: rgba(243, 240, 227, 0.92);
  background: #14395C;
  border: 1px solid #14395C;
  border-radius: 999px; padding: 8px 11px; white-space: nowrap;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #B8813F; flex: none; }

/* ---------- Getting started ---------- */
.start {
  scroll-margin-top: 74px; background: #F3F0E3; color: #0E2233;
  padding: clamp(52px, 6vw, 92px) clamp(20px, 6vw, 110px);
}
.start-head { max-width: 680px; }
.start-head .h2 { color: #14395C; white-space: nowrap; }
.start-head p {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.65;
  color: rgba(14, 34, 51, 0.82); max-width: 520px; margin-top: 18px;
}
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(22px, 2.4vw, 32px); margin-top: clamp(26px, 3vw, 40px);
}
.step img {
  width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 14px 34px rgba(20, 57, 92, 0.1); margin-bottom: 22px;
}
.step-title { display: flex; align-items: baseline; gap: 12px; }
.step h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 20px; color: #14395C; }
.step p {
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 15px;
  line-height: 1.6; color: rgba(14, 34, 51, 0.8); margin-top: 10px;
}

/* ---------- Contact ---------- */
.contact {
  scroll-margin-top: 74px; position: relative; overflow: hidden;
  background: #14395C; color: #F3F0E3;
  padding: clamp(38px, 4vw, 64px) clamp(20px, 6vw, 110px) clamp(44px, 5vw, 64px);
}
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; }
.contact-logo { display: flex; justify-content: center; }
.contact-logo img { height: 96px; width: auto; }
.contact-inner h2 {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: clamp(26px, 3vw, 40px); white-space: nowrap;
  line-height: 1.06; letter-spacing: -0.015em; color: #B8813F; margin-top: 26px;
}
.contact-lede {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; text-wrap: pretty;
  color: rgba(243, 240, 227, 0.78); max-width: 540px; margin: 18px auto 0;
}
.contact-card {
  margin: 34px auto 0; max-width: 520px; background: #FBFAF4; border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); min-width: 0;
  padding: clamp(28px, 3.2vw, 44px); text-align: left;
}
.contact-form { display: grid; gap: 18px; max-width: 560px; margin: 0 auto; }
.form-field { display: grid; gap: 8px; }
.form-field label {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: #14395C;
}
.form-field input,
.form-field textarea {
  font-family: 'Inter', sans-serif; font-size: 16px; color: #0E2233;
  background: #FBFAF4; border: 1px solid rgba(20, 57, 92, 0.25);
  border-radius: 11px; padding: 12px 14px; width: 100%;
  transition: border-color .2s;
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid #B8813F; outline-offset: 1px; border-color: #B8813F;
}
.form-submit { justify-self: start; border: 0; cursor: pointer; }
.form-submit:disabled { opacity: 0.6; cursor: default; }
.form-error {
  font-family: 'Inter', sans-serif; font-size: 14.5px; line-height: 1.5;
  color: #0E2233; margin: 0;
}
.form-error a { color: #B8813F; }
.form-success { text-align: center; padding: 14px 0 6px; }
.form-success svg { height: 56px; margin: 0 auto 16px; display: block; }
.form-success h3 {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 24px;
  color: #14395C; margin: 0 0 8px;
}
.form-success p {
  font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6;
  color: rgba(14, 34, 51, 0.82); margin: 0 auto; max-width: 40ch;
}
.contact-links {
  margin-top: 26px; font-family: 'Inter', sans-serif; font-size: 15px;
  color: rgba(243, 240, 227, 0.75);
}
.contact-links a { color: #F3F0E3; }
.contact-links a:hover { color: #B8813F; }
.contact-links .sep { color: #B8813F; margin: 0 10px; }

/* ---------- Footer ---------- */
.site-footer {
  margin: clamp(34px, 4vw, 54px) calc(-1 * clamp(20px, 6vw, 110px)) calc(-1 * clamp(44px, 5vw, 64px));
  background: #F3F0E3; padding: 24px clamp(20px, 6vw, 110px);
}
.footer-inner {
  max-width: 1180px; width: 100%; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px;
}
.footer-marks { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; }
.footer-marks img { height: 60px; width: auto; }
@media (max-width: 560px) {
  .footer-marks img { height: 48px; }
}
.footer-note { font-family: 'Inter', sans-serif; font-size: 13.5px; color: rgba(14, 34, 51, 0.62); }

/* ---------- Reveal animation ---------- */
[data-reveal] { will-change: opacity, transform; }

/* ---------- Responsive (from the design) ---------- */
@media (max-width: 1200px) {
  .or-service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .or-navlinks { display: none; }
}
@media (max-width: 760px) {
  .or-why-grid { grid-template-columns: 1fr; }
  .why-intro, .why-figure, .why-card-a, .why-card-b { grid-column: auto; grid-row: auto; }
  /* image moves to the top as a wide 4:1 banner (per the new design) */
  .why-figure { order: -1; align-self: auto; }
  .why-figure img { height: auto; aspect-ratio: 4 / 1; }
}
@media (max-width: 560px) {
  .or-service-grid { grid-template-columns: 1fr; }
}
