/* ============================================
   Nevada Western Construction - Mobile-First Styles
   ============================================ */

:root {
  --color-primary: #c45c26;
  --color-primary-dark: #9e4a1f;
  --color-primary-light: #e07a4a;
  --color-accent: #2d5a4a;
  --color-dark: #1a1a1a;
  --color-dark-soft: #2d2d2d;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #f8f6f3;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 720px;
}

/* ========== Cookie Banner ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark-soft);
  color: var(--color-white);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-content p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-content a {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-buttons {
    flex-shrink: 0;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn-center {
  display: block;
  margin: 0 auto;
  text-align: center;
}

/* Dark context buttons */
.alt-bg .btn-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.alt-bg .btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  transition: background var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  color: var(--color-white);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-primary-light);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-dark);
  padding: 5rem 2rem 2rem;
  transition: right 0.35s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
}

.nav.open {
  right: 0;
}

.nav-list {
  list-style: none;
}

.nav-list li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-list a {
  display: block;
  padding: 1rem 0;
  color: var(--color-white);
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-primary-light);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    gap: 0.5rem;
  }

  .nav-list li {
    border: none;
  }

  .nav-list a {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(45,90,74,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero .highlight {
  color: var(--color-primary-light);
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.badge {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.hero-buttons .btn {
  min-width: 200px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(8px); }
  60% { transform: rotate(45deg) translateY(4px); }
}

/* Split Hero - content + image side by side */
.hero-split {
  flex-direction: column;
  min-height: auto;
  padding: 6rem 0 4rem;
  background: var(--color-bg);
  text-align: left;
}

.hero-split .hero-content {
  max-width: none;
  padding: 0 0 2rem;
}

.hero-split h1 {
  color: var(--color-dark);
  font-size: 2rem;
}

.hero-split .highlight {
  color: var(--color-primary);
}

.hero-split .hero-subtitle {
  color: var(--color-text-light);
}

.hero-split .hero-badges {
  justify-content: flex-start;
}

.hero-split .badge {
  background: var(--color-white);
  color: var(--color-dark);
  border: 1px solid #e0e0e0;
}

.hero-split .hero-buttons {
  align-items: flex-start;
}

.hero-split .btn-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.hero-split .btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.hero-split .hero-scroll {
  display: none;
}

.hero-split .hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-split .hero-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
  .hero-split .hero-buttons {
    justify-content: flex-start;
  }
  .hero-split .hero-image img {
    height: 360px;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero-split {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 7rem 0 5rem;
    min-height: 90vh;
  }
  .hero-split .hero-content {
    flex: 1;
    padding: 0;
  }
  .hero-split .hero-image {
    flex: 1;
    max-width: 50%;
  }
  .hero-split .hero-image img {
    height: 400px;
  }
}

/* ========== Page Hero ========== */
.page-hero {
  position: relative;
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 60px;
}

.page-hero-small {
  padding: 6rem 0 3rem;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.8) 0%, rgba(45,90,74,0.5) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 2.75rem;
  }
}

/* ========== Sections ========== */
.section {
  padding: 4rem 0;
}

.alt-bg {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1rem;
}

.text-center {
  text-align: center;
  margin-top: 2rem;
}

/* ========== About Preview ========== */
.about-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Services Preview ========== */
.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.service-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.link-arrow {
  font-weight: 500;
  color: var(--color-primary);
}

.link-arrow:hover {
  color: var(--color-primary-dark);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Service Detail ========== */
.service-detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail.reverse {
  flex-direction: column-reverse;
}

.service-detail-image {
  height: 280px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
}

.service-detail-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-dark);
  margin: 0.5rem 0 1rem;
}

.service-detail-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--color-text-light);
}

.service-detail-content li {
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .service-detail {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .service-detail.reverse {
    flex-direction: row-reverse;
  }

  .service-detail-image {
    flex: 0 0 45%;
    height: 320px;
  }

  .service-detail-content {
    flex: 1;
  }
}

/* ========== Process Steps ========== */
.process-steps {
  display: grid;
  gap: 1.5rem;
}

.process-step {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  padding-left: 4rem;
}

.step-num {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.5;
}

.process-step h3 {
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== CTA Section ========== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-content p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ========== Gallery ========== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--color-white);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.contact-details {
  margin: 1.5rem 0;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========== Map ========== */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  display: block;
}

/* ========== About Page ========== */
.about-content-grid {
  display: grid;
  gap: 2rem;
}

.about-main h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.about-main h3 {
  font-size: 1.25rem;
  color: var(--color-dark);
  margin: 1.5rem 0 0.75rem;
}

.about-main p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.values-list {
  list-style: none;
  margin: 1rem 0;
}

.values-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  color: var(--color-text-light);
}

.values-list li:last-child {
  border-bottom: none;
}

.info-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.info-card h4 {
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.info-card ul {
  list-style: none;
}

.info-card li {
  padding: 0.35rem 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .about-content-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* ========== Features Grid ========== */
.features-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-item {
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
}

.feature-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.4;
  display: block;
  margin-bottom: 0.5rem;
}

.feature-item h3 {
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== Legal Pages ========== */
.legal-content {
  padding: 3rem 0;
}

.legal-body h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-dark);
  margin: 2rem 0 0.75rem;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-body ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--color-text-light);
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.legal-table th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-dark);
}

.legal-table td {
  color: var(--color-text-light);
}

@media (max-width: 640px) {
  .legal-table {
    display: block;
  }
  .legal-table thead {
    display: none;
  }
  .legal-table tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius);
  }
  .legal-table td {
    display: block;
    padding: 0.35rem 0;
    border: none;
  }
  .legal-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-dark);
    margin-right: 0.5rem;
  }
}

/* ========== Footer ========== */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-primary-light);
}

.footer-link {
  display: inline-block;
  margin-top: 0.5rem;
}

.footer-rating {
  margin-top: 0.5rem;
  color: var(--color-primary-light);
  font-weight: 500;
}

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
