/* ========================================
   WriteMyTask - Complete Stylesheet
   ======================================== */

/* 1. Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111827; background: #fff; line-height: 1.6; font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* 2. CSS Variables */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --text: #111827;
  --text-medium: #374151;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg-light: #F9FAFB;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

/* 3. Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* 4. Typography */
h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-medium); }

/* 5. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: white; color: var(--primary); border-color: white; }
.btn-secondary:hover { background: #EFF6FF; border-color: #EFF6FF; }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.8); }
.btn-outline:hover { background: white; color: var(--primary); border-color: white; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* 6. Header */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 70px;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); white-space: nowrap; }
.logo:hover { color: var(--primary-dark); }
.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-links > a {
  font-size: 0.9375rem; font-weight: 500; color: var(--text-medium);
  transition: color var(--transition); white-space: nowrap;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-btn {
  background: none; border: none; cursor: pointer; font-size: 0.9375rem;
  font-weight: 500; color: var(--text-medium); display: flex; align-items: center;
  gap: 0.3rem; padding: 0; transition: color var(--transition);
}
.dropdown-btn:hover, .dropdown-btn.open { color: var(--primary); }
.dropdown-arrow { display: inline-block; transition: transform 0.2s ease; font-size: 0.75rem; }
.dropdown-btn.open .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 1rem); left: 50%;
  transform: translateX(-50%);
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 0.75rem; min-width: 600px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
  z-index: 100; opacity: 0; visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  transform: translateX(-50%) translateY(-8px);
}
.dropdown-menu.open {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  padding: 0.625rem 0.875rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-medium);
  transition: var(--transition); display: block;
}
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.nav-cta { white-space: nowrap; }

/* Mobile Menu */
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text); padding: 0.25rem; border-radius: 6px;
}
.mobile-nav {
  display: none; background: white; border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.625rem 0; font-size: 0.9375rem; font-weight: 500;
  color: var(--text-medium); border-bottom: 1px solid #F3F4F6;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-services-label {
  display: block; padding: 0.75rem 0 0.25rem; font-size: 0.75rem;
  font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.08em;
}
.mobile-service-link { padding-left: 1rem !important; font-size: 0.875rem !important; color: #6B7280 !important; }
.mobile-cta { display: block; margin-top: 1.25rem; text-align: center; }

/* 7. Hero */
.hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 40%, #2563EB 70%, #3B82F6 100%);
  color: white; padding: 5rem 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero h1 { color: white; margin-bottom: 1.25rem; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.125rem; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 40%, #2563EB 70%, #3B82F6 100%);
  color: white; padding: 4rem 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.88); font-size: 1.125rem; max-width: 640px; margin: 0 auto 2rem; }
