/* Clydesdale Construction LLC - shared stylesheet (tokens + chrome + shared components) */
/* Fonts are loaded via <link> in each page head (not @import). */

:root {
  --navy: #1e3a8f;
  --navy-dark: #16296b;
  --navy-deep: #14245c;
  --topbar: #1c357f;
  --ink: #0b0b0c;
  --ink-2: #101114;
  --olive: #6f7220;
  --olive-2: #5b5e18;
  --bg: #ffffff;
  --bg-soft: #f3f3f3;
  --text: #1a1a1a;
  --muted: #5a5f66;
  --muted-2: #767b82;
  --line: #e4e6ea;
  --white: #ffffff;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(15, 23, 55, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 55, 0.16);
  --container: 1200px;
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--text); }

a { color: inherit; text-decoration: none; }

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

p { margin: 0 0 1rem; }

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

.section { padding: 72px 0; }

.text-center { text-align: center; }

.eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; color: var(--navy); text-transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-appointment { padding: 12px 26px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--topbar); color: #fff; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: wrap; }
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-help { font-weight: 600; }
.topbar-contact { display: inline-flex; align-items: center; gap: 7px; color: #fff; opacity: .95; }
.topbar-contact:hover { text-decoration: underline; }
.topbar-contact svg { width: 15px; height: 15px; flex: 0 0 auto; }
.topbar-right { display: inline-flex; align-items: center; gap: 12px; }
.topbar-social { display: inline-flex; gap: 10px; }
.topbar-social a { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: #fff; }
.topbar-social a:hover { opacity: .8; }
.topbar-social svg { width: 18px; height: 18px; }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 18px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 66px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; margin: 0 auto; }
.main-nav a { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: #23262b; padding: 6px 0; position: relative; transition: color .2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--navy); transition: right .25s ease; }
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--navy); }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #23262b; margin: 5px 0; transition: .3s; }

/* ---------- Page hero banner (interior pages) ---------- */
.page-hero { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.page-hero .page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(8, 12, 28, .5); }
.page-hero h1 { position: relative; z-index: 2; color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ccd2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding: 66px 24px 46px; }
.footer-col h4 { color: #fff; font-size: 1.15rem; margin-bottom: 22px; }
.footer-logo-box { background: #fff; border-radius: 10px; padding: 10px; width: 118px; display: inline-block; margin-bottom: 18px; }
.footer-logo-box img { width: 100%; height: auto; }
.footer-about p { color: #b4b8bf; font-size: .92rem; line-height: 1.7; }
.footer-prev { font-style: italic; font-weight: 600; color: #e6e8ec !important; }
.footer-follow { font-weight: 600; color: #fff !important; margin-bottom: 10px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .25s ease; }
.footer-social a:hover { background: var(--navy); }
.footer-social svg { width: 17px; height: 17px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #b4b8bf; transition: color .2s ease, padding-left .2s ease; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-hours { list-style: none; margin: 0; padding: 0; }
.footer-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: #b4b8bf; font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-hours li span:last-child { color: #e6e8ec; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.footer-contact-item .fi-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 8px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.footer-contact-item .fi-icon svg { width: 18px; height: 18px; color: #fff; }
.footer-contact-item .fi-label { color: #fff; font-weight: 700; font-family: var(--font-head); font-size: .9rem; }
.footer-contact-item a, .footer-contact-item span.fi-val { color: #b4b8bf; }
.footer-contact-item a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { background: var(--navy-deep); }
.footer-bottom .container { padding-top: 16px; padding-bottom: 16px; text-align: center; color: #d6d9df; font-size: .88rem; }

/* ---------- Shared: service cards ---------- */
.service-card { background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); position: relative; padding: 11px 10px 0; transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .sc-photo { position: relative; border-radius: 10px; overflow: hidden; }
.service-card .sc-photo img { width: 100%; height: 197px; object-fit: cover; }
/* Icon badge straddles the bottom edge of the photo (11px top pad + 197px photo - half of the 60px badge) */
.service-card .sc-icon { position: absolute; left: 50%; top: 178px; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; background: #172f7e; display: flex; align-items: center; justify-content: center; z-index: 2; }
.service-card .sc-icon img { width: 35px; height: 35px; }
.service-card .sc-body { padding: 42px 12px 26px; text-align: center; }
.service-card .sc-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card .sc-body p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Shared: feature/why cards ---------- */
.feature-card { background: #fff; border-radius: var(--radius); padding: 34px 26px; text-align: center; box-shadow: var(--shadow); transition: transform .3s ease; }
.feature-card:hover { transform: translateY(-6px); }
.feature-card .fc-icon { width: 74px; height: 74px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.feature-card .fc-icon img { width: 40px; height: 40px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Shared: forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-family: var(--font-head); font-size: .9rem; margin-bottom: 7px; color: #2a2d33; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--text); background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,143,.12); }
.form-field textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Service-area map (assets/map.js) ---------- */
.area-map { background: #3c3d41; z-index: 0; }
.area-map .area-map-road { filter: brightness(1.3); }
.area-map .area-map-pin { background: none; border: 0; }
.area-map .leaflet-popup-content { font-family: Roboto, Arial, sans-serif; font-size: 12px; margin: 12px 16px; }
.area-map .area-map-title { color: #222; margin-bottom: 2px; }
.area-map .leaflet-popup-content a { color: #4e5fd8; text-decoration: underline; }

/* ---------- Contact info blocks ---------- */
.contact-line { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.contact-line .cl-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.contact-line .cl-icon svg { width: 20px; height: 20px; color: #fff; }
.contact-line .cl-label { font-weight: 700; font-family: var(--font-head); color: #23262b; }
.contact-line a, .contact-line .cl-val { color: var(--muted); }
.contact-line a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Motion (shared) ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.anim-up { animation: fadeInUp .8s ease both; }
.anim-in { animation: fadeIn 1s ease both; }
.d1 { animation-delay: .12s; }
.d2 { animation-delay: .24s; }
.d3 { animation-delay: .36s; }
.d4 { animation-delay: .48s; }

/* JS-driven scroll reveal: elements start VISIBLE here; the hidden state is applied
   at runtime by site.js only after its IntersectionObserver is attached. No hidden
   state lives in this stylesheet. */
[data-reveal] { will-change: opacity, transform; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive chrome ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 270px; background: #fff; flex-direction: column; align-items: flex-start; gap: 6px; padding: 90px 26px 26px; box-shadow: var(--shadow-lg); margin: 0; transition: right .3s ease; z-index: 70; }
  .main-nav.open { right: 0; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; z-index: 80; }
  .btn-appointment { display: none; }
  .topbar-help { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 46px 24px 36px; }
  .topbar-inner { justify-content: center; }
  .topbar-left { gap: 14px; font-size: .78rem; }
  .page-hero { min-height: 300px; }
}
