/* =========================================================
   TREND IT — Shared Stylesheet
   ========================================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --primary:  #00233F;
  --accent:   #FF4D0F;
  --white:    #FFFFFF;
  --light:    #F7F7FB;
  --gray:     #BFBFBF;
  --dark:     #111827;
  --font-h:   'Poppins',  sans-serif;
  --font-b:   'Nunito',   sans-serif;
  --max-w:    1280px;
  --radius:   10px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --trans:    all .3s ease;
}

/* ── Reset ── */
#header-placeholder, #footer-placeholder { display: contents; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-b); color: #333; background: #fff; overflow-x: hidden; }
a     { text-decoration: none; color: inherit; }
img   { max-width: 100%; height: auto; display: block; }
ul    { list-style: none; }

/* ── Keyframes ── */
@keyframes zoomIn      { from{opacity:0;transform:scale(.5)}  to{opacity:1;transform:scale(1)} }
@keyframes fadeInLeft  { from{opacity:0;transform:translateX(-50px)} to{opacity:1;transform:translateX(0)} }
@keyframes fadeInRight { from{opacity:0;transform:translateX(50px)}  to{opacity:1;transform:translateX(0)} }
@keyframes fadeInUp    { from{opacity:0;transform:translateY(40px)}  to{opacity:1;transform:translateY(0)} }
@keyframes rotateIn    { from{opacity:0;transform:rotate(-200deg)}   to{opacity:1;transform:rotate(0)} }
@keyframes pulse       { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
@keyframes float       { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes logoSlide   { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes scrollShow  { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ── Scroll-animation classes ── */
.aos { opacity: 0; transition: opacity .1s; }
.aos.visible                { opacity: 1; }
.aos.visible[data-anim="zoomIn"]      { animation: zoomIn      .8s ease forwards; }
.aos.visible[data-anim="fadeInLeft"]  { animation: fadeInLeft  .8s ease forwards; }
.aos.visible[data-anim="fadeInRight"] { animation: fadeInRight .8s ease forwards; }
.aos.visible[data-anim="fadeInUp"]    { animation: fadeInUp    .8s ease forwards; }
.aos.visible[data-anim="rotateIn"]    { animation: rotateIn    .8s ease forwards; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 60px; }
@media(max-width:768px){ .container{ padding: 0 24px; } }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--primary);
  padding: 8px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a {
  color: #fff;
  font-family: var(--font-h);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--trans);
}
.topbar a:hover { color: var(--accent); }
.topbar svg { width: 15px; height: 15px; fill: currentColor; }
@media(max-width:1024px){ .topbar{ display:none; } }

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.15); }

.navbar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media(max-width:1024px){ .navbar{ padding: 12px 24px; } }

.logo img { height: 55px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 0;
  position: relative;
  transition: color .3s;
}
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after { width: 100%; }
.nav-menu > li > a:hover,
.nav-menu > li.active > a        { color: var(--accent); }

/* Dropdown */
.nav-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 5px;
  left: 0;
  background: #fff;
  min-width: 190px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.nav-menu .dropdown::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}