.page-hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* 8. Sections */
.section { padding: 4.5rem 0; }
.section-muted { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p { color: var(--text-muted); font-size: 1.0625rem; max-width: 600px; margin: 0 auto; }

/* 9. Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow); border-color: #D1D5DB; }
.card-icon {
  width: 50px; height: 50px; background: var(--primary-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 0.625rem; }
.card > p { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.card-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* 10. Stats Bar */
.stats-bar { background: linear-gradient(135deg, #1E3A8A, #2563EB); color: white; padding: 3.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number { font-size: 2.75rem; font-weight: 800; display: block; margin-bottom: 0.375rem; }
.stat-label { font-size: 0.9375rem; opacity: 0.88; }

/* 11. Feature Lists (checkmarks) */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-circle {
  width: 24px; height: 24px; min-width: 24px; background: var(--primary-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.check-circle svg { width: 13px; height: 13px; stroke: var(--primary); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.feature-item p { font-size: 0.9375rem; color: var(--text-medium); line-height: 1.5; }

/* 12. Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benefit-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
}
.benefit-icon {
  width: 44px; height: 44px; background: var(--primary-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.benefit-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.benefit-card h3 { font-size: 1rem; }

/* 13. Why Choose */
.why-list { display: flex; flex-direction: column; gap: 0.875rem; }
.why-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.why-item .bullet {
  width: 20px; height: 20px; min-width: 20px; color: var(--primary); margin-top: 2px; font-size: 1.125rem; font-weight: 700;
}
.why-item p { font-size: 0.9375rem; color: var(--text-medium); }

/* 14. Related Services */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.related-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.related-card h3 { margin-bottom: 1rem; font-size: 1rem; }

/* 15. CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: white; padding: 5rem 0; text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.88); font-size: 1.0625rem; margin-bottom: 2rem; max-width: 580px; margin-left: auto; margin-right: auto; }

/* 16. About Values */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; text-align: center; }
.value-card .icon { width: 52px; height: 52px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.value-card .icon svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 1.75; }
.value-card h3 { margin-bottom: 0.625rem; }
.value-card p { font-size: 0.875rem; color: var(--text-muted); }

/* 17. Content Sections */
.content-section { max-width: 860px; margin: 0 auto; }
.content-section h2 { margin-bottom: 1.25rem; }
.content-section .prose p { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 1.25rem; }
.why-section { max-width: 860px; margin: 0 auto; }
.why-section h2 { margin-bottom: 1.5rem; }

/* 18. FAQ */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-category { margin-bottom: 3rem; }
.faq-category h2 { margin-bottom: 1.5rem; font-size: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--primary-light); }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.accordion-btn {
  width: 100%; background: white; border: none; padding: 1.125rem 1.25rem;
  text-align: left; cursor: pointer; font-size: 0.9375rem; font-weight: 600;
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; transition: background var(--transition);
}
.accordion-btn:hover { background: var(--bg-light); }
.accordion-btn.open { background: var(--primary-light); color: var(--primary); }
.chevron { width: 18px; height: 18px; min-width: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform 0.2s ease; stroke-linecap: round; stroke-linejoin: round; }
.accordion-btn.open .chevron { transform: rotate(180deg); }
.accordion-content { display: none; padding: 0 1.25rem 1.25rem; font-size: 0.9375rem; color: var(--text-medium); line-height: 1.75; }
.accordion-content.open { display: block; }

/* 19. Contact Page */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3.5rem; align-items: start; }
.form-title { margin-bottom: 0.5rem; }
.form-intro { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9375rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-medium); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.9375rem; color: var(--text); font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition); background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-group select { cursor: pointer; }
.contact-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.contact-card h3 { margin-bottom: 1.25rem; font-size: 1rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.1rem; }
.contact-info-item:last-child { margin-bottom: 0; }
.info-icon { width: 20px; height: 20px; min-width: 20px; stroke: var(--primary); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.info-label { font-size: 0.875rem; font-weight: 600; display: block; margin-bottom: 0.125rem; }
.info-value { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.quick-list { display: flex; flex-direction: column; gap: 0.625rem; }
.quick-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-medium); }
.quick-list li::before { content: "✓"; color: var(--primary); font-weight: 700; font-size: 0.875rem; }

/* 20. Footer */
footer { background: var(--bg-light); border-top: 1px solid var(--border); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand h3 { font-size: 1.375rem; color: var(--primary); margin-bottom: 0.875rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.footer-address { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; font-style: normal; margin-top: 0.875rem; }
.footer-col h4 { font-size: 0.9375rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-wa-btn {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem;
  color: var(--text-muted); cursor: pointer; background: none; border: none;
  padding: 0; font-family: inherit; transition: color var(--transition); text-align: left;
}
.footer-wa-btn:hover { color: var(--primary); }
.wa-icon { width: 20px; height: 20px; min-width: 20px; }
.footer-note { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.75rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: 0.875rem; color: var(--text-muted); }

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

/* 22. Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .dropdown-menu { min-width: 90vw; left: 0; transform: none; }
  .dropdown-menu.open { transform: none; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero, .page-hero { padding: 3rem 0; }
  .section { padding: 3rem 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hero h1, .page-hero h1 { font-size: 1.75rem; }
  .hero-btns, .page-hero-btns { flex-direction: column; }
  .benefits-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
  .stat-number { font-size: 2rem; }
}
