/* ============================================================
   TC S.A.L. — Corporate Landing Page
   Palette: Navy #0A1F44 | Gold #C9A84C | Light gray #F5F6F8
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0A1F44;
  --navy-mid:  #122857;
  --gold:      #C9A84C;
  --gold-lt:   #E2C97A;
  --white:     #FFFFFF;
  --gray-50:   #F5F6F8;
  --gray-100:  #EAECF0;
  --gray-300:  #C5C9D2;
  --gray-600:  #6B7280;
  --gray-800:  #1F2937;
  --text:      #1A2540;
  --radius:    8px;
  --shadow-sm: 0 1px 4px rgba(10,31,68,.08);
  --shadow-md: 0 4px 16px rgba(10,31,68,.12);
  --shadow-lg: 0 8px 32px rgba(10,31,68,.16);
  --transition: .22s ease;
  --container: 1140px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); }
h4 { font-size: 1rem; }

p { color: var(--gray-600); line-height: 1.75; }
p + p { margin-top: 1rem; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.section-title { margin-bottom: 1rem; }
.section-lead  { font-size: 1.0625rem; max-width: 660px; }
.text-center   { text-align: center; }
.text-center .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  padding: .75rem 1.625rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  box-shadow: 0 4px 18px rgba(201,168,76,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  box-shadow: var(--shadow-md);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Header / Nav ---------- */
#site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  background: rgba(10,31,68,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { margin-left: .5rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
  width: 24px;
}
.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; width: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0 1.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: .75rem 24px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--transition), background var(--transition);
}
.nav-mobile a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-mobile .btn { margin: 1rem 24px 0; width: calc(100% - 48px); justify-content: center; }

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 110px 80px;
  background: linear-gradient(140deg, #071428 0%, var(--navy) 55%, #0d2a5a 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 30%;
  opacity: .13;
  filter: saturate(.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,31,68,.55) 0%, rgba(10,31,68,.82) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.28);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.72);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

/* ---------- Trust Cards ---------- */
#trust {
  padding-block: 2rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.375rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.trust-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(10,31,68,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg { width: 22px; height: 22px; stroke: var(--navy); }

.trust-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: .25rem;
}
.trust-value {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* ---------- Sections common ---------- */
section { padding-block: 88px; }

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.text-center .section-divider { margin-inline: auto; }

/* ---------- About ---------- */
#about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.about-image-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  padding: .5rem .875rem;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.about-stat {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
}
.about-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .25rem;
}
.about-stat-label {
  font-size: .78rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ---------- Business Activities ---------- */
#activities { background: var(--gray-50); }

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.activity-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.activity-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.activity-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.activity-card:hover::before { transform: scaleX(1); }

.activity-icon {
  width: 52px; height: 52px;
  background: rgba(10,31,68,.06);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.activity-icon svg { width: 26px; height: 26px; stroke: var(--navy); }

.activity-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .625rem;
}
.activity-desc { font-size: .9rem; color: var(--gray-600); line-height: 1.65; }

/* ---------- Legal Information ---------- */
#legal { background: var(--navy); }
#legal h2 { color: var(--white); }
#legal .section-label { color: var(--gold-lt); }
#legal .section-divider { background: var(--gold); }
#legal .section-lead { color: rgba(255,255,255,.7); }

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.legal-row {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.legal-row.full-width { grid-column: 1 / -1; }

.legal-key {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.legal-val {
  font-size: .9875rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}
.legal-val a { color: var(--gold-lt); transition: color var(--transition); }
.legal-val a:hover { color: var(--gold); }

.legal-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius);
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
}
.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(10,31,68,.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--navy); }
.contact-item-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: .25rem;
}
.contact-item-value {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.contact-item-value a { color: var(--navy); transition: color var(--transition); }
.contact-item-value a:hover { color: var(--gold); }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .5rem;
}
.contact-actions .btn {
  justify-content: center;
}

.contact-legal-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  font-size: .8375rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.contact-legal-note strong { color: var(--navy); }

/* ---------- Footer ---------- */
#site-footer {
  background: #060F22;
  color: rgba(255,255,255,.65);
  padding-block: 3rem 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .nav-logo { display: inline-block; margin-bottom: 1rem; font-size: 1.5rem; }
.footer-brand p { font-size: .875rem; line-height: 1.75; max-width: 380px; }

.footer-legal-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-legal-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-legal-item {
  display: flex;
  flex-direction: column;
  font-size: .82rem;
}
.footer-legal-item .fli-key {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.footer-legal-item .fli-val {
  color: rgba(255,255,255,.72);
  font-weight: 500;
}
.footer-legal-item .fli-val a { color: var(--gold-lt); }
.footer-legal-item .fli-val a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
}

.footer-copy { color: rgba(255,255,255,.4); }
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,.75); }

/* ---------- Scroll to top ---------- */
#scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: opacity .3s, background .2s, transform .2s;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--gold); transform: translateY(-2px); }
#scroll-top svg { width: 20px; height: 20px; stroke: currentColor; }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
  section { padding-block: 64px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .trust-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { display: none; }

  .activities-grid { grid-template-columns: 1fr; }

  .legal-grid { grid-template-columns: 1fr; }
  .legal-row.full-width { grid-column: auto; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
