/* ============================================
   TICC - Brand Guide Design System
   TICC
   ============================================ */

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

:root {
  /* TICC Brand Guide Color Palette */
  --black: #111111;
  --dark-gray: #374151;
  --mid-gray: #6B7280;
  --light-gray: #6B7280;
  --lighter-gray: #D1D5DB;
  --bg-gray: #F9FAFB;
  --white: #FFFFFF;
  --blue: #2563EB;
  --blue-hover: #1d4ed8;
  --blue-dark: #1A3A5C;
  --green: #30d158;
  --gold: #c4972a;

  /* Grey scale */
  --grey-50: #F9FAFB;
  --grey-100: #F3F4F6;
  --grey-200: #E5E7EB;
  --grey-300: #D1D5DB;
  --grey-500: #6B7280;
  --grey-700: #374151;
  --grey-900: #111827;

  /* Typography */
  --font-display: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 100px;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --nav-height: 52px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--blue-hover);
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography (TICC Brand) --- */
.headline-large {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
}

.headline-medium {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--black);
}

.headline-small {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
}

.subheadline {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--mid-gray);
}

.body-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark-gray);
}

.body-large {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--dark-gray);
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-gray { color: var(--mid-gray); }

/* --- Top Header Bar --- */
.top-bar {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  height: 36px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}
.top-bar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.top-bar a {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.top-bar a:hover { color: var(--blue); }
.top-bar svg { flex-shrink: 0; }

/* --- Navigation (TICC frosted glass) --- */
.nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 3px;
  text-transform: lowercase;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark-gray);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

.nav-contact {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s ease;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 32px 24px;
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile a {
  font-size: 28px;
  font-weight: 600;
  color: var(--black);
  padding: 16px 0;
  border-bottom: 0.5px solid var(--lighter-gray);
  display: block;
}

/* --- Hero Section --- */
.hero {
  padding: 196px 0 100px;
  text-align: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-dark {
  background: var(--black);
  color: var(--white);
}

.hero-dark .headline-large,
.hero-dark .headline-medium {
  color: var(--white);
}

.hero-dark .subheadline {
  color: var(--lighter-gray);
}

.hero .label {
  margin-bottom: 16px;
}

.hero .headline-large {
  margin-bottom: 20px;
}

.hero .subheadline {
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- Buttons (TICC Brand) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: none;
  padding: 12px 0;
}

.btn-secondary:hover {
  color: var(--blue-hover);
}

.btn-secondary::after {
  content: ' >';
  transition: transform 0.3s ease;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-group {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: var(--section-padding);
}

.section-gray {
  background: var(--bg-gray);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-dark .headline-medium,
.section-dark .headline-small {
  color: var(--white);
}

.section-dark .subheadline,
.section-dark .body-text {
  color: var(--lighter-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .label {
  margin-bottom: 12px;
}

.section-header .headline-medium {
  margin-bottom: 16px;
}

.section-header .subheadline {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Cards Grid (TICC Brand) --- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card-dark {
  background: #111111;
  color: var(--white);
}

.card-gray {
  background: var(--bg-gray);
}

.card-content {
  padding: 40px 36px;
}

.card-content .label {
  margin-bottom: 8px;
}

.card-content .headline-small {
  margin-bottom: 12px;
  font-size: 28px;
}

.card-content .body-text {
  margin-bottom: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-full {
  grid-column: span 2;
}

/* --- Stats Section (TICC Brand) --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  padding: 80px 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--mid-gray);
}

/* --- Feature Section (side-by-side) --- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
}

.feature-reverse {
  direction: rtl;
}

.feature-reverse > * {
  direction: ltr;
}

.feature-text .label {
  margin-bottom: 12px;
}

.feature-text .headline-small {
  margin-bottom: 20px;
}

.feature-text .body-text {
  margin-bottom: 32px;
}

.feature-visual {
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-gray);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Client Logos --- */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 0;
}

.client-logo {
  opacity: 0.5;
  transition: opacity 0.3s ease;
  height: 40px;
  filter: grayscale(100%);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  color: var(--white);
}

.cta-banner .headline-medium {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner .subheadline {
  color: var(--lighter-gray);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 17px;
  color: var(--black);
  background: var(--bg-gray);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- Footer (TICC Brand) --- */
.footer {
  background: var(--bg-gray);
  padding: 48px 0 24px;
  border-top: 0.5px solid var(--lighter-gray);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  color: var(--light-gray);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--light-gray);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--black);
}

.footer-bottom {
  border-top: 0.5px solid var(--lighter-gray);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--light-gray);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-size: 13px;
  color: var(--light-gray);
}

.footer-social a:hover {
  color: var(--black);
}

/* --- Page Banner --- */
.page-banner {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--bg-gray);
}

.page-banner .label {
  margin-bottom: 12px;
}

.page-banner .headline-medium {
  margin-bottom: 16px;
}

.page-banner .subheadline {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 0.5px;
  background: var(--lighter-gray);
  margin: 0;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature { gap: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
    --nav-height: 48px;
  }

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

  .top-bar { display: none; }
  .nav { top: 0; }
  .hero { padding: 120px 0 60px; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .card-full { grid-column: span 1; }

  .feature {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .feature-reverse { direction: ltr; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 48px 0; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .cta-banner { padding: 60px 32px; border-radius: 20px; }

  .btn-group { flex-direction: column; }

  .page-banner { padding: 100px 0 40px; }
}

@media (max-width: 480px) {
  :root { --section-padding: 64px 0; }

  .container { padding: 0 20px; }

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

  .card-content { padding: 28px 24px; }
}


/* --- Nav Logo SVG --- */
.nav-logo svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-logo .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3px;
}

/* --- Additional TICC Brand Styles --- */
.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--grey-900);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: none;
  padding: 12px 0;
}

.btn-ghost:hover {
  color: var(--blue-hover);
}

/* Clients Grid */
@media (max-width: 768px) {
  .clients-grid {
    gap: 32px 40px !important;
    padding: 24px 0 !important;
  }
  .clients-grid .client-logo svg {
    max-width: 100px;
    height: auto;
  }
}

/* --- Accessibility: Skip Link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
  outline: none;
}

/* --- Accessibility: Focus Styles --- */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* --- Client Logo Hover (replaces inline JS) --- */
.client-logo {
  opacity: 0.75;
  transition: opacity 0.3s ease, filter 0.3s ease;
  filter: grayscale(30%);
}
.client-logo:hover {
  opacity: 1 !important;
  filter: grayscale(0%) !important;
}
