/* =============================================
   Desa Bayur Lor — Prototype Website Styles
   ============================================= */

:root {
  /* Palet pastel — terinspirasi logo Desa Bayur Lor */
  --color-primary: #3d8f5a;
  --color-primary-dark: #2d6e47;
  --color-primary-light: #6fb88a;

  --color-accent-blue: #5eb8db;
  --color-accent-blue-dark: #3d9ec4;
  --color-accent-blue-light: #a8d8ee;

  --color-accent-lime: #a8d56e;
  --color-accent-lime-dark: #8fbf55;

  --color-secondary: #e8d08a;
  --color-secondary-dark: #d4b86a;
  --color-secondary-text: #4a4528;

  --color-bg: #f5f9f6;
  --color-bg-alt: #eef6fa;
  --color-surface: #ffffff;
  --color-text: #2a3530;
  --color-text-muted: #637568;
  --color-border: #dce8e0;

  --color-primary-tint: rgba(61, 143, 90, 0.08);
  --color-primary-tint-md: rgba(61, 143, 90, 0.12);
  --color-blue-tint: rgba(94, 184, 219, 0.12);

  --gradient-hero: linear-gradient(135deg, rgba(45, 110, 71, 0.93) 0%, rgba(61, 158, 196, 0.9) 100%);
  --gradient-page: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent-blue-dark));
  --gradient-card-green: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  --gradient-card-blue: linear-gradient(135deg, var(--color-accent-blue-light), var(--color-accent-blue));
  --gradient-card-lime: linear-gradient(135deg, var(--color-accent-lime), var(--color-accent-lime-dark));
  --gradient-card-gold: linear-gradient(135deg, #f0dfa0, var(--color-secondary-dark));

  --shadow-sm: 0 1px 3px rgba(45, 110, 71, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 110, 71, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 110, 71, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  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-accent-blue-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---- Lucide Icons ---- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 48px; height: 48px; }
.icon-xl { width: 56px; height: 56px; }

.top-bar .icon {
  color: rgba(255, 255, 255, 0.9);
}

/* ---- Header / Nav ---- */
.site-header {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-text);
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-accent-blue-light);
  background: var(--color-surface);
}

.logo-text small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 680px;
  color: #fff;
  overflow: hidden;
}

/* Hero slides — burn-in / burn-out crossfade */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 60, 40, 0.75) 0%, rgba(20, 50, 70, 0.65) 100%);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 680px;
  padding: 4rem 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  z-index: 3;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.0625rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero navigation dots */
.hero-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 4;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-secondary-text);
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-secondary-text);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn-green {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-green:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ---- Stats ---- */
.stats-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.stat-icon .icon-md {
  width: 28px;
  height: 28px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ---- Sections ---- */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-blue-dark);
  margin-bottom: 0.5rem;
}

/* ---- Cards Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-image {
  height: 180px;
  background: var(--gradient-card-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.card-image.alt-1 { background: var(--gradient-card-blue); }
.card-image.alt-2 { background: var(--gradient-card-lime); }
.card-image.alt-3 { background: var(--gradient-card-gold); color: var(--color-secondary-text); }
.card-image.alt-3 .icon { color: var(--color-secondary-text); }

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.card-body p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.card-link:hover {
  color: var(--color-accent-blue-dark);
}

/* ---- Quick Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.service-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.service-item:hover {
  border-color: var(--color-accent-blue-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-blue-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--color-accent-blue-dark);
}

.service-item h4 {
  font-size: 0.875rem;
  color: var(--color-text);
}

/* ---- Page Header (inner pages) ---- */
.page-header {
  background: var(--gradient-page);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.875rem;
  opacity: 0.85;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---- Content Layout ---- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 3rem 0;
}

