/* 
 * RWeave Platform - Clean CSS
 * v1.0.0
 */

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #333;
  background-color: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

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

/* Button Styles */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  min-height: 44px;
}

.btn:hover, .btn:focus {
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: #1a73e8;
  color: white;
  border: 1px solid #1a73e8;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #0d61cc;
  border-color: #0d61cc;
}

.btn-secondary {
  background-color: white;
  color: #1a73e8;
  border: 1px solid #1a73e8;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #f7faff;
}

.btn-outline {
  background-color: transparent;
  color: #1a73e8;
  border: 1px solid #e0e0e0;
}

.btn-outline:hover, .btn-outline:focus {
  background-color: #f7faff;
  border-color: #1a73e8;
}

/* Header Styles */
.site-header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.logo img {
  height: 36px;
  margin-right: 12px;
}

.logo span {
  font-size: 18px;
  font-weight: 500;
}

.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav li {
  margin-left: 24px;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover, .main-nav a:focus {
  color: #1a73e8;
}

.lang-toggle {
  font-size: 14px;
  color: #666;
}

/* Hero Section */
.hero {
  background-color: #f0f6ff;
  padding: 64px 0;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.hero p {
  font-size: 18px;
  color: #5f6368;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Features Section */
.features {
  padding: 64px 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 28px;
  color: #1a1a1a;
}

.method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.method-card {
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.method-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #1a1a1a;
}

.method-card p {
  color: #5f6368;
  margin-bottom: 24px;
  min-height: 72px;
}

/* Footer */
.site-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  padding: 24px 0;
  margin-top: 64px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright {
  color: #5f6368;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #5f6368;
  font-size: 14px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    margin-top: 12px;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-nav li {
    margin: 8px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-height: 40px;
}

.form-control:focus {
  border-color: #1a73e8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.form-text {
  color: #5f6368;
  font-size: 14px;
  margin-top: 4px;
}

.form-error {
  color: #d93025;
  font-size: 14px;
  margin-top: 4px;
}

/* Tabs */
.tabs {
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.tab-list {
  display: flex;
  list-style: none;
  padding: 0;
}

.tab-item {
  margin-right: 4px;
}

.tab-link {
  display: inline-block;
  padding: 12px 16px;
  color: #5f6368;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.tab-link.active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

.tab-link:hover, .tab-link:focus {
  color: #1a73e8;
  text-decoration: none;
}

/* Tables */
.table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.table th {
  font-weight: 500;
  background-color: #f8f9fa;
}

.table tr:hover {
  background-color: #f7faff;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #1a73e8;
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}