/* ==========================================================
   APIC — Site-wide Modern Layer
   Shared spacing, typography and card/button polish for the
   legacy template pages (about, products, gallery,
   applications, contact). Loaded after main.css everywhere
   except the blog system, which has its own design language.
   ========================================================== */

:root {
  --sm-navy: #084265;
  --sm-teal: #1d9c8d;
  --sm-gold: #c9a84c;
  --sm-border: rgba(8, 66, 101, 0.10);
  --sm-shadow-sm: 0 2px 12px rgba(13, 27, 42, 0.07);
  --sm-shadow-md: 0 14px 34px rgba(13, 27, 42, 0.12);
  --sm-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Breathing room: container + sections ---------- */
@media (min-width: 576px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* .hero deliberately zeroes out .paddingsection's padding (it manages its
   own spacing via the full-height carousel) — excluded here so it isn't
   accidentally re-introduced by this later stylesheet. */
.paddingsection:not(.hero) {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .paddingsection:not(.hero) {
    padding: 88px 0;
  }
}

/* ---------- Section headers ----------
   Replaces the base template's "Russo One" display font (heavy,
   game-logo feel) with the site's own Work Sans, a cleaner size
   scale, and a single centered accent underline instead of the
   old flanking dash marks. */
.heading,
.section-header h2,
.why-us-section h2 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.5px;
  color: var(--sm-navy);
  padding-bottom: 15px;
  position: relative;
}

.heading::before,
.section-header h2::before,
.why-us-section h2::before {
  content: none;
}

.heading::after,
.section-header h2::after,
.why-us-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sm-teal), var(--sm-gold));
}

.heading span,
.section-header h2 span,
.why-us-section h2 span,
.text-accent {
  color: var(--sm-teal) !important;
}

@media (max-width: 991px) {
  .heading,
  .section-header h2,
  .why-us-section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .heading,
  .section-header h2,
  .why-us-section h2 {
    font-size: 25.6px;
    padding-bottom: 11px;
  }
}

/* ---------- Bootstrap cards used across pages ---------- */
.card {
  border: 1px solid var(--sm-border);
  border-radius: 16px;
  box-shadow: var(--sm-shadow-sm);
  transition: box-shadow .35s var(--sm-ease), transform .35s var(--sm-ease);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--sm-shadow-md);
  transform: translateY(-4px);
}

.card-img-top {
  transition: transform .5s var(--sm-ease);
}

.card:hover .card-img-top {
  transform: scale(1.04);
}

/* ---------- Testimonials (about.html + any other page reusing them) ---------- */
.testimonial-item {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 18px;
  box-shadow: var(--sm-shadow-sm);
  padding: 30px 26px;
  height: 100%;
}

.testimonial-item .stars i {
  color: var(--sm-gold);
}

.testimonial-item h3 {
  color: var(--sm-navy);
}

/* ---------- Product spec boxes (projects.html) ---------- */
.details-box {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-left: 3px solid var(--sm-teal);
  border-radius: 12px;
  box-shadow: var(--sm-shadow-sm);
  padding: 18px 22px;
}

.details-box h5 {
  color: var(--sm-navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.details-box ul {
  margin: 0;
  padding-left: 18px;
  color: #555;
}

.details-box ul li {
  padding: 2px 0;
}

/* ---------- Product image grids (projects.html) ----------
   .imgs / .engimg were referenced throughout the page but never
   actually defined, so each image fell back to its own natural size —
   inconsistent and, on smaller source photos, visibly "too small"
   next to its siblings. Giving them a fixed height + object-fit
   keeps every thumbnail in a section the same size. */
.imgs,
.engimg {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* ---------- Applications image grid (sheetDetail.html) ---------- */
.sub-title {
  color: var(--sm-navy);
  font-weight: 700;
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sm-border);
  position: relative;
}

.sub-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: var(--sm-teal);
}

.img-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--sm-shadow-sm);
  transition: transform .4s var(--sm-ease), box-shadow .4s var(--sm-ease);
}

.img-grid img:hover {
  transform: translateY(-4px);
  box-shadow: var(--sm-shadow-md);
}

/* ---------- Contact page ---------- */
.contact .info-item {
  border-radius: 16px;
}

.contact .contactform {
  border-radius: 16px;
}

.contact .form-control {
  border-radius: 10px;
}

/* ---------- Buttons ---------- */
.knowMore {
  /* main.css hard-codes width:120px, which is too narrow for the padded
     pill below and was clipping/squeezing the "Know More" label. */
  width: auto !important;
  display: inline-block;
  border-radius: 50px !important;
  padding: 10px 28px !important;
  background: linear-gradient(120deg, var(--sm-teal), #16b3a0) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(29, 156, 141, 0.28);
  transition: transform .3s var(--sm-ease), box-shadow .3s var(--sm-ease);
}

.knowMore:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(29, 156, 141, 0.35);
  color: #fff !important;
}

.btn-custom {
  border-radius: 50px !important;
}