.content-main {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.content-main h2 {
  color: var(--color-primary-dark);
  font-size: 1.375rem;
  margin: 2rem 0 1rem;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.content-main ul.content-list {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.content-main ul.content-list li {
  margin-bottom: 0.35rem;
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.sidebar-card h3 {
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-secondary);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  color: var(--color-text-muted);
}

.info-row span:last-child {
  font-weight: 600;
  text-align: right;
}

/* ---- Info Table ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1rem 0;
}

.info-table th,
.info-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.info-table th {
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-weight: 600;
  width: 35%;
}

.info-table td {
  color: var(--color-text-muted);
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--gradient-card-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: transform var(--transition);
}

.gallery-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  padding: 2rem 1rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.gallery-item:nth-child(2) { background: var(--gradient-card-lime); }
.gallery-item:nth-child(3) { background: var(--gradient-card-gold); color: var(--color-secondary-text); }
.gallery-item:nth-child(3) .icon { color: var(--color-secondary-text); }
.gallery-item:nth-child(4) { background: var(--gradient-card-blue); }
.gallery-item:nth-child(5) { background: var(--gradient-card-green); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-blue)); }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.contact-info-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-info-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--color-blue-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent-blue-dark);
}

.contact-item-text strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}

.contact-item-text span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-form h3 {
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  background: var(--color-surface);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.map-placeholder {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-top: 2rem;
}

.map-placeholder iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #254a38 100%);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer .logo-img {
  border-color: rgba(255, 255, 255, 0.2);
}

.site-footer .logo-text {
  color: #fff;
}

.footer-brand .logo-text small {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom .footer-credit {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .footer-credit a {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.footer-bottom .footer-credit a:hover {
  color: var(--color-secondary);
}

/* ---- Prototype Badge ---- */
.prototype-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--color-secondary);
  color: var(--color-secondary-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  z-index: 99;
  letter-spacing: 0.03em;
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  background: var(--color-surface);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
}

.lightbox-image {
  height: 320px;
  background: var(--gradient-page);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
}

.lightbox-caption {
  padding: 1.25rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 1.125rem;
  }

  section {
    padding: 2.5rem 0;
  }

  /* Top bar */
  .top-bar {
    padding: 0.5rem 0;
    font-size: 0.75rem;
  }

  .top-bar .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
  }

  .top-bar span {
    line-height: 1.45;
    justify-content: center;
  }

  /* Header */
  .logo {
    font-size: 0.9375rem;
    gap: 0.625rem;
  }

  .logo-img {
    width: 38px;
    height: 38px;
  }

  .logo-text small {
    font-size: 0.625rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.125rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
  }

  .main-nav a {
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
  }

  /* Hero */
  .hero {
    min-height: 60vh;
  }

  .hero::after {
    height: 48px;
  }

  .hero-content {
    padding: 2rem 0 2.75rem;
  }

  .hero-badge {
    font-size: 0.6875rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    gap: 0.625rem;
  }

  .btn {
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
  }

  /* Stats */
  .stats-section {
    margin-top: -1.75rem;
    padding-bottom: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .stat-card {
    padding: 1rem 0.625rem;
  }

  .stat-icon .icon-md {
    width: 24px;
    height: 24px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.6875rem;
    line-height: 1.3;
  }

  /* Sections */
  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-header h2 {
    font-size: clamp(1.25rem, 4.5vw, 1.625rem);
  }

  .section-header p {
    font-size: 0.875rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-image {
    height: 140px;
  }

  .card-image .icon-lg {
    width: 40px;
    height: 40px;
  }

  .card-body {
    padding: 1rem;
  }

  .card-body h3 {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
  }

  .service-item {
    padding: 0.875rem 0.5rem;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .service-icon .icon-md {
    width: 20px;
    height: 20px;
  }

  .service-item h4 {
    font-size: 0.6875rem;
    line-height: 1.3;
  }

  /* Inner pages */
  .page-header {
    padding: 2rem 0;
  }

  .page-header h1 {
    font-size: clamp(1.375rem, 5vw, 1.875rem);
  }

  .content-layout {
    padding: 1.75rem 0;
    gap: 1.25rem;
  }

  .content-main {
    padding: 1.25rem;
  }

  .content-main h2 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
  }

  .sidebar-card {
    padding: 1.125rem;
  }

  .contact-grid {
    padding: 1.75rem 0;
    gap: 1.25rem;
  }

  .contact-info-card,
  .contact-form {
    padding: 1.25rem;
  }

  .map-placeholder iframe {
    height: 260px;
  }

  .site-footer .container {
    padding: 1.125rem;
  }
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 2rem 0 1.5rem;
    gap: 1.5rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }

  .footer-bottom {
    padding: 1rem 0;
    font-size: 0.75rem;
  }

  .footer-bottom .footer-credit {
    font-size: 0.75rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  /* Misc */
  .prototype-badge {
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.625rem;
    padding: 0.3rem 0.6rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-image .icon-xl {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .hero-content {
    padding: 1.75rem 0 2.25rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.5rem;
    font-size: 0.8125rem;
  }

  .stats-grid {
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.875rem 0.5rem;
  }

  .stat-value {
    font-size: 1.125rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 0.15rem;
  }

  .info-table td {
    padding-top: 0;
    padding-bottom: 0.625rem;
  }

  .info-table tr {
    border-bottom: 1px solid var(--color-border);
  }

  .info-table tr:last-child {
    border-bottom: none;
  }
}

@media (max-width: 360px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    flex: none;
  }

  .top-bar {
    font-size: 0.6875rem;
  }
}
