@font-face {
  font-family: "DM Sans";
  src: url("/proposals/preciado-roofing/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --ink: #121d30;
  --blue: #0866e8;
  --white: #fffdfa;
  --muted: #526171;
  --line: #d9e1e7;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #ffcf56; outline-offset: 4px; }
::selection { background: #9cd0ff; color: var(--ink); }
.page-width { width: min(100% - 96px, 1328px); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); padding: 10px 16px; background: white; color: var(--ink); border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.055em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 53px; padding: 0 22px; border-radius: 100px; background: var(--blue); color: white; font-size: 13px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: background .2s ease, transform .2s ease; }
.button:hover { background: #0051c7; transform: translateY(-2px); }
.button span { font-size: 17px; line-height: 1; }
.button-small { min-height: 42px; padding: 0 18px; gap: 16px; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 13px; font-weight: 700; transition: gap .2s ease; }
.text-link:hover { gap: 16px; }
.eyebrow { margin: 0 0 25px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .15em; line-height: 1.3; }

/* Approved hero */
.site-header { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; }
.header-inner { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--ink); }
.brand-mark { width: 37px; height: 35px; color: var(--blue); }
.brand-name { display: flex; flex-direction: column; gap: 1px; font-size: 12px; line-height: 1; letter-spacing: .04em; }
.brand-name strong { font-size: 15px; font-weight: 900; letter-spacing: -.02em; }
.brand-name span { font-size: 10px; font-weight: 800; letter-spacing: .26em; }
.desktop-nav { display: flex; align-items: center; gap: clamp(22px, 2.8vw, 42px); margin-left: auto; }
.desktop-nav a { font-size: 12px; font-weight: 700; transition: color .2s ease; }
.desktop-nav a:hover { color: var(--blue); }
.mobile-nav { display: none; }
.hero { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #b8e1fa; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(228,247,255,.33) 0%, transparent 54%); }
.hero-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-inner { position: relative; z-index: 1; height: 100%; }
.hero-copy { position: absolute; top: 174px; left: 0; width: min(600px, 52vw); }
.hero-eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; color: #17508f; }
.eyebrow-line { display: inline-block; width: 26px; height: 1px; background: currentColor; }
.hero h1 { margin: 0 0 20px; font-size: clamp(60px, 6vw, 91px); font-weight: 750; line-height: .98; letter-spacing: -.075em; }
.hero-description { max-width: 405px; margin-bottom: 27px; color: #26394b; font-size: 15px; font-weight: 500; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-note { position: absolute; top: 196px; right: 0; display: flex; align-items: center; gap: 12px; padding: 15px 19px; border: 1px solid rgba(255,255,255,.8); border-radius: 15px; background: rgba(255,255,255,.66); box-shadow: 0 13px 38px rgba(32,89,132,.07); backdrop-filter: blur(11px); color: #193450; font-size: 12px; font-weight: 750; line-height: 1.3; }
.hero-note svg { width: 30px; height: 30px; color: var(--blue); }

/* Estimate strip */
.estimate { border-block: 1px solid #dce8ef; background: #f3f8fb; }
.estimate-inner { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: center; gap: 33px; padding-block: 28px; }
.estimate-intro h2 { margin: 0 0 5px; font-size: 26px; line-height: 1.12; }
.estimate-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.estimate-entry { min-width: 0; }
.estimate-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(100px, .56fr) 170px; align-items: end; gap: 10px; }
.estimate-fields label { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #334c60; font-size: 12px; font-weight: 700; }
.estimate-fields input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #bdcbd5; border-radius: 4px; background: white; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; }
.estimate-fields input::placeholder { color: #738493; }
.estimate-fields input:focus-visible { outline: 3px solid #9ac9ff; outline-offset: 1px; border-color: var(--blue); }
.estimate-button { min-height: 46px; padding: 0 12px; border: 0; border-radius: 4px; background: var(--blue); color: white; font: inherit; font-size: 13px; font-weight: 700; cursor: not-allowed; }
.estimate-note { margin: 8px 0 0; color: #657382; font-size: 11px; line-height: 1.3; text-align: right; }

/* Residential roofing content */
.content-section { padding-block: 80px; }
.content-section h2 { max-width: 650px; margin-bottom: 19px; font-size: clamp(38px, 3.45vw, 48px); line-height: 1.08; }
.content-section p { color: var(--muted); font-size: 16px; line-height: 1.62; }
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(50px, 7vw, 110px); }
.about-copy p { max-width: 58ch; margin-bottom: 15px; }
.about-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); color: #314c62; font-size: 13px; font-weight: 700; }
.about-points span::before { content: "✓"; margin-right: 9px; color: var(--blue); }
.about-image { width: 100%; height: 410px; border-radius: 4px; object-fit: cover; object-position: center; }
.services { padding-top: 35px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 29px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { max-width: 38ch; margin: 0 0 3px; }
.services-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 86px); align-items: stretch; }
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1fr); gap: 25px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.service-row h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.service-row p { max-width: 43ch; margin: 0; font-size: 15px; line-height: 1.55; }
.services-image { width: 100%; height: 100%; max-height: 492px; border-radius: 4px; object-fit: cover; object-position: center; }
.materials { background: #f3f6f7; }
.material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.material-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 4px; object-fit: cover; }
.material-item h3 { margin: 19px 0 9px; font-size: 23px; line-height: 1.18; }
.material-item p { max-width: 40ch; margin: 0; font-size: 15px; line-height: 1.55; }
.testimonials { padding-block: 77px 88px; }
.testimonials .section-heading p { max-width: 54ch; font-size: 14px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.testimonial-grid figure { margin: 0; padding-top: 22px; border-top: 2px solid var(--blue); }
.testimonial-grid blockquote { margin: 0 0 23px; font-size: clamp(18px, 1.65vw, 22px); font-weight: 550; line-height: 1.46; letter-spacing: -.025em; }
.testimonial-grid figcaption { color: #657485; font-size: 13px; font-weight: 700; }

/* Footer */
.site-footer { padding: 35px 0; background: #121d30; color: white; }
.footer-inner { display: flex; align-items: center; gap: 36px; }
.footer-brand { color: white; }
.footer-brand .brand-mark { color: #69aaff; }
.footer-identity p { margin: 9px 0 0; color: #b2c0cf; font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 15px 24px; margin-left: auto; }
.site-footer nav a { color: #c6d1dc; font-size: 12px; transition: color .2s ease; }
.site-footer nav a:hover { color: white; }
.footer-note { color: #8fa2b8; font-size: 11px; white-space: nowrap; }

@media (max-width: 1100px) {
  .page-width { width: min(100% - 64px, 1328px); }
  .header-inner { height: 76px; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-nav { display: block; position: relative; margin-left: auto; }
  .mobile-nav summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 42px; height: 42px; border: 1px solid rgba(18,29,48,.3); border-radius: 50%; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { width: 16px; height: 1.5px; background: var(--ink); }
  .mobile-nav nav { position: absolute; top: 52px; right: 0; display: flex; flex-direction: column; width: 210px; padding: 9px; border: 1px solid #d6e7f0; border-radius: 4px; background: white; box-shadow: 0 18px 40px rgba(18,29,48,.13); }
  .mobile-nav nav a { padding: 10px 12px; border-radius: 4px; font-size: 14px; font-weight: 700; }
  .mobile-nav nav a:hover { background: #eaf5fb; }
  .hero { display: flex; flex-direction: column; aspect-ratio: auto; background: #b9e4ff; }
  .hero::after { display: none; }
  .hero-inner { order: 1; height: auto; padding-top: 137px; }
  .hero-copy { position: relative; top: auto; left: auto; width: 100%; max-width: 680px; padding-bottom: 28px; }
  .hero h1 { max-width: 680px; font-size: clamp(58px, 7.2vw, 75px); }
  .hero-description { max-width: 480px; font-size: 14px; }
  .hero-note { display: none; }
  .hero-image { position: relative; order: 2; width: 100%; height: auto; margin-top: -45px; object-fit: contain; }
  .estimate-inner { grid-template-columns: 1fr; gap: 19px; }
  .estimate-fields { grid-template-columns: 1fr 1fr; }
  .estimate-note { text-align: left; }
  .about-grid { gap: 45px; }
  .service-row { grid-template-columns: 1fr; gap: 7px; }
  .services-image { max-height: none; }
  .footer-note { display: none; }
}

@media (max-width: 900px) {
  .page-width { width: min(100% - 40px, 620px); }
  .hero-inner { padding-top: 125px; }
  .hero h1 { font-size: clamp(52px, 10vw, 75px); }
  .estimate-inner { padding-block: 25px; }
  .content-section { padding-block: 54px; }
  .content-section h2 { font-size: clamp(32px, 5vw, 40px); }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading p { margin-top: 13px; }
  .about-grid, .services-grid { grid-template-columns: 1fr; gap: 29px; }
  .about-image { height: auto; max-height: 420px; aspect-ratio: 3 / 2; }
  .services { padding-top: 24px; }
  .service-row { grid-template-columns: minmax(150px, .7fr) 1fr; gap: 20px; padding: 20px 0; }
  .services-image { height: 350px; }
  .material-grid { gap: 16px; }
  .material-item h3 { font-size: 20px; }
  .testimonial-grid { gap: 18px; }
  .testimonial-grid blockquote { font-size: 18px; }
  .footer-inner { flex-wrap: wrap; }
  .site-footer nav { width: 100%; justify-content: flex-start; margin-left: 0; }
}

@media (max-width: 600px) {
  .material-grid, .testimonial-grid { grid-template-columns: 1fr; gap: 34px; }
  .material-item img { aspect-ratio: 3 / 2; }
  .testimonial-grid { gap: 30px; }
  .testimonial-grid figure { padding-top: 17px; }
}

@media (max-width: 520px) {
  .page-width { width: min(100% - 36px, 430px); }
  .brand-mark { width: 32px; height: 31px; }
  .brand-name strong { font-size: 13px; }
  .brand-name span { font-size: 9px; }
  .hero-inner { padding-top: 120px; }
  .hero-eyebrow { margin-bottom: 19px; }
  .hero h1 { margin-bottom: 19px; font-size: clamp(43px, 12vw, 63px); }
  .hero-actions { gap: 18px; }
  .hero .button { min-height: 49px; padding-inline: 19px; }
  .hero-image { margin-top: -12px; }
  .estimate-intro h2 { font-size: 24px; }
  .estimate-fields { grid-template-columns: 1fr; gap: 12px; }
  .estimate-fields input { font-size: 16px; }
  .estimate-button { font-size: 14px; }
  .content-section { padding-block: 48px; }
  .content-section h2 { font-size: clamp(30px, 8.6vw, 36px); }
  .content-section p { font-size: 16px; }
  .about-points { display: grid; gap: 10px; }
  .about-image { aspect-ratio: 4 / 3; }
  .services { padding-top: 15px; }
  .service-row { grid-template-columns: 1fr; gap: 7px; }
  .service-row h3 { font-size: 21px; }
  .service-row p, .material-item p { font-size: 15px; }
  .services-image { height: 250px; }
  .material-item h3 { margin-top: 15px; }
  .site-footer nav { gap: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
