/**
 * Modern, minimal styles for Eagle Info Services website
 * Clean design with excellent spacing and typography
 */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Modern color palette */
  --primary: #0F4C81;
  --primary-dark: #0A3760;
  --accent: #2563eb;
  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-muted: #737373;
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --border: #e5e5e5;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Header */
header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 36px;
  width: 36px;
  display: block;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

nav a:hover {
  color: var(--text-primary);
}

/* Region chooser page */
.region-chooser {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 2rem 1rem;
}

.chooser-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--border);
}

.chooser-logo {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
}

.chooser-logo img {
  width: 80px;
  height: 80px;
  display: block;
}

.chooser-card h1 {
  font-size: 1.875rem;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.chooser-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--primary);
  color: white;
  width: 100%;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

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

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
}

.chooser-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Hero section */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: 0 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
  padding: 0 1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  width: auto;
  min-width: 160px;
}

/* Trust strip */
.trust-strip {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.trust-item {
  text-align: center;
  padding: 0 1rem;
}

.trust-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trust-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Services section */
.services {
  padding: 7rem 0;
  background: var(--bg-secondary);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-card {
  background: var(--bg-primary);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Legal entity section */
.legal-section {
  padding: 7rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.875rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-info {
  margin-bottom: 2rem;
}

.legal-info p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-info strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-info a {
  color: var(--primary);
  text-decoration: none;
}

.legal-info a:hover {
  text-decoration: underline;
}

.disclaimer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.disclaimer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.disclaimer a:hover {
  text-decoration: underline;
}

/* Testimonials page */
.testimonials-page {
  padding: 4rem 0;
  min-height: 100vh;
  background: var(--bg-secondary);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.testimonials-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.testimonials-header p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

.testimonial-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.testimonial-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.testimonial-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.testimonial-company {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

.testimonial-link {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.testimonial-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Abroad banner */
#abroad-banner {
  background: #fef9c3;
  border-bottom: 1px solid #fde047;
  padding: 0.875rem 0;
}

.banner-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
}

.banner-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--primary);
}

.banner-link:hover {
  border-bottom: 2px solid var(--primary);
}

.banner-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 0.5rem;
  line-height: 1;
  transition: color 0.2s;
}

.banner-close:hover {
  color: var(--text-primary);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* 404 Page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 2rem 1rem;
}

.error-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--border);
}

.error-card h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.error-card p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .header-content {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .header-content {
    padding: 0 1.5rem;
  }
  
  .hero {
    padding: 5rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    padding: 0;
  }
  
  .hero p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    padding: 0;
  }
  
  .chooser-card {
    padding: 2.5rem 2rem;
  }
  
  .chooser-card h1 {
    font-size: 1.5rem;
  }
  
  .chooser-logo img {
    width: 64px;
    height: 64px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-strip {
    padding: 4rem 0;
  }
  
  .trust-items {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1rem;
  }
  
  .services {
    padding: 5rem 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .section-title {
    padding: 0 1rem;
  }
  
  .legal-section {
    padding: 5rem 0;
  }
  
  .legal-content {
    padding: 2.5rem 2rem;
    margin: 0 1.5rem;
  }
  
  .header-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .logo img {
    height: 32px;
    width: 32px;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  nav {
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
  }
  
  nav a {
    font-size: 0.875rem;
    padding: 0.5rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .service-card {
    padding: 2.5rem 2rem;
  }
  
  .banner-content {
    padding: 0 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .testimonials-page {
    padding: 3rem 0;
  }
  
  .testimonials-header {
    margin-bottom: 3rem;
    padding: 0 1rem;
  }
  
  .testimonials-header h1 {
    font-size: 2rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .testimonial-info {
    padding: 1.5rem;
  }
  
  .testimonial-name {
    font-size: 1.0625rem;
  }
  
  .testimonial-company {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .header-content {
    padding: 0 1.25rem;
  }
  
  .hero {
    padding: 4rem 0 3rem;
  }
  
  .hero h1 {
    font-size: 1.875rem;
    margin-bottom: 1.25rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  .chooser-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 3rem;
  }
  
  .trust-strip {
    padding: 3.5rem 0;
  }
  
  .trust-items {
    gap: 2rem;
    padding: 0 0.5rem;
  }
  
  .services {
    padding: 4rem 0;
  }
  
  .services-grid {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .legal-section {
    padding: 4rem 0;
  }
  
  .legal-content {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .testimonials-page {
    padding: 2.5rem 0;
  }
  
  .testimonials-header {
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }
  
  .testimonials-header h1 {
    font-size: 1.75rem;
  }
  
  .testimonials-grid {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .testimonial-info {
    padding: 1.25rem;
  }
  
  /* Ensure touch targets are at least 44x44px */
  .btn {
    min-height: 44px;
  }
  
  nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
