/* =========================================================
   UpKeep Solutions — static site
   Palette matched to the live upkeepsolutions.com:
     cream #fffeed, ink #171200, gold #847539, navy #1d233e,
     beige #b5b0a1, sky #cbdce9
   ========================================================= */

:root {
  --cream:    #fffeed;
  --cream-2:  #fffaeb;
  --ink:      #171200;
  --ink-2:    #3d3929;
  --gold:     #847539;
  --gold-600: #6c5e2c;
  --gold-100: #efe8d0;
  --navy:     #1d233e;
  --navy-700: #14182d;
  --beige:    #b5b0a1;
  --sky:      #cbdce9;
  --white:    #ffffff;
  --border:   #e7e1cd;
  --muted:    #6b6452;
  --shadow-sm: 0 2px 6px rgba(23, 18, 0, 0.08);
  --shadow-md: 0 14px 40px rgba(23, 18, 0, 0.12);
  --radius:    8px;
  --radius-lg: 18px;
  --max:       1200px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); font-weight: 300; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--cream);
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-600); border-color: var(--gold-600); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 254, 237, 0.7);
}
.btn-outline:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,254,237,.96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.brand-logo {
  height: 44px; width: auto; display: block;
}
.brand-text {
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta .btn { padding: 10px 18px; font-size: .75rem; }
  .nav-toggle { display: grid; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--cream);
  overflow: hidden;
  padding: 140px 0 160px;
  isolation: isolate;
  background: var(--navy);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: .55;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(29,35,62,.55) 0%, rgba(23,18,0,.78) 100%);
}
.hero-inner { position: relative; max-width: 880px; }
.hero h1 { color: var(--cream); margin-bottom: 22px; font-weight: 500; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 254, 237, 0.92);
  margin-bottom: 36px;
  max-width: 660px;
  font-weight: 300;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px;
  color: rgba(255, 254, 237, 0.85);
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-meta span { display: flex; align-items: center; gap: 10px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Sections ===== */
section { padding: 100px 0; }
.section-cream { background: var(--cream-2); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: var(--cream); }
.section-navy .eyebrow { color: var(--gold); }
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }

/* ===== About row ===== */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.about-image {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: 24px; right: -24px;
  background: var(--gold); color: var(--cream);
  padding: 22px 28px;
  font-family: "Fahkwang", "Work Sans", sans-serif;
  box-shadow: var(--shadow-md);
}
.about-badge strong { font-size: 2rem; display: block; line-height: 1; font-weight: 600; }
.about-badge span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .95; display: block; margin-top: 6px; }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { right: 24px; }
}

/* ===== Stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255, 254, 237, 0.08);
  border: 1px solid rgba(255, 254, 237, 0.08);
}
.stat {
  text-align: center; padding: 50px 24px;
  background: var(--navy);
}
.stat-num {
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 500; color: var(--gold); line-height: 1;
  letter-spacing: -0.01em;
}
.stat-label {
  margin-top: 14px;
  color: rgba(255, 254, 237, 0.85);
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
}

/* ===== Partners strip ===== */
.partners {
  background: var(--cream);
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-label {
  text-align: center;
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.partners-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 0;
  max-width: 1100px; margin: 0 auto;
  border-left: 1px solid var(--border);
}
.partner {
  display: grid;
  place-items: center;
  height: 100px;
  padding: 18px 24px;
  border-right: 1px solid var(--border);
}
.partner img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.6);
  transition: filter .3s var(--ease), transform .3s var(--ease);
}
.partner:hover img { filter: grayscale(0) opacity(1); transform: scale(1.04); }
@media (max-width: 900px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .partner:nth-child(3n) { border-right: 1px solid var(--border); }
  .partner { border-bottom: 1px solid var(--border); }
  .partner:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (max-width: 500px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partner:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .partner:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ===== Feature grid (why) ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: 4px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--gold);
  margin-bottom: 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--ink); }
.feature p { font-size: .95rem; color: var(--muted); margin: 0; }

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

/* ===== Process ===== */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  background: var(--cream);
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.step-num {
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-weight: 500; font-size: 2.6rem; color: var(--gold);
  line-height: 1; margin-bottom: 18px; letter-spacing: -0.02em;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 800px) { .process { grid-template-columns: 1fr; } }

