/*
Theme Name: Lab and Optic
Theme URI: https://labandoptic.co.za
Author: Lab and Optic
Author URI: https://labandoptic.co.za
Description: Custom theme for Lab and Optic — microscope servicing and repairs.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: lab-and-optic
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0d1b2a;
  --blue:   #1a6bcc;
  --sky:    #3a9bd5;
  --light:  #f4f8fc;
  --white:  #ffffff;
  --text:   #1e293b;
  --muted:  #64748b;
  --border: #dde6f0;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 40px;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.logo-text span { color: var(--blue); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--navy) !important; color: var(--white) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #133a6b 60%, #1a6bcc 100%);
  color: var(--white);
  padding: 100px 5vw 90px;
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 520px;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #a8d4f5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 em {
  font-style: normal;
  color: #7ec8f4;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--sky);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { background: #2a8bc5; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 13px 28px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

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

.hero-visual {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg { width: 280px; height: 280px; opacity: 0.92; }

/* ── STATS BAR ── */
.stats {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── SECTIONS ── */
section { padding: 80px 5vw; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 52px;
}

/* ── SERVICES ── */
#services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 28px rgba(26, 107, 204, 0.1);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg { width: 24px; height: 24px; stroke: var(--blue); }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── ABOUT ── */
#about {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-text { flex: 1; }

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.about-text strong { color: var(--navy); }

.checklist { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ── CONTACT ── */
#contact { background: var(--white); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 38px;
  height: 38px;
  background: #dbeafe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 18px; height: 18px; stroke: var(--blue); }

.contact-detail-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-detail-text p {
  font-size: 0.93rem;
  color: var(--text);
}

/* Contact Form 7 styling */
.wpcf7-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,107,204,0.12);
}
.wpcf7-form textarea { resize: vertical; min-height: 100px; }
.wpcf7-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  align-self: flex-start;
}
.wpcf7-submit:hover { background: var(--navy); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 5vw;
  font-size: 0.85rem;
}

footer strong { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .hero { flex-direction: column; padding: 60px 5vw; min-height: auto; }
  .hero-visual { display: none; }
  .about-inner { flex-direction: column; }
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .stats { flex-wrap: wrap; }
  .stat-item { max-width: 50%; }
}
