/* ═══════════════════════════════════════════════════════════════
   GLOBAL CSS — Frame Restoration Utah
   Shared across ALL pages (index, locations, services, blog)
   ═══════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --navy: #0B4060;
  --navy-mid: #093552;
  --gold: #E1B969;
  --gold-light: #E8C97F;
  --white: #FFFFFF;
  --off-white: #FAF9F5;
  --gray: #4A5464;
  --light-gray: #E5E3DF;
  --dark: #262626;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Archivo', sans-serif; background: var(--white); color: var(--dark); overflow-x: hidden; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 76px;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-logo img { height: 60px; width: auto; }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { color: var(--navy); text-decoration: none; font-family: 'Archivo Black', sans-serif; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-cta { background: var(--navy) !important; color: var(--white) !important; padding: 12px 22px !important; font-weight: 700 !important; border-radius: 2px; min-height: 44px; display: inline-flex !important; align-items: center; box-shadow: 0 2px 8px rgba(11,64,96,0.2); transition: all 0.2s; }
.nav-cta:hover { background: var(--navy-mid) !important; color: var(--white) !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(11,64,96,0.3); }
.nav-phone { color: var(--navy) !important; font-weight: 600 !important; }
.mobile-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-btn span { display: block; width: 25px; height: 2px; background: var(--navy); transition: all 0.3s; }

/* ─── SECTION DEFAULTS ─── */
section { padding: 90px 5%; }
.section-label { font-family: 'Archivo Black', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block; }
.section-title { font-family: 'Archivo Black', sans-serif; font-size: clamp(32px, 4vw, 52px); font-weight: 700; color: var(--navy); text-transform: uppercase; line-height: 1.08; margin-bottom: 16px; }
.section-sub { font-size: 18px; color: var(--gray); line-height: 1.7; max-width: 600px; }

/* ─── BUTTONS ─── */
.btn-primary { background: var(--gold); color: var(--navy); padding: 16px 34px; font-family: 'Archivo Black', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; border: 2px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(225,185,105,0.35); }
.btn-secondary { background: transparent; color: var(--white); padding: 16px 34px; font-family: 'Archivo Black', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; border-radius: 2px; border: 2px solid rgba(255,255,255,0.45); display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: var(--white); padding: 16px 32px; font-family: 'Archivo Black', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; border-radius: 2px; display: inline-block; transition: all 0.2s; margin: 0 8px 12px; }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }

/* ─── PAGE HERO (subpages) ─── */
.page-hero { min-height: 50vh; position: relative; display: flex; align-items: center; background: var(--navy); padding-top: 76px; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,64,96,0.95) 40%, rgba(11,64,96,0.75)); }
.page-hero-img { position: absolute; inset: 0; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.page-hero-content { position: relative; z-index: 2; padding: 80px 5% 60px; max-width: 780px; }
.page-hero h1 { font-family: 'Archivo Black', sans-serif; font-size: clamp(36px, 5.5vw, 64px); font-weight: 700; color: var(--white); line-height: 1.05; text-transform: uppercase; margin-bottom: 20px; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.82); line-height: 1.7; max-width: 560px; margin-bottom: 32px; }
.page-hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── BREADCRUMB ─── */
.breadcrumb { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── CONTENT SECTIONS (subpages) ─── */
.content-section { max-width: 900px; margin: 0 auto; }
.content-section h2 { font-family: 'Archivo Black', sans-serif; font-size: 28px; color: var(--navy); text-transform: uppercase; margin: 48px 0 16px; }
.content-section p { font-size: 16px; color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.content-section ul { margin: 16px 0 24px 24px; }
.content-section ul li { font-size: 16px; color: var(--gray); line-height: 1.8; margin-bottom: 8px; }

/* ─── SERVICE MINI CARDS (location pages) ─── */
.services-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 48px 0; }
.service-mini-card { background: var(--off-white); border-top: 3px solid var(--gold); padding: 32px 24px; }
.service-mini-card h3 { font-family: 'Archivo Black', sans-serif; font-size: 18px; color: var(--navy); text-transform: uppercase; margin-bottom: 12px; }
.service-mini-card h3 a { color: inherit; text-decoration: none; }
.service-mini-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ─── PAGE CTA (gold banner — subpages) ─── */
.page-cta { background: var(--gold); padding: 60px 5%; text-align: center; }
.page-cta h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(28px, 4vw, 48px); color: var(--navy); text-transform: uppercase; margin-bottom: 16px; }
.page-cta p { font-size: 18px; color: rgba(11,64,96,0.7); margin-bottom: 28px; }

/* ─── NEARBY CITIES (location pages) ─── */
.nearby-section { background: var(--navy); padding: 60px 5%; }
.nearby-section h2 { font-family: 'Archivo Black', sans-serif; font-size: 28px; color: var(--white); text-transform: uppercase; margin-bottom: 24px; text-align: center; }
.nearby-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 800px; margin: 0 auto; }
.nearby-chip { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); padding: 12px 24px; font-size: 14px; text-decoration: none; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.1); }
.nearby-chip:hover { background: rgba(225,185,105,0.15); color: var(--white); border-color: var(--gold); }

