/* ============================================
   Burrell Salvage — Stylesheet
   Warm industrial-vintage aesthetic
   Mobile-first responsive design
   ============================================ */

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

:root {
  /* Palette — warm industrial, honoring brand blue as accent */
  --charcoal: #1e1e1e;
  --dark: #2a2621;
  --warm-grey: #3d3832;
  --brand-blue: #2d6a9f;
  --brand-blue-light: #3a7db8;
  --amber: #c4873b;
  --amber-light: #d9a55e;
  --cream: #f5f0e8;
  --cream-dark: #e8e0d2;
  --white: #faf8f5;
  --text: #1a1a1a;
  --text-light: #5a5550;
  --text-on-dark: #e8e0d2;

  /* Typography */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Widths */
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--dark);
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p + p { margin-top: var(--space-sm); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 2px solid var(--amber);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
  flex-shrink: 0;
}

.site-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-logo span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links — mobile: hidden dropdown */
.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 1px solid var(--warm-grey);
  list-style: none;
  padding: var(--space-xs) 0;
}

.nav-links.open {
  display: block;
}

.nav-links li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-links li:last-child {
  border-bottom: none;
}

.nav-links a {
  display: block;
  padding: 14px var(--space-md);
  color: var(--cream-dark);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(196, 135, 59, 0.12);
  color: var(--amber-light);
}

/* Phone CTA in header */
.header-phone {
  display: none;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 56px; /* header height */
  overflow: hidden;
  background: var(--dark);
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 280px;
  flex-shrink: 0;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--dark), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  color: var(--cream);
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.hero-sub {
  color: var(--text-on-dark);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto var(--space-lg);
  opacity: 0.85;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  min-height: 48px;
  min-width: 44px;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--amber-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream-dark);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.btn-dark {
  background: var(--dark);
  color: var(--cream);
}

.btn-dark:hover {
  background: var(--warm-grey);
  color: var(--white);
}

.btn-phone {
  background: var(--brand-blue);
  color: var(--white);
}

.btn-phone:hover {
  background: var(--brand-blue-light);
  color: var(--white);
}

/* --- Section Patterns --- */
.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background: var(--dark);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--cream);
}

.section--cream {
  background: var(--cream);
}

.section--warm-grey {
  background: var(--cream-dark);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section--dark .section-header p {
  color: var(--text-on-dark);
  opacity: 0.8;
}

/* Rule accent under headings */
.rule-accent {
  display: block;
  width: 50px;
  height: 3px;
  background: var(--amber);
  margin: var(--space-sm) auto 0;
}

.rule-accent--left {
  margin-left: 0;
}

/* --- Category Cards --- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.category-card {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4/3;
  background: var(--dark);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(30,30,30,0.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 50%;
}

.category-card h3 {
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.category-card p {
  color: var(--cream-dark);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.review-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  padding: var(--space-md);
}

.section--dark .review-card {
  background: var(--warm-grey);
  border-color: transparent;
}

.review-stars {
  color: var(--amber);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.review-card blockquote {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: var(--space-sm);
  color: inherit;
}

.review-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--amber);
}

/* --- Info Bar / Quick Facts --- */
.info-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  text-align: center;
}

.info-item {
  padding: var(--space-md);
}

.info-item .icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
  display: block;
}

.info-item h4 {
  margin-bottom: 4px;
}

.info-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.section--dark .info-item p {
  color: var(--text-on-dark);
  opacity: 0.8;
}

/* --- Page Hero (interior pages) --- */
.page-hero {
  position: relative;
  padding-top: 56px; /* header */
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: var(--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.55;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  width: 100%;
}

.page-hero h1 {
  color: var(--cream);
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.page-hero .lead {
  color: var(--text-on-dark);
  font-size: 1.05rem;
  max-width: 600px;
  opacity: 0.9;
}

/* --- Content Sections (interior pages) --- */
.content-block {
  padding: var(--space-xl) 0;
}

.content-block + .content-block {
  border-top: 1px solid var(--cream-dark);
}

.content-block h2 {
  margin-bottom: var(--space-sm);
}

.content-block p {
  max-width: 700px;
}

.content-block ul {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0;
}

.content-block ul li {
  padding: var(--space-xs) 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 1rem;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
}

/* Image + text side layout */
.content-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.content-pair img {
  border-radius: 6px;
  width: 100%;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.gallery-grid img {
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* --- Contact / Visit Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease;
  min-height: 48px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(45, 106, 159, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-details h3 {
  margin-bottom: var(--space-sm);
}

.contact-info-list {
  list-style: none;
  padding: 0;
}

.contact-info-list li {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
}

.contact-info-list li:last-child {
  border-bottom: none;
}

.contact-info-list .label {
  font-weight: 600;
  flex-shrink: 0;
  min-width: 70px;
  color: var(--text);
}

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.hours-table td:first-child {
  font-weight: 600;
  width: 120px;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

/* Map embed */
.map-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  margin-top: var(--space-md);
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: var(--text-on-dark);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col h4 {
  color: var(--cream);
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.footer-col p,
.footer-col a {
  color: var(--text-on-dark);
  opacity: 0.8;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col a:hover {
  color: var(--amber-light);
  opacity: 1;
}

.footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 6px;
}

.footer-nav a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

.footer-bottom {
  border-top: 1px solid var(--warm-grey);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--brand-blue);
  color: var(--white);
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.cta-banner p {
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.cta-banner .btn-primary {
  background: var(--amber);
}

/* --- Responsive: Tablet (768px+) --- */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }

  .hero {
    min-height: 100vh;
    flex-direction: row;
  }

  .hero-image-wrap {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
  }

  .hero-image-wrap::after {
    height: 100%;
    background: linear-gradient(to right, rgba(42,38,33,0.85) 0%, rgba(42,38,33,0.4) 60%, transparent 100%);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    text-align: left;
    padding: var(--space-xxl) var(--space-lg);
    justify-content: center;
  }

  .hero-cta-group {
    flex-direction: row;
    justify-content: flex-start;
  }

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

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .content-pair {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-hero {
    min-height: 400px;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .map-wrap iframe {
    height: 400px;
  }
}

/* --- Responsive: Desktop (1024px+) --- */
@media (min-width: 1024px) {
  /* Show desktop nav, hide burger */
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 0;
  }

  .nav-links li {
    border: none;
  }

  .nav-links a {
    padding: 8px 14px;
    font-size: 0.9rem;
    min-height: auto;
    white-space: nowrap;
  }

  .header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--amber-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
  }

  .header-phone:hover {
    color: var(--amber);
  }

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

  .hero-sub {
    font-size: 1.1rem;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }

  .page-hero {
    min-height: 450px;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

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

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* --- Responsive: Large Desktop (1280px+) --- */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* --- Print --- */
@media print {
  .site-header,
  .nav-toggle,
  .cta-banner,
  .site-footer { display: none; }
  body { color: #000; background: #fff; }
}
