/* ============================================
   JR Panel & Paint Limited — Style System
   Mobile-first. 375px canonical, scales up.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-dark: #0f1923;
  --color-dark-alt: #162230;
  --color-accent: #c8102e;
  --color-accent-hover: #a00d24;
  --color-light: #f5f4f0;
  --color-light-alt: #eae8e3;
  --color-text: #2b2b2b;
  --color-text-light: #f5f4f0;
  --color-text-muted: #6b7280;
  --color-border: #d4d0ca;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Utilities --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-accent { color: var(--color-accent); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.625rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }

/* ============================================
   Navigation
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 25, 35, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo / wordmark */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.03em;
  z-index: 1001;
}
.nav-logo .jr { color: var(--color-accent); font-size: 1.5rem; }
.nav-logo .tagline {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: none;
}

/* Desktop nav links — hidden on mobile */
.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links .nav-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-links .nav-cta:hover { background: var(--color-accent-hover); }

/* Mobile burger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 25, 35, 0.99);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-mobile.open { opacity: 1; pointer-events: all; }
.nav-mobile a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--color-accent); }
.nav-mobile .nav-cta-mobile {
  margin-top: 16px;
  background: var(--color-accent);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1.125rem;
}

/* ============================================
   Hero — full-bleed background image
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: var(--nav-height) 0 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,25,35,0.95) 0%,
    rgba(15,25,35,0.7) 40%,
    rgba(15,25,35,0.3) 70%,
    rgba(15,25,35,0.15) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.3);
  color: #ff8a9a;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.hero-badge svg { flex-shrink: 0; }
.hero h1 {
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 600px;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}
.hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 480px;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-height: 48px;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }
.btn-dark {
  background: var(--color-dark);
  color: #fff;
}
.btn-dark:hover { background: var(--color-dark-alt); }
.btn-light {
  background: var(--color-accent);
  color: #fff;
}
.btn-light:hover { background: var(--color-accent-hover); }

/* ============================================
   Section commons
   ============================================ */
.section { padding: 64px 0; }
.section-dark { background: var(--color-dark); color: var(--color-text-light); }
.section-alt { background: var(--color-light-alt); }
.section-header {
  margin-bottom: 40px;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 560px;
}
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* ============================================
   Services grid (home)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.service-card-img {
  height: 200px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 24px; }
.service-card-body h3 { margin-bottom: 8px; color: var(--color-dark); }
.service-card-body p { color: var(--color-text-muted); font-size: 0.9375rem; margin-bottom: 0; }

