/* === StormHorizon — CSS3 Only, No JS === */

:root {
  --bg:       #0f172a;
  --bg-card:  #1e293b;
  --bg-deep:  #0a1120;
  --text:     #f8fafc;
  --accent:   #38bdf8;
  --muted:    #64748b;
  --border:   rgba(255, 255, 255, 0.05);

  --font: 'Encode Sans', Arial, Helvetica, sans-serif;
  --font-heading: 'Orbitron', Arial, Helvetica, sans-serif;
  --max-w: 1120px;
  --radius: 10px;
}

/* === Accessibility === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus-visible { color: #7dd3fc; }

h1, h3 {
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-brand {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.header-brand:hover { color: var(--text); opacity: 0.8; }

.main-nav { display: flex; gap: 2rem; }

.main-nav a {
  font-family: var(--font-heading);
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

/* === Hero === */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, var(--bg-card) 0%, var(--bg) 70%);
  padding: 3.5rem 1.5rem 1.5rem;
}

.hero-content { max-width: 780px; }

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.hero-logo img {
  display: block;
  width: min(90%, 560px);
  height: auto;
  filter: brightness(0) invert(1);
  -webkit-mask-image: linear-gradient(to bottom, white 0%, rgba(255,255,255,0.45) 50%, white 100%);
  mask-image: linear-gradient(to bottom, white 0%, rgba(255,255,255,0.45) 50%, white 100%);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* === Sections Common === */
section {
  padding: 5rem 0;
  scroll-margin-top: 80px;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

/* === Services === */
.services { background: var(--bg); padding-top: 3rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* === Clients === */
.clients {
  background: var(--bg-deep);
}

.clients-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.client-card:hover {
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

.client-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 100%;
}

.client-logo {
  max-height: 48px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
  opacity: 0.55;
  transition: filter 0.35s, opacity 0.35s;
}
.client-card:hover .client-logo {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.client-info {
  font-size: 0.8rem;
  color: #94a3b8;
  opacity: 0.9;
}

/* === Contact === */
.contact { background: var(--bg); padding-bottom: 2.5rem; }

.contact-inner {
  max-width: 560px;
  margin: 0.5rem auto 0;
  text-align: center;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.contact-info address {
  font-style: normal;
  line-height: 2;
}

.contact-info address p { margin-bottom: 0.25rem; color: var(--text); }

.contact-info address a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.contact-info address a:hover { border-bottom-color: var(--accent); }

.insurance {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* === Footer === */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* === Responsive === */
@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .main-nav { gap: 1.25rem; }
  .main-nav a { font-size: 0.85rem; }

  .hero { min-height: 55vh; padding: 3rem 1.5rem; }

  section { padding: 3.5rem 0; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid  { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 480px) {
  .main-nav { gap: 0.75rem; }
  .main-nav a { font-size: 0.8rem; }

  .services-grid { grid-template-columns: 1fr; }
  .clients-grid  { grid-template-columns: 1fr 1fr; }

  .hero { min-height: 50vh; }
}

/* === CSS3 Entrance Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeUp 0.8s ease-out both;
}

.card {
  animation: fadeUp 0.6s ease-out both;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.client-card {
  animation: fadeUp 0.5s ease-out both;
}
.client-card:nth-child(1) { animation-delay: 0.05s; }
.client-card:nth-child(2) { animation-delay: 0.1s; }
.client-card:nth-child(3) { animation-delay: 0.15s; }
.client-card:nth-child(4) { animation-delay: 0.2s; }
.client-card:nth-child(5) { animation-delay: 0.25s; }
.client-card:nth-child(6) { animation-delay: 0.3s; }
