/* ============================================================================
   QUÉBECTAX - Modern Financial Services Website
   ============================================================================ */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #ffffff;
}

/* Color Scheme */
:root {
  --primary-dark: #0f6b8e;
  --primary-light: #1e3a5f;
  --accent: #20c997;
  --accent-light: #4ecdc4;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8fafb;
  --bg-white: #ffffff;
  --border: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-primary:active {
  transform: translateY(0);
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  flex: 1;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo .tagline {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:hover {
  color: var(--accent);
  width: 100%;
}

/* Language Switcher */
.language-switcher {
  margin-left: 1rem;
}

.lang-btn {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--bg-white);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    list-style: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .language-switcher {
    margin-left: 0;
  }
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(15, 107, 142, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
}

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

.hero-content {
  padding: 2rem 0;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image svg {
  width: 100%;
  max-width: 300px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-image svg {
    max-width: 200px;
  }
}

/* ============================================================================
   SECTIONS & GENERAL STYLES
   ============================================================================ */

section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.subsection-title {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

/* ============================================================================
   WHY CHOOSE SECTION
   ============================================================================ */

.why-choose {
  background-color: var(--bg-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
  border-top: 4px solid var(--accent);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  margin-bottom: 1rem;
  display: inline-block;
}

.benefit-icon svg {
  width: 40px;
  height: 40px;
}

.benefit-title {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.benefit-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================================
   SERVICES SECTION
   ============================================================================ */

.services {
  background-color: var(--bg-white);
}

.services-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.highlight {
  background: linear-gradient(135deg, rgba(15, 107, 142, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.highlight h4 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.highlight p {
  color: var(--text-light);
  margin: 0;
}

.who-we-help {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.step {
  background-color: var(--bg-light);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.step:hover {
  background-color: #eef9f7;
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h4 {
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.process-note {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 2rem;
}

/* ============================================================================
   ABOUT SECTION
   ============================================================================ */

.about {
  background-color: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.about-text {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.about-quote {
  font-size: 1.25rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.6;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
}

.about-section-title {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
}

.values-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(15, 107, 142, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.testimonial-author {
  color: var(--primary-dark);
  font-weight: 600;
  margin: 0;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   TESTIMONIALS SECTION
   ============================================================================ */

.testimonials {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a5a7a 100%);
  padding: 5rem 0;
}

.testimonials .section-title {
  color: white;
}

.testimonial-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-box .testimonial-author {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================================
   PRICING SECTION
   ============================================================================ */

.pricing {
  background-color: var(--bg-light);
}

.pricing-table-wrapper {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  overflow: hidden;
}

.pricing-table thead {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  color: white;
}

.pricing-table th {
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
}

.pricing-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-table tbody tr:hover {
  background-color: #f0f8f7;
}

.service-name {
  font-weight: 500;
  color: var(--text-dark);
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.pricing-note {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.pricing-note h4 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.pricing-note p {
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .pricing-table {
    font-size: 0.9rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 1rem;
  }

  .price {
    font-size: 1.1rem;
  }
}

/* ============================================================================
   FAQ SECTION
   ============================================================================ */

.faq {
  background-color: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background-color: white;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: var(--bg-light);
  color: var(--accent);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  background-color: var(--bg-light);
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

@media (max-width: 768px) {
  .faq-question {
    font-size: 1rem;
    padding: 1.25rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }
}

/* ============================================================================
   CONTACT SECTION
   ============================================================================ */

.contact {
  background-color: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.info-item h4 {
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.info-item p {
  color: var(--text-dark);
  margin: 0;
  word-break: break-word;
}

.info-item a {
  color: var(--accent);
  font-weight: 600;
}

.info-item a:hover {
  color: var(--primary-dark);
}

/* Contact Form */
.contact-form {
  background-color: var(--bg-light);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}

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

.form-group button {
  width: 100%;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a5a7a 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer p {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1rem; }

  section {
    padding: 3rem 0;
  }

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

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

  .nav-link {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  section {
    padding: 2rem 0;
  }

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

  .nav-menu {
    gap: 0;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .logo .tagline {
    font-size: 0.75rem;
  }

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

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* ============================================================================
   ANIMATIONS & TRANSITIONS
   ============================================================================ */

@media (prefers-reduced-motion: no-preference) {
  * {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
