/* ==========================================================
   MTIP Corporate Premium — Custom CSS
   Applied on top of Astra defaults via Elementor sections.
   ========================================================== */

/* ── Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(215,25,32,.10), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(15,23,42,.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 44%, #eef3f8 100%);
  color: var(--ink);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Astra overrides ──────────────────────────────────── */
#masthead,
.ast-header-break-point .main-header-bar {
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.site-header { position: sticky; top: 0; z-index: 999; }

/* Logo area */
.site-title a,
.ast-site-identity { color: var(--navy) !important; }

/* Nav links */
.main-header-menu .menu-item > a,
.ast-header-break-point .main-navigation .menu-item > a {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: color var(--transition) !important;
}

.main-header-menu .menu-item > a:hover { color: var(--mtip-red) !important; }

/* ── Buttons ──────────────────────────────────────────── */
.mtip-btn,
.elementor-button.mtip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.mtip-btn-primary,
.elementor-button.mtip-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--mtip-red), var(--mtip-red-light)) !important;
  box-shadow: 0 18px 35px rgba(215,25,32,.26) !important;
  border-color: transparent !important;
}

.mtip-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(215,25,32,.33) !important;
  color: #fff !important;
}

.mtip-btn-light {
  background: rgba(255,255,255,.72) !important;
  border-color: var(--line) !important;
  color: var(--navy) !important;
}

.mtip-btn-light:hover {
  transform: translateY(-2px);
  border-color: rgba(215,25,32,.28) !important;
}

/* Elementor button overrides for MTIP style */
.elementor-widget-button .elementor-button {
  border-radius: 999px !important;
  font-weight: 800 !important;
  transition: var(--transition) !important;
}

/* ── Eyebrow / badge ──────────────────────────────────── */
.mtip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(215,25,32,.08);
  color: var(--mtip-red-dark);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(215,25,32,.14);
  margin-bottom: 16px;
}

.mtip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mtip-red);
  box-shadow: 0 0 0 6px rgba(215,25,32,.12);
  display: inline-block;
}

/* ── Glassmorphism card ───────────────────────────────── */
.mtip-glass {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.mtip-glass-dark {
  background: rgba(15,23,42,.82);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  color: #fff;
}

/* ── Metric cards ─────────────────────────────────────── */
.mtip-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 12px;
}

.mtip-metric {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mtip-metric .value {
  display: block;
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.mtip-metric .label {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

/* ── Hero section ─────────────────────────────────────── */
.mtip-hero {
  position: relative;
  padding: 76px 0 44px;
  min-height: 760px;
}

.mtip-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .96;
  letter-spacing: -.075em;
  color: var(--navy);
}

.mtip-hero .lead {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 30px;
}

.mtip-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

/* ── Cinema card (hero visual) ────────────────────────── */
.mtip-cinema-card {
  position: relative;
  min-height: 560px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.8);
  isolation: isolate;
}

.mtip-cinema-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.45) 60%, rgba(255,255,255,.85)),
    radial-gradient(circle at 15% 20%, rgba(215,25,32,.30), transparent 32%);
  z-index: 1;
}

/* ── Floating panel inside cinema card ───────────────── */
.mtip-floating-panel {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  border-radius: 28px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 22px;
  box-shadow: 0 20px 55px rgba(15,23,42,.16);
}

.mtip-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.mtip-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  font-weight: 900;
  font-size: 13px;
}

.mtip-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #14b8a6;
  box-shadow: 0 0 0 6px rgba(20,184,166,.13);
  flex: 0 0 auto;
}

.mtip-ship-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid rgba(15,23,42,.08);
}

.mtip-ship-row b   { font-size: 14px; color: var(--navy); }
.mtip-ship-row span { color: var(--muted); font-size: 12px; font-weight: 700; }

.mtip-badge {
  align-self: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(215,25,32,.1);
  color: var(--mtip-red-dark);
  font-size: 12px;
  font-weight: 900;
}

/* ── Section headers ──────────────────────────────────── */
.mtip-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 34px;
}

