:root {
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --gold: #f2c94c;
  --gold-dark: #c99a12;
  --ink: #172033;
  --text: #475569;
  --muted: #596a80;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --line: #dce3eb;
  --success: #166534;
  --danger: #b42318;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.13);
  --radius: 1.25rem;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-wrap: break-word;
  background:
    radial-gradient(circle at 92% 3%, rgba(242, 201, 76, 0.13), transparent 28rem),
    var(--paper);
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

section[id],
#contact,
form[id] {
  scroll-margin-top: 7.5rem;
}

.utility {
  background: var(--navy);
  color: #e2e8f0;
  font-size: 0.86rem;
}

.utility-inner {
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-message {
  color: #cbd5e1;
}

.utility-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 750;
}

.utility a:hover {
  color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 235, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold-dark);
  border-radius: 0.8rem;
  background: var(--navy);
  color: var(--gold);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-name {
  display: grid;
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.2;
}

.brand-name small {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--navy);
}

.button {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #f7d66f;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.button-dark {
  background: var(--navy);
  color: var(--paper);
}

.button-dark:hover {
  background: var(--navy-soft);
}

.button-outline {
  border-color: #94a3b8;
  background: transparent;
  color: var(--navy);
}

.button-outline:hover {
  border-color: var(--navy);
  background: var(--paper);
}

.hero {
  padding-block: clamp(2.2rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.hero-copy {
  padding-top: clamp(1rem, 3vw, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #8a6500;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 2px;
  content: "";
  background: var(--gold-dark);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.1rem;
  font-size: clamp(2.55rem, 6vw, 5.3rem);
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3,
.service-card h2 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

p {
  margin-top: 0;
  color: var(--text);
}

.hero-copy > p {
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.assurance-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.assurance-list li {
  position: relative;
  padding: 0.75rem 0.7rem 0.75rem 1.9rem;
  border-top: 1px solid var(--line);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 750;
}

.assurance-list li::before {
  position: absolute;
  left: 0.35rem;
  content: "✓";
  color: var(--success);
  font-weight: 900;
}

.quote-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: enter 500ms ease-out both;
}

.quote-photo {
  position: relative;
  height: 10.5rem;
  overflow: hidden;
  background: var(--navy);
}

.quote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(15, 23, 42, 0.44), transparent 65%);
}

.quote-card form {
  padding: 1.35rem;
}

.quote-card h2 {
  margin-bottom: 0.35rem;
  font-size: 1.65rem;
}

.quote-card .form-intro {
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.34rem;
}

.tender-details {
  margin-top: 1rem;
}

.tender-details summary {
  display: list-item;
  align-content: center;
  font-weight: 700;
}

.tender-details .form-grid {
  margin-top: 0.9rem;
}

.field-wide {
  grid-column: 1 / -1;
}

label {
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid #b8c4d1;
  border-radius: 0.65rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 0.78rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #64748b;
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: var(--danger);
}

.required {
  color: var(--danger);
}

.form-note {
  margin: 0.9rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-note a {
  font-weight: 800;
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-error {
  margin: 0;
  color: var(--danger);
}

.form-error:not(:empty) {
  margin-top: 0.75rem;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-grid {
  min-height: 5.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.trust-item {
  padding: 0.8rem 1.3rem;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.94rem;
}

.trust-item span {
  color: #627187;
  font-size: 0.83rem;
}

.section {
  padding-block: clamp(3.8rem, 8vw, 6.5rem);
}

.section-soft {
  background: var(--surface);
}

.section-heading {
  max-width: 47rem;
  margin-bottom: 2rem;
}

.section-heading p {
  max-width: 42rem;
  font-size: 1.05rem;
}

.section-followup {
  margin: 1.5rem 0 0;
  max-width: 48rem;
}

#fm-property a {
  overflow-wrap: anywhere;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 100%;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
}

.service-number {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.service-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.service-card li + li {
  margin-top: 0.35rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 1rem;
}

.work-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--navy);
  color: var(--paper);
}

.work-card img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  transition: transform 350ms ease;
}

.work-card:first-child img {
  height: 26rem;
}

.work-card:hover img {
  transform: scale(1.02);
}

.work-card figcaption {
  padding: 1rem 1.1rem;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.work-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--paper);
  font-size: 1rem;
}

.proof-note {
  max-width: 51rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 1.5rem 1.4rem 1rem;
  border-top: 2px solid var(--line);
  counter-increment: process;
}

.process-step::before {
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: -1.05rem;
  left: 1.4rem;
  display: grid;
  place-items: center;
  content: counter(process, decimal-leading-zero);
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 900;
}

.process-step h3 {
  margin-top: 0.5rem;
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}

.coverage-grid > *,
.footer-grid > *,
.form-grid > * {
  min-width: 0;
}

.coverage-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--paper);
}

