/* ==========================================================================
   Pham Mold Inspections — stylesheet
   Palette: white, dark navy, gray, muted blue/teal
   ========================================================================== */

:root {
  --navy: #0f2340;
  --navy-deep: #0a1a30;
  --navy-soft: #1c3557;
  --teal: #22788c;
  --teal-dark: #196373;
  --teal-light: #e6f1f4;
  --gray-900: #1f2933;
  --gray-700: #46545f;
  --gray-500: #6b7784;
  --gray-300: #d3dae1;
  --gray-100: #f1f4f7;
  --gray-50: #f8fafb;
  --white: #ffffff;
  --line: #e2e8ee;

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 64, .06), 0 4px 14px rgba(15, 35, 64, .06);
  --shadow-md: 0 10px 34px rgba(15, 35, 64, .1);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.95rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15rem; }
li { margin-bottom: .4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: .9rem;
}

.lead { font-size: 1.08rem; color: var(--gray-700); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------ Top bar --------------------------------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .35rem 1.4rem;
  align-items: center; justify-content: space-between;
  min-height: 40px; padding-top: 6px; padding-bottom: 6px;
}
.topbar a { color: #fff; }
.topbar span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { flex: none; opacity: .8; }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.16rem; font-weight: 600; color: var(--navy);
  letter-spacing: -.01em;
}
.brand-tag {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gray-500); font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: 8px; padding: 9px 11px; cursor: pointer;
  color: var(--navy);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy);
  margin: 4px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul {
  list-style: none; display: flex; align-items: center; gap: 1.5rem;
  margin: 0; padding: 0;
}
.site-nav a {
  color: var(--navy); font-weight: 600; font-size: .95rem;
  padding: .35rem 0; position: relative;
}
.site-nav a:hover { text-decoration: none; color: var(--teal-dark); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--teal); transform: scaleX(0);
  transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .nav-cta {
  background: var(--teal); color: #fff; padding: .6rem 1.05rem;
  border-radius: 8px; font-weight: 700;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--teal-dark); color: #fff; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .97rem;
  padding: .85rem 1.5rem; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ------------------------------ Hero ------------------------------------ */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(34, 120, 140, .38) 0%, rgba(15, 35, 64, 0) 60%),
    linear-gradient(90deg, rgba(10, 26, 48, .95) 0%, rgba(10, 26, 48, .82) 46%, rgba(10, 26, 48, .35) 100%);
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(3.4rem, 8vw, 6.2rem) 0 clamp(3rem, 7vw, 5.4rem);
  max-width: 720px;
}
.hero .eyebrow { color: #8fd0dd; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { color: rgba(255, 255, 255, .88); font-size: 1.08rem; max-width: 620px; }
.hero-points {
  list-style: none; padding: 0; margin: 1.6rem 0 1.8rem;
  display: flex; flex-wrap: wrap; gap: .5rem .4rem;
}
.hero-points li {
  font-size: .87rem; font-weight: 600; color: #fff; margin: 0;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .35rem .78rem; border-radius: 999px;
}

/* --------------------------- Section basics ----------------------------- */
.section { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.section-alt { background: var(--gray-50); }
.section-line { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-bottom: 0; }

/* ----------------------------- Grids ------------------------------------ */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease),
    transform .25s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: #c9d6e2; transform: translateY(-2px); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-light); color: var(--teal-dark);
  margin-bottom: 1rem;
}
.card-icon svg { width: 22px; height: 22px; }

/* --------------------------- Media + text ------------------------------- */
.split {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.2rem); align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.split-media figcaption {
  font-size: .82rem; color: var(--gray-500); margin-top: .6rem;
}
.split-body h2 { margin-bottom: .7rem; }
.split-body ul { padding-left: 0; list-style: none; }
.split-body ul li {
  position: relative; padding-left: 1.6rem; margin-bottom: .55rem;
}
.split-body ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px rgba(34, 120, 140, .16);
}