/* Section dark service cards */
.section-dark .service-card {
  background: var(--color-dark-alt);
  border-color: rgba(255,255,255,0.08);
}
.section-dark .service-card-body h3 { color: #fff; }
.section-dark .service-card-body p { color: rgba(255,255,255,0.6); }

/* ============================================
   Reviews / testimonials
   ============================================ */
.reviews-section { overflow: hidden; }
.reviews-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.reviews-scroll::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 calc(100% - 16px);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
}
.section-dark .review-card {
  background: var(--color-dark-alt);
  border-color: rgba(255,255,255,0.08);
}
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}
.review-stars svg { color: #f59e0b; }
.review-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 16px;
  color: var(--color-text);
}
.section-dark .review-text { color: rgba(255,255,255,0.85); }
.review-author {
  font-weight: 600;
  font-size: 0.875rem;
}
.review-source {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.section-dark .review-source { color: rgba(255,255,255,0.4); }

/* ============================================
   Stats bar
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.section-dark .stat-label { color: rgba(255,255,255,0.5); }

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  background: var(--color-accent);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn {
  background: #fff;
  color: var(--color-accent);
  font-weight: 700;
}
.cta-banner .btn:hover { background: var(--color-light-alt); }

/* ============================================
   About page — story layout
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.about-intro-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(200,16,46,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.section-dark .value-icon { background: rgba(200,16,46,0.2); }
.value-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.value-item p { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: 0; }
.section-dark .value-item p { color: rgba(255,255,255,0.6); }

/* ============================================
   Services page — detail sections
   ============================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.service-detail + .service-detail { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--color-border); }
.section-dark .service-detail + .service-detail { border-top-color: rgba(255,255,255,0.08); }
.service-detail-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/2;
}
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-content h3 { font-size: 1.375rem; margin-bottom: 12px; }
.service-detail-content p { font-size: 0.9375rem; color: var(--color-text-muted); }
.section-dark .service-detail-content p { color: rgba(255,255,255,0.6); }
.service-detail-content ul { margin: 12px 0; }
.service-detail-content li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.section-dark .service-detail-content li { color: rgba(255,255,255,0.6); }
.service-detail-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ============================================
   Contact page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(200,16,46,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.contact-info-item h4 { margin-bottom: 4px; }
.contact-info-item p { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: 0; }
.contact-info-item a { color: var(--color-accent); font-weight: 500; }

.contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  border: 1px solid var(--color-border);
}
.section-dark .contact-form {
  background: var(--color-dark-alt);
  border-color: rgba(255,255,255,0.08);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-light);
  color: var(--color-text);
  transition: border-color 0.2s;
  min-height: 48px;
}
.section-dark .form-group input,
.section-dark .form-group textarea,
.section-dark .form-group select {
  background: var(--color-dark);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 32px 16px;
}
.form-success.show { display: block; }
.form-success h3 { color: var(--color-accent); margin-bottom: 8px; }

/* ============================================
   Page hero (inner pages)
   ============================================ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 48px) 0 48px;
  background: var(--color-dark);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 560px; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-dark);
  color: var(--color-text-light);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.875rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ============================================
   Hours table
   ============================================ */
.hours-table { width: 100%; }
.hours-table tr { border-bottom: 1px solid var(--color-border); }
.section-dark .hours-table tr { border-bottom-color: rgba(255,255,255,0.06); }
.hours-table td {
  padding: 10px 0;
  font-size: 0.9375rem;
}
.hours-table td:first-child { font-weight: 600; }
.hours-table td:last-child { text-align: right; color: var(--color-text-muted); }
.section-dark .hours-table td:last-child { color: rgba(255,255,255,0.5); }
.hours-today { color: var(--color-accent) !important; font-weight: 600 !important; }

/* ============================================
   Map placeholder
   ============================================ */
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-light-alt);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   Privacy / Terms
   ============================================ */
.legal-content { max-width: 720px; }
.legal-content h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.legal-content p, .legal-content li { font-size: 0.9375rem; color: var(--color-text-muted); }

/* ============================================
   Media Queries — Tablet (768px)
   ============================================ */
@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 3rem; }
  .hero-sub { font-size: 1.125rem; }
  .hero-actions { flex-direction: row; }

  .section { padding: 80px 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .review-card { flex: 0 0 calc(50% - 8px); }

  .stats-bar { grid-template-columns: repeat(4, 1fr); }

  .about-intro { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .service-detail { grid-template-columns: 1fr 1fr; }
  .service-detail:nth-child(even) .service-detail-img { order: 2; }
  .service-detail:nth-child(even) .service-detail-content { order: 1; }

  .contact-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .nav-logo .tagline { display: block; }

  .page-hero { padding: calc(var(--nav-height) + 64px) 0 64px; }
}

/* ============================================
   Media Queries — Desktop (1024px)
   ============================================ */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }

  .hero h1 { font-size: 3.5rem; }

  .container { padding: 0 40px; }
  .section { padding: 100px 0; }

  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .contact-form { padding: 40px; }
}

/* ============================================
   Media Queries — Large Desktop (1440px)
   ============================================ */
@media (min-width: 1440px) {
  .hero h1 { font-size: 4rem; max-width: 700px; }
  .hero-sub { font-size: 1.2rem; }
}
