/* ============================================
   CERTAINLY ASSURED — Modern Warm Minimalist Design
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Warm Minimalist Palette (Light Theme) */
  --bg-main: #FAF7F2;          /* Warm Cream */
  --bg-surface: #F0EBE3;       /* Warm Sand */
  --bg-surface-alt: #ffffff;   /* Pure White for stark contrast */
  --bg-dark: #1A1A2E;          /* Rich Navy/Charcoal */
  
  --text-main: #1A1A2E;        /* Deep Charcoal */
  --text-body: #4A4A5A;        /* Warm Gray */
  --text-muted: #8A8A9A;       /* Soft Gray */
  --text-light: #ffffff;
  --text-light-muted: rgba(255, 255, 255, 0.7);
  
  --accent-main: #C85A3A;      /* Terracotta */
  --accent-hover: #A84828;     /* Deep Terracotta */
  --accent-soft: rgba(200, 90, 58, 0.08);
  
  --border-light: rgba(26, 26, 46, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  
  --shadow-sm: 0 4px 12px rgba(26, 26, 46, 0.04);
  --shadow-md: 0 12px 24px rgba(26, 26, 46, 0.06);
  --shadow-lg: 0 24px 48px rgba(26, 26, 46, 0.08);
  
  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-2xl: 8rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Warm Dark Palette */
  --bg-main: #121212;          /* Very Dark Gray */
  --bg-surface: #1E1E1E;       /* Dark Gray Surface */
  --bg-surface-alt: #2C2C2C;   /* Lighter Dark Gray */
  --bg-dark: #0A0A0A;          /* Almost Black for contrast */
  
  --text-main: #F0F0F0;        /* Off-White */
  --text-body: #B0B0B0;        /* Light Gray */
  --text-muted: #808080;       /* Medium Gray */
  --text-light: #ffffff;
  --text-light-muted: rgba(255, 255, 255, 0.7);
  
  /* Accent stays same for consistency, soft accent adjusted */
  --accent-soft: rgba(200, 90, 58, 0.15);
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.5);
}

/* --- Resets & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background-color: var(--bg-main); color: var(--text-body); line-height: 1.7; overflow-x: hidden; transition: background-color var(--transition-base), color var(--transition-base); }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md); }
.text-center { text-align: center; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-main); font-weight: 700; line-height: 1.2; }
.section-label { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-main); margin-bottom: var(--spacing-sm); display: inline-block; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: var(--spacing-sm); letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.1rem; color: var(--text-body); max-width: 600px; margin: 0 auto var(--spacing-lg); line-height: 1.6; }
.lead-text { font-size: 1.25rem; font-weight: 500; color: var(--text-main); line-height: 1.6; margin-bottom: var(--spacing-sm); }
.text-accent { color: var(--accent-main); }
.text-light { color: var(--text-light); }
.text-light-muted { color: var(--text-light-muted); }

/* --- Animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 2rem; font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
  color: #fff; background: var(--accent-main); border: none; border-radius: 8px;
  cursor: pointer; transition: all var(--transition-base); text-align: center;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 2rem; font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
  color: var(--text-main); background: transparent; border: 1px solid var(--border-light); border-radius: 8px;
  cursor: pointer; transition: all var(--transition-base); text-align: center;
}
.btn-outline:hover { border-color: var(--text-main); background: var(--bg-surface); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

/* --- Navigation --- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-height); display: flex; align-items: center; transition: all var(--transition-base); }
.navbar.scrolled { background: var(--bg-main); opacity: 0.95; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border-light); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; display: flex; align-items: center; }
.nav-logo .logo-accent { color: var(--accent-main); font-weight: 600; margin-left: 2px; }
.logo-img { height: 50px; width: auto; border-radius: 8px; }
.logo-img-footer { height: 48px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; color: var(--text-body); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-main); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle { background: transparent; border: 1px solid var(--border-light); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-main); transition: var(--transition-fast); }
.theme-toggle:hover { background: var(--bg-surface); color: var(--accent-main); }
.theme-toggle svg { width: 18px; height: 18px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-main); transition: var(--transition-base); }

/* --- Hero Section --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-height); overflow: hidden; }
.hero-pattern { position: absolute; top: 0; right: 0; width: 50vw; height: 100%; background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 70%); opacity: 0.8; z-index: -1; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); align-items: center; }
.hero-content { max-width: 600px; }
.hero-badge { display: inline-block; padding: 0.4rem 1rem; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: var(--text-body); margin-bottom: var(--spacing-md); }
.hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: var(--spacing-md); letter-spacing: -0.03em; }
.hero-tagline { font-size: clamp(1.1rem, 2vw, 1.25rem); margin-bottom: var(--spacing-lg); color: var(--text-body); }
.hero-cta-group { display: flex; gap: 1rem; margin-bottom: var(--spacing-lg); flex-wrap: wrap; }
.hero-trust-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; border-top: 1px solid var(--border-light); padding-top: var(--spacing-sm); }
.trust-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.trust-badge svg { width: 16px; height: 16px; color: var(--accent-main); }
.hero-visual { position: relative; width: 100%; height: 600px; display: flex; justify-content: center; align-items: center; }
.abstract-shape { width: 400px; height: 400px; background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-main) 100%); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; box-shadow: var(--shadow-lg); animation: morph 15s ease-in-out infinite alternate; position: relative; border: 1px solid var(--border-light); }
.abstract-shape::after { content: ''; position: absolute; inset: 20px; border-radius: 50% 40% 30% 60% / 60% 30% 70% 40%; border: 1px dashed var(--accent-main); opacity: 0.2; animation: morph 20s ease-in-out infinite alternate-reverse; }
@keyframes morph { 0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg); } 100% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: rotate(10deg); } }

/* --- Logo Bar --- */
.logo-bar { padding: var(--spacing-md) 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: var(--bg-surface); text-align: center; }
.logo-bar-title { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--spacing-sm); }
.logo-grid { display: flex; justify-content: center; align-items: center; gap: var(--spacing-lg); flex-wrap: wrap; opacity: 0.6; grayscale: 100%; }
.tool-logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--text-main); }
.tool-logo svg { width: 24px; height: 24px; color: var(--accent-main); }