/* ------------------------------ Process --------------------------------- */
.process { counter-reset: step; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-top: 3px solid var(--teal);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.step-num {
  font-family: var(--font-head); font-size: .9rem; font-weight: 700;
  color: var(--teal-dark); letter-spacing: .1em; text-transform: uppercase;
  display: block; margin-bottom: .5rem;
}
.step h3 { margin-bottom: .45rem; }
.step p:last-child { margin-bottom: 0; }

/* ------------------------------ Areas ----------------------------------- */
.area-list { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.area-list li {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; padding: .7rem 1rem; font-weight: 600;
  color: var(--navy); font-size: .95rem;
  display: flex; align-items: center; gap: .55rem;
}
.area-list li svg { flex: none; color: var(--teal); }

/* --------------------------- Service blocks ----------------------------- */
.service-block {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; background: var(--white); height: 100%;
}
.service-block h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.service-block h3 svg { flex: none; color: var(--teal); width: 20px; height: 20px; }
.service-block p:last-child { margin-bottom: 0; }
.service-block ul { margin-bottom: 0; }

.anchor-nav {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.4rem;
  padding: 0; list-style: none;
}
.anchor-nav li { margin: 0; }
.anchor-nav a {
  display: inline-block; font-size: .87rem; font-weight: 600;
  color: var(--navy); background: var(--gray-100);
  border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem;
}
.anchor-nav a:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ------------------------------ Notice ---------------------------------- */
.notice {
  background: var(--teal-light); border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem; color: var(--gray-900);
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--navy); }

/* ------------------------------ CTA band -------------------------------- */
.cta-band {
  background: var(--navy); color: #fff;
  background-image: radial-gradient(90% 120% at 100% 0%, rgba(34, 120, 140, .45) 0%, rgba(15, 35, 64, 0) 62%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 640px; }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.8rem;
  padding: clamp(2.4rem, 5vw, 3.4rem) 0;
}
.cta-inner > div { max-width: 640px; }
.cta-inner p:last-of-type { margin-bottom: 0; }

/* ------------------------------ Contact --------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.8rem, 4vw, 3rem); }

.info-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.info-list li {
  display: flex; gap: .85rem; padding: .95rem 0;
  border-bottom: 1px solid var(--line); margin: 0;
}
.info-list li:first-child { padding-top: 0; }
.info-list .ico {
  flex: none; width: 36px; height: 36px; border-radius: 8px;
  background: var(--teal-light); color: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.info-list .ico svg { width: 18px; height: 18px; }
.info-list .label {
  display: block; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gray-500); font-weight: 700;
}
.info-list .value { color: var(--navy); font-weight: 600; }
.info-list a.value:hover { color: var(--teal-dark); }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--navy); font-family: var(--font-body); }
.hours td { color: var(--gray-700); }

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: .88rem; font-weight: 700;
  color: var(--navy); margin-bottom: .35rem;
}
.field .req { color: var(--teal-dark); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--gray-900);
  padding: .7rem .85rem; border: 1px solid var(--gray-300);
  border-radius: 8px; background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(34, 120, 140, .16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: .84rem; color: var(--gray-500); margin: 1rem 0 0; }
.form-msg {
  display: none; margin-bottom: 1.1rem; padding: .8rem 1rem;
  border-radius: 8px; font-size: .93rem; font-weight: 600;
}
.form-msg.is-visible { display: block; }
.form-msg.ok { background: var(--teal-light); color: var(--teal-dark); }
.form-msg.err { background: #fdecec; color: #a33232; }
.field .error-text { display: none; font-size: .82rem; color: #a33232; margin-top: .3rem; font-weight: 600; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #cf6b6b; }
.field.has-error .error-text { display: block; }

.map-embed {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); line-height: 0;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ------------------------------ Gallery --------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.gallery figcaption { font-size: .85rem; color: var(--gray-500); margin-top: .55rem; }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .74); font-size: .94rem; }
.site-footer a { color: rgba(255, 255, 255, .86); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem; padding: 3.2rem 0 2.2rem;
}
.site-footer h2, .site-footer h3 {
  color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand span {
  font-family: var(--font-head); font-size: 1.08rem; color: #fff; font-weight: 600;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.2rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  font-size: .86rem; color: rgba(255, 255, 255, .6);
}
.footer-bottom p { margin: 0; }

/* ------------------------------ Utilities ------------------------------- */
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.breadcrumb { font-size: .85rem; color: var(--gray-500); padding: 1rem 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: var(--gray-300); }
.breadcrumb li:last-child::after { content: ""; }

.page-head { background: var(--gray-50); border-bottom: 1px solid var(--line); }
.page-head-inner { padding: clamp(2rem, 5vw, 3.4rem) 0; max-width: 760px; }
.page-head h1 { margin-bottom: .7rem; }
.page-head p:last-child { margin-bottom: 0; }

/* ------------------------------ Reveal ---------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .area-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .site-nav.is-open { max-height: 460px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 22px 1.2rem; }
  .site-nav li { border-bottom: 1px solid var(--gray-100); }
  .site-nav li:last-child { border-bottom: 0; padding-top: .9rem; }
  .site-nav a { display: block; padding: .85rem 0; font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { text-align: center; }
  .grid-3, .grid-2, .process-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .grid-2, .grid-3, .grid-4, .process-grid, .gallery { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: flex-start; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .map-embed iframe { height: 300px; }
  .hero-bg { object-position: 62% center; }
}
