/* ==========================================================================
   TAGE.COM — Modern Stylesheet (2026)
   ========================================================================== */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: #1e40af;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e3a8a;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.625rem; }

p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #475569;
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 0.375rem;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-brand-text {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-links li {
  position: relative;
  margin-bottom: 0;
}

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links > li > a:hover,
.nav-links > li.active > a {
  color: #0f172a;
  background: #f1f5f9;
}

/* Dropdown menus */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  list-style: none;
}

.nav-links li:hover > .nav-dropdown,
.nav-links li:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  color: #475569;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.nav-dropdown a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: #f1f5f9;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO SECTION (Home page)
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  text-align: center;
  background: #dce6f0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/clouds/seamless_clouds.jpg') center top / cover;
  opacity: 0.8;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(255,255,255,1) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 2rem;
}

.hero-tree {
  width: 180px;
  height: auto;
  margin: 0 auto 2rem;
  opacity: 0.85;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background: #1e40af;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: #1e3a8a;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   PAGE CONTENT AREA (subpages via header/footer)
   ========================================================================== */
.page-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.breadcrumb a {
  color: #64748b;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #1e40af;
}

.breadcrumb-sep {
  color: #cbd5e1;
}

.page-layout {
  display: flex;
  gap: 3rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-main {
  flex: 1;
  min-width: 0;
}

.page-sidebar {
  width: 260px;
  flex-shrink: 0;
}

.sidebar-section {
  position: sticky;
  top: 96px;
}

.sidebar-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  color: #475569;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #f1f5f9;
  color: #0f172a;
}

/* ==========================================================================
   HOME PAGE SECTIONS (below hero)
   ========================================================================== */
.home-sections {
  background: #ffffff;
}

.home-section {
  padding: 5rem 0;
}

.home-section:nth-child(even) {
  background: #f8fafc;
}

.home-section h2 {
  margin-bottom: 1.5rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.section-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.section-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.section-card p {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.section-card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e40af;
}

/* ==========================================================================
   CLIENT LOGOS
   ========================================================================== */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 0;
}

.client-logos img {
  height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: #94a3b8;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 60px;
  width: auto;
  opacity: 0.4;
}

.footer-brand-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.contact-info dd {
  font-size: 1.0625rem;
  color: #334155;
  margin-bottom: 1.5rem;
}

.contact-info dd a {
  color: #1e40af;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.tage-form {
  max-width: 640px;
  margin-top: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background: #1e40af;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-submit:hover {
  background: #1e3a8a;
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .tage-form {
    max-width: 100%;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    padding: 1rem;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid #e2e8f0;
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 0;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links > li {
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-links > li > a {
    display: block;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #0f172a;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    background: transparent;
    display: none;
  }

  .nav-links li.dropdown-open > .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .hero-tree {
    width: 120px;
  }

  .page-layout {
    flex-direction: column;
    padding: 2rem 1.5rem 3rem;
    gap: 2rem;
  }

  .page-sidebar {
    width: 100%;
    order: -1;
  }

  .sidebar-section {
    position: static;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .sidebar-nav a {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    border-radius: 20px;
  }

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

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

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .nav-inner {
    height: 60px;
  }

  .nav-links {
    top: 60px;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
  }

  .nav-brand img {
    height: 36px;
  }

  .nav-brand-text {
    font-size: 1.125rem;
  }
}

/* --- Utility classes --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Smooth fade-in for page content --- */
.page-main {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
