/* public/css/style.css */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e5e7;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: #1d1d1f;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Sections */
.section {
  padding: 80px 48px;
}

.section-light {
  background: #ffffff;
}

.section-gray {
  background: #f5f5f7;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6e6e73;
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 48px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 100px 48px;
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
}

/* When a custom background image is set on the hero (via the admin Content
   page), inline styles supply the image + dark overlay; we just need to
   ensure correct sizing and lighten the text for legibility. */
.hero-with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-with-image .hero-label,
.hero-with-image .hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hero-with-image .hero-title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6e6e73;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 18px;
  color: #6e6e73;
  margin-top: 20px;
}

.hero-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 28px;
  background: #0071e3;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: #0066cc;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Service cards */
.service-card {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-gray .service-card {
  background: #fff;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.service-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.service-title {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.5;
}

/* Project cards */
.project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e5e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
}

.project-body {
  padding: 24px;
}

.project-title {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.5;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  background: #f5f5f7;
  border-radius: 10px;
  padding: 4px 12px;
  font-size: 12px;
  color: #6e6e73;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-text {
  font-size: 16px;
  color: #6e6e73;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #0071e3;
}

.stat-label {
  font-size: 13px;
  color: #6e6e73;
  margin-top: 4px;
}

/* Certifications & Partners */
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.cred-section-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cert-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-light .cert-card {
  background: #f5f5f7;
}

.cert-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #e5e5ea;
  object-fit: contain;
}

.cert-name {
  font-size: 14px;
  font-weight: 600;
}

.cert-issuer {
  font-size: 12px;
  color: #6e6e73;
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.partner-logo {
  width: 100px;
  height: 48px;
  background: #fff;
  border-radius: 8px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #8e8e93;
}

.section-light .partner-logo {
  background: #f5f5f7;
}

/* Contact & Inquiry */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-info {
  font-size: 15px;
  color: #6e6e73;
  line-height: 2.2;
}

.form-group {
  margin-bottom: 14px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #d2d2d7;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #0071e3;
}

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

.form-submit {
  display: inline-block;
  padding: 12px 32px;
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  float: right;
}

.form-submit:hover {
  background: #0066cc;
}

.form-message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

/* Footer */
.footer {
  padding: 28px 48px;
  background: #1d1d1f;
  text-align: center;
}

.footer-text {
  font-size: 13px;
  color: #6e6e73;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 12px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .section {
    padding: 60px 20px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .about-grid,
  .cred-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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