
:root {
  --navy: #041a3b;
  --navy-2: #07285d;
  --blue: #0c5eb9;
  --blue-bright: #1479dc;
  --sky: #e9f5ff;
  --ice: #f7fbff;
  --ink: #10233d;
  --muted: #5a6a7e;
  --line: #ccdbea;
  --white: #ffffff;
  --amber: #f3a20b;
  --amber-dark: #ca6b03;
  --shadow: 0 24px 70px rgba(5, 35, 74, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-shell { min-height: 100vh; overflow: hidden; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.utility-bar {
  background: var(--navy);
  color: #e5f3ff;
  font-size: 0.78rem;
}

.utility-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-inner p,
.utility-links,
.utility-links a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-inner p { margin: 0; }
.utility-inner svg { width: 14px; height: 14px; color: #77c0ff; }
.utility-links { gap: 24px; }
.utility-links a { font-weight: 800; }

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(247, 251, 255, 0.94);
  border-bottom: 1px solid rgba(10, 63, 119, 0.12);
  box-shadow: 0 8px 32px rgba(7, 40, 93, 0.07);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { position: relative; flex: none; overflow: hidden; }
.brand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-desktop { width: 300px; height: 94px; }
.brand-desktop img { transform: scale(1.22); }
.brand-mobile { display: none; }

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 34px);
  margin-left: auto;
  color: #243c58;
  font-size: 0.9rem;
  font-weight: 750;
}

.desktop-nav a {
  padding-block: 10px;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible { color: var(--blue); border-color: var(--blue); }

.header-call {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(4, 26, 59, 0.18);
  white-space: nowrap;
}

.header-call svg { width: 20px; }
.ui-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 1.1em;
  color: currentColor;
  font-style: normal;
  line-height: 1;
}
.header-call span { display: grid; gap: 1px; font-size: 0.88rem; font-weight: 850; }
.header-call small {
  color: #9dd2ff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 78% 32%, rgba(255,255,255,0.94) 0 13%, transparent 38%),
    linear-gradient(118deg, #eef8ff 0%, #d5ebff 52%, #f5fbff 100%);
  border-bottom: 1px solid #c7ddf0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(7, 66, 129, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 66, 129, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 78%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-one {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -180px;
  background: rgba(20, 121, 220, 0.18);
}

.hero-orb-two {
  width: 240px;
  height: 240px;
  left: -140px;
  bottom: -130px;
  background: rgba(243, 162, 11, 0.13);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 70px);
  padding-block: 64px 54px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow svg { width: 17px; height: 17px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .footer-name {
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(3.25rem, 6.5vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 665px;
  margin-bottom: 30px;
  color: #3e566f;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(20, 121, 220, 0.34);
  outline-offset: 3px;
}

.button svg { width: 19px; height: 19px; }
.button-primary {
  background: linear-gradient(135deg, var(--blue), #084b94);
  color: var(--white);
  box-shadow: 0 13px 30px rgba(12, 94, 185, 0.25);
}

.button-secondary {
  background: rgba(255,255,255,0.8);
  color: var(--navy);
  border: 1px solid rgba(5, 54, 106, 0.2);
  box-shadow: 0 10px 26px rgba(5, 44, 88, 0.08);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #344d67;
  font-size: 0.83rem;
  font-weight: 750;
}

.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list svg { width: 17px; color: var(--blue); }

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: end center;
}

.mascot-backdrop {
  position: absolute;
  width: min(100%, 465px);
  aspect-ratio: 1;
  bottom: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, #fff 0 8%, transparent 9%),
    linear-gradient(145deg, #bfe2ff, #eaf7ff 52%, #ffd991);
  border: 1px solid rgba(7, 68, 131, 0.13);
  box-shadow: var(--shadow);
}

.mascot-backdrop::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(6, 74, 145, 0.22);
}

.mascot {
  position: relative;
  z-index: 2;
  width: min(94%, 430px);
  height: auto;
  filter: drop-shadow(0 24px 20px rgba(4, 25, 58, 0.2));
}

.mascot-tag {
  position: absolute;
  z-index: 3;
  right: -6px;
  bottom: 34px;
  display: grid;
  gap: 2px;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--navy);
  color: white;
  box-shadow: 0 16px 34px rgba(4, 26, 59, 0.24);
  transform: rotate(-2deg);
}

.mascot-tag span {
  color: #a8d7ff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mascot-tag strong { font-size: 1rem; }

.trust-band {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  background: var(--navy);
  color: #eaf5ff;
}

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

.trust-band p {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0 26px;
  border-right: 1px solid rgba(255,255,255,0.13);
  color: #bfd0e2;
  font-size: 0.78rem;
  line-height: 1.45;
}

.trust-band p:first-child { padding-left: 0; }
.trust-band p:last-child { padding-right: 0; border-right: 0; }
.trust-band svg { flex: none; width: 27px; height: 27px; color: #79c1ff; }
.trust-band span { display: grid; }
.trust-band strong { color: white; font-size: 0.94rem; }

.section { padding-block: 108px; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.4rem, 4.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-heading > p:last-child,
.area-panel > p,
.about-copy > p,
.estimate-intro > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.services-section { background: white; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative;
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f5faff);
  box-shadow: 0 18px 48px rgba(5, 42, 82, 0.07);
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -42px;
  bottom: -52px;
  border-radius: 50%;
  background: rgba(20, 121, 220, 0.08);
}

.featured-card {
  background: linear-gradient(145deg, #062453, #0b4e95);
  border-color: transparent;
  color: white;
  transform: translateY(-12px);
}

.featured-card h3, .featured-card p { color: white; }
.featured-card .card-number { color: #80c8ff; }
.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  border-radius: 16px;
  background: #e5f3ff;
  color: var(--blue);
}

.featured-card .service-icon { background: rgba(255,255,255,0.13); color: #8ed2ff; }
.service-icon svg { width: 26px; }
.card-number {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #91a3b6;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.service-card h3 { margin-bottom: 12px; color: var(--navy); font-size: 1.45rem; }
.service-card > p:last-child {
  max-width: 290px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.7;
}

.scope-note { margin: 28px 0 0; color: #6b7d90; font-size: 0.82rem; text-align: center; }
.area-section {
  background: linear-gradient(110deg, rgba(4,26,59,0.99), rgba(7,53,106,0.96)), var(--navy);
  color: white;
}

.area-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.area-panel {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 220px;
}

.area-kicker {
  margin-bottom: 13px !important;
  color: #8fd1ff !important;
  font-size: 0.75rem !important;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.area-panel h2 { color: white; }
.area-panel > p:last-child { color: #c2d3e5; }
.map-rings {
  position: absolute;
  left: -55px;
  top: 50%;
  width: 235px;
  height: 235px;
  transform: translateY(-50%);
}

.map-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(116, 195, 255, 0.25);
  border-radius: 50%;
}

.map-rings span:nth-child(2) { inset: 38px; }
.map-rings span:nth-child(3) { inset: 78px; background: rgba(20, 121, 220, 0.16); }
.map-rings svg,
.map-rings > .ui-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  color: #f9ad1d;
  transform: translate(-50%, -50%);
}

.location-list { display: grid; border-top: 1px solid rgba(255,255,255,0.17); }
.location-list > div {
  min-height: 104px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.17);
}

.location-list > div > span {
  color: #6ebaff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.location-list p { display: grid; gap: 4px; margin: 0; color: #aebfd2; font-size: 0.82rem; }
.location-list strong { color: white; font-size: 1.28rem; }
.about-section { position: relative; background: #edf7ff; }
.about-section::after {
  content: "";
  position: absolute;
  inset: auto -120px -190px auto;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: rgba(243, 162, 11, 0.1);
}

.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(50px, 9vw, 130px);
  align-items: center;
}

.about-copy {
  padding: 36px;
  border-left: 4px solid var(--amber);
  border-radius: 0 20px 20px 0;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 20px 55px rgba(5, 43, 83, 0.08);
}

.about-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 22px; }
.about-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 850;
}

.about-actions svg { width: 18px; }
.estimate-section { background: white; }
.estimate-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(42px, 8vw, 105px);
  align-items: start;
}

.contact-stack { display: grid; gap: 12px; margin-top: 34px; }
.contact-stack a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfe;
}

.contact-stack a > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: var(--navy);
  color: white;
}

.contact-stack svg { width: 18px; }
.contact-stack p { display: grid; gap: 2px; margin: 0; }
.contact-stack small {
  color: #718296;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-stack strong { color: var(--navy); font-size: 0.88rem; overflow-wrap: anywhere; }
.estimate-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, #f8fcff, #edf6ff);
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.estimate-form label {
  display: grid;
  gap: 8px;
  color: #263f5c;
  font-size: 0.79rem;
  font-weight: 800;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  border: 1px solid #bed0e2;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.estimate-form input, .estimate-form select { min-height: 48px; }
.estimate-form textarea { resize: vertical; }
.form-submit { width: 100%; margin-top: 2px; }
.form-note {
  margin: -3px 0 0;
  color: #687a8d;
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer { padding: 62px 0 36px; background: #03142f; color: #b9cadc; }
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 38px;
}

.footer-name { margin-bottom: 6px; color: white; font-size: 1.3rem; font-weight: 850; }
.footer-grid > div > p:last-child { margin: 0; color: #8196ad; font-size: 0.8rem; }
.footer-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  color: #dceafa;
  font-size: 0.82rem;
  font-weight: 750;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #71879f;
  font-size: 0.72rem;
}

.mobile-action-bar { display: none; }

@media (max-width: 1040px) {
  .brand-desktop { width: 250px; }
  .desktop-nav { gap: 17px; }
  .desktop-nav a:nth-child(3) { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr); }
  .mascot-tag { right: 0; }
  .area-panel { padding-left: 170px; }
  .map-rings { left: -60px; width: 205px; height: 205px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 82px; }
  .container { width: min(100% - 30px, 680px); }
  .utility-bar, .brand-desktop, .desktop-nav, .header-call { display: none; }
  .site-header { position: sticky; top: 0; }
  .header-inner { height: 78px; }
  .brand-mobile { width: 92px; height: 74px; display: block; }
  .brand-mobile img { transform: scale(1.3); }
  .header-inner::after {
    content: "Cornerstone Plumbing";
    margin-left: 6px;
    color: var(--navy);
    font-family: "Arial Narrow", "Franklin Gothic Medium", sans-serif;
    font-size: 1.04rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }

  .header-inner::before {
    content: "Portland Metro • CCB #262184";
    margin-left: auto;
    color: #526a83;
    font-size: 0.63rem;
    font-weight: 750;
  }

  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; padding-block: 52px 24px; }
  h1 { font-size: clamp(3rem, 13vw, 5rem); }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .trust-list { justify-content: center; }
  .hero-lede { margin-inline: auto; }
  .hero-visual { min-height: 455px; }
  .mascot-backdrop { width: min(92%, 410px); }
  .mascot { width: min(78%, 340px); }
  .mascot-tag { right: 8%; }
  .trust-band-grid { grid-template-columns: 1fr; padding-block: 12px; }
  .trust-band p,
  .trust-band p:first-child,
  .trust-band p:last-child {
    min-height: 72px;
    padding-inline: 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .trust-band p:last-child { border-bottom: 0; }
  .section { padding-block: 78px; }
  .service-grid, .area-grid, .about-grid, .estimate-grid { grid-template-columns: 1fr; }
  .service-grid { gap: 14px; }
  .service-card, .featured-card { min-height: 0; transform: none; }
  .area-grid, .about-grid, .estimate-grid { gap: 40px; }
  .area-panel { min-height: 0; padding: 250px 0 0; text-align: center; }
  .map-rings { left: 50%; top: 0; width: 220px; height: 220px; transform: translateX(-50%); }
  .footer-grid, .footer-bottom { flex-direction: column; }
  .footer-details { justify-content: flex-start; }
  .mobile-action-bar {
    position: fixed;
    z-index: 50;
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 19px;
    background: rgba(3, 20, 47, 0.96);
    color: white;
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
    backdrop-filter: blur(16px);
  }

  .mobile-action-bar a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border-radius: 14px;
    font-size: 0.68rem;
    font-weight: 800;
  }

  .mobile-action-bar a:last-child { background: var(--blue); }
  .mobile-action-bar svg { width: 19px; height: 19px; }
  .site-footer { padding-bottom: 112px; }
}

@media (max-width: 540px) {
  .container { width: min(100% - 24px, 480px); }
  .header-inner { justify-content: flex-start; gap: 4px; }
  .header-inner::after { font-size: 0.9rem; }
  .header-inner::before { display: none; }
  h1 { font-size: clamp(2.85rem, 14.5vw, 4.35rem); }
  h2 { font-size: clamp(2.25rem, 11vw, 3.3rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .trust-list { display: grid; justify-items: center; }
  .hero-visual { min-height: 410px; }
  .mascot { width: min(82%, 320px); }
  .mascot-tag { right: 1%; bottom: 26px; }
  .service-card, .about-copy, .estimate-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-stack strong { font-size: 0.8rem; }
}

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