/* Mason Assists - Main Stylesheet */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #f7f8fa;
}

a {
  color: #2b6cb0;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a4971;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header & Navigation === */
.site-header {
  background-color: #1a365d;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo img {
  height: 50px;
  width: auto;
  max-width: 180px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background-color: #2b6cb0;
  color: #fff;
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.7;
}

.hero .cta-btn {
  display: inline-block;
  background-color: #48bb78;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.hero .cta-btn:hover {
  background-color: #38a169;
  text-decoration: none;
  transform: translateY(-1px);
}

/* === Page Header (non-home pages) === */
.page-header {
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.page-header p {
  margin-top: 0.5rem;
  opacity: 0.9;
  font-size: 1.05rem;
}

/* === Main Content === */
.main-content {
  padding: 3rem 0;
}

.main-content h2 {
  font-size: 1.5rem;
  color: #1a365d;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.main-content p {
  margin-bottom: 1rem;
}

/* === Service Cards === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.75rem;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

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

.service-card h2 {
  font-size: 1.25rem;
  color: #1a365d;
  margin-bottom: 0.75rem;
  border-bottom: none;
  padding-bottom: 0;
}

.service-card p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
}

/* === About / Team Section === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.team-member img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  border: 3px solid #e2e8f0;
}

.team-member h2 {
  font-size: 1.3rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.25rem;
}

.team-member .role {
  color: #2b6cb0;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.team-member p {
  text-align: left;
  color: #4a5568;
}

/* === FAQ Section === */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h2 {
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
  color: #1a365d;
}

.faq-item p {
  color: #4a5568;
  font-size: 0.95rem;
}

/* === Contact Section === */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
}

.contact-card h2 {
  font-size: 1.15rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
}

.contact-card a {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-card .whatsapp-btn {
  display: inline-block;
  background-color: #25d366;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease;
}

.contact-card .whatsapp-btn:hover {
  background-color: #1ebe57;
  text-decoration: none;
}

.contact-card .whatsapp-btn img {
  display: inline-block;
  vertical-align: middle;
  height: 20px;
  width: auto;
  margin-right: 0.5rem;
}

/* === Social Proof / Trust Bar === */
.trust-bar {
  background-color: #edf2f7;
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
  border-radius: 8px;
}

.trust-bar p {
  font-size: 1.1rem;
  color: #2d3748;
  font-weight: 500;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, #2b6cb0 0%, #1a365d 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
  margin-top: 3rem;
  border-radius: 8px;
}

.cta-section h2 {
  color: #fff;
  border-bottom: none;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-section .cta-btn {
  display: inline-block;
  background-color: #48bb78;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.cta-section .cta-btn:hover {
  background-color: #38a169;
  text-decoration: none;
  transform: translateY(-1px);
}

/* === Footer === */
.site-footer {
  background-color: #1a365d;
  color: #e2e8f0;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-col p,
.footer-col a {
  color: #cbd5e0;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #2d4a7a;
  font-size: 0.85rem;
  color: #a0aec0;
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* === Skip Link (Accessibility) === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #1a365d;
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 200;
  font-size: 0.95rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #48bb78;
  outline-offset: 2px;
}

/* === Blog Date === */
.blog-date {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 0.5rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .site-nav ul.open {
    display: flex;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid #2d4a7a;
  }

  .header-inner {
    flex-wrap: wrap;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

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

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

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

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

@media (max-width: 480px) {
  .site-logo img {
    height: 38px;
  }

  .hero {
    padding: 2.5rem 0;
  }

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

  .main-content {
    padding: 2rem 0;
  }
}
