/*
Theme Name: Total Reliance Corporate V9
Theme URI: https://www.totalreliance.me/
Author: Total Reliance
Description: Corporate trade, distribution, consultancy and construction theme for Total Reliance.
Version: 9.0.0
Text Domain: tr-revamp-v9
*/

/* ===============================================================
   HEADER & NAVBAR STYLING (Sticky Frosted Glass)
=============================================================== */

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(11, 28, 53, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  width: 100% !important;
  padding: 1rem 2rem !important;
  border-bottom: 1px solid rgba(246, 139, 30, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.site-header.scrolled {
  padding: 0.65rem 2rem !important;
  background: rgba(8, 18, 33, 0.96) !important;
  border-bottom-color: rgba(246, 139, 30, 0.35) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.site-footer {
  background-color: #0b1c35 !important; /* Deep dark navy matching the image */
  width: 100% !important;
  padding: 4rem 2rem 2.5rem !important;
  border-top: 1px solid rgba(246, 139, 30, 0.2) !important;
  box-shadow: none !important;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 85%;
  margin: 0 auto;
}

/* --- Brand Logo Lockup --- */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px; /* Gap between icon and text */
  text-decoration: none;
}

.brand-icon {
  height: 62px; /* Set icon height to align with stacked text */
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Add Distortion to fit relaince here later */
.text-total {
  font-size: 1.4rem;
  font-weight: 1000;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.5rem; /* Stretches TOTAL to align with RELIANCE */
  margin-bottom: 3px;
}

.text-reliance {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f68b1e; /* Gold accent color */
  line-height: 1;
  letter-spacing: 0.02em;
}

/* --- Navigation Links --- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-toggle{display:none;width:44px;height:44px;padding:10px;border:1px solid rgba(246,139,30,.35);border-radius:10px;background:rgba(255,255,255,.04);cursor:pointer}.nav-toggle span{display:block;height:2px;margin:5px 0;border-radius:2px;background:#fff;transition:transform .25s ease,opacity .25s ease}.nav-dropdown-trigger{border:0;background:transparent;font-family:inherit}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
  cursor: pointer;
}

/* Active and Hover State */
.nav-link:hover,
.nav-link.active {
  color: #f68b1e;
}

/* --- Dropdown Styling --- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #081221;
  min-width: 200px;
  border-radius: 10px;
  padding: 0.8rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(246, 139, 30, 0.2);
  z-index: 1000;
}

.dropdown-content a {
  color: #cbd5e1;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: rgba(246, 139, 30, 0.1);
  color: #f68b1e;
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

/* --- CTA Pill Button --- */
.btn-header-cta {
  border: 1.5px solid #f68b1e;
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  color: #f68b1e !important;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-header-cta:hover,
.btn-header-cta.active {
  background-color: #f68b1e;
  color: #ffffff !important;
}

/* ===============================================================
   FOOTER STYLING
=============================================================== */

/* Base Footer Shell */
.site-footer {
  background-color: #0b1c35; /* Deep corporate navy matching header */
  width: 100%;
  padding: 4rem 2rem 2.5rem;
  border-top: 1px solid rgba(246, 139, 30, 0.2); /* Gold top border accent */
  border-bottom: none;
  box-shadow: none;
}

/* 3-Column Grid + Full Width Bottom Bar */
.footer-inner {
  max-width: 85%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 3rem;
}

/* Column Titles */
.footer-title {
  color: #f68b1e; /* Brand Gold */
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Override Logo Title sizing in Footer */
.footer-title.brand-lockup {
  margin-bottom: 1.2rem;
}
.footer-title .text-total {
  font-size: 1.2rem;
}
.footer-title .text-reliance {
  font-size: 1.2rem;
}

/* General Footer Items & Typography */
.footer-item {
  color: #94a3b8; /* Slate light grey for contrast */
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

.footer-desc {
  max-width: 320px;
}

/* Footer Links */
.footer-item a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-item a:hover {
  color: #f68b1e;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #f68b1e;
}

/* Bottom Copyright & Legal Bar */
.footer-bottom {
  grid-column: 1 / -1; /* Forces bottom bar to span across all 3 grid columns */
  margin-top: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-legal a {
  color: #64748b;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* Responsive adjustment for tablet/mobile */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
@media(max-width:900px){body.nav-open{overflow:hidden}.site-header,.site-header.scrolled{padding:.7rem 1rem!important}.header-inner{max-width:100%}.brand-lockup{gap:9px}.brand-icon{height:46px}.text-total{font-size:1rem;letter-spacing:.36rem}.text-reliance{font-size:1.08rem}.nav-toggle{display:block;position:relative;z-index:1002}.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}.nav-menu{position:fixed;inset:71px 0 auto;display:flex;max-height:calc(100vh - 71px);overflow-y:auto;flex-direction:column;align-items:stretch;gap:0;padding:1rem;border-top:1px solid rgba(246,139,30,.18);background:rgba(8,18,33,.985);box-shadow:0 20px 35px rgba(0,0,0,.4);opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease}.nav-menu.is-open{opacity:1;visibility:visible;transform:none}.nav-menu>.nav-link,.nav-dropdown-trigger{width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:.8rem .6rem;text-align:left;border-bottom:1px solid rgba(255,255,255,.08);font-size:.9rem}.nav-dropdown{display:block}.dropdown-content{position:static;min-width:0;margin:.25rem 0 .5rem;padding:.3rem 0 .3rem .65rem;border:0;border-left:2px solid rgba(246,139,30,.45);border-radius:0;background:transparent;box-shadow:none}.dropdown-content a{min-height:44px;display:flex;align-items:center;padding:.65rem .75rem;font-size:.85rem}.btn-header-cta{justify-content:center!important;margin-top:.8rem;border-bottom:1.5px solid #f68b1e!important}.site-footer{padding:3rem 1.25rem 2rem!important}.footer-inner{max-width:100%}.footer-desc{max-width:none}}
@media(max-width:480px){.footer-legal{flex-wrap:wrap;justify-content:center;gap:.75rem 1.25rem}.woocommerce-account .woocommerce{margin:2rem 1rem;padding:1.25rem}}



/* WooCommerce My Account Dark Navy Container */
.woocommerce-account .woocommerce {
    background-color: #112240;
    border: 1px solid rgba(246, 139, 30, 0.2);
    border-radius: 16px;
    padding: 3rem;
    color: #ffffff;
    max-width: 1000px;
    margin: 4rem auto;
}

.woocommerce-account .woocommerce h2 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f68b1e;
    padding-left: 1rem;
}

.woocommerce-account label {
    color: #cbd5e1;
    font-weight: 600;
}

/* Style Form Inputs */
.woocommerce form .form-row input.input-text {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #0f172a;
}

/* Style Login & Register Submit Buttons */
.woocommerce button.button.woocommerce-form-login__submit,
.woocommerce button.button.woocommerce-form-register__submit {
    background: linear-gradient(135deg, #f68b1e 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 0.9rem 2rem !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.woocommerce button.button:hover {
    transform: translateY(-2px);
}

/* ===============================================================
   REVEAL ANIMATION CSS - Synchronized with animations.js IntersectionObserver
   Elements with .reveal class are initially hidden and fade/slide in when scrolled into view
   =============================================================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s ease cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific reveal variations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s ease cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s ease cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s ease cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.6s ease cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.visible {
    opacity: 1;
}

/* ===============================================================
   SCROLL PROGRESS BAR & BACK TO TOP BUTTON
   =============================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #f68b1e 0%, #fbbf24 100%);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(246, 139, 30, 0.6);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #112240;
    border: 1.5px solid #f68b1e;
    color: #f68b1e;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #f68b1e;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(246, 139, 30, 0.45);
}
