/* ===================================================
   TechTone Services — Shared Design System
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --navy:       #0a1f3c;
  --navy-mid:   #0d3060;
  --blue:       #0d6efd;
  --blue-light: #4f9eff;
  --blue-pale:  #dbeafe;
  --blue-glow:  rgba(13,110,253,0.15);
  --accent:     #3b82f6;
  --sky:        #e8f2ff;
  --white:      #ffffff;
  --off-white:  #f6f9ff;
  --text:       #1a2840;
  --text-mid:   #3d5275;
  --text-light: #6b83a3;
  --border:     #d0dff4;
  --shadow-sm:  0 2px 8px rgba(10,31,60,0.08);
  --shadow-md:  0 6px 24px rgba(10,31,60,0.12);
  --shadow-lg:  0 16px 48px rgba(10,31,60,0.16);
  --radius:     14px;
  --radius-sm:  8px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* -- Typography -- */
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; }
h3 { font-size: 1.25rem; }
p  { color: var(--text-mid); }

/* -- Navbar -- */
.tt-nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.tt-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tt-logo img { height: 44px; transition: transform var(--transition); }
.tt-logo img:hover { transform: scale(1.06); }

.tt-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.tt-menu > li { position: relative; }

.tt-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.tt-menu > li > a:hover,
.tt-menu > li > a[aria-current="page"] {
  background: var(--sky);
  color: var(--blue);
}

.tt-menu > li > a svg { width: 14px; height: 14px; transition: transform var(--transition); }
.tt-menu > li:hover > a svg { transform: rotate(180deg); }

/* Dropdown */
.tt-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}

.tt-menu > li:hover .tt-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tt-dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
}

.tt-dropdown a:hover { background: var(--sky); }

.tt-dropdown a .dd-icon {
  width: 32px; height: 32px;
  background: var(--blue-glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.tt-dropdown a .dd-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Syne', sans-serif;
}

.tt-dropdown a .dd-text span {
  font-size: 0.78rem;
  color: var(--text-light);
}

.tt-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--blue);
  color: white !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

.tt-nav-cta:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13,110,253,0.4);
}

/* Mobile hamburger */
.tt-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.tt-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.tt-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.tt-hamburger.open span:nth-child(2) { opacity: 0; }
.tt-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 900px) {
  .tt-hamburger { display: flex; }

  .tt-menu {
    position: absolute;
    top: 68px; left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 5%;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s ease;
  }

  .tt-menu.open { max-height: 600px; opacity: 1; }

  .tt-menu > li { width: 100%; }
  .tt-menu > li > a { padding: 12px 0; width: 100%; }

  .tt-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--blue-pale);
    border-radius: 0;
    padding-left: 16px;
    margin-left: 8px;
    display: none;
  }

  .tt-menu > li.open .tt-dropdown { display: block; }
  .tt-nav-cta { display: none; }
}

/* -- Footer -- */
.tt-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}

.tt-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.tt-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
}

.tt-footer-brand img { height: 40px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 14px; }
.tt-footer-brand p { font-size: 0.9rem; max-width: 260px; }

.tt-footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 16px;
}

.tt-footer-col ul { list-style: none; }
.tt-footer-col ul li { margin-bottom: 10px; }
.tt-footer-col ul li a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.tt-footer-col ul li a:hover { color: var(--blue-light); }

.tt-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.tt-footer-bottom .social-links { display: flex; gap: 12px; }
.tt-footer-bottom .social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
}
.tt-footer-bottom .social-links a:hover { border-color: var(--blue-light); color: var(--blue-light); }

@media (max-width: 768px) {
  .tt-footer-grid { grid-template-columns: 1fr 1fr; }
  .tt-footer-brand { grid-column: 1 / -1; }
}

/* -- Utility -- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.5px;
}

.badge-blue   { background: var(--blue-pale); color: var(--blue); }
.badge-navy   { background: rgba(10,31,60,0.08); color: var(--navy); }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-orange { background: #fff7ed; color: #c2410c; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--blue);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(13,110,253,0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,110,253,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: white;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--sky);
  transform: translateY(-2px);
}

.section-label {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 12px;
}

/* Image placeholder cards */
.img-placeholder {
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 40%, #93c5fd 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -20px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.img-placeholder .ph-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  position: relative; z-index: 1;
}

.img-placeholder .ph-label { position: relative; z-index: 1; opacity: 0.8; }

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { text-decoration: none; color: white; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: gray; font-weight: 500; }