/* ============================================================
   Relynk - custom.css
   Accent: #3a7bd5
   All sizes in px (NO rem)
   ============================================================ */

/* CSS Variables */
:root {
  --accent: #3a7bd5;
  --accent-dark: #2a5faa;
  --accent-light: #6fa3e8;
  --text-dark: #1a2332;
  --text-body: #4a5568;
  --text-light: #718096;
  --bg-light: #f7f9fc;
  --bg-dark: #0d1b2a;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #38a169;
  --bg-rgb: 255, 255, 255;
}

/* ============================================================
   Base Overrides
   ============================================================ */
body {
  font-size: 18px;
  color: var(--text-body);
  font-family: "Raleway", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  text-transform: none;
  letter-spacing: 0;
}

h1 { font-size: 60px; }
h2 { font-size: 42px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p { font-size: 18px; line-height: 1.9; }

a { color: var(--accent); transition: all 0.3s ease; }
a:hover { color: var(--accent-dark); text-decoration: none; }

/* ============================================================
   Accent Color Overrides (replace template #37A / #369 / #38B)
   ============================================================ */
.tm-text-primary { color: var(--accent) !important; }
.tm-btn-primary { background-color: var(--accent); color: #ffffff; }
.tm-btn-primary:hover, .tm-btn-primary:focus { background-color: var(--accent-dark); color: #ffffff; }
.tm-down-arrow { background: var(--accent); }
.tm-down-arrow:hover, .tm-down-arrow:focus { background: var(--accent-dark); }
.tm-navbar.scroll .navbar-brand { color: var(--accent); }
.tm-navbar.scroll .tm-nav-link { color: var(--text-dark); }
.tm-navbar.scroll .tm-nav-link:hover,
.tm-navbar.scroll .tm-nav-link.current,
.tm-nav-link:hover { background-color: var(--accent); color: #ffffff !important; }
.tm-icon { color: var(--accent) !important; }
.tm-btn-submit { background-color: var(--accent); color: #ffffff; }
.tm-btn-submit:hover { background-color: var(--accent-dark); color: #ffffff; }

/* ============================================================
   R77: Nav cleanup
   ============================================================ */
.nav-item { margin-bottom: 0 !important; background-image: none !important; }
.site-logo { max-width: none !important; }
.btn-accent, .cta-primary, .cta-secondary { white-space: nowrap; }

/* ============================================================
   R79: Hero container transparent
   ============================================================ */
.header-thumb { background: transparent !important; border: none !important; }

/* ============================================================
   R81: Force accent color on all icons
   ============================================================ */
.feature-icon .fa, .card-icon .fa, .step-icon .fa { color: var(--accent) !important; }

/* ============================================================
   R85: Dark sections — solid text colors
   ============================================================ */
#contact, #contact * { color: #e2e8f0; }
#contact h2, #contact .tm-section-title { color: #ffffff; }
#contact a { color: #c8d6e5; }
#contact a:hover { color: var(--accent-light); }
.tm-bg-overlay { pointer-events: none !important; }

/* ============================================================
   R89: Template overlay must not block clicks
   ============================================================ */
.tm-bg-overlay, [class*="overlay"] { pointer-events: none !important; }

/* ============================================================
   Nav — font size override
   ============================================================ */
.tm-nav-link { font-size: 15px; }
.navbar-brand { font-size: 22px; font-weight: 800; }
.navbar-brand img { height: 36px; width: auto; }

/* ============================================================
   Scroll-triggered Nav (R76)
   ============================================================ */
.tm-navbar.scroll {
  background-color: rgba(var(--bg-rgb), 0.98) !important;
}
.tm-navbar.scroll .navbar-nav > li > a {
  color: var(--text-dark) !important;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-outline:hover, .btn-outline:focus {
  background-color: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

/* Dark section outline button (R-BTN) */
.section-dark .btn-outline {
  color: #ffffff;
  border-color: #ffffff;
}
.section-dark .btn-outline:hover {
  background-color: #ffffff;
  color: var(--accent-dark);
}

/* ============================================================
   Container Narrow
   ============================================================ */
.container-narrow { max-width: 720px; margin: 0 auto; }

/* ============================================================
   K17: Card equal-height flex rules
   ============================================================ */
.card-grid, .team-grid, .blog-grid, .features-grid {
  display: flex;
  flex-wrap: wrap;
}
.card-grid > *, .team-grid > *, .blog-grid > *, .features-grid > * {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Feature Cards (R87)
   ============================================================ */
.feature-card {
  padding: 36px 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 28px;
  transition: box-shadow 0.3s ease;
}
.feature-card:hover { box-shadow: 0 8px 32px rgba(58, 123, 213, 0.12); }
.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card .feature-icon .fas,
.feature-card .feature-icon .far {
  font-size: 28px;
  color: var(--accent);
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.feature-card p {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 0;
}

/* ============================================================
   Sections
   ============================================================ */
.section-light {
  background-color: var(--bg-light);
  color: var(--text-body);
  padding: 80px 0;
}
.section-white {
  background-color: #ffffff;
  color: var(--text-body);
  padding: 80px 0;
}
.section-dark {
  background-color: var(--bg-dark);
  color: #e2e8f0;
  padding: 80px 0;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #ffffff; }
.section-dark p { color: #c8d6e5; }

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* ============================================================
   Team Cards (R84, R86)
   ============================================================ */
.team-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 0;
}
.team-card-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}
.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.team-card-body {
  padding: 24px;
}
.team-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.team-card-role {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.team-card-bio {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   Blog Cards
   ============================================================ */
.blog-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
  transition: box-shadow 0.3s ease;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(58, 123, 213, 0.10); }
.blog-card-img {
  width: 100%;
  overflow: hidden;
  max-height: 220px;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
  height: auto;
}
.blog-card-body { padding: 28px; }
.blog-card-category {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}
.blog-card p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}
.blog-card-meta {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================================
   Pricing Cards
   ============================================================ */
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 32px;
  margin-bottom: 28px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover {
  box-shadow: 0 12px 40px rgba(58, 123, 213, 0.12);
  border-color: var(--accent);
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(58, 123, 213, 0.18);
  position: relative;
}
.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pricing-tier-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-light);
}
.pricing-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.6;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.pricing-features li {
  font-size: 15px;
  color: var(--text-body);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .fas { color: var(--success); font-size: 14px; margin-top: 4px; }

/* ============================================================
   Contact Page
   ============================================================ */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 20px;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon .fas { font-size: 20px; color: #ffffff; }
.contact-info-text h4 { font-size: 18px; color: var(--text-dark); margin-bottom: 4px; }
.contact-info-text p { font-size: 16px; color: var(--text-light); margin-bottom: 0; }

/* ============================================================
   Page Hero (interior pages)
   ============================================================ */
.page-hero {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 120px 0 80px;
  text-align: center;
}
.page-hero h1 {
  font-size: 52px;
  color: #ffffff;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 20px;
  color: #c8d6e5;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: var(--bg-dark);
  color: #c8d6e5;
  padding: 40px 0 20px;
}
.site-footer h5 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.site-footer p { font-size: 15px; color: #8fabc4; line-height: 1.7; }
.site-footer a { color: #8fabc4; font-size: 15px; transition: color 0.3s ease; }
.site-footer a:hover { color: var(--accent-light); text-decoration: none; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 40px 0 24px;
}
.footer-copyright { font-size: 14px; color: #5a7a9a; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.page-breadcrumb {
  font-size: 14px;
  color: #8fabc4;
  margin-bottom: 0;
}
.page-breadcrumb a { color: var(--accent-light); }
.page-breadcrumb a:hover { color: #ffffff; }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-content h2 { font-size: 28px; margin-top: 40px; margin-bottom: 16px; color: var(--text-dark); }
.legal-content h3 { font-size: 20px; margin-top: 28px; margin-bottom: 12px; color: var(--text-dark); }
.legal-content p { font-size: 16px; color: var(--text-body); }
.legal-content ul { font-size: 16px; color: var(--text-body); line-height: 1.9; }

/* ============================================================
   Article / blog images (R-IMG)
   ============================================================ */
.blog-content img, article img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

/* ============================================================
   How It Works / Steps (R80)
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  text-align: center;
  padding: 40px 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 20px; color: var(--text-dark); margin-bottom: 12px; }
.step-card p { font-size: 16px; color: var(--text-body); }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .pricing-price { font-size: 36px; }
  .page-hero h1 { font-size: 36px; }
}

/* ============================================================
   Hero Section - Background Image Fix
   ============================================================ */
#hero.tm-parallax {
    background-image: url('../images/industrial-control-room-monitors.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero overlay & content z-index */
.hero-section, [class*="hero"] { position: relative; min-height: 500px; }
.hero-overlay { position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5); pointer-events: none; z-index: 1; }
.hero-content { position: relative; z-index: 2; }

/* ============================================================
   Arrow overlap fix + button text truncation fix
   ============================================================ */
   Arrow overlap fix + button text truncation fix
   ============================================================ */
.btn-accent, .btn-outline {
    white-space: nowrap;
    padding: 12px 24px;
}

/* ============================================================
   Footer #contact — override template 980px min-height
   ============================================================ */
#contact {
    min-height: auto;
    background-image: none;
    padding-top: 40px;
    padding-bottom: 20px;
}
