/* =============================================================================
   ISSAMORE ELECTRIC — DESIGN SYSTEM
   Faithfully translated from the React/Tailwind source.
   Font: Nunito Sans (Google Fonts)
   Primary: #4E7B39  |  Dark: #1A1A1A  |  Foreground: #383B43
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

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

:root {
  --primary:        #4E7B39;
  --primary-light:  rgba(78,123,57,0.10);
  --primary-light2: rgba(78,123,57,0.20);
  --primary-80:     rgba(78,123,57,0.80);
  --bg:             #ffffff;
  --fg:             #383B43;
  --muted-bg:       #f3f7f0;
  --muted-fg:       #6D7180;
  --card-bg:        #ffffff;
  --border:         #dfe1e6;
  --dark:           #1A1A1A;
  --font:           'Nunito Sans', sans-serif;
  --radius:         0.5rem;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.12);
  --shadow-xl:      0 20px 40px rgba(0,0,0,0.15);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Layout Utilities ----------------------------------------------------- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.container-sm { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px)  { .container-sm { padding: 0 1.5rem; } }

.container-md { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

/* --- Navbar --------------------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 5rem;
}
.navbar-logo img { height: 3.5rem; width: auto; }
.navbar-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .navbar-links { display: flex; } }
.nav-link {
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  color: var(--fg); transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}
.navbar-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; background: none;
  border: none; cursor: pointer; color: var(--fg);
}
@media (min-width: 768px) { .navbar-toggle { display: none; } }

.mobile-menu {
  display: none; border-top: 1px solid var(--border); background: #fff;
  padding: 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-link {
  display: block; padding: 0.75rem 1rem; margin-bottom: 0.25rem;
}

/* --- Hero Slider ---------------------------------------------------------- */
.hero {
  position: relative; background: var(--dark);
  overflow: hidden; min-height: 90vh; display: flex; align-items: center;
}
.hero-slide {
  position: absolute; inset: 0;
  transition: opacity 1s ease; opacity: 0;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,26,26,0.90) 0%, rgba(26,26,26,0.60) 50%, transparent 100%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, #4E7B39 0px, #4E7B39 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg,  #4E7B39 0px, #4E7B39 1px, transparent 1px, transparent 80px);
}
.hero-content {
  position: relative; width: 100%;
  padding: 6rem 1rem;
}
@media (min-width: 1024px) { .hero-content { padding: 9rem 2rem; } }
.hero-inner { max-width: 48rem; }
.hero-logo { height: 5rem; width: auto; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .hero-logo { height: 7rem; } }
.hero h1 {
  font-weight: 800; font-size: 2.25rem; color: #fff;
  line-height: 1.15;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero-accent { color: var(--primary); }
.hero-sub { margin-top: 1.5rem; font-size: 1.125rem; color: #d1d5db; max-width: 36rem; }
.hero-ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.10); border: none; cursor: pointer;
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.20); }

.hero-dots {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.hero-dot {
  height: 0.5rem; border-radius: 9999px;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all 0.3s; width: 0.5rem;
}
.hero-dot.active { width: 2rem; background: var(--primary); }

.hero-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px; overflow: hidden;
}
.hero-line-inner {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0 2rem; height: 3rem; border-radius: var(--radius);
  font-family: var(--font); font-weight: 700; font-size: 0.9375rem;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent; white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-80); border-color: var(--primary-80); }
.btn-outline {
  background: transparent; color: #d1d5db;
  border-color: #6b7280;
}
.btn-outline:hover { background: rgba(255,255,255,0.10); }
.btn-outline-dark {
  background: transparent; color: var(--fg);
  border-color: var(--border);
}
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 0.8125rem; }
.btn-full { width: 100%; }

/* --- Stats Bar ------------------------------------------------------------ */
.stats-bar { background: var(--primary); padding: 3.5rem 0; }
.stats-bar .container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; text-align: center; color: #fff; }
@media (min-width: 768px) { .stats-bar .container { grid-template-columns: repeat(4,1fr); } }
.stat-value { font-weight: 800; font-size: 2.5rem; }
@media (min-width: 1024px) { .stat-value { font-size: 3rem; } }
.stat-label { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.80); font-weight: 600; }

