/* Basic Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f7f8;
  color: #222;
  line-height: 1.5;
}

/* Header */
.site-header {
  background: #002244;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1000;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  height: 140px;
  transition: height 0.3s ease, padding 0.3s ease;
}
.site-logo {
  max-height: 140px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: max-height 0.3s ease, transform 0.3s ease;
}
@media (min-width:901px) {
  .site-logo:hover {
    transform: scale(1.05);
  }
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: nowrap;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 4px;
  white-space: nowrap;
  transition: color 0.3s ease, transform 0.3s ease;
}
.main-nav a:hover {
  color: #ffd24d;
  transform: translateY(-3px);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.hero-center {
  max-width: 1100px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 36px;
  margin-bottom: 6px;
}
.hero-sub {
  font-size: 18px;
  margin-bottom: 14px;
  opacity: 0.95;
}
.hero-cta .btn, .btn {
  background: linear-gradient(45deg, #FFC107, #FFB300);
  color: #111;
  width: 200px;
  padding: 10px 0;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-cta .btn:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
.btn-secondary {
  background: linear-gradient(45deg, #FFC107, #FFB300) !important;
  color: #111 !important;
  width: 200px;
  padding: 10px 0;
  border-radius: 12px;
  text-align: center;
}
.btn-secondary:hover {
  background: linear-gradient(45deg, #e6c445, #d9a300) !important;
}
.free-quote-btn {
  background: linear-gradient(45deg, #FFC107, #FFB300) !important;
  color: #111 !important;
  width: 200px;
  padding: 10px 0;
  border-radius: 12px;
  text-align: center;
}
.free-quote-btn:hover {
  background: linear-gradient(45deg, #e6c445, #d9a300) !important;
}
@media (max-width: 420px) {
  .hero-cta .btn, .btn {
    width: 150px;
    font-size: 14px;
  }
}

/* Containers / Grid */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}
.center {
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.card, .page .service-item {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  min-height: 150px; /* CLS Fix */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}
.card:hover, .service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Checklist */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
  text-align: left;
}
.checklist li {
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2a9d8f;
  font-weight: bold;
}
.checklist li::marker {
  content: none;
}

/* Checks (Our Values) */
.checks {
  list-style: none;
  margin: 20px 0;
  padding-left: 0;
  text-align: left;
}
.checks li {
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
}
.checks li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2a9d8f;
  font-weight: bold;
}
.checks li::marker {
  content: none;
}

/* CTA Bottom */
.cta-bottom {
  text-align: left;
}

/* Forms */
form {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #333;
}
form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
form input:focus, form textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0,123,255,0.4);
}
form button {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
form button:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: #0b2a3b;
  color: #fff;
  padding: 20px 0;
  margin-top: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.site-footer a {
  color: #ffd24d;
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-footer a:hover {
  color: #fff176;
}

/* Blog List (archive) */
.blog-header {
  text-align: center;
  margin-bottom: 40px;
}
.blog-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: #002244;
}
.blog-header p {
  color: #555;
  font-size: 16px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-content {
  padding: 16px;
  flex: 1;
  text-align: left;
}
.blog-card-content h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #002244;
}
.blog-card-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}
.blog-card .btn {
  display: block;
  text-align: center;
  margin: 0 16px 16px;
  padding: 10px 0;
  background: linear-gradient(45deg, #ffd24d, #ffca28);
  color: #111;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
@media (max-width: 420px) {
  .blog-card .btn {
    width: 150px;
    font-size: 14px;
  }
}

/* Single Blog Post */
.single-post {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
}
.single-post h1 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #002244;
  text-align: center;
}
.single-post .post-meta {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}
.single-post img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 6px;
}
.single-post p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 18px;
}
.single-post h2, .single-post h3 {
  color: #002244;
  margin-top: 25px;
  margin-bottom: 12px;
}
.back-to-blog {
  text-align: center;
  margin-top: 20px;
}
.back-to-blog a {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}
.back-to-blog a:hover {
  text-decoration: underline;
}

/* CTA Section */
.cta-box {
  text-align: center;
  margin: 40px 0;
}

/* Forum Styling */
.forum-form {
  max-width: 600px;
  margin: 20px 0;
}
.forum-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.forum-form input, .forum-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.topic-item {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.topic-item h3 a {
  color: #002244;
  text-decoration: none;
}
.topic-item h3 a:hover {
  color: #ffd24d;
}
.comments-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}
.comment {
  background: #f8f9fa;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border-left: 4px solid #ffd24d;
}
.comment-form {
  margin-top: 15px;
}
.comment-form textarea {
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .topic-item {
    padding: 15px;
  }
  .comment {
    padding: 8px;
  }
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Header / Logo */
@media (max-width:900px) {
  .header-inner {
    height: 120px;
    padding: 0 10px;
  }
  .site-logo {
    max-height: 110px;
  }
}
@media (max-width:700px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    height: 100px;
  }
  .site-logo {
    max-height: 80px;
  }
  .main-nav ul {
    justify-content: flex-end;
    width: auto;
    flex-wrap: nowrap;
    gap: 15px;
  }
  .main-nav a {
    font-size: 14px;
    padding: 6px 4px;
    transition: color 0.3s ease, transform 0.2s ease;
  }
}
@media (max-width:420px) {
  .header-inner {
    height: 80px;
  }
  .site-logo {
    max-height: 60px;
  }
  .hero h1 {
    font-size: 20px;
    line-height: 1.1;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .main-nav a {
    font-size: 13px;
    padding: 6px 4px;
  }
  .container, .site-footer, .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }
}