/* Rigo's Taping Services LTD. — site styles
   Brand colours come from the RTS logo. */
:root {
  --navy: #011F51;
  --navy-deep: #00163B;
  --orange: #FC6B01;
  --orange-dark: #C24F00;   /* orange that is readable on white */
  --board: #F3F5F8;         /* cool drywall white */
  --mud: #DCE1E8;           /* joint compound grey, for rules */
  --ink: #0F1B33;
  --muted: #4A5670;
  --white: #FFFFFF;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --slant: 14deg;           /* matches the cuts in the R and S of the logo */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--navy); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { font-stretch: 125%; line-height: 1.08; margin: 0; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); font-weight: 850; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.6rem;
  font: inherit; font-weight: 750; font-stretch: 112%; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent; border-radius: 4px;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #FF8424; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-call { background: var(--navy); color: var(--white); min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-call:hover { background: var(--navy-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--mud);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; margin-right: auto; }
.brand img { width: 104px; }
.brand-name { font-weight: 800; font-stretch: 115%; font-size: .92rem; line-height: 1.15; color: var(--navy); }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 650; color: var(--navy); padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(5.5rem, 12vw, 9rem);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 3rem; align-items: center; }
.hero-badge {
  background: var(--white); padding: 2.4rem 2.2rem 2rem 2.6rem;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-badge img { width: 100%; }
.hero-badge p { margin: 1.1rem 0 0; color: var(--navy); font-weight: 850; font-stretch: 125%; font-size: 1.35rem; line-height: 1.12; text-align: right; }
.hero-copy { max-width: 46rem; }
.hero-kicker { font-weight: 650; color: #B9C6DE; margin-bottom: 1.1rem; }
.hero h1 { color: var(--white); margin-bottom: 1.4rem; }
.hero-lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: #DCE4F2; max-width: 38rem; margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-phone { margin: 1.5rem 0 0; font-weight: 800; font-stretch: 125%; font-size: 1.35rem; letter-spacing: .01em; }

/* The "joint": an orange taped seam cut at the logo's slant */
.joint {
  position: absolute; left: -5%; right: -5%; bottom: 2.2rem; height: 22px;
  background: var(--orange);
  transform: rotate(calc(var(--slant) * -0.25));
  transform-origin: left center;
}
.joint::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 400px;
  background: var(--white);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-lede { color: var(--muted); margin-top: -.5rem; margin-bottom: 2rem; }

.service-list {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  column-gap: 3rem;
}
.service-list li { padding: 1.5rem 0 1.4rem; border-top: 2px solid var(--mud); position: relative; }
.service-list li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--orange);
}
.service-list h3 { margin-bottom: .5rem; }
.service-list p { color: var(--muted); margin: 0; max-width: 34rem; }

.split { background: var(--board); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split-col { padding: .5rem clamp(1.5rem, 4vw, 3.5rem) .5rem 0; }
.split-col + .split-col { border-left: 2px solid var(--mud); padding-left: clamp(1.5rem, 4vw, 3.5rem); padding-right: 0; }
.split-col h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .8rem; }
.split-col p { color: var(--muted); max-width: 32rem; margin: 0; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; }
.about-copy { max-width: 40rem; }
.about-copy h3 { margin: 2rem 0 .75rem; }
.area-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.area-list li {
  background: var(--navy); color: var(--white); font-weight: 650; font-size: .95rem;
  padding: .45rem .95rem; border-radius: 3px;
}
.area-list li:last-child { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: .3rem .85rem; }

/* ---------- Gallery (shown only when media exists) ---------- */
.work { background: var(--board); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.g-item { margin: 0; background: var(--white); border: 1px solid var(--mud); }
.g-item img, .g-item video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mud); }
.g-item figcaption { padding: .75rem 1rem; font-size: .95rem; color: var(--muted); }
.g-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--mud); }
.g-pair div { position: relative; }
.g-pair span {
  position: absolute; left: .5rem; top: .5rem; background: var(--navy); color: var(--white);
  font-size: .8rem; font-weight: 700; padding: .15rem .5rem; border-radius: 2px;
}
.g-pair span.after { background: var(--orange); color: var(--navy); }
@media (min-width: 700px) { .g-item.wide { grid-column: span 2; } }
.g-item.wide .g-pair img { aspect-ratio: 4 / 3; }

/* ---------- Quote ---------- */
.quote { background: var(--navy); color: var(--white); }
.quote h2 { color: var(--white); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.quote-intro p { color: #DCE4F2; }
.contact-block { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid rgba(255,255,255,.18); }
.contact-label { font-weight: 700; color: var(--white) !important; margin-bottom: .5rem; }
.contact-line { display: block; padding: .35rem 0; font-weight: 650; text-decoration: none; color: var(--white); word-break: break-word; }
.contact-line:hover { color: var(--orange); }

.quote-form { background: var(--white); color: var(--ink); padding: clamp(1.4rem, 3.5vw, 2.25rem); border-radius: 4px; border-top: 6px solid var(--orange); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 1rem; }
.field label { font-weight: 700; font-size: .95rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .85rem; border: 2px solid var(--mud); border-radius: 4px; background: var(--white);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(252,107,1,.35); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-hint { font-size: .9rem; color: var(--muted); margin: -.6rem 0 1.1rem; }
.field-hint.is-error, .form-status.is-error { color: #B3261E; font-weight: 650; }
.btn-submit { width: 100%; margin-top: .25rem; }
.btn-submit[disabled] { opacity: .65; cursor: wait; }
.form-status { margin: 1rem 0 0; font-size: .98rem; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #13693A; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quote-fallback { background: var(--white); color: var(--ink); padding: clamp(1.4rem, 3.5vw, 2.25rem); border-radius: 4px; border-top: 6px solid var(--orange); }
.quote-fallback h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.quote-fallback p { color: var(--muted); }
.fallback-actions { display: grid; gap: .75rem; margin-top: 1.25rem; }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--board); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C5D0E4; padding: 3.5rem 0 2.5rem; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { display: inline-block; background: var(--white); padding: .6rem .8rem; border-radius: 4px; margin-bottom: 1rem; }
.footer-logo img { width: 110px; }
.footer-name { color: var(--white); font-weight: 800; font-stretch: 115%; }
.footer-h { color: var(--white); font-weight: 750; margin-bottom: .6rem; }
.site-footer a { color: #C5D0E4; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

/* ---------- Mobile quick-contact bar ---------- */
.action-bar { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .about-grid, .quote-grid, .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-grid h2 { margin-bottom: 0; }
}
@media (max-width: 720px) {
  .header-call { display: none; }
  .brand img { width: 84px; }
  .split-grid { grid-template-columns: 1fr; }
  .split-col, .split-col + .split-col { padding: 1.5rem 0; border-left: 0; }
  .split-col + .split-col { border-top: 2px solid var(--mud); }
  .field-row { flex-direction: column; gap: 0; }
  .cta-row .btn { flex: 1 1 auto; }
  .cta-row .btn-primary { flex-basis: 100%; }
  .joint { height: 16px; bottom: 1.6rem; }

  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--navy); border-top: 3px solid var(--orange);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 58px;
    color: var(--white); font-weight: 750; font-stretch: 112%; text-decoration: none;
  }
  .action-bar a + a { border-left: 1px solid rgba(255,255,255,.18); }
  .action-bar .action-quote { background: var(--orange); color: var(--navy); }
  body { padding-bottom: 61px; }
}