/* --- Section Titles ------------------------------------------------------- */
.section-label {
  font-size: 0.75rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.75rem;
}
.section-title {
  font-weight: 800; font-size: 1.875rem; color: var(--fg);
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.section-title-white { color: #fff; }
.section-header { text-align: center; margin-bottom: 4rem; }

/* --- Service Cards (home overview) ---------------------------------------- */
.section-services { padding: 5rem 0; background: var(--bg); }
@media (min-width: 1024px) { .section-services { padding: 7rem 0; } }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4,1fr); } }
.service-card {
  padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card-bg); transition: border-color 0.3s, box-shadow 0.3s;
  text-decoration: none; display: block;
}
.service-card:hover { border-color: rgba(78,123,57,0.30); box-shadow: var(--shadow-md); }
.service-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: background 0.2s;
}
.service-card:hover .service-icon { background: var(--primary-light2); }
.service-icon svg { color: var(--primary); }
.service-card h3 { font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.service-card p  { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }

/* --- Image Gallery -------------------------------------------------------- */
.section-gallery { padding: 4rem 0; background: #fff; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.10); }
.gallery-caption {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption span { color: #fff; font-weight: 600; font-size: 0.875rem; }

/* --- Vision & Mission ----------------------------------------------------- */
.section-vm { padding: 5rem 0; background: var(--dark); }
@media (min-width: 1024px) { .section-vm { padding: 7rem 0; } }
.vm-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .vm-grid { grid-template-columns: 1fr 1fr; } }
.vm-card {
  padding: 2rem 2.5rem; border-radius: var(--radius);
  border: 1px solid #333; background: rgba(17,17,17,0.5);
}
@media (min-width: 1024px) { .vm-card { padding: 2.5rem 3rem; } }
.vm-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius);
  background: var(--primary-light2); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.vm-card h3 { font-weight: 700; font-size: 1.25rem; color: var(--primary); margin-bottom: 1rem; }
.vm-card p  { color: #9ca3af; line-height: 1.7; font-size: 1.0625rem; }

/* --- CTA Banner ----------------------------------------------------------- */
.section-cta {
  padding: 6rem 0; position: relative; background-size: cover; background-position: center;
}
.cta-overlay { position: absolute; inset: 0; background: rgba(26,26,26,0.80); }
.cta-inner { position: relative; text-align: center; }
.cta-inner h2 { font-weight: 800; font-size: 1.875rem; color: #fff; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .cta-inner h2 { font-size: 2.25rem; } }
.cta-inner p { font-size: 1.125rem; color: rgba(255,255,255,0.75); max-width: 40rem; margin: 0 auto 2rem; }

/* --- Page Hero ------------------------------------------------------------ */
.page-hero {
  position: relative; padding: 7rem 0; background-size: cover; background-position: center;
}
@media (min-width: 1024px) { .page-hero { padding: 9rem 0; } }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(26,26,26,0.80); }
.page-hero-inner { position: relative; text-align: center; }
.page-hero-label {
  font-size: 0.75rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.75rem;
}
.page-hero h1 { font-weight: 800; font-size: 2.5rem; color: #fff; }
@media (min-width: 640px) { .page-hero h1 { font-size: 3.125rem; } }
.page-hero-sub { margin-top: 1rem; color: #9ca3af; max-width: 40rem; margin-left: auto; margin-right: auto; }

/* --- About Page ----------------------------------------------------------- */
.section-about-text { padding: 5rem 0; }
@media (min-width: 1024px) { .section-about-text { padding: 7rem 0; } }
.about-text p { font-size: 1.0625rem; color: var(--fg); line-height: 1.8; }
.about-text p + p { margin-top: 1.5rem; }
.about-text strong { color: var(--primary); }

.section-team { padding: 5rem 0; background: var(--muted-bg); }
@media (min-width: 1024px) { .section-team { padding: 7rem 0; } }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4,1fr); } }
.team-member { text-align: center; }
.team-photo {
  width: 12rem; height: 14rem; margin: 0 auto 1.25rem;
  border-radius: var(--radius); overflow: hidden;
  background: var(--muted-bg); border: 2px solid var(--border);
  transition: border-color 0.2s;
}
.team-member:hover .team-photo { border-color: rgba(78,123,57,0.40); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-name  { font-weight: 700; font-size: 1.0625rem; color: var(--primary); }
.team-title { font-size: 0.875rem; font-weight: 600; color: var(--fg); margin-top: 0.25rem; }
.team-quals { margin-top: 0.5rem; }
.team-quals span { display: block; font-size: 0.75rem; color: var(--muted-fg); }

/* --- Services Page -------------------------------------------------------- */
.section-services-full { padding: 5rem 0; }
@media (min-width: 1024px) { .section-services-full { padding: 7rem 0; } }
.services-full-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px)  { .services-full-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-full-grid { grid-template-columns: repeat(3,1fr); } }
.service-full-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card-bg); overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-full-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.service-img { position: relative; height: 11rem; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-full-card:hover .service-img img { transform: scale(1.05); }
.service-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.60), transparent);
}
.service-img-header {
  position: absolute; bottom: 1rem; left: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.service-img-icon {
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius);
  background: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-img-icon svg { color: #fff; }
.service-img h3 { font-weight: 700; color: #fff; font-size: 0.9375rem; line-height: 1.3; }
.service-full-body { padding: 1.5rem; }
.service-full-body ul { list-style: none; }
.service-full-body li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 0.5rem;
}
.service-full-body li::before { content: "▸"; color: var(--primary); flex-shrink: 0; margin-top: 1px; }

/* --- Products Page -------------------------------------------------------- */
.section-product-filters { padding: 3rem 0; background: var(--muted-bg); border-bottom: 1px solid var(--border); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.section-products { padding: 4rem 0; }
@media (min-width: 1024px) { .section-products { padding: 5rem 0; } }
.product-category { margin-bottom: 4rem; }
.category-header { margin-bottom: 2rem; border-left: 4px solid var(--primary); padding-left: 1rem; }
.category-header h2 { font-weight: 700; font-size: 1.5rem; color: var(--fg); }
.category-header p  { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.25rem; }
.products-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px)  { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3,1fr); } }
.product-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card-bg); overflow: hidden;
  transition: box-shadow 0.3s;
}
.product-card:hover { box-shadow: var(--shadow-md); }
.product-img-wrap {
  aspect-ratio: 4/3; background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; border-bottom: 1px solid var(--border); overflow: hidden;
}
.product-img-wrap img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-body { padding: 1.5rem; }
.product-name { font-weight: 700; font-size: 1.0625rem; color: var(--fg); }
.product-sub  { font-size: 0.875rem; color: var(--muted-fg); margin: 0.25rem 0 1rem; }
.product-specs { list-style: none; margin-bottom: 1.25rem; }
.product-specs li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 0.375rem;
}
.product-specs li::before { content: "•"; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.product-datasheet {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
  transition: color 0.2s; text-decoration: none;
}
.product-datasheet:hover { color: var(--primary-80); }

/* --- Projects Page -------------------------------------------------------- */
.section-projects { padding: 5rem 0; }
@media (min-width: 1024px) { .section-projects { padding: 7rem 0; } }
.projects-list { display: flex; flex-direction: column; gap: 1.5rem; }
.project-item {
  display: flex; gap: 1.25rem; padding: 1.5rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card-bg); transition: box-shadow 0.2s;
}
.project-item:hover { box-shadow: var(--shadow-sm); }
.project-icon {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
  background: var(--primary-light); flex-shrink: 0; margin-top: 0.25rem;
  display: flex; align-items: center; justify-content: center;
}
.project-icon svg { color: var(--primary); }
.project-item h3 { font-weight: 700; font-size: 1.0625rem; color: var(--fg); }
.project-item p  { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.5rem; line-height: 1.65; }

