/* ==========================================================================
   Dayonza Private Limited - Design System & Stylesheet
   Modern Corporate SaaS & IT Software Company Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-gradient: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  --accent-cyan: #06B6D4;
  --accent-teal: #10B981;
  --accent-gradient: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);

  /* Feedback Colors (form validation & submission states) */
  --success: #059669;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;
  --success-text: #065F46;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --danger-border: #FECACA;
  --danger-text: #991B1B;

  /* Neutral Dark Colors (Corporate Navy & Slate) */
  --dark-navy: #0F172A;
  --dark-surface: #1E293B;
  --dark-card: #1E293B;
  --dark-border: #334155;
  
  /* Light Neutral Colors */
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  
  /* Text Colors */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 10px 30px -5px rgba(37, 99, 235, 0.3);
  
  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout metrics — the sticky header height is shared with the mobile
     navigation panel, which is positioned directly beneath it. */
  --header-height: 80px;
}

/* --------------------------------------------------------------------------
   2. Reset & General Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Stops iOS inflating text when a phone is turned to landscape. */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Long addresses and URLs wrap instead of pushing the layout sideways. */
  overflow-wrap: break-word;
}

/* Page scroll is frozen while the mobile navigation panel is open. */
body.nav-open {
  overflow: hidden;
}

/* Anchor targets clear the sticky header when jumped to. */
[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: #FFFFFF;
}

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

.text-center {
  text-align: center;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-dark .section-badge {
  background-color: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
  border-color: rgba(96, 165, 250, 0.2);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-dark .section-title {
  color: var(--text-white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--text-light);
}

/* Gradient Text */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   4. Buttons & UI Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  opacity: 0.95;
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--text-main);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   5. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}

/* Logo Brand */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-navy);
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.2rem;
  vertical-align: middle;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* The quote button appears once: in the header bar on desktop, inside the
   slide-in panel on mobile. The other copy is hidden at each width. */
.nav-cta {
  display: none;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-navy);
  cursor: pointer;
  padding: 0.5rem;
  /* Keeps a double-tap from zooming the page instead of working the menu. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle svg {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem 0;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0) 70%), var(--bg-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--dark-navy);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Hero Graphic Visual */
.hero-visual {
  position: relative;
}

.hero-card-preview {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}

.dashboard-mockup {
  background-color: var(--dark-navy);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: var(--text-white);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dark-border);
  margin-bottom: 1rem;
}

.dashboard-dots {
  display: flex;
  gap: 6px;
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #334155;
}

