/* ========================= */
/* COLOR VARIABLES & BASE */
/* ========================= */
:root {
  --navy: #0b2545;
  --accent: #133767;
  --white: #ffffff;
  --muted: #6b7280;
  --danger: #e53935;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--navy);
  background: #f8fafc;
}

/* ========================= */
/* TOP STRIP */
/* ========================= */
.top-strip {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.top-strip .phone {
  color: #fff;
  text-decoration: underline;
}

/* ========================= */
/* HEADER */
/* ========================= */
header {
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 70px;
  width: auto;
}

h1 {
  margin: 0;
  font-size: 1.4rem;
}

.blog {
  margin-top: 10px;
  display: inline-block;
  align-self: center;
  text-align: center;
}

.btn-call {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}

/* ========================= */
/* HERO SECTION */
/* ========================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: start;
  padding: 50px 10%;
  gap: 30px;
}

.hero-left .eyebrow {
  background: #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

.hero-left h2 {
  font-size: 2rem;
  margin: 0 0 15px;
}

.hero-left p.lead {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.hero-left .mission {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.hero-left .trusted {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.badge {
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.badge.amdecon {
  background: var(--accent);
  color: var(--white);
}

/* ========================= */
/* CONTACT CARD / FORM */
/* ========================= */
.card {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

input, textarea {
  width: 95%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.submit {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s;
}

.submit:hover {
  background: var(--accent);
}

.response {
  text-align: center;
  font-weight: 700;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.5s;
}

.response.show { opacity: 1; }
.response.success { color: #16a34a; }
.response.error { color: #dc2626; }

/* ========================= */
/* SERVICES SECTION */
/* ========================= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 50px 10%;
}

.service-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

.service-card h4 {
  margin-top: 10px;
  margin-bottom: 8px;
}

.post img {
  width: 100%;
  height: 200px; /* adjust height as you like */
  object-fit: cover; /* ensures the whole image scales & crops proportionally */
  border-radius: 6px 6px 0 0; /* optional, rounds top corners */
  display: block;
}

.blog-section {
  background: #f8f9fb;
  padding: 60px 10%;
  text-align: center;
}

.blog-header h2 {
  font-size: 2rem;
  color: #0b132b;
  margin-bottom: 10px;
}

.blog-header p {
  color: #444;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.post {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.post:hover {
  transform: translateY(-5px);
}

.post-content {
  padding: 20px;
}

.post h3 {
  font-size: 1.3rem;
  color: #0b132b;
  margin-bottom: 10px;
}

.post p {
  color: #555;
  font-size: 0.95rem;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: #5bc0be;
  font-weight: 600;
}

/* ========================= */
/* FOOTER */
/* ========================= */
footer {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 20px;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* ========================= */
/* RESPONSIVE DESIGN */
/* ========================= */

/* --- Mobile First (up to 600px) --- */
@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    padding: 15px 5%;
    align-items: center;
  }

  .brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .blog {
    margin-top: 10px;
    display: inline-block;
    align-self: center;
    text-align: center;
  }

  .btn-call {
    margin-top: 10px;
    display: inline-block;
    align-self: center;
    text-align: center;
  }

  .logo {
    height: 60px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding: 30px 5%;
    gap: 25px;
  }

  .hero-left h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

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

  .hero-left p.mission {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
  }

  .trusted {
    flex-direction: column;
    gap: 8px;
  }

  .badge {
    font-size: 0.9rem;
  }

  .card {
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
  }

  input, textarea {
    font-size: 1rem;
  }

  .submit {
    width: 90%;
  }

  .services {
    grid-template-columns: 1fr;
    padding: 30px 5%;
  }

  .service-card {
    text-align: center;
  }

  .service-card img {
    height: 200px;
  }

  .post img {
  height: 160px;
}

  .blog-section {
    padding: 40px 5%;
  }
  .blog-header h2 {
    font-size: 1.6rem;
  }
  .blog-header p {
    font-size: 1rem;
  }
  .blog-grid {
    gap: 20px;
  }

  footer {
    font-size: 0.9rem;
    padding: 25px 10px;
    line-height: 1.5;
  }
}

/* --- Tablet and up (≥600px) --- */
@media (min-width: 600px) and (max-width: 1023px) {
  header {
    flex-wrap: nowrap;
    text-align: left;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: start;
    padding: 40px 8%;
  }

  .trusted {
    flex-direction: row;
  }

  .services {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* --- Large desktop (≥1024px) --- */
@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }

  .hero-left h2 {
    font-size: 2.2rem;
  }

  header {
    padding: 25px 10%;
  }
}