/* --- Contact Page --------------------------------------------------------- */
.section-contact { padding: 5rem 0; }
@media (min-width: 1024px) { .section-contact { padding: 7rem 0; } }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1rem;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--card-bg);
}
.contact-info-item + .contact-info-item { margin-top: 1rem; }
.contact-info-icon {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-icon svg { color: var(--primary); }
.contact-info-label { font-weight: 600; font-size: 0.875rem; color: var(--fg); }
.contact-info-value { font-size: 0.875rem; color: var(--muted-fg); }
.contact-info-value a:hover { color: var(--primary); }

.contact-form-wrap {
  padding: 2rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card-bg);
}
.contact-form-wrap h3 { font-weight: 700; font-size: 1.25rem; color: var(--fg); margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.25rem; }
.form-group:last-child { margin-bottom: 0; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--fg); }
.form-input, .form-textarea {
  width: 100%; padding: 0.625rem 0.875rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  font-family: var(--font); font-size: 0.9375rem; color: var(--fg);
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(78,123,57,0.15);
}
.form-textarea { resize: vertical; min-height: 8rem; }
.form-error { color: #dc2626; font-size: 0.875rem; margin-bottom: 0.75rem; }
.form-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 2rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card-bg);
}
.form-success svg { color: var(--primary); margin-bottom: 1rem; }
.form-success h3 { font-weight: 700; font-size: 1.5rem; color: var(--fg); margin-bottom: 0.5rem; }
.form-success p  { color: var(--muted-fg); }