.mtip-section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--navy);
  max-width: 720px;
}

.mtip-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
  font-weight: 500;
}

/* Elementor heading overrides */
.mtip-section-title .elementor-heading-title {
  font-size: clamp(32px, 4vw, 52px) !important;
  line-height: 1 !important;
  letter-spacing: -.06em !important;
  color: var(--navy) !important;
  font-weight: 900 !important;
}

/* ── Vision / About section ───────────────────────────── */
.mtip-vision {
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(238,243,248,.72));
}

.mtip-vision-text {
  padding: 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.mtip-vision-text h3 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.05em;
  color: var(--navy);
  font-weight: 900;
}

.mtip-vision-text p {
  color: #475569;
  line-height: 1.8;
  margin: 0 0 22px;
}

/* ── Check list ───────────────────────────────────────── */
.mtip-check-list { display: grid; gap: 13px; }

.mtip-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
}

.mtip-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(215,25,32,.1);
  color: var(--mtip-red);
  font-size: 13px;
  flex: 0 0 auto;
}

/* ── Vision image card ────────────────────────────────── */
.mtip-vision-image {
  min-height: 420px;
  border-radius: var(--radius);
  background: center/cover;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.mtip-route-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(330px, calc(100% - 48px));
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.mtip-route-line {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mtip-red), #f59e0b, #0ea5e9);
  margin: 16px 0;
}

/* ── Services grid ────────────────────────────────────── */
.mtip-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mtip-service-card {
  min-height: 260px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.mtip-service-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(215,25,32,.08);
  transition: var(--transition);
}

.mtip-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(215,25,32,.18);
}

.mtip-service-card:hover::after {
  transform: scale(1.25);
  background: rgba(215,25,32,.13);
}

.mtip-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(215,25,32,.12), rgba(215,25,32,.04));
  color: var(--mtip-red);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 24px;
}

.mtip-service-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -.03em;
  color: var(--navy);
  font-weight: 800;
}

.mtip-service-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
  font-size: 14px;
}

/* ── Tech / Smart Port section ────────────────────────── */
.mtip-tech {
  background:
    linear-gradient(180deg, rgba(238,243,248,.4), rgba(255,255,255,.8)),
    radial-gradient(circle at 80% 20%, rgba(215,25,32,.08), transparent 32%);
}

.mtip-tech-box {
  padding: 34px;
  min-height: 430px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* Dashboard dark box */
.mtip-dashboard {
  background: var(--navy) !important;
  color: #fff !important;
  position: relative;
  overflow: hidden;
  border-color: transparent !important;
}

.mtip-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(215,25,32,.38), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent);
  pointer-events: none;
}

.mtip-dashboard > * { position: relative; z-index: 1; }

.mtip-dash-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 14px;
}

.mtip-dash-label  { color: rgba(255,255,255,.62); font-size: 12px; font-weight: 700; }
.mtip-dash-value  { font-size: 22px; font-weight: 900; color: #fff; }

.mtip-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  margin-top: 10px;
}

.mtip-progress-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, #f87171);
}

/* ── Benefits grid ────────────────────────────────────── */
.mtip-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mtip-benefit {
  border-radius: 26px;
  padding: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.mtip-benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(215,25,32,.18);
}

.mtip-benefit strong {
  display: block;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}

.mtip-benefit p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* ── Partners logo grid ───────────────────────────────── */
.mtip-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.mtip-logo-card {
  height: 92px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-weight: 900;
  letter-spacing: -.03em;
  transition: var(--transition);
}

.mtip-logo-card:hover {
  border-color: rgba(215,25,32,.2);
  box-shadow: var(--shadow-soft);
}

/* ── CTA / Contact section ────────────────────────────── */
.mtip-contact-card {
  padding: 44px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.mtip-contact-card h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--navy);
  font-weight: 900;
}

/* ── Contact form ─────────────────────────────────────── */
.mtip-form {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mtip-form input,
.mtip-form textarea,
.mtip-form select,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 15px 16px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  margin-bottom: 12px !important;
  outline: none !important;
  background: rgba(255,255,255,.84) !important;
  transition: border-color var(--transition) !important;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--mtip-red) !important; }

