/* United Coatings — shared stylesheet */
:root {
  --charcoal: #1a1d21;
  --charcoal-2: #23272d;
  --yellow: #1699d6;
  --yellow-dark: #056b9e;
  --gray: #6b7280;
  --light: #f6f7f9;
  --white: #ffffff;
  --max: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  line-height: 1.65;
  background: var(--white);
}
h1, h2, h3, h4, .btn, nav a, .stat-num {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .5px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-transform: uppercase; letter-spacing: .5px; line-height: 1.1; }
h3 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .5px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.kicker {
  color: var(--yellow-dark); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; font-size: .8rem; margin-bottom: 10px; display: block;
}
.lead { font-size: 1.15rem; color: #3d434b; max-width: 760px; }

/* Ombre "painted" headings */
h2 {
  color: var(--charcoal);
  background: linear-gradient(180deg, var(--charcoal) 30%, var(--yellow-dark) 105%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1, .cta h2 {
  color: var(--white);
  background: linear-gradient(180deg, #ffffff 18%, #a8dcf5 55%, var(--yellow) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
footer.site h4, .stats * { -webkit-text-fill-color: initial; background: none; }

/* Top bar */
.topbar {
  background: var(--charcoal); color: #cbd2da; font-size: .85rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--yellow); text-decoration: none; }

/* Nav */
header.site {
  background: var(--white); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; height: 120px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 84px; }
nav.main { display: flex; align-items: center; gap: 32px; }
nav.main a {
  color: var(--charcoal); text-decoration: none; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; font-size: 1.2rem;
  padding: 6px 0; border-bottom: 3px solid transparent;
}
nav.main a:hover, nav.main a.active { border-bottom-color: var(--yellow); }
nav.main a.btn { color: var(--white); font-size: 1rem; padding: 13px 30px; }
nav.main a.btn:hover { border-bottom-color: transparent; }
.btn {
  display: inline-block; background: var(--yellow-dark); color: var(--white);
  padding: 13px 30px; text-decoration: none; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 1rem;
  border: none; cursor: pointer; transition: background .2s;
}
.btn:hover { background: #04547c; }
.btn.ghost { background: transparent; color: var(--white); border: 2px solid var(--yellow); }
.btn.ghost:hover { background: var(--yellow-dark); color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative; color: var(--white); padding: 180px 0 160px;
  background: linear-gradient(105deg, rgba(20,22,26,.78) 0%, rgba(20,22,26,.48) 45%, rgba(20,22,26,.1) 80%), url('images/powder-coating.jpg') center/cover;
}
.hero.inner { padding: 130px 0 110px; }
.hero .lead { color: #eef2f6; margin: 18px 0 30px; text-shadow: 0 1px 5px rgba(0,0,0,.55); }
  .hero h1 { filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
  .hero .kicker { text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hero .accent { color: var(--yellow); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats band */
.stats { background: var(--yellow-dark); color: var(--white); padding: 36px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.stat-label { text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; font-weight: 600; margin-top: 6px; }

/* Cards */
.grid { display: grid; gap: 28px; margin-top: 40px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid #e4e7eb; border-top: 4px solid var(--yellow);
  padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: #4b515a; font-size: .97rem; }
.card ul { margin: 12px 0 0 18px; color: #4b515a; font-size: .95rem; }
.card ul li { margin-bottom: 6px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--yellow-dark); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.card .more:hover { text-decoration: underline; }
.alt { background: var(--light); }

/* Service detail rows */
.service-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid #e4e7eb; }
.service-row:last-of-type { border-bottom: 0; }
.service-row img { width: 100%; height: 340px; object-fit: cover; }
.service-row.flip .txt { order: 2; }
.service-row .specs { background: var(--charcoal); color: #dbe0e6; padding: 18px 22px; margin-top: 18px; font-size: .92rem; }
.service-row .specs strong { color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; display: block; margin-bottom: 6px; }
.service-row ul { margin: 14px 0 0 18px; color: #4b515a; }
.service-row ul li { margin-bottom: 6px; }

/* Dark CTA */
.cta {
  background: linear-gradient(rgba(20,22,26,.85), rgba(20,22,26,.85)), url('https://www.unitedcoatingsinc.com/Userfiles/Gallery/united-9.jpg') center/cover;
  color: var(--white); text-align: center;
}
.cta h2 { max-width: 820px; margin: 0 auto 14px; }
.cta p { color: #cbd2da; max-width: 640px; margin: 0 auto 28px; }

/* Tables */
table.spec { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .96rem; }
table.spec th { background: var(--charcoal); color: var(--yellow); text-align: left; padding: 12px 16px; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; }
table.spec td { padding: 12px 16px; border-bottom: 1px solid #e4e7eb; color: #3d434b; }
table.spec tr:nth-child(even) td { background: var(--light); }

/* FAQ */
details.faq {
  border: 1px solid #e4e7eb; border-left: 4px solid var(--yellow);
  margin-bottom: 14px; background: var(--white);
}
details.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--yellow-dark); flex-shrink: 0; }
details.faq[open] summary::after { content: '\2212'; }
details.faq .a { padding: 0 22px 18px; color: #4b515a; }

/* Projects */
.project { border: 1px solid #e4e7eb; background: var(--white); overflow: hidden; }
.project img { width: 100%; height: 260px; object-fit: cover; display: block; }
.project .body { padding: 22px 24px; }
.tag {
  display: inline-block; background: var(--yellow-dark); color: var(--white);
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 10px; font-weight: 700; margin-bottom: 10px;
}

/* Contact action cards */
.ccard {
  display: block; text-align: center; text-decoration: none; color: var(--charcoal);
  background: var(--white); border: 1px solid #e4e7eb; border-top: 4px solid var(--yellow);
  padding: 34px 24px 28px; transition: transform .2s, box-shadow .2s;
}
a.ccard:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(5,107,158,.18); }
.cicon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(160deg, var(--yellow), var(--yellow-dark));
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.cicon svg { width: 28px; height: 28px; }
.ccard h3 { margin-bottom: 8px; }
.ccard p { color: #4b515a; font-size: .95rem; word-break: break-word; }
.chint {
  display: inline-block; margin-top: 14px; color: var(--yellow-dark); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; font-size: .78rem;
}

/* Find us band */
.findus {
  background: linear-gradient(120deg, var(--charcoal) 0%, #0d3752 70%, var(--yellow-dark) 130%);
  color: var(--white);
}
.findus-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.findus .map iframe { height: 420px; border: 4px solid rgba(255,255,255,.12); }
@media (max-width: 900px) { .findus-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; margin-top: 40px; }
.contact-info .item { margin-bottom: 22px; }
.contact-info .item strong { display: block; text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; color: var(--yellow-dark); margin-bottom: 4px; }
.contact-info a { color: var(--charcoal); font-weight: 600; text-decoration: none; }
.contact-info a:hover { color: var(--yellow-dark); }
form.quote { background: var(--light); padding: 32px; border-top: 4px solid var(--yellow); }
form.quote label { display: block; font-weight: 600; font-size: .88rem; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: 1px; }
form.quote input, form.quote select, form.quote textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d3d8de; font-family: inherit; font-size: 1rem; background: var(--white);
}
form.quote textarea { min-height: 120px; resize: vertical; }
.map { margin-top: 56px; }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Footer */
footer.site { background: var(--charcoal); color: #aab2bc; padding: 56px 0 28px; font-size: .93rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
footer.site h4 { color: var(--white); text-transform: uppercase; letter-spacing: 1.5px; font-size: 1rem; margin-bottom: 14px; }
footer.site a { color: #aab2bc; text-decoration: none; display: block; margin-bottom: 8px; }
footer.site a:hover { color: var(--yellow); }
footer.site .assoc { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
footer.site .assoc img { height: 42px; filter: brightness(0) invert(.85); }
footer.site .bottom { border-top: 1px solid #343a42; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
footer.site .accent { color: var(--yellow); }

/* Responsive */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 24px; }
  .service-row.flip .txt { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  nav.main {
    display: none; position: absolute; top: 120px; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 20px; gap: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
  }
  nav.main.open { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
}

/* Team */
.team-card { text-align: center; }
.team-card .avatar-photo {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto 18px; border: 3px solid var(--yellow);
}
.team-card .avatar {
  width: 110px; height: 110px; border-radius: 50%; background: var(--charcoal);
  color: var(--yellow); display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-size: 2.2rem; font-weight: 700;
  margin: 0 auto 18px; border: 3px solid var(--yellow);
}
.team-card .role { color: var(--yellow-dark); text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.team-card .exp { color: var(--gray); font-size: .88rem; margin-top: 8px; }

/* Coating systems chip band */
.syschips { background: var(--charcoal); padding: 40px 0; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.chip {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--white);
  border: 2px solid var(--yellow); padding: 10px 26px; border-radius: 999px;
  transition: background .2s;
}
.chip:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }

/* Team v2: photo-forward cards */
.card.team-card { padding: 0; text-align: left; overflow: hidden; }
.team-card .tphoto-wrap { overflow: hidden; position: relative; }
.team-card .tphoto {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.team-card:hover .tphoto { transform: scale(1.05); }
.team-card .tphoto-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
}
.team-card .tphoto-ph {
  width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--charcoal) 20%, #0d3752 80%);
  color: var(--yellow); font-family: 'Barlow Condensed', sans-serif;
  font-size: 5rem; font-weight: 700; letter-spacing: 3px;
}
.team-card .tbody { padding: 22px 24px 26px; }
.team-card .tbody h3 { margin-bottom: 4px; }
.team-card .tbody .role { margin-bottom: 10px; }

/* Team tiles (photo + name overlay) */
.ttile { position: relative; overflow: hidden; border: 1px solid #e4e7eb; }
.ttile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .35s ease; }
.ttile:hover img { transform: scale(1.06); }
.ttile .tname {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(16,20,24,.94) 60%);
  color: var(--white); padding: 46px 18px 16px;
}
.ttile .tname h3 { color: var(--white); margin: 0 0 2px; }
.ttile .tname .trole { color: var(--yellow); text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; font-weight: 700; }
.ttile::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
}
/* Values */
.value-card { text-align: center; }
.value-card .cicon { margin-bottom: 16px; }


/* Subtle staggered entrance on homepage hero */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero:not(.inner) .kicker,
.hero:not(.inner) h1,
.hero:not(.inner) .lead,
.hero:not(.inner) .hero-ctas {
  animation: riseIn .8s cubic-bezier(.2,.6,.25,1) both;
}
.hero:not(.inner) .kicker    { animation-delay: .1s; }
.hero:not(.inner) h1         { animation-delay: .25s; }
.hero:not(.inner) .lead      { animation-delay: .45s; }
.hero:not(.inner) .hero-ctas { animation-delay: .65s; }
@media (prefers-reduced-motion: reduce) {
  .hero:not(.inner) .kicker, .hero:not(.inner) h1,
  .hero:not(.inner) .lead, .hero:not(.inner) .hero-ctas { animation: none; }
}

/* Leaflet map + logo pin */
#ucmap { width: 100%; height: 420px; border: 4px solid rgba(255,255,255,.12); z-index: 1; }
.uc-pin-box {
  background: var(--white); border: 2px solid var(--yellow-dark); border-radius: 8px;
  padding: 8px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.35); width: max-content; margin: 0 auto;
}
.uc-pin-box img { height: 36px; display: block; }
.uc-pin-tip {
  width: 0; height: 0; margin: -1px auto 0;
  border: 11px solid transparent; border-top-color: var(--yellow-dark); border-bottom: 0;
}
