/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/
/* =============================================
   TRUELINK — HEADER STYLES
   ============================================= */

.tl-pre-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: #00a651;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
}

.tl-nav {
  position: fixed;
  top: 28px; left: 0; right: 0;
  z-index: 999;
  padding: 22px 0;
  transition: all 0.35s ease;
  font-family: 'Inter', sans-serif;
}

.tl-nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
  padding: 12px 0;
}

.tl-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tl-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.tl-logo-icon { width: 44px; height: 44px; }
.tl-logo-name { font-size: 1.45rem; font-weight: 800; color: #fff; display: block; transition: color 0.3s; }
.tl-logo-tag { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.68rem; color: rgba(255,255,255,0.5); display: block; transition: color 0.3s; }
.tl-nav.scrolled .tl-logo-name { color: #00a651; }
.tl-nav.scrolled .tl-logo-tag  { color: #9ca3af; }

.tl-nav-links { display: flex; gap: 4px; align-items: center; }
.tl-nav-item { position: relative; }

.tl-nav-item > a,
.tl-nav-item > button {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.tl-nav.scrolled .tl-nav-item > a,
.tl-nav.scrolled .tl-nav-item > button { color: #4b5563; }

.tl-nav-item > a:hover,
.tl-nav-item > button:hover,
.tl-nav-item.active > a,
.tl-nav-item.active > button { color: #00a651 !important; background: rgba(0,166,81,0.07); }

.tl-chevron { width: 14px; height: 14px; transition: transform 0.25s ease; opacity: 0.6; flex-shrink: 0; }
.tl-nav-item.open .tl-chevron { transform: rotate(180deg); }

.tl-nav-cta { background: #00a651 !important; color: #fff !important; padding: 9px 22px !important; border-radius: 10px; font-weight: 600 !important; }
.tl-nav-cta:hover { background: #008c44 !important; }

.tl-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 100;
}

.tl-dropdown.wide { min-width: 480px; padding: 20px; }

.tl-nav-item.open .tl-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.tl-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,0.05);
  border-top: 1px solid rgba(0,0,0,0.05);
  rotate: 45deg;
}

.tl-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #374151;
  font-size: 0.855rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.tl-dropdown a:hover { background: rgba(0,166,81,0.07); color: #00a651; }

.tl-dropdown .dd-icon {
  width: 30px; height: 30px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background 0.15s;
}

.tl-dropdown a:hover .dd-icon { background: rgba(0,166,81,0.12); }

.tl-dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.tl-dropdown-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9ca3af; padding: 8px 14px 4px; }
.tl-dropdown hr { border: none; border-top: 1px solid #f3f4f6; margin: 6px 0; }

.tl-nav-hamburger { display: none; background: none; border: none; font-size: 1.6rem; color: #fff; cursor: pointer; padding: 4px; }
.tl-nav.scrolled .tl-nav-hamburger { color: #0a1628; }

.tl-nav-mobile { display: none; flex-direction: column; background: #fff; position: absolute; top: 100%; left: 0; right: 0; box-shadow: 0 8px 32px rgba(0,0,0,0.1); max-height: 80vh; overflow-y: auto; }
.tl-nav-mobile.open { display: flex; }

.tl-mobile-top > a,
.tl-mobile-top > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid #f3f4f6;
  background: none;
  border-left: none; border-right: none; border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.tl-mobile-sub { display: none; flex-direction: column; background: #f3f4f6; }
.tl-mobile-sub.open { display: flex; }
.tl-mobile-sub a { padding: 11px 36px; color: #4b5563; text-decoration: none; font-size: 0.855rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.tl-mobile-sub a:hover { color: #00a651; }

.tl-mobile-cta { margin: 16px 24px; background: #00a651; color: #fff !important; padding: 12px 24px !important; border-radius: 10px; font-weight: 600 !important; text-align: center; font-size: 0.9rem !important; text-decoration: none; display: block; }

/* Push page body below fixed header (28px pre-header + ~70px nav) */
body { padding-top: 98px !important; }

/* Hero section should sit flush under header */
.tl-hero { margin-top: -98px; padding-top: 178px; }

@media (max-width: 960px) {
  .tl-nav-links { display: none; }
  .tl-nav-hamburger { display: block; }
}