/* ===================================
   TrackUA - Shared Styles
   MODERN CORPORATE COLOR THEME
   =================================== */

:root {
  /* Modern Corporate Palette */
  --primary: hsl(195, 60%, 32%);          /* Teal Blue #008B8B equivalent */
  --primary-dark: hsl(210, 55%, 25%);     /* Navy Blue #1E3A5F */
  --primary-light: hsl(195, 45%, 93%);    /* Light Cyan #E8F4F8 */
  --primary-rgb: 31,111,130;              /* RGB for rgba usage */
  
  --dark: hsl(210, 29%, 24%);             /* Charcoal #2C3E50 */
  --text: hsl(200, 25%, 35%);             /* Steel Blue Tint for text */
  --text-muted: hsl(200, 20%, 50%);       /* Steel Blue #4A90A4 muted */
  --border: hsl(195, 30%, 90%);           /* Light border with blue tint */
  --bg: hsl(0, 0%, 98%);                  /* Clean white background */
  --white: #ffffff;
  
  /* Additional accent colors from Modern Corporate palette */
  --accent-steel: hsl(200, 38%, 46%);     /* Steel Blue #4A90A4 */
  --accent-navy: hsl(210, 55%, 25%);      /* Navy Blue for accents */
  
  --success: hsl(160,29%,51%);
  --warning: hsl(0, 79%, 50%);
  
  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Shadows */
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-primary: 0 8px 24px rgba(31,111,130,0.3);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { 
  text-decoration: none; 
  color: inherit; 
}

img {
  max-width: 100%;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.logo:hover {
  opacity: 0.8;
}

.logo span {
  color: var(--dark);
}

.footer-highlight-link {
  color: hsl(195, 70%, 58%) !important;
  font-weight: 600;
}

.footer-highlight-link:hover {
  color: white !important;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--accent-steel);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 139, 139, 0.15);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 8px rgba(0, 139, 139, 0.2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* ===================================
   CONTENT LAYOUT
   =================================== */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 5%;
  padding-top: 100px;
  flex: 1;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--dark);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   CONTENT SECTIONS (Privacy/Terms)
   =================================== */
.content-section {
  margin-bottom: 2.5rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

.content-section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section ul:last-child {
  margin-bottom: 0;
}

.content-section ul li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.content-section a {
  color: var(--primary);
  font-weight: 500;
}

.content-section a:hover {
  text-decoration: underline;
  color: var(--accent-steel);
}

/* ===================================
   CONTACT PAGE SPECIFIC
   =================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary);
}

.contact-card h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card a {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.contact-card a:hover {
  text-decoration: underline;
  color: var(--accent-steel);
}

/* ===================================
   FORM STYLES
   =================================== */
.form-container {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-container h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 139, 139, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 139, 139, 0.15);
}

.form-submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 8px rgba(0, 139, 139, 0.2);
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.submit-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================
   ALERTS
   =================================== */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: none;
}

.alert.success {
  background: hsl(160, 60%, 92%);
  border: 1px solid hsl(160, 60%, 70%);
  color: hsl(160, 60%, 20%);
}

.alert.error {
  background: hsl(0, 80%, 95%);
  border: 1px solid hsl(0, 80%, 70%);
  color: hsl(0, 80%, 20%);
}

.alert.show {
  display: block;
}

/* ===================================
   FOOTER - UNIFIED DESIGN
   =================================== */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 5% 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo-img-box {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}

.footer-logo-img {
  display: block;
  width: 32px;
  height: 32px;
  margin: 2px;
}

.footer-logo {
  display: inline;
  font-size: 1.25rem;
  font-weight: 900;
  color: white;
  margin: 0;
  padding: 0;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.footer-logo span {
  color: var(--primary);
}

.footer-tagline {
  font-size: 0.85rem;
  max-width: 240px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: white;
}

/* ===================================
   RESPONSIVE
   =================================== */
/* ===================================
   HAMBURGER + MOBILE DRAWER
   =================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 1.25rem 5%;
  z-index: 999;
}
.nav-drawer.open {
  display: block;
}
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
}
.nav-drawer ul li a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-drawer ul li:last-child a { border-bottom: none; }
.nav-drawer ul li a:hover,
.nav-drawer ul li a.active { color: var(--primary); }
.drawer-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.drawer-actions .btn { flex: 1; justify-content: center; }

/* ===================================
   FOOTER LEGAL LINKS
   =================================== */
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-legal a:hover { color: white; }

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .content-section {
    padding: 1.5rem;
  }
  
  .form-container {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .submit-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-submit {
    width: 100%;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .nav-actions .btn-outline {
    display: none;
  }
}