/* OS Electrical Safety Ltd — Custom Styles */

/* ── Fonts ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --navy:   #1E3A5F;
  --navy-dark: #152B47;
  --navy-light: #2A4E7F;
  --gold:   #F59E0B;
  --gold-dark: #D97706;
  --gold-light: #FCD34D;
  --white:  #FFFFFF;
  --off-white: #F8FAFC;
  --light-gray: #F1F5F9;
  --mid-gray: #94A3B8;
  --dark-gray: #475569;
  --text-dark: #0F172A;
  --text-body: #334155;
}

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}

/* ── Navigation ──────────────────────────────────────────────── */
.navbar {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.nav-link {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile nav overlay */
#mobile-menu {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#mobile-menu.hidden {
  display: none;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8125rem 1.875rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  border: 2px solid rgba(255,255,255,0.7);
  white-space: nowrap;
  cursor: pointer;
}

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

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.6875rem 1.625rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid var(--navy);
  white-space: nowrap;
  cursor: pointer;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(245,158,11,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.phone-number-hero {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
  display: inline-block;
}

.phone-number-hero:hover {
  color: var(--gold);
}

.phone-number-hero span {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  background: #22C55E;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ── Trust Bar ───────────────────────────────────────────────── */
.trust-bar {
  background: var(--off-white);
  border-bottom: 1px solid #E2E8F0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
}

.trust-item .icon {
  color: var(--gold);
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ── Section Headings ────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: rgba(245,158,11,0.1);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3125rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--dark-gray);
  max-width: 600px;
  line-height: 1.7;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.divider-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── Service Cards ───────────────────────────────────────────── */
.service-card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30,58,95,0.12);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(30,58,95,0.08), rgba(30,58,95,0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  margin-bottom: 1.25rem;
  transition: background 0.25s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

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

.service-card p {
  font-size: 0.9375rem;
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-link:hover {
  color: var(--gold-dark);
  gap: 0.625rem;
}

/* ── Why Choose Us ───────────────────────────────────────────── */
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245,158,11,0.25);
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  transition: box-shadow 0.25s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(30,58,95,0.1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 1px;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.75;
  font-style: italic;
  margin: 0.75rem 0 1.25rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9375rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--mid-gray);
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '⚡';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12rem;
  opacity: 0.04;
  pointer-events: none;
}

/* ── Coverage Map Section ────────────────────────────────────── */
.coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30,58,95,0.06);
  border: 1px solid rgba(30,58,95,0.15);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
}

/* ── Stats ───────────────────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-number span {
  color: var(--gold-dark);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--dark-gray);
  margin-top: 0.375rem;
}

/* ── Accreditation Badges ────────────────────────────────────── */
.accred-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.accred-badge:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(30,58,95,0.1);
}

.accred-badge .badge-icon {
  font-size: 2rem;
}

.accred-badge .badge-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}

.accred-badge .badge-desc {
  font-size: 0.75rem;
  color: var(--mid-gray);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
}

.footer-heading {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-link {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-phone {
  color: var(--gold);
  font-size: 1.375rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.footer-phone:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

/* ── Services Page ───────────────────────────────────────────── */
.service-section {
  padding: 4rem 0;
  border-bottom: 1px solid #E2E8F0;
}

.service-section:last-child {
  border-bottom: none;
}

.service-section-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(30,58,95,0.2);
  flex-shrink: 0;
}

.service-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.625rem;
}

.service-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.service-checklist li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(34,197,94,0.12);
  color: #16A34A;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Contact Page ────────────────────────────────────────────── */
.contact-card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 24px rgba(30,58,95,0.1);
  transform: translateY(-2px);
}

.contact-card .contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  margin: 0 auto 1rem;
}

/* Form Styles */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94A3B8;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

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

/* ── About Page ──────────────────────────────────────────────── */
.value-card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.value-card:hover {
  box-shadow: 0 8px 24px rgba(30,58,95,0.1);
  transform: translateY(-2px);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.08));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  color: var(--gold-light);
}

/* ── Utility ─────────────────────────────────────────────────── */
.gold-text { color: var(--gold-dark); }
.navy-text { color: var(--navy); }

.bg-navy { background: var(--navy); }
.bg-navy-dark { background: var(--navy-dark); }
.bg-off-white { background: var(--off-white); }

.shadow-card {
  box-shadow: 0 2px 8px rgba(30,58,95,0.08), 0 1px 3px rgba(30,58,95,0.06);
}

/* ── Top Bar ─────────────────────────────────────────────────── */
.top-bar {
  background: var(--navy-dark);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
}

.top-bar a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: var(--white);
}

/* ── Responsive Utilities ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .phone-number-hero {
    font-size: 2rem;
  }

  .service-checklist {
    grid-template-columns: 1fr;
  }
}

/* ── Hamburger ───────────────────────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

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

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Smooth entrance animations ──────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in-delay-1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeInUp; animation-duration: 0.6s; animation-timing-function: ease; }
.animate-in-delay-2 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeInUp; animation-duration: 0.6s; animation-timing-function: ease; }
.animate-in-delay-3 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeInUp; animation-duration: 0.6s; animation-timing-function: ease; }
