/* ============================================
   AA LEGAL Ltd - Premium Legal Website Styles
   ============================================ */

:root {
  --primary-color: #1a4d6d;
  --primary-light: #2d7a9f;
  --primary-dark: #0f2a3f;
  --secondary-color: #f5a623;
  --accent-gray: #34495e;
  --light-gray: #ecf0f1;
  --border-gray: #bdc3c7;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f9fafb;
  --success: #27ae60;
  --error: #e74c3c;
  --shadow: 0 10px 30px rgba(26, 77, 109, 0.1);
  --shadow-sm: 0 2px 8px rgba(26, 77, 109, 0.08);
  
  --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
  background: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 { font-size: 3.5rem; margin-top: 2rem; }
h2 { font-size: 2.5rem; margin-top: 1.5rem; }
h3 { font-size: 1.75rem; margin-top: 1rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

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

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-serif);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu > a {
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu > a:hover,
.nav-menu > a.active {
  color: var(--primary-color);
}

.nav-menu > a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu > a:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  min-width: 250px;
  box-shadow: var(--shadow);
  margin-top: 0.5rem;
  animation: slideDown 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu a {
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--light-gray);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-phone {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--secondary-color);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
}

.btn-phone:hover {
  background: #e69a1a;
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-ctas .btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.hero-ctas .btn-primary {
  background: #fff;
  color: var(--primary-color);
}

.hero-ctas .btn-primary:hover {
  background: var(--bg-light);
}

.hero-ctas .btn-secondary {
  border-color: #fff;
  color: #fff;
}

.hero-ctas .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-phone {
  margin-top: 1.5rem;
}

/* Sections */
.expertise, .services-hub, .team-preview, .process {
  padding: 5rem 0;
  background: #fff;
}

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

.services-hub {
  background: #fff;
}

.expertise > .container > h2,
.services-hub > .container > h2,
.team-preview > .container > h2,
.process > .container > h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.expertise-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.expertise-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.expertise-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.expertise-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.expertise-card p {
  color: var(--text-light);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  border-top: 4px solid;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  transition: left 0.3s ease;
  z-index: -1;
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  text-decoration: none;
}

.service-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.service-card-arrow {
  display: inline-block;
  color: var(--primary-color);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-arrow {
  transform: translateX(5px);
}

/* Enquiry Section */
.enquiry-section {
  background: var(--bg-light);
  padding: 5rem 0;
}

.enquiry-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.enquiry-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Form Styles */
.enquiry-form {
  position: relative;
}

.form-step {
  animation: fadeIn 0.3s ease;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 77, 109, 0.1);
}

.radio-group {
  display: flex;
  gap: 2rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  font-weight: 400;
}

.radio-group input[type="radio"] {
  cursor: pointer;
}

.form-navigation {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.form-navigation .btn {
  flex: 1;
}

.progress-bar {
  height: 4px;
  background: var(--light-gray);
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
  width: 25%;
}

.success-message {
  text-align: center;
  padding: 2rem;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 8px;
}

.success-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.success-message h3 {
  color: var(--success);
}

.success-message .reference {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-family: monospace;
}

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

.step {
  text-align: center;
  position: relative;
  padding: 2rem;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  z-index: 0;
}

.step-number {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-light);
}

/* Team Section */
.team-preview > .container > p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

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

.team-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.team-image {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.team-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team-card .role {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.team-card .credentials {
  font-size: 0.9rem;
  color: var(--text-light);
}

.team-preview > .container > a {
  display: block;
  text-align: center;
  margin-top: 2rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: #fff;
}

/* Subcategories Grid */
.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.subcategory-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}

.subcategory-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.subcategory-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.subcategory-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.arrow {
  display: inline-block;
  color: var(--primary-color);
  margin-top: 1rem;
  font-weight: bold;
}

.subcategory-card:hover .arrow {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

/* Service Detail */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin: 3rem 0;
}

.service-main {
  background: #fff;
}

.service-description h2 {
  margin-top: 0;
}

.service-description h3 {
  color: var(--primary-color);
  margin-top: 2rem;
}

.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: var(--text-light);
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.sidebar-box h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.sidebar-box p {
  margin-bottom: 0.5rem;
}

.sidebar-box p:last-child {
  margin-bottom: 0;
}

.related-services {
  list-style: none;
}

.related-services li {
  margin-bottom: 0.5rem;
}

.related-services a {
  display: block;
  padding: 0.5rem;
  color: var(--primary-color);
  transition: background 0.3s ease;
  border-radius: 4px;
}

.related-services a:hover {
  background: rgba(26, 77, 109, 0.1);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  margin: 4rem 0;
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.banner-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
  color: #fff;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-info p strong {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--light-gray);
    padding: 1rem;
    gap: 0.5rem;
  }

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

  .mobile-menu-btn {
    display: block;
  }

  .dropdown-menu {
    position: static;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border: none;
    background: var(--bg-light);
    margin-top: 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

  .hero-ctas {
    flex-direction: column;
    gap: 0.5rem;
  }

  .services-grid,
  .expertise-grid,
  .team-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    order: -1;
  }

  .form-navigation {
    flex-direction: column;
  }

  .form-navigation .btn {
    width: 100%;
  }

  .banner-ctas {
    flex-direction: column;
  }

  .banner-ctas .btn {
    width: 100%;
  }
}

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

  h1 { font-size: 1.8rem; margin-top: 1rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .expertise-icon,
  .service-card-icon,
  .team-image {
    font-size: 2rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .enquiry-form-wrapper {
    padding: 1rem;
  }

  .step-number {
    font-size: 1.5rem;
  }

  .subcategories-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .mobile-menu-btn,
  .hero-ctas,
  .cta-banner,
  .enquiry-section,
  .footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    color: var(--primary-color);
    text-decoration: underline;
  }
}
