/* 
   TTP Marketing Website — Global Styles
   Based on "Tactile Precision" design tokens from TTP App
*/

:root {
  /* Brand Colors */
  --brand-orange: #FF7A1A;
  --brand-orange-dark: #9C4500;
  --brand-orange-mid: #D45E00;
  --brand-orange-accessible: #D45E00; /* For better contrast on white */
  --brand-navy: #0A1F5C;
  --brand-emerald: #1A9C5A;
  --brand-emerald-bg: #E6F7EE;

  /* Surfaces */
  --bg-app: #F7F9FC;
  --surface-white: #FFFFFF;
  --surface-soft: #F2F4F7;
  --surface-recessed: #ECEEF1;

  /* Text */
  --text-primary: #191C1E;
  --text-secondary: #584236;
  --text-muted: #8A9BAB;
  --text-disabled: #B0BEC9;

  /* Shadows (Depth) */
  --shadow-raise: 6px 6px 16px #D1D9E6, -6px -6px 16px #FFFFFF;
  --shadow-raise-sm: 3px 3px 8px #D1D9E6, -3px -3px 8px #FFFFFF;
  --shadow-inset: inset 4px 4px 10px #D1D9E6, inset -4px -4px 10px #FFFFFF;
  --shadow-float: 0 20px 60px rgba(100, 120, 150, 0.18), 0 6px 20px rgba(100, 120, 150, 0.10);

  /* Border Radii */
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;

  /* Transitions */
  --transition-fast: 200ms ease-out;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--surface-white); /* White background for modern SaaS look */
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 48px 0;
  }
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-mid));
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 122, 26, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 122, 26, 0.4);
}

.btn-outline {
  border: 2px solid var(--brand-orange);
  color: var(--brand-orange);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 122, 26, 0.05);
}

/* Feature Grid */
.grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Navigation */
header {
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--surface-recessed);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 40px;
}

/* WhatsApp floating action button */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.wa-fab svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@media (max-width: 480px) {
  .wa-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .wa-fab svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .nav-cta .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}