.coverage-panel h3 {
  color: var(--paper);
}

.coverage-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.coverage-list li {
  padding: 0.7rem;
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 0.7rem;
  color: #f8fafc;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
}

.coverage-panel p {
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  color: var(--navy);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 54rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--paper);
  padding: 0.95rem 1.1rem;
}

summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  color: var(--navy);
  font-weight: 850;
  cursor: pointer;
}

details p {
  margin: 0.75rem 0 0;
}

.closing {
  padding-block: clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.94)),
    url("/assets/roofing-pack/att.ZIQxNOOcRwnHf7KTEBShiWxqTjjwkKycpb5TtXmgTYE.JPG") center / cover;
  color: var(--paper);
}

.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.closing h2 {
  max-width: 15ch;
  margin-bottom: 0;
  color: var(--paper);
}

.closing p {
  max-width: 38rem;
  margin: 0.8rem 0 0;
  color: #e2e8f0;
}

.closing-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.closing .button-outline {
  border-color: #cbd5e1;
  color: var(--paper);
}

.closing .button-outline:hover {
  color: var(--navy);
}

.site-footer {
  padding-block: 2.2rem;
  background: #080f20;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-title {
  margin: 0 0 0.55rem;
  color: var(--paper);
  font-weight: 850;
}

.footer-copy,
.legal-copy {
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #e2e8f0;
  overflow-wrap: anywhere;
}

.mobile-quote {
  display: none;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    padding-block: 0.65rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 17ch;
  }

  .quote-card {
    max-width: 42rem;
  }

  .work-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .work-card:last-child {
    grid-column: 1 / -1;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 0;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 4.35rem;
  }

  .container {
    width: min(var(--max), calc(100% - 1.25rem));
  }

  .utility-inner {
    min-height: 2.4rem;
  }

  .utility-message,
  .utility-email {
    display: none;
  }

  .utility-contact {
    width: 100%;
    justify-content: center;
  }

  .site-header {
    position: static;
    backdrop-filter: none;
  }

  .header-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-name small {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav {
    width: 100%;
    padding-bottom: 0.35rem;
    gap: 0;
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav a {
    padding-inline: 0.58rem;
    font-size: 0.83rem;
  }

  section[id],
  #contact,
  form[id] {
    scroll-margin-top: 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4.2rem);
  }

  .assurance-list,
  .trust-grid,
  .card-grid,
  .form-grid,
  .work-grid,
  .process-grid,
  .coverage-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .assurance-list {
    gap: 0.2rem;
  }

  .quote-photo {
    height: 8.5rem;
  }

  .trust-grid {
    padding-block: 0.6rem;
  }

  .trust-item {
    padding: 0.6rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .work-card,
  .work-card:last-child {
    grid-column: auto;
  }

  .work-card img,
  .work-card:first-child img {
    height: 16rem;
  }

  .process-grid {
    gap: 1.5rem;
  }

  .coverage-list {
    grid-template-columns: 1fr;
  }

  .closing-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-actions {
    width: 100%;
  }

  .closing-actions .button {
    flex: 1 1 12rem;
  }

  .mobile-quote {
    position: fixed;
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    z-index: 30;
    display: flex;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3);
  }
}

@media (max-width: 380px) {
  .brand-mark {
    width: 2.55rem;
    height: 2.55rem;
  }

  .brand-name {
    font-size: 0.82rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .quote-card form {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.page-heading h1 {
  max-width: 18ch;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.page-heading > p {
  max-width: 43rem;
  font-size: 1.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid .work-card {
  margin: 0;
}

.gallery-grid .work-card img {
  height: auto;
  aspect-ratio: 4 / 3;
}

.development-illustration {
  align-self: start;
  margin: 0;
}

.development-illustration img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 570px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