/* --- Policy Pages --------------------------------------------------------- */
.section-policy { padding: 5rem 0; }
@media (min-width: 1024px) { .section-policy { padding: 7rem 0; } }
.policy-content { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.policy-body h1,.policy-body h2,.policy-body h3,.policy-body h4 {
  font-weight: 700; color: var(--fg); margin: 1.5rem 0 0.75rem;
}
.policy-body h1 { font-size: 1.75rem; }
.policy-body h2 { font-size: 1.375rem; }
.policy-body h3 { font-size: 1.125rem; }
.policy-body p  { color: var(--muted-fg); margin-bottom: 1rem; line-height: 1.75; }
.policy-body ul,.policy-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-body li { color: var(--muted-fg); margin-bottom: 0.375rem; line-height: 1.65; }
.policy-body a  { color: var(--primary); text-decoration: underline; }
.policy-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.policy-empty { text-align: center; padding: 3rem; color: var(--muted-fg); }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--dark); color: #d1d5db; }
.footer-inner {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  padding: 4rem 0;
}
@media (min-width: 768px)  { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: repeat(4,1fr); } }
.footer-logo { height: 4rem; width: auto; margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.875rem; color: #9ca3af; line-height: 1.7; }
.footer-col h4 {
  font-weight: 700; font-size: 0.75rem; color: #fff;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: #9ca3af; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.footer-contact-item svg { color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.footer-contact-item span, .footer-contact-item a {
  font-size: 0.875rem; color: #9ca3af;
}
.footer-contact-item a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #333; padding: 2rem 0;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 1rem; text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-bottom p { font-size: 0.75rem; color: #6b7280; }
.footer-bottom a { color: var(--primary); }
.footer-bottom a:hover { color: var(--primary-80); }

/* --- Cookie Banner -------------------------------------------------------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--dark); border-top: 1px solid #333;
  padding: 1rem 1.5rem; display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 1rem;
}
@media (min-width: 640px) { .cookie-inner { flex-direction: row; } }
.cookie-text { font-size: 0.875rem; color: #d1d5db; text-align: center; }
@media (min-width: 640px) { .cookie-text { text-align: left; } }
.cookie-text a { color: var(--primary); text-decoration: underline; }

/* --- Admin ---------------------------------------------------------------- */
.admin-wrap { min-height: 100vh; background: #f8fafc; font-family: var(--font); }
.admin-topbar {
  background: var(--dark); padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-topbar-brand { font-weight: 700; color: #fff; font-size: 1.0625rem; }
.admin-topbar-nav { display: flex; align-items: center; gap: 1rem; }
.admin-topbar-nav a { font-size: 0.875rem; color: #9ca3af; transition: color 0.2s; }
.admin-topbar-nav a:hover, .admin-topbar-nav a.active { color: #fff; }
.admin-topbar-nav .logout { color: #f87171; }

.admin-hero { background: var(--dark); padding: 4rem 1.5rem; text-align: center; }
.admin-hero h1 { font-weight: 700; font-size: 1.875rem; color: #fff; }
.admin-hero p  { color: #9ca3af; margin-top: 0.5rem; }

.admin-main { max-width: 64rem; margin: 0 auto; padding: 2rem 1.5rem; }
.admin-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem;
  box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.admin-card-title { font-weight: 700; font-size: 1.0625rem; color: var(--fg); margin-bottom: 1rem; }

/* Tabs */
.tabs-list { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn {
  padding: 0.75rem 1.5rem; font-family: var(--font); font-weight: 600;
  font-size: 0.9375rem; background: none; border: none; cursor: pointer;
  color: var(--muted-fg); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Admin form */
.admin-form-group { margin-bottom: 1rem; }
.admin-form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--fg); margin-bottom: 0.375rem; }
.admin-textarea { width: 100%; min-height: 24rem; font-family: monospace; font-size: 0.875rem; }
.preview-btns { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }

/* Enquiries table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; font-weight: 700; color: var(--fg); padding: 0.75rem; border-bottom: 2px solid var(--border); white-space: nowrap; }
.data-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--muted-bg); }
.badge {
  display: inline-flex; align-items: center; padding: 0.2rem 0.6rem;
  border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray  { background: #f1f5f9; color: #64748b; }
.badge-red   { background: #fee2e2; color: #991b1b; }

/* Login page */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--dark); padding: 2rem;
}
.login-box {
  background: #fff; border-radius: var(--radius); padding: 2.5rem;
  width: 100%; max-width: 22rem; box-shadow: var(--shadow-xl);
}
.login-logo { height: 3.5rem; width: auto; margin: 0 auto 2rem; display: block; }
.login-title { font-weight: 700; font-size: 1.375rem; color: var(--fg); text-align: center; margin-bottom: 1.5rem; }
.login-error {
  background: #fee2e2; color: #991b1b; border-radius: var(--radius);
  padding: 0.75rem 1rem; font-size: 0.875rem; margin-bottom: 1rem;
}

/* 404 */
.page-404 {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1rem;
}
.page-404 h1 { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; }
.page-404 h2 { font-size: 1.5rem; font-weight: 700; color: var(--fg); margin: 1rem 0 0.5rem; }
.page-404 p  { color: var(--muted-fg); margin-bottom: 2rem; }

/* --- Spinner -------------------------------------------------------------- */
.spinner {
  width: 2rem; height: 2rem; border: 4px solid var(--muted-bg);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 3rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Utilities ------------------------------------------------------------ */
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