.nav-menu .has-dropdown:hover .dropdown {
  display: block;
  animation: fadeIn 0.2s ease forwards;
}
.dropdown li a {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-h);
  font-size: 14px;
  color: var(--primary);
  transition: background .2s, color .2s;
}
.dropdown li a:hover { background: var(--accent); color: #fff; }
.dropdown li:first-child a { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.dropdown li:last-child a { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--primary); transition: var(--trans); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav { display: none; flex-direction: column; background: #fff; padding: 16px 24px; border-top: 1px solid #eee; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 11px 0; font-family: var(--font-h); font-size: 15px; font-weight: 500; color: var(--primary); border-bottom: 1px solid #f0f0f0; transition: color .3s; }
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .sub-link { padding-left: 18px; font-size: 14px; color: #555; }

@media(max-width:1024px){ .nav-menu{ display:none; } .hamburger{ display:flex; } }

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  background: var(--primary);
  padding: 90px 60px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .06;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: #fff;
  border-radius: 50%;
  opacity: .04;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero-text .breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
  font-family: var(--font-h);
}
.page-hero-text .breadcrumb a { color: var(--accent); }
.page-hero-text h1 {
  font-family: var(--font-h);
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.page-hero-text p {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  margin-bottom: 32px;
}
.page-hero-img img { border-radius: 16px; animation: float 4s ease-in-out infinite; }
@media(max-width:768px){
  .page-hero{ padding:60px 24px; }
  .page-hero-inner{ grid-template-columns:1fr; gap:30px; }
  .page-hero-text h1{ font-size:32px; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--trans);
  border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d93d00; transform: scale(.97); box-shadow: 0 6px 20px rgba(255,77,15,.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-dark-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-dark-outline:hover { background: var(--primary); color: #fff; }

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-h);
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title.light { color: #fff; }
.section-sub {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  max-width: 680px;
}
.section-sub.light { color: rgba(255,255,255,.75); }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* =========================================================
   SERVICE CARDS (generic)
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media(max-width:1024px){ .service-grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px) { .service-grid{ grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  transition: var(--trans);
  text-align: center;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,.12); border-color: var(--accent); }
.service-card .icon {
  width: 90px; height: 90px;
  margin: 0 auto 20px;
  animation: pulse 2.5s ease-in-out infinite;
}
.service-card .icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card h4 { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.service-card p  { font-size: 14px; color: #666; line-height: 1.7; }

/* Dark variant */
.service-card.dark {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  backdrop-filter: blur(8px);
}
.service-card.dark:hover { background: rgba(255,255,255,.1); border-color: var(--accent); }
.service-card.dark h4 { color: #fff; }
.service-card.dark p  { color: rgba(255,255,255,.75); }

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band { background: var(--accent); padding: 48px 60px; }
.stats-band .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.stat { text-align: center; }
.stat .number { font-family: var(--font-h); font-size: 52px; font-weight: 800; color: #fff; line-height: 1; }
.stat .label  { font-family: var(--font-h); font-size: 14px; color: rgba(255,255,255,.85); margin-top: 6px; }
@media(max-width:768px){ .stats-band{ padding:36px 24px; } }

/* =========================================================
   LOGO SLIDER
   ========================================================= */
.logo-slider { overflow: hidden; }
.logo-track {
  display: flex;
  gap: 20px;
  animation: logoSlide 30s linear infinite;
  width: max-content;
}
.logo-track:hover { animation-play-state: paused; }
.logo-item {
  flex: 0 0 auto;
  width: 145px; height: 90px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  position: relative;
  overflow: hidden;
  transition: transform .3s;
}
.logo-item:hover { transform: scale(1.06); }
.logo-item .main-logo  { transition: opacity .3s; width:100%; height:100%; object-fit:contain; }
.logo-item .hover-logo { position:absolute; inset:12px; opacity:0; transition:opacity .3s; object-fit:contain; }
.logo-item:hover .main-logo  { opacity: 0; }
.logo-item:hover .hover-logo { opacity: 1; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-wrap {
  background: var(--primary);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
}
.testimonial-slide { display: none; animation: fadeInUp .5s ease; }
.testimonial-slide.active { display: block; }
.testimonial-slide .q-icon { font-size: 48px; color: rgba(255,255,255,.12); position: absolute; top: 20px; right: 24px; }
.testimonial-slide p { font-size: 15px; color: rgba(255,255,255,.88); line-height: 1.85; margin-bottom: 24px; }
.t-divider { width: 40px; height: 2px; background: var(--accent); margin-bottom: 14px; }
.t-author strong { font-family: var(--font-h); font-size: 14px; font-weight: 700; color: #fff; display: block; }
.t-dots { display: flex; gap: 8px; margin-top: 18px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); cursor: pointer; transition: background .3s; }
.t-dot.active { background: var(--accent); }

/* =========================================================
   PARTNERS GRID
   ========================================================= */
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px; }
.partner-logo {
  width: 120px; height: 80px;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.partner-logo:hover { transform: rotate(4deg) scale(1.08); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-section { padding: 80px 60px; }
@media(max-width:768px){ .contact-section{ padding: 50px 24px; } }

.contact-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
@media(max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-info h2 { font-family: var(--font-h); font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.contact-info p  { font-size: 16px; color: #666; line-height: 1.8; margin-bottom: 36px; }

.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-item .ci-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px; color: #fff;
}
.contact-item .ci-text h5 { font-family: var(--font-h); font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.contact-item .ci-text p  { font-size: 14px; color: #666; line-height: 1.6; }
.contact-item .ci-text a  { color: var(--accent); transition: color .2s; }
.contact-item .ci-text a:hover { color: var(--primary); }

/* Form */
.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
  border: 1px solid #eee;
}
@media(max-width:600px){ .form-card{ padding: 28px 20px; } }

.form-card h3 { font-family: var(--font-h); font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media(max-width:600px){ .form-row{ grid-template-columns:1fr; } }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-h); font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-b);
  font-size: 15px;
  color: #333;
  background: #fafafa;
  transition: border-color .3s, box-shadow .3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,77,15,.1); background: #fff; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group .form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-group .form-check input[type="checkbox"] { width: auto; margin-top: 3px; accent-color: var(--accent); }
.form-group .form-check label { font-size: 13px; color: #666; font-family: var(--font-b); font-weight: 400; }

.form-submit { width: 100%; padding: 15px; font-size: 16px; margin-top: 8px; }

.form-msg {
  display: none;
  padding: 14px 20px;
  border-radius: 8px;
  margin-top: 16px;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
}
.form-msg.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.form-msg.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* =========================================================
   FEATURE LIST (two-col with icon)
   ========================================================= */
.feature-list { display: flex; flex-direction: column; gap: 28px; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feature-item .fi-icon { flex-shrink: 0; width: 80px; height: 80px; }
.feature-item .fi-icon img { width: 80px; height: 80px; object-fit: contain; animation: pulse 2.5s ease-in-out infinite; }
.feature-item .fi-text h4 { font-family: var(--font-h); font-size: 19px; font-weight: 700; color: var(--primary); margin-bottom: 7px; }
.feature-item .fi-text p  { font-size: 15px; color: #666; line-height: 1.7; }

/* =========================================================
   MAP PLACEHOLDER
   ========================================================= */
.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 350px;
  margin-top: 40px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   SCROLL-TO-TOP
   ========================================================= */
#scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(255,77,15,.4);
  font-size: 16px;
}
#scroll-top.visible { opacity:1; visibility:visible; animation: scrollShow .3s ease; }
#scroll-top:hover { transform: translateY(-4px); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--primary); padding: 60px; position: relative; overflow: hidden; }
.site-footer::before {
  content:'';
  position:absolute; top:-50px; left:-50px;
  width:308px; height:308px;
  background-image:url('../images/Group-376-1.png');
  background-size:contain; background-repeat:no-repeat;
  opacity:.07;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media(max-width:1024px){ .footer-inner{ grid-template-columns:1fr 1fr; } }
@media(max-width:600px) { .footer-inner{ grid-template-columns:1fr; } }

.footer-brand .f-logo { height: 55px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
  transition: var(--trans);
}
.social-link svg { width: 15px; height: 15px; fill: currentColor; }
.social-link:hover { background: var(--accent); transform: scale(1.15); }

.footer-col h6 { font-family: var(--font-h); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .3s; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.footer-contact li i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-contact li span,
.footer-contact li a { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.5; }
.footer-contact li a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.45); }
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { opacity: .8; }
@media(max-width:768px){ .site-footer{ padding:40px 24px; } .footer-bottom{ flex-direction:column; text-align:center; } }

/* =========================================================
   UTILS
   ========================================================= */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.bg-light   { background: var(--light); }
.bg-primary { background: var(--primary); }
.bg-accent  { background: var(--accent); }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px;  }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
