/* ============ KTW Network Law Firm — Stylesheet ============ */
:root {
  --navy: #0e2238;
  --navy-dark: #081421;
  --navy-light: #16314f;
  --gold: #d4a64a;
  --gold-light: #f0c373;
  --grey-bg: #f7f8fa;
  --text-muted: #5d6b7a;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #2b2b2b;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-serif {
  font-family: 'Playfair Display', serif;
}

a { text-decoration: none; }

.text-gold { color: var(--gold) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.bg-grey { background-color: var(--grey-bg) !important; }

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  letter-spacing: .03em;
  transition: all .25s ease;
}
.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
}
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  background: transparent;
}
.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--navy-dark);
}

/* ---------- Top Bar ---------- */
.top-bar {
  background-color: var(--navy-dark);
  font-size: .85rem;
  color: #cfd8e3;
}
.top-bar a { color: #cfd8e3; }
.top-bar a:hover { color: var(--gold); }

/* ---------- Navbar ---------- */
.navbar {
  background-color: var(--navy);
  transition: padding .3s ease, box-shadow .3s ease;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.navbar.scrolled {
  padding-top: .4rem;
  padding-bottom: .4rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #fff !important;
  font-size: 1.5rem;
  line-height: 1.1;
}
.navbar-brand small {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: .6rem;
  letter-spacing: .15em;
  color: var(--gold);
}
.navbar .nav-link {
  color: #e7ecf2 !important;
  font-weight: 500;
  margin: 0 .4rem;
  position: relative;
}
.navbar .nav-link.active,
.navbar .nav-link:hover { color: var(--gold) !important; }
.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  position: relative;
  color: #fff;
  padding: 140px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(212,166,74,.18), transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(212,166,74,.12), transparent 40%);
}
.hero .eyebrow {
  letter-spacing: .25em;
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
}
.hero h1 { font-size: 3.2rem; font-weight: 700; }
.hero p.lead { color: #c9d3df; }

.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 90px 0 60px;
  position: relative;
}
.page-header h1 { font-weight: 700; }
.breadcrumb-custom a { color: var(--gold-light); }
.breadcrumb-custom span { color: #cfd8e3; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-title .eyebrow {
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}
.section-title h2 { font-weight: 700; color: var(--navy); }
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 14px 0 0;
}
.divider.center { margin: 14px auto 0; }

/* ---------- Cards ---------- */
.icon-box {
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  padding: 32px 26px;
  height: 100%;
  background: #fff;
  transition: all .3s ease;
}
.icon-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(14,34,56,.1);
  border-color: var(--gold);
}
/* Stacked usage (e.g. office cards) must not stretch to fill the flex row height */
.icon-box.stacked {
  height: auto;
}
.icon-box .icon-circle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(212,166,74,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.icon-box h5 { font-weight: 600; color: var(--navy); }
.icon-box p { color: var(--text-muted); font-size: .92rem; margin-bottom: 0; }

.service-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e9ecf1;
  padding: 28px 24px;
  height: 100%;
  transition: all .3s ease;
  cursor: default;
}
.service-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(14,34,56,.18);
}
.service-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
}
.service-card h5 { color: var(--navy); font-weight: 600; margin-top: 8px; }
.service-card p { color: var(--text-muted); font-size: .88rem; margin-bottom: 0; }
.service-card:hover h5, .service-card:hover p { color: #fff; }
.service-card:hover p { color: #c9d3df; }

.value-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed #dfe3e8;
}
.value-item:last-child { border-bottom: none; }
.value-item i { color: var(--gold); font-size: 1.3rem; margin-top: 3px; }

.team-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e9ecf1;
  text-align: center;
  transition: all .3s ease;
}
.team-card:hover { box-shadow: 0 18px 35px rgba(14,34,56,.12); transform: translateY(-6px); }
.team-card .avatar {
  width: 100%;
  height: 230px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 4rem;
}
.team-card .body { padding: 22px 18px; }
.team-card h5 { color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.team-card .role { color: var(--gold); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.team-card p.bio { color: var(--text-muted); font-size: .88rem; margin-top: 10px; }

.stat-box { text-align: center; color: #fff; }
.stat-box .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-box .stat-label { color: #c9d3df; font-size: .9rem; letter-spacing: .03em; }

/* ---------- Accordion (Practice areas / FAQ) ---------- */
.accordion-button { font-weight: 600; color: var(--navy); }
.accordion-button:not(.collapsed) {
  color: var(--navy);
  background-color: rgba(212,166,74,.1);
}
.accordion-button:focus { box-shadow: none; border-color: var(--gold); }

/* ---------- Courts/Tribunal list ---------- */
.list-pill {
  display: inline-block;
  background: var(--grey-bg);
  border: 1px solid #e6e9ee;
  border-radius: 30px;
  padding: 8px 18px;
  margin: 5px;
  font-size: .85rem;
  color: var(--navy);
  transition: all .2s ease;
}
.list-pill:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border: 30px solid rgba(212,166,74,.12);
  border-radius: 50%;
}

/* ---------- Contact ---------- */
.contact-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e9ecf1;
  padding: 30px 26px;
  height: 100%;
}
.contact-card .icon-circle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.form-control, .form-select {
  border: 1px solid #d8dde3;
  padding: 12px 14px;
  border-radius: 6px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(212,166,74,.15);
}
.form-label { font-weight: 600; color: var(--navy); font-size: .9rem; }
#formAlert { display: none; }

/* ---------- Footer ---------- */
footer { background: var(--navy-dark); color: #c9d3df; }
footer h5 { color: #fff; font-weight: 700; margin-bottom: 18px; }
footer a { color: #c9d3df; }
footer a:hover { color: var(--gold); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 10px; }
footer ul li i { color: var(--gold); margin-right: 8px; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid #2c4a68;
  margin-right: 8px;
}
.social-icons a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.footer-bottom {
  background: #060f18;
  font-size: .85rem;
  padding: 16px 0;
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  border: none;
}
#backToTop:hover { background: var(--gold-light); }

/* ---------- AOS-style fade-in (jQuery driven) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s ease;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0;
  background: var(--navy-dark);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
#preloader .spinner-border { color: var(--gold); width: 3rem; height: 3rem; }

@media (max-width: 991px) {
  .hero { padding: 110px 0 70px; text-align: center; }
  .hero h1 { font-size: 2.2rem; }
}
