/*
Theme Name: Instamold
Theme URI: https://www.instamold.com/
Description: Instamold child theme for Porto.
Author: Instamold
Template: porto
Version: 1.0.3
Text Domain: instamold
*/

/* Add Instamold-specific theme styles below this line. */

/* Home Page Customizations */

/* Base Table Styling */
.comparison-table {
  width: 100%;
  border-collapse: separate; /* Changed to separate for shadow effects */
  border-spacing: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 20px 0;
}

.cell, .header-cell {
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  line-height: 1.5;
}

/* Header Styling - Centered and Navy */
.header-row {
  background-color: #254a93; /* Insta-Mold Primary Blue */
  color: #ffffff;
}

.header-cell {
  text-align: center; /* Centering header text */
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Left Column Styling - Bold weight to match Header */
.col-1 {
  width: 20%;
  font-weight: 700; /* Bold weight matching header */
  background-color: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  text-align: left;
}

/* Insta-Mold Focus Column Styling */
.instamold-focus {
  width: 45%;
  background-color: #fffdf5; /* Very light gold tint */
  border-left: 2px solid #ffcc33; /* Insta-Mold Safety Yellow */
  border-right: 2px solid #ffcc33;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Soft focus shadow */
}

/* Applying Top/Bottom borders to the highlight column only */
thead .instamold-focus {
  background-color: #254a93; /* Insta-Mold Primary Blue */
  border-top: 4px solid #ffcc33;
}

tbody tr:last-child .instamold-focus {
  border-bottom: 4px solid #ffcc33;
}

/* Secondary Column Styling */
.col-3 {
  width: 35%;
  color: #777;
  padding-left: 25px;
}

.header-row .col-3 {
    color: #fff;
}

/* Header Text Exception: Keep the first header cell aligned with its column */
.header-row .col-1 {
  text-align: left;
  background-color: #1a366d; /* Slightly darker navy for the anchor corner */
}

/* ============================================
   Callout Panels - Brookwood Style
   ============================================ */

/* Parent section */
.instamold-callout-section {
  position: relative;
}

/* Individual card containers */
.instamold-callout-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

/* Desktop: 3 cards in one row (account for 25px gap) */
@media (min-width: 768px) {
  .instamold-callout-section > .e-con-inner > .instamold-callout-card {
    width: calc(33.333% - 17px) !important;
  }
}

.instamold-callout-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Icon styling inside cards */
.instamold-callout-card .porto-sicon-img {
  margin-bottom: 15px;
}

.instamold-callout-card .porto-sicon-img i {
  color: #1A366E !important;
  font-size: 50px;
}

/* Title styling */
.instamold-callout-card .porto-sicon-title {
  color: #1B5FA8;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Description text */
.instamold-callout-card .porto-sicon-description {
  color: #777;
  line-height: 1.6;
  font-size: 15px;
}

/* Learn More link */
.instamold-callout-card .porto-sicon-more a {
  display: inline-block;
  margin-top: 15px;
  color: #1B5FA8;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.instamold-callout-card .porto-sicon-more a:hover {
  color: #1A366E;
}

.instamold-callout-card .porto-sicon-more a::after {
  content: " \2192";
  transition: margin-left 0.2s ease;
}

.instamold-callout-card .porto-sicon-more a:hover::after {
  margin-left: 5px;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .instamold-callout-section > .e-con-inner > .instamold-callout-card {
    width: 100% !important;
  }
}

/* ============================================
   Products Mega Menu — tighten gap
   ============================================ */
#nav-menu-item-4251.wide > .popup {
  max-width: 480px;
}

#nav-menu-item-4251 .porto-wide-sub-menu > li.sub {
  padding: 15px 20px;
}

/* ============================================
   Hide industrial-only sections below
   "The Insta-mold Edge" on the home page
   ============================================ */
.elementor-20 .elementor-element.elementor-element-2a88018,
.elementor-20 .elementor-element.elementor-element-663776a,
.elementor-20 .elementor-element.elementor-element-d99c5b3,
.elementor-20 .elementor-element.elementor-element-71f0e06,
.elementor-20 .elementor-element.elementor-element-2075767,
.elementor-20 .elementor-element.elementor-element-db388fb,
.elementor-20 .elementor-element.elementor-element-fddbc0c,
.elementor-20 .elementor-element.elementor-element-0b2d0cc {
  display: none !important;
}

/* ============================================
   Hero Banner Rotation
   ============================================ */
.instamold-hero-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.instamold-hero-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.instamold-hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.instamold-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: 2px solid #fff;
  transition: background 0.3s;
}

.instamold-hero-dot.active {
  background: #fff;
}
/* Insta-Putty compliance-badge seal icons: vertically center glyph with pill text */
.im-badge-icon .elementor-icon {
  line-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.im-badge-icon .elementor-icon-wrapper,
.im-badge-icon .elementor-widget-container {
  line-height: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.im-badge-icon svg,
.im-badge-icon i {
  display: block !important;
  vertical-align: middle !important;
}

/* Badge pills (hero eyebrow + fulfillment/gateway chips): shrink to content, not full-width bars */
.im-badge-pill {
  width: auto !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
}

/* ============================================================
   TABLE SYSTEM — build all tables with these classes, never inline styles.
   1) .comparison-table  (existing) — Feature vs option(s). Use .instamold-focus
      to highlight ONE option, OR add .im-tiers for a 3-tier (Feature + 3 columns)
      comparison with graded background tints.
   2) .data-table — generic data/list table (e.g. downloads); .im-dl-btn = row button.
   Wrap wide tables in .comparison-table-wrap / .data-table-wrap for mobile scroll.
   ============================================================ */

/* Wide-table horizontal scroll on small screens */
.comparison-table-wrap,
.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- .comparison-table :: 3-tier variant (Feature + 3 product tiers) --- */
.comparison-table.im-tiers { min-width: 640px; }
.comparison-table.im-tiers .col-1 { width: 22%; }
.comparison-table.im-tiers .col-2,
.comparison-table.im-tiers .col-3,
.comparison-table.im-tiers .col-4 { width: 26%; padding-left: 16px; }
.comparison-table.im-tiers td.col-2,
.comparison-table.im-tiers td.col-3,
.comparison-table.im-tiers td.col-4 { color: #333; }
.comparison-table.im-tiers td.col-3 { background-color: #eaf1fa; } /* mid tier */
.comparison-table.im-tiers td.col-4 { background-color: #d2e3f6; } /* top tier */
.comparison-table.im-tiers thead .col-4 { border-top: 4px solid #ffcc33; } /* flagship accent */
.comparison-table.im-tiers .im-empty { color: #bbb; }

/* --- .data-table :: generic data/list table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 14px rgba(26,54,110,.08);
  border-radius: 8px;
  overflow: hidden;
}
.data-table thead th {
  background: #1a366e;
  color: #fff;
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.data-table tbody td {
  padding: 16px 18px;
  color: #333;
  font-size: 15px;
  line-height: 24px;
  vertical-align: middle;
  border-bottom: 1px solid #e3e7ee;
}
.data-table tbody tr:nth-child(even) { background: #f8f9fa; }
.data-table .nowrap { white-space: nowrap; }
.data-table .align-right { text-align: right; }
.im-dl-btn {
  display: inline-block;
  background: #1b5fa8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 30px;
}
.im-dl-btn:hover { background: #17518f; color: #fff; }