.wpcf7-form textarea { min-height: 102px; resize: vertical; }

.wpcf7-form input[type="submit"],
.wpcf7-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--mtip-red), var(--mtip-red-light)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  min-height: 46px;
  font-weight: 800 !important;
  font-size: 14px !important;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(215,25,32,.26) !important;
  transition: var(--transition) !important;
}

.wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 45px rgba(215,25,32,.33) !important; }

/* ── News / Blog cards ────────────────────────────────── */
.mtip-news-card {
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.mtip-news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(215,25,32,.18);
}

.mtip-news-card .card-body { padding: 20px 24px; }
.mtip-news-card .card-tag {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mtip-red);
  margin-bottom: 10px;
}
.mtip-news-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -.03em;
}
.mtip-news-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }

/* ── Careers section ──────────────────────────────────── */
.mtip-job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  transition: var(--transition);
}

.mtip-job-card:hover {
  transform: translateX(4px);
  border-color: rgba(215,25,32,.18);
  box-shadow: var(--shadow);
}

.mtip-job-card h4 {
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -.02em;
}

.mtip-job-meta { display: flex; gap: 12px; flex-wrap: wrap; }

.mtip-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(215,25,32,.08);
  color: var(--mtip-red-dark);
  border: 1px solid rgba(215,25,32,.14);
}

/* ── Port Infrastructure stats ────────────────────────── */
.mtip-infra-stat {
  text-align: center;
  padding: 28px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.mtip-infra-stat .number {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -.06em;
  color: var(--mtip-red);
  line-height: 1;
}

.mtip-infra-stat .unit {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
}

.mtip-infra-stat .desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 700;
}

/* ── Investors section ────────────────────────────────── */
.mtip-investor-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition);
}

.mtip-investor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(215,25,32,.18);
}

/* ── Dark CTA banner ──────────────────────────────────── */
.mtip-dark-cta {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.mtip-dark-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(215,25,32,.4), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(245,183,68,.14), transparent 30%);
  pointer-events: none;
}

.mtip-dark-cta > * { position: relative; z-index: 1; }

.mtip-dark-cta h2 {
  color: #fff;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -.06em;
  line-height: 1;
  margin: 0 0 16px;
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer,
#colophon {
  background: var(--navy) !important;
  color: rgba(255,255,255,.68) !important;
}

.site-footer a { color: rgba(255,255,255,.68) !important; }
.site-footer a:hover { color: #fff !important; }
.site-footer h4,
.site-footer .widget-title,
.footer-widget-area .widget-title { color: #fff !important; }

/* ── Reveal animation ─────────────────────────────────── */
.mtip-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: .7s ease;
}

.mtip-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Elementor section / column padding normalize ─────── */
.elementor-section.mtip-section { padding: 82px 0; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
  .mtip-metrics        { grid-template-columns: repeat(2, 1fr); }
  .mtip-benefits       { grid-template-columns: repeat(2, 1fr); }
  .mtip-services-grid  { grid-template-columns: 1fr 1fr; }
  .mtip-logo-grid      { grid-template-columns: repeat(3, 1fr); }
  .mtip-section-head   { display: block; }
  .mtip-section-head p { margin-top: 16px; }
  .mtip-cinema-card    { min-height: 480px; }
}

@media (max-width: 640px) {
  .mtip-hero           { min-height: auto; padding: 44px 0 32px; }
  .mtip-hero h1        { font-size: 44px; }
  .mtip-hero .lead     { font-size: 16px; }
  .mtip-metrics,
  .mtip-services-grid,
  .mtip-benefits,
  .mtip-logo-grid      { grid-template-columns: 1fr; }
  .mtip-cinema-card    { min-height: 420px; border-radius: 28px; }
  .mtip-floating-panel { left: 16px; right: 16px; bottom: 16px; padding: 18px; }
  .mtip-vision-text,
  .mtip-tech-box,
  .mtip-contact-card   { padding: 26px; }
}