.dashboard-dot.red { background-color: #EF4444; }
.dashboard-dot.yellow { background-color: #F59E0B; }
.dashboard-dot.green { background-color: #10B981; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.stat-box-title {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-box-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
}

.stat-box-badge {
  font-size: 0.75rem;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.floating-badge {
  position: absolute;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-navy);
  z-index: 3;
}

.floating-badge-1 {
  top: -20px;
  right: -20px;
}

.floating-badge-2 {
  bottom: -20px;
  left: -20px;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   7. Metrics / Trust Bar Section
   -------------------------------------------------------------------------- */
.metrics-bar {
  background-color: var(--dark-navy);
  color: var(--text-white);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-item {
  padding: 0.5rem;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. Product Cards & Solutions Grid
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.product-card:hover .card-icon {
  background: var(--primary-gradient);
  color: var(--text-white);
  transform: scale(1.05);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.75rem;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-features-list {
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.card-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.card-feature-item:last-child {
  margin-bottom: 0;
}

.card-feature-item svg {
  color: var(--accent-teal);
  flex-shrink: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: auto;
}

.card-link:hover {
  gap: 0.75rem;
  color: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   9. About / Overview Section
   -------------------------------------------------------------------------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.overview-text h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 1.25rem;
}

.overview-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.overview-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.overview-item {
  display: flex;
  gap: 1rem;
}

.overview-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overview-item-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.25rem;
}

.overview-item-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.overview-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   10. Services Section Grid
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.service-box-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-box-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.75rem;
}

.service-box-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Contact Page & Form Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: var(--dark-navy);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-xl);
}

.contact-info-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-info-desc {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.contact-details-list {
  display: grid;
  gap: 1.75rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-detail-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-detail-text p {
  color: var(--text-light);
  font-size: 0.925rem;
  line-height: 1.5;
}

.contact-form-container {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  color: var(--text-main);
  transition: var(--transition);
}

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

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

/* Honeypot: a field only a bot will fill in. It is moved off-screen rather
   than given display:none, because the better spam scripts skip hidden
   inputs. Screen readers are kept away with aria-hidden in the markup. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Invalid field, flagged by the server after submission */
.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
  border-color: var(--danger);
  background-color: var(--danger-bg);
}

.form-input.has-error:focus,
.form-select.has-error:focus,
.form-textarea.has-error:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.form-error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--danger-text);
}

/* Submit button while the request is in flight */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #FFF;
  border-radius: var(--radius-full);
  animation: btn-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Result banner shown beneath the submit button */
.form-response {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}

.form-response a {
  text-decoration: underline;
  color: inherit;
}

.form-response span {
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
}

.form-response.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.form-response.error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

@media (prefers-reduced-motion: reduce) {
  .btn-spinner {
    animation-duration: 2s;
  }
}

/* --------------------------------------------------------------------------
   12. CTA Banner Section
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--primary-gradient);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   13. Footer Section
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--dark-navy);
  color: var(--text-light);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid var(--dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: grid;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: 0.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.footer-contact-item svg {
  color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: var(--text-white);
}

/* --------------------------------------------------------------------------
   14. Page Hero (For Inner Pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--dark-navy);
  color: var(--text-white);
  padding: 5rem 0 4rem 0;
  text-align: center;
  position: relative;
}

.page-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--primary-light);
}

/* --------------------------------------------------------------------------
   15. Responsive Styles / Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .cards-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Mobile navigation ------------------------------------------------------
   The five links plus the quote button stop fitting on one row well before
   the tablet breakpoint, so the slide-in panel takes over at 991px. This
   width is mirrored by MOBILE_NAV_MAX_WIDTH in js/main.js. */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: min(88%, 360px);
    height: calc(100vh - var(--header-height));
    /* Dynamic viewport units keep the panel clear of the browser chrome on
       phones, where the address bar grows and shrinks as the page scrolls. */
    height: calc(100dvh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    /* A long menu on a short screen scrolls inside the panel. */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    visibility: hidden;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    box-shadow: var(--shadow-xl);
    border-right: 1px solid var(--border-light);
  }

  .nav-menu.active {
    left: 0;
    visibility: visible;
  }

  .nav-link {
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-light);
  }

  /* The desktop underline sits on the text baseline; on a stacked list a
     left bar reads better and does not collide with the row divider. */
  .nav-link.active::after {
    top: 0.9rem;
    bottom: 0.9rem;
    left: -1.5rem;
    width: 3px;
    height: auto;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 1.25rem;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 1.05rem;
  }

  .hero {
    padding: 3.5rem 0 3rem 0;
  }

  .hero-grid,
  .overview-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Where a page puts the illustration first in the source, the heading
     should still lead once the columns stack. */
  .overview-grid > .overview-text {
    order: 1;
  }

  .overview-grid > .overview-image-container {
    order: 2;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .metric-number {
    font-size: 2rem;
  }

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

  .hero-description {
    font-size: 1.05rem;
  }

  .page-hero {
    padding: 3.5rem 0 3rem 0;
  }

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

  .page-hero-subtitle {
    font-size: 1.05rem;
  }

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

  /* Anything below 16px makes iOS Safari zoom in when a field takes focus,
     leaving the visitor on a page they then have to pinch back out of. */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }

  .contact-info-card,
  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  .cta-banner {
    padding: 3rem 2rem;
  }

  .cta-banner-title {
    font-size: 1.9rem;
  }

  .cta-banner-desc {
    font-size: 1rem;
  }

  .floating-badge {
    display: none;
  }

  .footer {
    padding: 3.5rem 0 2rem 0;
  }

  .footer-grid {
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .footer-brand p {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   16. Legal Pages (Privacy Policy & Terms of Service)
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 0.6rem;
}

.legal-toc li {
  counter-increment: toc;
  font-size: 0.875rem;
  line-height: 1.4;
}

.legal-toc li::before {
  content: counter(toc) ".";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.4rem;
}

.legal-toc a {
  color: var(--text-muted);
}

.legal-toc a:hover {
  color: var(--primary);
}

.legal-content {
  max-width: 820px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-meta strong {
  color: var(--dark-navy);
}

.legal-content section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 100px;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin: 1.5rem 0 0.6rem 0;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.legal-content ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.25rem 0;
}

.legal-content ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.legal-content a {
  color: var(--primary);
  font-weight: 600;
}

.legal-content a:hover {
  color: var(--primary-hover);
}

.legal-content strong {
  color: var(--dark-navy);
}

.legal-callout {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 68px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  /* Four metrics stay two-up: a single column turns the bar into a tower. */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

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

  .hero-features-list {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    gap: 0.75rem;
  }

  /* Full-width buttons give a comfortable target and avoid an awkward
     half-empty second row when the labels wrap. */
  .hero-btns .btn,
  .cta-banner .btn {
    width: 100%;
  }

  .btn-lg {
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
  }

  .section-title,
  .contact-info-title,
  .overview-text h3 {
    font-size: 1.6rem;
  }

  .page-hero-title {
    font-size: 1.75rem;
  }

  .product-card,
  .service-box {
    padding: 1.5rem;
  }

  .hero-card-preview {
    padding: 1.25rem;
  }

  .dashboard-mockup,
  .overview-image-container {
    padding: 1.15rem;
  }

  .contact-info-card,
  .contact-form-container {
    padding: 1.75rem 1.25rem;
  }

  .contact-detail-item {
    gap: 1rem;
  }

  .legal-meta {
    padding: 1rem 1.15rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-banner {
    padding: 2.5rem 1.25rem;
  }

  .cta-banner-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 380px) {
  .brand-tag {
    display: none;
  }

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

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

  .metric-number {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   17. Touch Devices
   On a touchscreen there is no pointer to move away, so a :hover lift stays
   stuck on the last card tapped. Neutralise the movement, keep the colour.
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-outline-white:hover,
  .product-card:hover,
  .service-box:hover {
    transform: none;
  }

  .product-card:hover .card-icon {
    transform: none;
  }

  .card-link:hover {
    gap: 0.5rem;
  }

  .footer-links a:hover {
    padding-left: 0;
  }
}