/* --- About Section --- */
.about { padding: var(--spacing-2xl) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); align-items: center; }
.about-content p { margin-bottom: 1.25rem; }
.about-tags { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: var(--spacing-md); }
.tag { padding: 0.4rem 1rem; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 20px; font-size: 0.85rem; font-weight: 500; color: var(--text-main); }
.about-image-wrapper { position: relative; }
.about-image-placeholder { width: 100%; aspect-ratio: 4/3; background: var(--bg-surface); border-radius: 24px; position: relative; overflow: hidden; border: 1px solid var(--border-light); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; }
.blob-accent { position: absolute; top: -20%; right: -20%; width: 60%; height: 60%; background: var(--accent-soft); border-radius: 50%; filter: blur(40px); }
.stats-card-overlay { position: absolute; bottom: 30px; left: 20px; background: var(--bg-surface-alt); padding: 1.5rem; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); z-index: 2; }
.stat-num { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; color: var(--accent-main); line-height: 1; display: inline-block; }
.stat-symbol { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent-main); vertical-align: top; }
.stat-text { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }

/* --- Services Section --- */
.services { padding: var(--spacing-xl) 0 var(--spacing-2xl); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.service-card { background: var(--bg-surface); padding: var(--spacing-lg); border-radius: 20px; border: 1px solid var(--border-light); transition: var(--transition-base); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); background: var(--bg-surface-alt); border-color: transparent; }
.service-icon-wrapper { width: 64px; height: 64px; background: var(--bg-main); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: var(--spacing-md); transition: var(--transition-base); }
.service-card:hover .service-icon-wrapper { background: var(--accent-soft); }
.service-icon-wrapper svg { width: 32px; height: 32px; color: var(--accent-main); }
.service-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-desc { color: var(--text-body); margin-bottom: 1.5rem; }
.service-features { border-top: 1px solid var(--border-light); padding-top: 1rem; }
.service-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-main); margin-bottom: 0.5rem; font-weight: 500; }
.service-features li::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-main); }

/* --- Additional Services Chips --- */
.additional-services { margin-top: var(--spacing-xl); text-align: center; }
.additional-services-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1rem; }
.additional-services-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.add-service-chip { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; background: var(--bg-surface-alt); border: 1px solid var(--border-light); border-radius: 50px; font-size: 0.875rem; font-weight: 600; color: var(--text-main); transition: all var(--transition-fast); cursor: default; }
.add-service-chip svg { width: 15px; height: 15px; stroke: var(--accent-main); flex-shrink: 0; }
.add-service-chip:hover { border-color: var(--accent-main); color: var(--accent-main); background: var(--accent-soft); transform: translateY(-2px); }

