/* ============================================
   ERWC Static Site — styles.css
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A73E8;
  letter-spacing: -0.02em;
}

/* --- Desktop nav --- */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1A73E8;
}

/* --- Mobile nav toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  background: linear-gradient(135deg, #0B3954 0%, #1A73E8 100%);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: #1A73E8;
}

.btn-primary:hover {
  background: #E8F0FE;
  transform: translateY(-1px);
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 5rem 0;
  background: #fff;
}

.about h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0B3954;
  margin-bottom: 1.25rem;
}

.about p {
  font-size: 1.0625rem;
  max-width: 680px;
  margin-bottom: 1.5rem;
  color: #333;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  max-width: 680px;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: #444;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: #1A73E8;
  border-radius: 50%;
}

/* ============================================
   Domains
   ============================================ */
.domains {
  padding: 5rem 0;
  background: #F7F9FC;
}

.domains h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0B3954;
  text-align: center;
  margin-bottom: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1A73E8;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #0B3954;
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p {
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* ============================================
   Responsive — Tablet ( ≤ 960px )
   ============================================ */
@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Responsive — Mobile ( ≤ 640px )
   ============================================ */
@media (max-width: 640px) {
  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: relative;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    gap: 1rem;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Feature list */
  .feature-list {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
