/* MTEC-IT Website Theme */

:root {
  --mtec-navy: #10283b;
  --mtec-teal: #087c88;
  --mtec-light: #eaf7f8;
  --mtec-text: #46535c;
}

body.site {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--mtec-text);
  background: #fff;
}

.container-header {
  background: var(--mtec-navy);
  background-image: none;
}

.container-header .navbar-brand,
.container-header .navbar-brand a,
.container-header .mod-menu a {
  color: #fff;
}

.mtec-home {
  width: 100%;
  line-height: 1.7;
}

.mtec-home h1,
.mtec-home h2,
.mtec-home h3 {
  line-height: 1.2;
  font-weight: 650;
}

.mtec-hero {
  background: linear-gradient(135deg, #10283b, #17485b);
  color: white;
  padding: clamp(45px, 7vw, 95px) clamp(24px, 6vw, 80px);
  border-radius: 12px;
  margin-bottom: 55px;
}

.mtec-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 64px);
  max-width: 800px;
  margin: 16px 0 24px;
}

.mtec-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mtec-teal);
}

.mtec-hero .mtec-eyebrow,
.mtec-feature .mtec-eyebrow,
.mtec-contact .mtec-eyebrow {
  color: #65d8df;
}

.mtec-lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  max-width: 680px;
  color: #e1ecf2;
}

.mtec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.mtec-btn {
  display: inline-block;
  padding: 13px 23px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease;
}

.mtec-btn.primary {
  background: #087c88;
  color: white;
}

.mtec-btn.primary:hover {
  background: #065f69;
  color: white;
}

.mtec-btn.outline {
  border: 1px solid #a8c4d0;
  color: white;
}

.mtec-btn.outline:hover {
  background: #ffffff20;
  color: white;
}

.mtec-hero-foot {
  font-size: 11px;
  letter-spacing: 2px;
  color: #b9d4dd;
  margin-top: 45px;
}

.mtec-section {
  padding: 35px 0 65px;
}

.mtec-section h2,
.mtec-feature h2,
.mtec-contact h2 {
  font-size: clamp(27px, 3.5vw, 42px);
  margin: 12px 0 18px;
}

.mtec-section h2 {
  color: var(--mtec-navy);
}

.mtec-intro {
  max-width: 720px;
  font-size: 18px;
  margin-bottom: 35px;
}

.mtec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.mtec-card {
  background: #f5f9fa;
  padding: 30px;
  border: 1px solid #e2eaed;
  border-radius: 10px;
  border-top: 3px solid var(--mtec-teal);
}

.mtec-card-number {
  color: var(--mtec-teal);
  font-size: 13px;
  font-weight: 700;
}

.mtec-card h3 {
  font-size: 21px;
  margin: 18px 0 12px;
  color: var(--mtec-navy);
}

.mtec-card p {
  font-size: 15px;
  margin: 0;
}

.mtec-feature,
.mtec-contact {
  background: var(--mtec-navy);
  padding: clamp(35px, 5vw, 65px);
  border-radius: 12px;
  color: #e3edf1;
}

.mtec-feature h2,
.mtec-contact h2 {
  color: white;
}

.mtec-feature p,
.mtec-contact p {
  max-width: 750px;
}

.mtec-contact {
  margin: 20px 0 40px;
}

.mtec-contact .mtec-btn {
  margin-top: 15px;
}

@media (max-width: 900px) {
  .mtec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .mtec-grid {
    grid-template-columns: 1fr;
  }
  .mtec-card {
    padding: 24px;
  }
}


/* =====================================
   MTEC-IT | HEADER & LOGO
   ===================================== */

/* Compact header */
.container-header {
    padding: 8px 0;
}

/* Logo container */
.container-header .navbar-brand {
    padding: 5px 0;
    margin: 0;
}

/* Logo image */
.container-header .navbar-brand img,
.container-header .brand-logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 260px !important;
    max-height: 90px !important;
    object-fit: contain;
}

/* Tagline beneath logo */
.container-header .site-description {
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .container-header .navbar-brand img,
    .container-header .brand-logo img {
        max-width: 200px !important;
        max-height: 75px !important;
    }
}


/* MTEC-IT | Top Navigation */

.container-header .mod-menu {
    align-items: center;
    gap: 8px;
}

.container-header .mod-menu > li > a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.active > a {
    color: #65d8df;
}

/* Consistent hover styling for service cards */

.mtec-card {
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.mtec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(16,40,59,0.09);
}


/* Clickable MTEC-IT service cards */

.mtec-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}

.mtec-card-link h3 {
    color: #10283b;
}

.mtec-card-action {
    display: block;
    margin-top: auto;
    padding-top: 24px;
    color: #087c88;
    font-size: 14px;
    font-weight: 700;
}

.mtec-card-link:hover {
    border-color: #087c88;
    box-shadow: 0 12px 30px rgba(16,40,59,0.12);
    transform: translateY(-5px);
}

.mtec-card-link:hover .mtec-card-action {
    text-decoration: underline;
}

.mtec-card-link:focus-visible {
    outline: 3px solid #087c88;
    outline-offset: 4px;
}


/* ========================================
   MTEC-IT | CARD BEHAVIOUR
   ======================================== */

/* Hide the unnecessary card numbering */
.mtec-card-number {
    display: none;
}

/* Informational cards remain stationary */
.mtec-card:not(.mtec-card-link) {
    cursor: default;
}

.mtec-card:not(.mtec-card-link):hover {
    transform: none;
    box-shadow: none;
}

/* Only genuinely clickable cards animate */
.mtec-card-link {
    cursor: pointer;
}

.mtec-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(16,40,59,0.12);
    border-color: #087c88;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .mtec-card-link {
        transition: none;
    }

    .mtec-card-link:hover {
        transform: none;
    }
}


/* ========================================
   MTEC-IT | DROPDOWN MENU FIX
   ======================================== */

/* White dropdown background */
.container-header .mod-menu .mm-collapse,
.container-header .mod-menu .mm-collapsing,
.container-header .mod-menu .metismenu-item > ul {
    background: #ffffff !important;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Dark text inside dropdown menus only */
.container-header .mod-menu .metismenu-item ul a {
    color: #10283b !important;
    text-decoration: none;
}

/* Teal highlight on hover and keyboard focus */
.container-header .mod-menu .metismenu-item ul a:hover,
.container-header .mod-menu .metismenu-item ul a:focus-visible {
    color: #087c88 !important;
    background-color: #eaf7f8;
}

/* Comfortable dropdown spacing */
.container-header .mod-menu .metismenu-item ul li {
    padding: 5px 12px;
}

/* ==========================================
   MTEC-IT | SMALL BUSINESS HOME SECTIONS
   ========================================== */

/* Flexible example cards */
.mtec-example-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 35px 0 25px;
}

/* These cards are informational, not links */
.mtec-example-grid .mtec-card {
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}

.mtec-example-grid .mtec-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Highlight a welcoming message */
.mtec-highlight {
    font-size: clamp(19px, 2.5vw, 25px);
    font-weight: 600;
    line-height: 1.5;
    color: #087c88;
    border-left: 4px solid #087c88;
    padding: 16px 22px;
    background: #eaf7f8;
    margin: 35px 0;
}

/* Note below example cards */
.mtec-examples-note {
    color: #667780;
    font-size: 14px;
    font-style: italic;
}

/* Avoid full-width paragraphs becoming hard to read */
.mtec-home .mtec-section > p:not(.mtec-eyebrow) {
    max-width: 850px;
}

/* Mobile layout */
@media (max-width: 700px) {
    .mtec-example-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mtec-highlight {
        padding: 14px 18px;
    }
}