/* ===== Services ===== */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service {
  background: var(--cream);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-image {
  height: 220px; position: relative; overflow: hidden;
  display: grid; place-items: center;
  background: var(--gold-100);
  transition: background .3s var(--ease);
}
.service-image::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(132, 117, 57, 0.12) 0, transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(29, 35, 62, 0.08) 0, transparent 35%);
  pointer-events: none;
}
.service-icon {
  width: 96px; height: 96px;
  color: var(--gold);
  position: relative;
  transition: transform .5s var(--ease), color .3s var(--ease);
}
.service-icon svg { width: 100%; height: 100%; display: block; }
.service:hover .service-image { background: var(--cream); }
.service:hover .service-icon { transform: translateY(-4px) scale(1.06); color: var(--ink); }
.service-1 .service-image { background: #f3ecd3; }
.service-2 .service-image { background: #ece6cf; }
.service-3 .service-image { background: #e6decc; }
.service-4 .service-image { background: #efe7c8; }
.service-body { padding: 30px 28px 32px; }
.service h3 {
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; font-weight: 500;
}
.service h4 { font-size: 1.4rem; color: var(--ink); margin: 0 0 14px; }
.service p { color: var(--muted); font-size: .95rem; margin: 0; }

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

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  background: var(--cream);
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.testi .quote-mark {
  position: absolute; top: 18px; right: 26px; font-size: 4rem;
  color: var(--gold); opacity: .25; line-height: 1; font-weight: 600;
}
.testi blockquote { margin: 0 0 22px; font-size: 1rem; color: var(--ink-2); line-height: 1.65; font-weight: 300; }
.testi cite {
  font-style: normal;
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-weight: 500; color: var(--gold); font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ===== CTA banner ===== */
.cta {
  background: var(--gold); color: var(--cream);
  text-align: center; padding: 90px 24px;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 254, 237, 0.14), transparent 70%);
}
.cta-inner { position: relative; max-width: 760px; margin: 0 auto; }
.cta h2 { color: var(--cream); margin-bottom: 14px; font-weight: 500; }
.cta p { font-size: 1.1rem; color: rgba(255, 254, 237, 0.95); margin-bottom: 30px; font-weight: 300; }
.cta .btn-primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cta .btn-primary:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ===== Footer ===== */
.footer {
  background: var(--navy-700); color: rgba(255, 254, 237, 0.72);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 44px;
}
.footer h4 {
  color: var(--cream);
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 18px; font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; font-size: .92rem; }
.footer ul a:hover { color: var(--gold); }
.footer-brand .brand-logo { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .92rem; color: rgba(255, 254, 237, 0.6); margin: 0 0 18px; max-width: 320px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 254, 237, 0.18);
  color: var(--cream);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 254, 237, 0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: rgba(255, 254, 237, 0.5);
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Page header ===== */
.page-head {
  background: var(--navy);
  color: var(--cream); padding: 120px 0 90px; text-align: center;
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(132, 117, 57, 0.18), transparent 60%);
}
.page-head .container { position: relative; }
.page-head h1 { color: var(--cream); font-weight: 500; }
.page-head p { color: rgba(255, 254, 237, 0.82); max-width: 660px; margin: 0 auto; }

/* ===== Quote / contact ===== */
.quote-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; }
.quote-form {
  background: var(--cream);
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.quote-form h2 { font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 8px; font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--border); border-radius: 2px;
  font-family: inherit; font-size: .95rem;
  background: var(--white);
  font-weight: 300;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(132, 117, 57, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }

/* Copper embedded form — let it expand naturally */
#copper-form-embed { min-height: 480px; }
#copper-form-embed iframe {
  width: 100% !important;
  border: 0 !important;
  background: transparent;
  display: block;
}

.contact-info {
  background: var(--navy); color: var(--cream);
  padding: 44px;
  border-radius: 4px;
}
.contact-info h3 {
  color: var(--gold);
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 8px; font-weight: 500;
}
.contact-info > p { color: rgba(255, 254, 237, 0.82); margin: 0 0 28px; font-size: .95rem; }
.info-block { padding: 20px 0; border-bottom: 1px solid rgba(255, 254, 237, 0.1); }
.info-block:last-child { border-bottom: 0; }
.info-block h4 {
  color: var(--gold);
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  margin: 0 0 8px; font-weight: 500;
}
.info-block p, .info-block a { color: var(--cream); font-weight: 400; margin: 0; font-size: 1rem; }
.info-block a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-form, .contact-info { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== About page promise grid ===== */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promise-card {
  background: var(--cream);
  padding: 40px 30px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: left;
}
.promise-card .feature-icon { margin-bottom: 22px; }
.promise-card h3 {
  font-family: "Fahkwang", "Work Sans", sans-serif;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; font-weight: 500;
}
.promise-card h4 { font-size: 1.3rem; margin: 0 0 12px; color: var(--ink); }
.promise-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.mission {
  background: var(--navy);
  color: rgba(255, 254, 237, 0.92);
  text-align: center;
  border-radius: 4px;
  padding: 70px 40px;
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(132, 117, 57, 0.16), transparent 65%);
}
.mission > * { position: relative; }
.mission h2 { color: var(--cream); margin-bottom: 18px; font-weight: 500; }
.mission p { max-width: 780px; margin: 0 auto; font-size: 1.05rem; color: rgba(255, 254, 237, 0.85); }

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

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