/* ─── BLOG CARDS ─── */
.blog-list { max-width: 900px; margin: 0 auto; padding: 60px 5%; }
.blog-card { display: flex; background: var(--white); margin-bottom: 24px; text-decoration: none; transition: all 0.3s; box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; border-radius: 4px; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.blog-card-thumb { flex: 0 0 220px; min-height: 200px; background-size: cover; background-position: center; position: relative; }
.blog-card-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,64,96,0.7) 0%, rgba(11,64,96,0.4) 100%); }
.blog-card-body { flex: 1; padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: center; border-top: 3px solid var(--gold); }
.blog-card h2 { font-family: 'Archivo Black', sans-serif; font-size: 19px; color: var(--navy); text-transform: uppercase; margin-bottom: 8px; line-height: 1.3; }
.blog-card .blog-meta { font-size: 12px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: var(--gray); line-height: 1.7; margin: 0; }
.blog-card .read-more { display: inline-block; margin-top: 14px; font-family: 'Archivo Black', sans-serif; font-size: 12px; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; }
.blog-card:hover .read-more { color: var(--gold); }
@media (max-width: 640px) {
  .blog-card { flex-direction: column; }
  .blog-card-thumb { flex: none; min-height: 160px; }
  .blog-card-body { border-top: 3px solid var(--gold); }
}

/* ─── BLOG TABLE RESPONSIVE ─── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0 32px; border: 1px solid var(--light-gray); border-radius: 4px; }
.content-section table, .blog-body table { width: 100%; border-collapse: collapse; min-width: 520px; }
.content-section th, .content-section td, .blog-body th, .blog-body td { padding: 14px 16px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--light-gray); }
.content-section th, .blog-body th { background: var(--navy); color: var(--white); font-family: 'Archivo Black', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.content-section td, .blog-body td { color: var(--gray); }

/* ─── FOOTER (simple — used on subpages) ─── */
footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 40px 5% 24px; text-align: center; }
footer p { font-size: 13px; margin-bottom: 8px; }
footer a { color: var(--gold); text-decoration: none; }

/* ─── STICKY MOBILE CALL ─── */
.sticky-call { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--navy); border-top: 2px solid var(--gold); }
.sticky-call a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; color: var(--gold); font-family: 'Archivo Black', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; }

/* ─── RESPONSIVE (shared) ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-btn { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: calc(76px + env(safe-area-inset-top, 0px)); left: 0; right: 0; background: var(--navy); padding: 24px 5% 32px; gap: 20px; border-bottom: 2px solid var(--gold); z-index: 1000; }
  .nav-links.open a { font-size: 18px; color: var(--white); min-height: 44px; display: flex; align-items: center; }
  .nav-links.open a:hover, .nav-links.open a:active { color: var(--gold); }
  .nav-links.open .nav-phone { color: var(--gold) !important; }
  .nav-cta { width: 100% !important; text-align: center; justify-content: center; min-height: 52px; }
  .sticky-call { display: block; }
  .sticky-call a { min-height: 52px; padding: 16px; }
  body { padding-bottom: 58px; }
  /* Subpage hero — better mobile sizing */
  .page-hero { min-height: 40vh; }
  .page-hero h1 { font-size: clamp(28px, 7vw, 48px); }
  .page-hero p { font-size: 16px; }
  .page-hero .hero-actions { flex-direction: column; }
  .page-hero .hero-actions a { width: 100%; text-align: center; justify-content: center; min-height: 52px; }
  /* Content section mobile */
  .content-section h2 { font-size: 22px; margin-top: 36px; }
  .content-section p { font-size: 15px; }
  /* Service mini cards — full width on mobile */
  .services-mini { grid-template-columns: 1fr; }
  /* Nearby chips — better touch targets */
  .nearby-chip { padding: 14px 22px; font-size: 15px; min-height: 48px; display: inline-flex; align-items: center; }
  /* Page CTA mobile */
  .page-cta h2 { font-size: clamp(22px, 5vw, 36px); }
  .page-cta .btn-navy { width: 100%; max-width: 360px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
  /* Blog cards mobile */
  .blog-card { flex-direction: column; }
  .blog-card-thumb { flex: none; min-height: 160px; }
}
@media (max-width: 600px) {
  section { padding: 60px 5%; }
  /* Nearby grid — 2 columns on small screens */
  .nearby-grid { gap: 8px; }
  .nearby-chip { padding: 12px 16px; font-size: 14px; flex: 1 1 calc(50% - 8px); justify-content: center; text-align: center; }
  /* Blog related-articles inline grid — stack on small screens */
  .related-articles div[style*="grid"] { display: flex !important; flex-direction: column !important; }
  .related-articles div[style*="grid"] a { min-height: 48px; display: flex !important; align-items: center; }
}
/* ─── TOUCH DEVICE IMPROVEMENTS ─── */
@media (hover: none) {
  .service-card-link:active .service-card { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(11,64,96,0.15); }
  .nearby-chip:active { background: rgba(225,185,105,0.15); color: var(--white); border-color: var(--gold); }
  .btn-primary:active { transform: translateY(-1px); }
  .btn-navy:active { transform: translateY(-1px); }
}
