/* LTCPA - Lam Tin CPA Professional Styles */
/* Color Scheme: Navy Blue (#1a365d) and Gold (#d69e2e) */

:root {
  --navy-primary: #1a365d;
  --navy-dark: #0f2942;
  --navy-light: #2c5282;
  --gold-primary: #d69e2e;
  --gold-dark: #b7791f;
  --gold-light: #ecc94b;
  --white: #ffffff;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
}

/* Header & Navigation */
.header {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
  background-color: var(--navy-dark);
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--gold-primary);
}

.header-top-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
  color: var(--gray-300);
  font-size: 0.875rem;
}

.contact-info a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: var(--gold-primary);
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.language-switcher a {
  color: var(--gray-300);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.language-switcher a:hover,
.language-switcher a.active {
  background-color: var(--gold-primary);
  color: var(--navy-dark);
}

.nav-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-primary);
  font-weight: bold;
  font-size: 1.5rem;
}

.logo-text {
  color: var(--white);
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s;
  display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: var(--gold-primary);
  color: var(--navy-primary);
}

.nav-menu li {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.nav-menu li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  color: var(--gray-700);
  padding: 0.75rem 1.5rem;
  font-weight: 400;
  border-radius: 0;
}

.dropdown a:hover {
  background-color: var(--gray-100);
  color: var(--navy-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(214, 158, 46, 0.1) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--gold-primary);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray-300);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--navy-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(214, 158, 46, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy-primary);
}

.btn-outline {
  background: transparent;
  color: var(--navy-primary);
  border: 2px solid var(--navy-primary);
}

.btn-outline:hover {
  background: var(--navy-primary);
  color: var(--white);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header h1 span {
  color: var(--gold-primary);
}

.page-header p {
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  background-color: var(--gray-100);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-content {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--navy-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-dark);
}

.breadcrumb span {
  color: var(--gray-500);
  margin: 0 0.5rem;
}

.breadcrumb .current {
  color: var(--gray-600);
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  color: var(--navy-primary);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
}

.section-title.center {
  text-align: center;
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

.section-subtitle.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s;
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 1.5rem;
  font-size: 1.75rem;
  color: var(--navy-primary);
}

.card-content {
  padding: 0 2rem 2rem;
  text-align: center;
}

.card-content h3 {
  color: var(--navy-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card-content p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Feature Boxes */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-box {
  padding: 2rem;
  background: var(--gray-100);
  border-radius: 8px;
  border-left: 4px solid var(--gold-primary);
}

.feature-box h3 {
  color: var(--navy-primary);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.feature-box p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Content Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-text h2 {
  color: var(--navy-primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.content-text h2 span {
  color: var(--gold-primary);
}

.content-text p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.content-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-600);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-weight: bold;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-box {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: 8px;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  width: 50px;
  height: 50px;
  background: var(--navy-primary);
  color: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  color: var(--navy-primary);
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: var(--gray-600);
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--navy-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-primary);
}

/* Sitemap */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.sitemap-section h3 {
  color: var(--navy-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-primary);
}

.sitemap-section ul {
  list-style: none;
}

.sitemap-section li {
  margin-bottom: 0.5rem;
}

.sitemap-section a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s;
}

.sitemap-section a:hover {
  color: var(--gold-dark);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
  color: var(--white);
  padding: 4rem 2rem 1rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-section p {
  color: var(--gray-400);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--gold-primary);
  color: var(--navy-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--navy-primary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: left 0.3s;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    margin-top: 0;
  }
  
  .dropdown a {
    color: var(--white);
    padding-left: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold-primary);
}

.bg-gray {
  background-color: var(--gray-100);
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}
