/* =========================================================================
   modern.css — Central modernization layer for eta-canada.info
   Loaded site-wide after style.mini.css via include/head.php.
   Purpose: make the whole site modern, clean, professional and fully
   responsive WITHOUT changing the existing theme colors, content, or
   functionality. All rules here are additive / safe overrides.
   Theme tokens (kept unchanged):
     primary blue  #0275d8   dark navy #00394f
     purple accent #875883   danger red #dc3545
   ========================================================================= */

:root {
  --brand-blue: #0275d8;
  --brand-blue-dark: #044e8f;
  --brand-navy: #00394f;
  --brand-purple: #875883;
  --brand-red: #dc3545;
  --ink: #323131;
  --ink-soft: #5a5f66;
  --line: #e6e9ee;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 6px 18px rgba(16, 24, 40, .10);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base typography & rhythm ---------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", "Segoe UI", Montserrat, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #fff;
}



h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-navy);
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); }

p { margin-bottom: 1rem; }

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--brand-blue-dark); }

::selection {
  color: #fff;
  background: var(--brand-blue);
}

/* ---------- Container / spacing ---------- */

@media (min-width: 576px) {
  .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .container { max-width: 960px; }
}
/* @media (min-width: 1800px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1720px;
    }
} */
@media (min-width: 576px) {
    .container {
        max-width: 1800px !important;
    }
}
body:not(.embed-mode) {
    min-width: 360px !important;
}

/* ---------- Header / navigation ---------- */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #fff;
}

.navbar {
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease);
}

.navbar-brand img {
  transition: transform .25s var(--ease);
}
.navbar-brand:hover img {
  transform: scale(1.03);
}

.navbar-light .navbar-nav .nav-link {
  font-weight: 600;
  position: relative;
  transition: color .2s var(--ease);
}

/* subtle underline accent on hover (desktop) */
@media (min-width: 992px) {
  .navbar-light .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 12px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s var(--ease);
  }
  .navbar-light .navbar-nav .nav-link:hover::after,
  .navbar-light .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
  }
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-sm);
  padding: .35rem .6rem;
  transition: background-color .2s var(--ease);
}
.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, .12);
}

/* mobile dropdown panel */
@media (max-width: 991.98px) {
  #navbarCollapse {
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    padding: .5rem 0 1rem;
  }
  #navbarCollapse .nav-link {
    padding: .65rem 1.25rem !important;
    border-radius: var(--radius-sm);
    margin: 2px 10px;
  }
  #navbarCollapse .nav-link:hover {
    background-color: rgba(255, 255, 255, .12);
  }
}

/* ---------- Buttons ---------- */
.btn,
.main-btn,
.apply-btn-header,
.upperbtn {
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: .01em;
  transition: all .2s var(--ease);
  will-change: transform;
}


.btn:active,
.main-btn:active {
  transform: translateY(0);
}

.main-btn {
  box-shadow: 0 4px 14px rgba(2, 117, 216, .35);
}

/* ---------- Cards / panels ---------- */
.card,
.rounded,
.app-box,
.eta-process-card,
.eta-benefits-item,
.purpose-card,
.step-item,
.exm-layout-c {
  border-radius: var(--radius);
}

.card {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.app-box {
  box-shadow: var(--shadow-sm);
}

.eta-process-card,
.eta-benefits-item,
.purpose-card {
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.eta-process-card:hover,
.eta-benefits-item:hover,
.purpose-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ---------- Tables ---------- */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: .95rem;
}
table th,
table td {
  border: 1px solid var(--line);
  padding: .7rem .85rem;
  vertical-align: top;
}
table thead th {
  background: var(--surface-soft);
  color: var(--brand-navy);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
table tbody tr {
  transition: background-color .15s var(--ease);
}
table tbody tr:hover {
  background-color: var(--surface-soft);
}

/* responsive table wrapper for narrow screens */
@media (max-width: 767.98px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- Forms ---------- */
.form-control,
.form-control:focus {
  border-radius: var(--radius-sm);
}
.form-control {
  border-color: #d5dae1;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 .2rem rgba(2, 117, 216, .15);
}
label {
  font-weight: 600;
  color: var(--brand-navy);
}

/* ---------- Banner / hero ---------- */
.banner {
  overflow: hidden;
}
.banner .heading {
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.layer-img2 {
  background: linear-gradient(180deg, rgba(0, 57, 79, .35) 0%, rgba(0, 0, 0, .45) 100%);
}

/* ---------- Section titles ---------- */
.section-title {
  color: var(--brand-navy);
}
.section-title::before {
  background: var(--brand-blue);
}

/* ---------- Footer ---------- */
.bg-image {
  background: linear-gradient(180deg, #4a5762 0%, #3c4750 100%);
}
.bg-image a {
  color: #fff;
  opacity: .92;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.bg-image a:hover {
  opacity: 1;
  color: #fff;
}
.font_icon {
  background-color: var(--brand-purple);
}
.icon-dgn {
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.icon-dgn:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, .12);
}

/* ---------- Cookie bar ---------- */
#cookie_div_bar {
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .25);
  line-height: 1.5;
}
.cookie_action_btn {
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cookie_action_btn:hover {
  background-color: var(--brand-blue);
  color: #fff;
}

/* ---------- Back-to-top ---------- */
#up,
.back-to-top {
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
#up:hover,
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Images ---------- */
img {
  border-radius: var(--radius-sm);
}


/* ---------- Utility: rounded blocks ---------- */
.rounded {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

/* ---------- Accordion ---------- */
.accordion_t {
  border-radius: var(--radius-sm);
  transition: background-color .2s var(--ease);
}
.accordion_t:hover {
  background-color: var(--surface-soft);
}

/* ---------- Global responsive polish ---------- */
@media (max-width: 767.98px) {
  body {
    font-size: 1rem;
  }
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }

}


/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
