/* 3Z Mail Styles - 2024 */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2d2d2d;
  background: #ffffff;
  line-height: 1.6;
}

/* ---- Nav ---- */

.site-nav {
  background: #1a2a3a;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .logo a {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav .logo span {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links .btn-login {
  background: rgba(255,255,255,0.12);
  padding: 0.4rem 1rem;
  border-radius: 3px;
  color: #ffffff;
  font-weight: 500;
}

.nav-links .btn-login:hover {
  background: rgba(255,255,255,0.2);
}

/* ---- Footer ---- */

.site-footer {
  background: #1a2a3a;
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem 2rem;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.site-footer .footer-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.site-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-bottom {
  max-width: 960px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ---- Containers ---- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-xs {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Sections ---- */

.section {
  padding: 5rem 0;
}

.section-light {
  background: #f7f8f9;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: #666;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Hero (landing) ---- */

.hero {
  background: #1a2a3a;
  color: #ffffff;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero h1 span {
  display: block;
  font-weight: 700;
  font-size: 2.75rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero .hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: #3a5a7c;
  color: #ffffff;
}

.btn-primary:hover {
  background: #2c4a6a;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
}

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

.btn-secondary {
  background: #e8eaed;
  color: #2d2d2d;
}

.btn-secondary:hover {
  background: #d5d8dc;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---- Feature Cards ---- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  background: #e8edf3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2a3a;
  font-weight: 700;
  font-size: 1.1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ---- NZ Section ---- */

.nz-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.nz-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 1rem;
}

.nz-section p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.nz-section .nz-badge {
  display: inline-block;
  background: #f0f3f7;
  color: #1a2a3a;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* ---- Forms ---- */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #2d2d2d;
  background: #fff;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3a5a7c;
  box-shadow: 0 0 0 2px rgba(58,90,124,0.12);
}

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

.form-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 0.25rem;
}

/* ---- Auth Pages (login/signup) ---- */

.auth-page {
  min-height: calc(100vh - 56px - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.auth-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-card .auth-subtitle {
  font-size: 0.875rem;
  color: #777;
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #eee;
  padding-top: 1.25rem;
}

.auth-card .auth-footer a {
  color: #3a5a7c;
  text-decoration: none;
}

.auth-card .auth-footer a:hover {
  text-decoration: underline;
}

/* ---- Info Banner ---- */

.info-banner {
  background: #fef9e7;
  border: 1px solid #f9e79f;
  color: #7d6608;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ---- Content Pages ---- */

.content-page {
  padding: 4rem 0;
}

.content-page h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 0.5rem;
}

.content-page .last-updated {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a2a3a;
  margin: 2rem 0 0.75rem;
}

.content-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 1.5rem 0 0.5rem;
}

.content-page p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-page ul, .content-page ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: #444;
  line-height: 1.7;
}

.content-page li {
  margin-bottom: 0.4rem;
}

/* ---- Contact ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 0.75rem;
}

.contact-info p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.contact-info .contact-detail {
  margin-bottom: 1.5rem;
}

.contact-info .contact-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-bottom: 0.2rem;
}

/* ---- Status indicator ---- */

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27ae60;
  margin-right: 0.4rem;
}

.status-text {
  font-size: 0.8rem;
  color: #888;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
  }

  .nz-section {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero h1 span {
    font-size: 2rem;
  }

  .site-nav {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-links .hide-mobile {
    display: none;
  }
}
