/* RickJohn Roofing — theme.css
   Palette sampled from the real brand mark: roofline red, anniversary gold,
   true black/white. Dark mode is the default; logo always sits on a light
   plate since its wordmark is solid black. */

:root,
html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --panel: #161616;
  --panel-2: #1e1e1e;
  --line: #2b2b2b;
  --text: #f5f3f0;
  --muted: #a8a29b;

  --red: #d12030;
  --red-deep: #8f0f1e;
  --red-bright: #ff3347;
  --gold: #ffb427;
  --gold-deep: #c98a10;
  --white: #ffffff;

  --accent: var(--red);
  --accent-2: var(--gold);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--muted); }
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
.section-tight { padding: 40px 0; }

/* ---------- Glow / surface utilities ---------- */
.glow-red { box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 30%, transparent), 0 10px 24px color-mix(in srgb, var(--red) 12%, transparent); }
.glow-gold { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent), 0 10px 24px color-mix(in srgb, var(--gold) 14%, transparent); }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.text-gold { color: var(--gold); }
.text-red { color: var(--red-bright); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--red) 18%, transparent);
}
.btn-primary:hover { box-shadow: 0 5px 14px color-mix(in srgb, var(--red) 26%, transparent); }
.btn-gold {
  background: linear-gradient(135deg, #ffd27a, var(--gold));
  color: #1a1200;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--gold) 18%, transparent);
}
.btn-gold:hover { box-shadow: 0 5px 14px color-mix(in srgb, var(--gold) 26%, transparent); }
.btn-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--white) 30%, transparent);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-danger { background: var(--red-deep); color: #fff; }
.btn-google {
  background: #fff;
  color: #3c3c3c;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}
.btn-google:hover { box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3); }
.btn-google svg { flex-shrink: 0; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.logo-mark { display: inline-flex; align-items: center; }
.logo-mark img { height: 38px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a { color: var(--muted); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }
.mobile-nav { display: none; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav.open {
    display: block;
    border-top: 1px solid var(--line);
    padding: 14px 0 20px;
  }
  .mobile-nav a { display: block; padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
}

@media (max-width: 480px) {
  /* Two login buttons + the toggle won't fit next to the logo on small
     phones — the hamburger's mobile-nav already lists both logins. */
  .nav-actions .btn { display: none; }
}

/* ---------- Hero / 50th anniversary badge ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 64px;
  background:
    radial-gradient(1100px 480px at 15% -10%, color-mix(in srgb, var(--red) 26%, transparent), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 55%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(36px, 5vw, 58px); }
.hero .lede { font-size: 18px; max-width: 46ch; }

.anniversary-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe6a3, var(--gold));
  color: #2a1a00;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--gold) 20%, transparent);
}

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-card { text-align: center; padding: 22px 12px; }
.stat-card .num { font-family: var(--font-display); font-size: 34px; color: var(--gold); }
.stat-card .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.service-card {
  padding: 26px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.service-card .icon { font-size: 30px; margin-bottom: 10px; }
.service-card h3 { font-size: 19px; }
.service-card a.more { color: var(--gold); font-weight: 700; font-size: 13px; }

/* ---------- Reviews / ratings marquee ---------- */
.reviews-marquee-wrap { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews-track { display: flex; gap: 18px; width: max-content; animation: marquee 130s linear infinite; }
.reviews-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card {
  width: 320px;
  flex: 0 0 auto;
  padding: 20px;
}
.review-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.review-card .author { font-weight: 700; margin-top: 10px; font-size: 13px; color: var(--text); }
.review-card .body { font-size: 14px; color: var(--muted); }

/* ---------- Gallery / lightbox ---------- */
.gallery-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .gallery-cat-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
}
.gallery-cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-cat-tile:hover img { transform: scale(1.06); }
.gallery-cat-tile .label {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  font-weight: 800; font-family: var(--font-display); font-size: 18px;
}
.gallery-cat-tile .count { font-size: 12px; color: var(--gold); font-weight: 700; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-tile { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; border: 1px solid var(--line); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center; padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 20px; right: 28px; font-size: 32px; color: #fff; cursor: pointer; background: none; border: none; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 34px; color: #fff; background: none; border: none; cursor: pointer; padding: 10px 16px; }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
textarea { resize: vertical; min-height: 90px; }
.form-card { max-width: 460px; margin: 0 auto; padding: 32px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ---------- Badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-green { background: color-mix(in srgb, #22c55e 22%, transparent); color: #4ade80; border: 1px solid color-mix(in srgb, #22c55e 45%, transparent); }
.badge-red { background: color-mix(in srgb, var(--red) 22%, transparent); color: var(--red-bright); border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); }
.badge-gold { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.badge-muted { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  font-weight: 700;
  font-size: 13px;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.cta-pill:hover {
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--gold) 28%, transparent);
  transform: translateY(-1px);
}

/* ---------- Punch clock roster ---------- */
.punch-box {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 10px;
  border: 1px solid var(--line);
}
.punch-box.punched-in { background: color-mix(in srgb, #22c55e 12%, var(--panel)); border-color: color-mix(in srgb, #22c55e 45%, transparent); }
.punch-box.punched-out { background: color-mix(in srgb, var(--red) 10%, var(--panel)); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.punch-clock-btn {
  width: 100%; padding: 34px; border-radius: 20px; text-align: center; font-size: 22px; font-weight: 800;
  border: none; cursor: pointer; color: #fff;
}
.punch-clock-btn.in { background: linear-gradient(135deg, #34d058, #157a34); }
.punch-clock-btn.out { background: linear-gradient(135deg, var(--red-bright), var(--red-deep)); }

/* ---------- Job update feed ---------- */
.feed-item { padding: 18px; border-left: 3px solid var(--gold); margin-bottom: 16px; }
.feed-item .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.feed-item .meta .author { color: var(--gold); font-weight: 700; }
.feed-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.feed-photos img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }

/* ---------- Signature pad ---------- */
.sig-pad-wrap { background: #fff; border-radius: var(--radius-sm); overflow: hidden; touch-action: none; }
.sig-pad-wrap canvas { width: 100%; height: 200px; display: block; cursor: crosshair; }
.sig-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.sig-tabs button { flex: 1; }

/* ---------- Tables (admin/portal) ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:hover td { background: var(--panel-2); }

/* ---------- Admin shell ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--panel); border-right: 1px solid var(--line); padding: 20px 14px; }
.admin-sidebar a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--panel-2); color: var(--gold); }
.admin-main { padding: 28px 32px; max-width: 1200px; }
.admin-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { display: flex; overflow-x: auto; gap: 6px; } .admin-sidebar a { white-space: nowrap; } }

/* ---------- Chat / message thread ---------- */
.thread-wrap { display: flex; flex-direction: column; height: 60vh; }
.thread-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg-bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.msg-bubble.mine { align-self: flex-end; background: linear-gradient(135deg, var(--red-bright), var(--red-deep)); color: #fff; border-bottom-right-radius: 4px; }
.msg-bubble.theirs { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 4px; }
.msg-bubble .time { display: block; font-size: 10px; opacity: 0.7; margin-top: 4px; }
.thread-composer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: 14px; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }

/* ---------- Flash messages ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.flash-success { background: color-mix(in srgb, #22c55e 18%, transparent); border: 1px solid color-mix(in srgb, #22c55e 40%, transparent); }
.flash-error { background: color-mix(in srgb, var(--red) 18%, transparent); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }

/* ---------- Print (work orders / contracts) ---------- */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #111; }
  .panel { border-color: #ccc; }
}

/* ---------- Misc ---------- */
.page-hero {
  padding: 56px 0 40px;
  background: radial-gradient(900px 360px at 20% -20%, color-mix(in srgb, var(--red) 20%, transparent), transparent 60%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.avatar-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gold); }

/* ---------- Copperline live design system ---------- */
.copperline-shell {
  --bg: #070809;
  --bg-alt: #0d1013;
  --panel: #12161a;
  --panel-2: #181d22;
  --line: rgba(255, 255, 255, .14);
  --text: #f7f4ef;
  --muted: #aaa59d;
  --gold: #d99051;
  --gold-deep: #a95f2e;
  --red: #d12030;
  --red-deep: #8f0f1e;
  --red-bright: #ff3347;
  --radius: 3px;
  --radius-sm: 2px;
  --font-display: Bahnschrift, "Arial Narrow", Aptos, "Segoe UI", sans-serif;
  --font-body: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 100% 0, rgba(209, 32, 48, .07), transparent 65%),
    linear-gradient(180deg, #08090a, #070809);
}
.copperline-shell h1,
.copperline-shell h2,
.copperline-shell h3,
.copperline-shell h4 { letter-spacing: -.035em; }
.copperline-shell p { line-height: 1.72; }
.copperline-shell .container { max-width: 1340px; padding-inline: 32px; }
.copperline-shell section { padding-block: clamp(64px, 6.5vw, 96px); }
.copperline-shell .section-tight { padding-block: 30px; }

.copperline-shell .site-header {
  min-height: 78px;
  border-bottom-color: rgba(255, 255, 255, .13);
  background: rgba(6, 7, 8, .9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}
.copperline-shell .site-header > .container { width: 100%; max-width: none; padding-inline: clamp(18px, 2.2vw, 38px); }
.copperline-shell .nav-row { min-height: 78px; padding-block: 0; }
.copperline-shell .logo-mark img { width: 154px; height: auto; }
.copperline-shell .nav-links { gap: clamp(18px, 2vw, 34px); }
.copperline-shell .nav-links a {
  position: relative;
  padding-block: 29px 25px;
  color: #c4c0ba;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.copperline-shell .nav-links a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 20px;
  left: 50%;
  height: 1px;
  background: var(--red-bright);
  transition: right .22s ease, left .22s ease;
}
.copperline-shell .nav-links a:hover,
.copperline-shell .nav-links a.active { color: white; }
.copperline-shell .nav-links a:hover::after,
.copperline-shell .nav-links a.active::after { right: 0; left: 0; }
.copperline-shell .nav-actions { gap: 16px; }
.copperline-shell .nav-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.18; }
.copperline-shell .nav-phone span { color: #8f8b85; font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.copperline-shell .nav-phone strong { margin-top: 3px; color: white; font-family: var(--font-display); font-size: 13px; letter-spacing: .02em; }
.copperline-shell .nav-account { padding-bottom: 4px; border-bottom: 1px solid var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.copperline-shell .nav-cta { min-height: 42px; padding: 0 18px; font-size: 10px; }
.copperline-shell .portal-actions { display: flex; align-items: center; gap: 7px; margin-left: 2px; }
.copperline-shell .portal-btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .095em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.copperline-shell .portal-customer {
  border-color: #df9d5d;
  background: linear-gradient(135deg, #e7a867, #a85e2d);
  color: #160d07;
}
.copperline-shell .portal-crew {
  border-color: #f04457;
  background: linear-gradient(135deg, #d12030, #7f0c18);
  color: white;
}
.copperline-shell .portal-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.copperline-shell .portal-customer:hover { box-shadow: 0 0 0 1px rgba(231,168,103,.45), 0 0 28px rgba(217,144,81,.58); }
.copperline-shell .portal-crew:hover { box-shadow: 0 0 0 1px rgba(255,51,71,.4), 0 0 28px rgba(209,32,48,.62); }
.copperline-shell .nav-toggle {
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, .04);
}
.copperline-shell .nav-toggle span { display: block; height: 1px; margin: 5px 0; background: white; transition: transform .2s ease, opacity .2s ease; }
.copperline-shell .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.copperline-shell .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.copperline-shell .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.copperline-shell .mobile-anniversary-wrap { display: none; }
.copperline-shell .mobile-nav.open {
  padding-block: 7px 18px;
  border-top: 1px solid var(--line);
  background: rgba(6, 7, 8, .98);
}
.copperline-shell .mobile-nav a { padding: 12px 0; color: #d4d0ca; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.copperline-shell .mobile-nav a.mobile-contact-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 144, 81, .38);
  background: linear-gradient(135deg, rgba(217, 144, 81, .12), rgba(255, 255, 255, .025));
  color: #f4efe8;
  letter-spacing: .035em;
  text-transform: none;
}
.copperline-shell .mobile-contact-action small {
  display: block;
  margin-bottom: 2px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.copperline-shell .mobile-tap-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid rgba(217, 144, 81, .58);
  border-radius: 50%;
  color: var(--gold);
  font-size: 17px;
  font-style: normal;
  line-height: 1;
  animation: mobileTapPulse 2.3s ease-in-out infinite;
}

.copperline-shell .btn {
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.copperline-shell .btn-primary { background: var(--red); box-shadow: 0 12px 34px rgba(209, 32, 48, .2); }
.copperline-shell .btn-primary:hover { background: var(--red-bright); box-shadow: 0 15px 38px rgba(209, 32, 48, .32); }
.copperline-shell .btn-gold { background: linear-gradient(135deg, #e6a769, #b96e36); color: #160d07; }
.copperline-shell .btn-outline { border-color: rgba(255, 255, 255, .25); background: rgba(7, 8, 9, .22); }
.copperline-shell .btn-outline:hover { border-color: var(--gold); color: white; background: rgba(217, 144, 81, .08); }
.copperline-shell .btn-lg { padding: 15px 27px; font-size: 12px; }

.copperline-shell .page-hero {
  position: relative;
  overflow: hidden;
  min-height: 315px;
  padding: clamp(70px, 7vw, 96px) 0 54px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  background:
    linear-gradient(90deg, rgba(6, 7, 8, .98) 0%, rgba(6, 7, 8, .87) 43%, rgba(6, 7, 8, .48) 78%),
    linear-gradient(0deg, rgba(6, 7, 8, .78), transparent 70%),
    url("../img/concepts/copperline-command.webp") 74% 28% / cover no-repeat;
}
.copperline-shell .page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), transparent);
  opacity: .65;
}
.copperline-shell .page-hero .container { position: relative; z-index: 1; }
.copperline-shell .page-hero h1 { max-width: 980px; margin: 12px auto 13px; font-size: clamp(42px, 5vw, 72px); font-weight: 650; line-height: .96; text-transform: uppercase; }
.copperline-shell .page-hero p { color: #c4bfb8; font-size: clamp(14px, 1.35vw, 17px); line-height: 1.62; }
.copperline-shell .page-hero .eyebrow { color: var(--gold); }
.copperline-shell .page-hero .eyebrow::before { width: 32px; height: 1px; }
.copperline-shell .service-intro-photo {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid rgba(217, 144, 81, .34);
  border-radius: 2px;
  background: linear-gradient(145deg, #171411, #08090a);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .025);
}
.copperline-shell .service-intro-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.copperline-shell .service-intro-photo figcaption {
  display: grid;
  gap: 3px;
  padding: 11px 14px 12px;
  color: #b8b2aa;
  font-size: 11px;
  line-height: 1.45;
}
.copperline-shell .service-intro-photo figcaption span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.copperline-shell .service-intro-copy { color: var(--text); font-size: 16px; }
.copperline-shell .anniversary-banner { border: 1px solid rgba(217, 144, 81, .52); border-radius: 2px; background: rgba(12, 11, 10, .66); color: #e5a466; box-shadow: none; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); }

.copperline-shell .hero:not(.cl-hero) {
  min-height: calc(100vh - 78px);
  padding: 46px 0 70px;
  background:
    linear-gradient(90deg, rgba(7, 8, 9, .97), rgba(7, 8, 9, .73)),
    url("../img/concepts/copperline-command.webp") 66% center / cover no-repeat;
}
.copperline-shell .hero.portal-login-hero {
  min-height: auto;
  padding: clamp(34px, 4.5vw, 52px) 0 clamp(42px, 5vw, 58px);
}
.copperline-shell .panel {
  position: relative;
  border-color: rgba(255, 255, 255, .14);
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 58%),
    linear-gradient(180deg, #14181c, #0f1215);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 18px 50px rgba(0, 0, 0, .16);
}
.copperline-shell .glow-red { box-shadow: 0 0 0 1px rgba(209, 32, 48, .22), 0 16px 44px rgba(209, 32, 48, .11); }
.copperline-shell .glow-gold { box-shadow: 0 0 0 1px rgba(217, 144, 81, .25), 0 16px 44px rgba(217, 144, 81, .1); }
.copperline-shell .eyebrow { color: var(--gold); font-size: 10px; letter-spacing: .18em; }
.copperline-shell .eyebrow::before { width: 30px; height: 1px; background: currentColor; }

.copperline-shell .service-card { min-height: 245px; overflow: hidden; padding: 27px; }
.copperline-shell .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -38%;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-bright), var(--gold), transparent);
  animation: copperlineCardSweep 8s ease-in-out infinite;
}
.copperline-shell .service-card:hover { transform: translateY(-4px); border-color: rgba(217, 144, 81, .48); }
.copperline-shell .service-card .icon { font-size: 25px; filter: saturate(.7); }
.copperline-shell .service-card h3 { margin-bottom: 12px; font-size: 23px; font-weight: 550; text-transform: uppercase; }
.copperline-shell .service-card .more,
.copperline-shell .service-card a.more { color: var(--gold); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.copperline-shell .gallery-cat-grid { gap: 12px; }
.copperline-shell .gallery-cat-tile,
.copperline-shell .photo-tile { border-color: rgba(255, 255, 255, .16); border-radius: 2px; }
.copperline-shell .gallery-cat-tile .label { padding: 26px 18px 16px; background: linear-gradient(0deg, rgba(4, 5, 6, .94), transparent); font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; text-transform: uppercase; }
.copperline-shell .gallery-cat-tile .count { margin-top: 3px; color: var(--gold); font-family: var(--font-body); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.copperline-shell .photo-grid { gap: 10px; }
.copperline-shell .photo-tile img { transition: transform .6s ease, filter .3s ease; }
.copperline-shell .photo-tile:hover img { transform: scale(1.025); filter: saturate(1.08); }

.copperline-shell .review-card { padding: 24px; }
.copperline-shell .review-card .stars { color: var(--gold); }
.copperline-shell .review-card .body { color: #b9b4ad; line-height: 1.7; }
.copperline-shell .review-card .author { margin-top: 18px; color: white; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.copperline-shell input,
.copperline-shell select,
.copperline-shell textarea {
  border-color: rgba(255, 255, 255, .16);
  border-radius: 2px;
  background: #090d10;
}
.copperline-shell input:focus,
.copperline-shell select:focus,
.copperline-shell textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 144, 81, .12); }
.copperline-shell .field label { color: #b8b2aa; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.copperline-shell .form-card { border-top: 2px solid var(--red); }
.copperline-shell .direct-contact-card {
  display: grid;
  width: min(100%, 520px);
  gap: 9px;
  justify-items: center;
  margin: 22px auto 0;
  padding: 25px 28px;
  border-left: 2px solid var(--gold);
  text-align: center;
}
.copperline-shell .direct-contact-logo {
  display: block;
  width: min(100%, 310px);
  height: auto;
  max-height: 78px;
  margin: 0 auto 10px;
  object-fit: contain;
  object-position: center;
}
.copperline-shell .direct-contact-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 5px;
}
.copperline-shell .direct-contact-name {
  margin: 0;
  color: white;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -.02em;
}
.copperline-shell .direct-contact-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}
.copperline-shell .direct-contact-link:hover { color: #ffc086; transform: translateX(3px); }
.copperline-shell .direct-contact-icon {
  display: grid;
  width: 22px;
  place-items: center;
  color: currentColor;
  font-family: "Segoe UI Symbol", Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
}

.copperline-shell .site-footer { padding: 66px 0 26px; border-top-color: rgba(255, 255, 255, .13); background: linear-gradient(155deg, #101316, #060708 70%); }
.copperline-shell .footer-grid { gap: clamp(32px, 5vw, 70px); }
.copperline-shell .footer-grid h4 { color: white; font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; }
.copperline-shell .footer-grid a,
.copperline-shell .footer-grid p { color: #98938c; font-size: 13px; }
.copperline-shell .footer-grid .footer-address {
  color: #98938c;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}
.copperline-shell .footer-grid a:hover { color: var(--gold); }
.copperline-shell .footer-bottom { border-top-color: rgba(255, 255, 255, .12); }
.copperline-shell .cta-pill {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: white;
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(209, 32, 48, .18);
}
.copperline-shell .cta-pill:hover {
  background: var(--red-bright);
  box-shadow: 0 10px 28px rgba(209, 32, 48, .36);
}
.copperline-shell .footer-grid a.cta-pill,
.copperline-shell .footer-grid a.cta-pill:hover { color: #fff; }

.copperline-shell .data-table th { color: #9f9991; letter-spacing: .1em; }
.copperline-shell .data-table tr:hover td { background: rgba(217, 144, 81, .04); }
.copperline-shell .feed-item { border-left-color: var(--gold); }
.copperline-shell .thread-wrap { overflow: hidden; }

@keyframes copperlineCardSweep {
  0%, 45% { left: -38%; opacity: 0; }
  55% { opacity: .8; }
  80%, 100% { left: 105%; opacity: 0; }
}

@keyframes mobileTapPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 144, 81, 0); }
  45% { transform: scale(1.06); box-shadow: 0 0 0 5px rgba(217, 144, 81, .08); }
}

@media (min-width: 1800px) {
  .copperline-shell .nav-cta { margin-right: 288px; }
}

@media (min-width: 1551px) and (max-width: 1799px) {
  .copperline-shell .nav-cta { margin-right: 150px; }
}

@media (max-width: 1550px) {
  .copperline-shell .nav-phone { display: none; }
}

@media (max-width: 1360px) {
  .copperline-shell .nav-cta { display: none; }
  .copperline-shell .nav-links { gap: 18px; }
}

@media (max-width: 1180px) {
  .copperline-shell .nav-links { display: none; }
  .copperline-shell .nav-toggle { display: block; }
  .copperline-shell .nav-phone { display: none; }
}

@media (max-width: 720px) {
  .copperline-shell .container { padding-inline: 18px; }
  .copperline-shell section { padding-block: 58px; }
  .copperline-shell .site-header,
  .copperline-shell .nav-row { min-height: 70px; }
  .copperline-shell .logo-mark img { width: 136px; }
  .copperline-shell .mobile-anniversary-wrap {
    display: flex;
    justify-content: center;
    padding: 0 16px 8px;
  }
  .copperline-shell .mobile-anniversary-ribbon {
    display: inline-flex;
    width: min(100%, 370px);
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 23px;
    clip-path: polygon(0 50%, 10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%);
    background: linear-gradient(105deg, var(--gold-deep), #ffd77e 42%, var(--gold) 72%, #a76615);
    color: #211306;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .105em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(201, 138, 16, .23);
  }
  .copperline-shell .mobile-anniversary-ribbon span { color: #6e3d09; font-size: 9px; }
  .copperline-shell .page-hero { min-height: 270px; padding: 54px 0 42px; background-position: 67% 28%; }
  .copperline-shell .page-hero h1 { font-size: clamp(37px, 11vw, 52px); }
  .copperline-shell .page-hero p { font-size: 14px; }
  .copperline-shell .service-card { min-height: 0; }
  .copperline-shell .service-intro-image { aspect-ratio: 4 / 3; }
  .copperline-shell .site-footer { padding-top: 52px; }
}

@media (max-width: 480px) {
  .copperline-shell .nav-actions .nav-cta { display: none; }
  .copperline-shell .nav-actions .portal-btn { display: none; }
  .copperline-shell .portal-actions { display: none; }
  .copperline-shell .nav-toggle { display: block; }
  .copperline-shell .form-card { padding: 24px 18px !important; }
  .copperline-shell .direct-contact-card { padding: 22px 19px; }
}

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