/* --- Why Us Section (Dark) --- */
.dark-section { background-color: var(--bg-dark); color: var(--text-light-muted); padding: var(--spacing-2xl) 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-lg); margin-top: var(--spacing-xl); }
.why-item { position: relative; padding-top: var(--spacing-md); border-top: 1px solid var(--border-dark); }
.why-num { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--accent-main); opacity: 0.5; position: absolute; top: -1.5rem; right: 0; line-height: 1; }
.why-title { font-size: 1.25rem; color: var(--text-light); margin-bottom: 0.75rem; }
.why-desc { font-size: 0.95rem; line-height: 1.6; }

/* --- Process Section --- */
.process { padding: var(--spacing-2xl) 0; background: var(--bg-surface); }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); position: relative; margin-top: var(--spacing-lg); }
.step-line { position: absolute; top: 32px; left: 16%; right: 16%; height: 2px; background: var(--border-light); z-index: 1; }
.step { text-align: center; position: relative; z-index: 2; }
.step-circle { width: 64px; height: 64px; background: var(--bg-surface-alt); border: 2px solid var(--accent-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--accent-main); margin: 0 auto var(--spacing-md); box-shadow: var(--shadow-sm); transition: var(--transition-base); }
.step:hover .step-circle { background: var(--accent-main); color: #fff; transform: scale(1.1); }
.step-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.95rem; color: var(--text-body); max-width: 280px; margin: 0 auto; }

/* --- Contact Section --- */
.contact { padding: var(--spacing-2xl) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); align-items: center; }
.contact-desc { margin-bottom: var(--spacing-lg); font-size: 1.05rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-method { display: flex; align-items: flex-start; gap: 1rem; }
.method-icon { width: 48px; height: 48px; background: var(--bg-surface); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent-main); }
.method-icon svg { width: 20px; height: 20px; }
.method-details span { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.method-details a, .method-details p { font-size: 1.1rem; font-weight: 600; color: var(--text-main); }
.method-details a:hover { color: var(--accent-main); }

.contact-form-card { background: var(--bg-surface-alt); padding: var(--spacing-lg); border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem 1rem; font-family: var(--font-body); font-size: 0.95rem; color: var(--text-main); background: var(--bg-main); border: 1px solid var(--border-light); border-radius: 8px; outline: none; transition: var(--transition-fast); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-main); background: var(--bg-surface-alt); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; padding: 1rem; font-size: 1rem; margin-top: 0.5rem; }

.form-success { text-align: center; padding: 2rem 0; }
.success-icon { width: 64px; height: 64px; background: rgba(76, 175, 80, 0.1); color: #4CAF50; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.success-icon svg { width: 32px; height: 32px; }

/* --- Footer --- */
.footer { background: var(--bg-dark); color: var(--text-light-muted); padding: var(--spacing-xl) 0 var(--spacing-md); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--spacing-xl); margin-bottom: var(--spacing-lg); }
.footer-brand .nav-logo { color: var(--text-light); margin-bottom: 1rem; display: block; }
.footer-desc { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; max-width: 320px; }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-light); transition: var(--transition-fast); }
.social-links a:hover { background: var(--accent-main); transform: translateY(-3px); }
.social-links svg { width: 18px; height: 18px; }
.footer-links h4 { color: var(--text-light); font-size: 1.1rem; margin-bottom: 1.25rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.95rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--accent-main); padding-left: 5px; }
.footer-bottom { padding-top: var(--spacing-md); border-top: 1px solid var(--border-dark); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.legal-links { display: flex; gap: 1.5rem; }
.legal-links a:hover { color: var(--text-light); }

/* --- Scroll To Top --- */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; background: var(--bg-dark); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition-base); z-index: 900; box-shadow: var(--shadow-md); }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-main); transform: translateY(-5px); }
.scroll-top svg { width: 24px; height: 24px; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-cta-group, .hero-trust-badges { justify-content: center; }
  .hero-visual { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--spacing-lg); }
  .stats-card-overlay { left: 50%; transform: translateX(-50%); bottom: -20px; }
}

@media (max-width: 768px) {
  :root { --spacing-2xl: 5rem; --spacing-xl: 4rem; --nav-height: 70px; }
  .nav-links, .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg-main); padding: var(--spacing-md); box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border-light); }
  .nav-links.open a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--border-light); }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: var(--spacing-lg); }
  .step-line { width: 2px; height: 100%; top: 0; left: 32px; right: auto; }
  .step { display: flex; text-align: left; align-items: flex-start; gap: 1rem; }
  .step-circle { margin: 0; flex-shrink: 0; width: 48px; height: 48px; font-size: 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--spacing-md); }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
