/* ========== GLOBAL RESET & BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #f9fafb;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* ========== HEADER & NAVIGATION ========== */
.site-header {
  background: #111827;
  padding: 0.75rem 1.25rem;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  color: white;
}

.nav-links a {
  margin-left: 1.25rem;
  color: #e5e7eb;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* ========== HERO (HOMEPAGE) ========== */
.hero {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.hero-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: #111827;
  color: #f9fafb;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #030712;
}

.btn-secondary {
  font-size: 0.85rem;
  color: #4b5563;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Default <button> element (contact form) */
button {
  background: #111827;
  color: white;
  padding: 0.75rem 1.4rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #030712;
}

/* ========== CARD STYLE (A2: unified, soft, modern) ========== */
/* Shared card look for service cards, certifications, blog posts, etc. */
.card,
.hero-card,
.post,
.service-section {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* Hero card text on homepage */
.hero-card h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.hero-card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.hero-list {
  list-style: none;
  font-size: 0.9rem;
  color: #374151;
}

.hero-list li {
  margin-bottom: 0.35rem;
}

.hero-list span {
  font-weight: 600;
}

/* ========== SECTIONS, GRID & LISTS ========== */
section {
  padding: 2.5rem 0 0;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 0.6rem;
}

.list {
  font-size: 0.9rem;
  color: #374151;
}

.list li {
  margin-bottom: 0.25rem;
}

/* ========== ABOUT SECTIONS ========== */
.about-wrapper {
  display: grid;
  gap: 1.75rem;
}

.about-text p {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 0.8rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-photo {
  width: 100%;
  max-width: 260px;
  border-radius: 1rem;
  overflow: hidden;
  background: #e5e7eb;
}

.about-photo-inner img {
  width: 100%;
  border-radius: 12px;
}

/* About page standalone photo container */
.photo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.photo-container img {
  width: 260px;
  border-radius: 12px;
}

/* ========== SERVICES PAGE EXTRAS ========== */
.intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #374151;
  font-size: 1rem;
}

.service-photo {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: block;
}

/* ========== CERTIFICATIONS PAGE EXTRAS ========== */
.badge-img {
  width: 140px;
  height: auto;
  margin-bottom: 0.75rem;
}

/* The .card class is already styled above with unified card styling */

/* ========== BLOG / RESOURCES PAGE EXTRAS ========== */
.post {
  margin-bottom: 2rem;
}

.post h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #111827;
}

.post-date {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.post p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #374151;
}

/* ========== CONTACT SECTIONS ========== */
.contact-box {
  background: #111827;
  color: #f9fafb;
  border-radius: 1.25rem;
  padding: 1.9rem 1.6rem;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-box h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.contact-box p {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.contact-details {
  font-size: 0.9rem;
}

.contact-details div {
  margin-bottom: 0.25rem;
}

/* Contact page headings */
.page-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #4b5563;
}

/* Contact page layout */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: #374151;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (min-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .about-wrapper {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }

  .contact-box {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: flex-start;
  }
}