/* ---------------------------------------------------
   RTO Consultant Website Stylesheet (mobile-first)
   - Modern reset + border-box sizing
   - Fluid type with clamp()
   - Off-canvas mobile navigation
   - Reduced motion support
---------------------------------------------------- */

/* 1) Reset and base sizing */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
:root {
  --primary-color:#d84534;
  --secondary-color:#f5a133;
  --gradient-primary: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  --success-color:#10b981; --warning-color:#f59e0b; --danger-color:#ef4444;
  --light-color:#f8f9fa; --dark-color:#1e293b; --text-color:#475569;
  --font-family:'Poppins',sans-serif;

  /* layout tokens */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 3vw, 2.5rem);
  --radius-md: 10px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
}

/* 2) Global */
body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fluid headings */
h1 { color: var(--dark-color); font-weight: 700; line-height: 1.2;
     font-size: clamp(24px, 6vw, 40px); }
h2 { color: var(--dark-color); font-weight: 600; line-height: 1.25;
     font-size: clamp(20px, 4.5vw, 32px); }
h3, h4, h5, h6 { color: var(--dark-color); font-weight: 600; }

/* Links & buttons */
a { color: var(--primary-color); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--secondary-color); }

.btn {
  display: inline-block; padding: .75rem 1.25rem; border-radius: 8px;
  font-weight: 600; border: none; cursor: pointer; transition: all .3s ease;
}
.btn-primary { background: var(--gradient-primary); color: #fff; }
.btn-primary:hover { background: linear-gradient(90deg, var(--secondary-color), var(--primary-color)); color: #fff; }
.btn-secondary { background:#fff; color:var(--primary-color); border:2px solid var(--primary-color); }
.btn-secondary:hover { background:var(--primary-color); color:#fff; }

/* Layout container */
.container { width: min(92%, var(--container-max)); margin-inline: auto; padding-block: var(--container-pad); }

/* 3) Header & Navigation */
.main-header { position: sticky; top: 0; width: 100%; background: #fff; z-index: 800; box-shadow: var(--shadow-sm); }
.header-container { display: flex; justify-content: space-between; align-items: center;
  width: min(92%, var(--container-max)); margin-inline: auto; padding-block: .75rem; }
.logo img { height: auto; max-height: clamp(40px, 4vw, 40px); }

/* Desktop nav */
.main-nav { display: flex; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 35px; }
.nav-link { color: var(--dark-color); font-weight: 500; font-size: 16px; transition: color .3s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.header-actions { display: flex; align-items: center; gap: 5px; }

/* Hamburger button */
.hamburger { display: none; cursor: pointer; border: none; background: none; padding: 8px; }
.hamburger-bar { display: block; width: 26px; height: 3px; background: var(--dark-color); border-radius: 3px; }
.hamburger-bar + .hamburger-bar { margin-top: 5px; }

/* 4) Hero / Utilities */
.hero { padding-block: clamp(2rem, 6vw, 5rem); background: var(--gradient-primary); color: #fff; }
.hero .hero-title { font-size: clamp(28px, 7vw, 52px); line-height: 1.15; margin: 0 0 .75rem; }
.hero .hero-subtitle { font-size: clamp(16px, 3.8vw, 20px); margin: 0 0 1.25rem; opacity: .95; }
.text-center { text-align: center; }
.card {
  background: #fff; border: 1px solid #eee; border-radius: var(--radius-md);
  padding: 1rem; box-shadow: var(--shadow-sm);
}

/* Feature icons (circular) */
.feature-card .feature-icon {
  width: 100px; height: 100px; margin: 0 auto 1.5rem; border-radius: 50%;
  background-color: #f0f4f8; padding: 0; box-sizing: border-box; object-fit: contain;
}

/* 5) Footer */
.main-footer { background: var(--dark-color); color: var(--light-color); padding: 3rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h4 { color: #fff; margin-bottom: 1rem; }
.footer-section p, .footer-section a { color: #ccc; margin-bottom: .5rem; }
.footer-section a:hover { color: #fff; }
.footer-socials a { margin-right: 1rem; font-size: 1.5rem; }
.footer-bottom { text-align: center; padding-top: 1rem; border-top: 1px solid #475569; font-size: .9rem; }

.legal-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        
        .legal-header {
            background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
            color: white;
            padding: 60px 30px;
            text-align: center;
            border-radius: 15px;
            margin-bottom: 40px;
            box-shadow: 0 10px 30px rgba(67, 160, 71, 0.3);
        }
        
        .legal-header h1 {
            margin: 0;
            font-size: 42px;
            font-weight: 700;
        }
        
        .legal-header p {
            margin: 15px 0 0 0;
            font-size: 18px;
            opacity: 0.95;
        }
        
        .legal-content {
            background: white;
            padding: 50px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 30px;
        }
        
        .legal-content h2 {
            color: #43a047;
            font-size: 28px;
            margin: 40px 0 20px 0;
            padding-bottom: 10px;
            border-bottom: 3px solid #f0f0f0;
        }
        
        .legal-content h2:first-child {
            margin-top: 0;
        }
        
        .legal-content p {
            margin: 15px 0;
            line-height: 1.8;
        }
        
        .legal-content ul, .legal-content ol {
            margin: 15px 0;
            padding-left: 30px;
        }
        
        .legal-content li {
            margin: 10px 0;
        }
        
/* 6) Responsive navigation (off-canvas) */
@media (max-width: 992px) {
  .hamburger { display: flex !important; flex-direction: column; gap: 5px; z-index: 1002; }

  /* slide-in panel */
  .main-nav {
    position: fixed !important;
    inset: 80px 0 0 0 !important; /* below header */
    width: 100% !important; height: calc(100vh - 80px) !important;
    background: #ffffff !important; transform: translateX(-100%) !important;
    transition: transform .3s ease !important; z-index: 1001 !important;
    overflow-y: auto !important; visibility: hidden; opacity: 0;
  }
  .main-nav.mobile-open { transform: translateX(0) !important; visibility: visible !important; opacity: 1 !important; }

  .nav-menu { flex-direction: column !important; align-items: flex-start; padding: 16px 0 !important; gap: 0 !important; }
  .nav-link { display: block !important; width: 100%; padding: 16px 24px !important; color: #1e293b !important; }
  .header-actions .btn { display: none; }

  /* lock scroll when menu open */
  body.nav-open { overflow: hidden; }
}

/* 7) Smaller phones */
@media (max-width: 600px) {
  .container { width: min(94%, var(--container-max)); }
  .nav-link { padding: 14px 20px !important; }
}

/* 8) Motion preferences: reduce animations/transitions for sensitive users */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
