/* ========== Barcelona Pte. Ltd. Official Website ========== */
/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3a5c;
  --primary-light: #2c5f8a;
  --accent: #d4a843;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-medium: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --success: #2d7a4e;
  --danger: #c53030;
  --radius: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
}

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

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

ul { list-style: none; }

/* ========== Header / Navigation ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-menu a {
  color: var(--text-medium);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
}

/* ========== Main Content ========== */
.main { min-height: calc(100vh - 200px); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: #b8902f; color: #fff; }

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn--outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn--dark {
  background: var(--primary);
  color: #fff;
}
.btn--dark:hover { background: var(--primary-light); color: #fff; }

/* ========== Service Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

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

/* ========== Info Table ========== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.info-table th,
.info-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.info-table th {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 600;
  width: 200px;
}

.info-table td {
  color: var(--text-medium);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* ========== Team ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.team-card {
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.team-card h4 { color: var(--primary); margin-bottom: 4px; }
.team-card .role { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.team-card p { color: var(--text-light); font-size: 0.9rem; }

/* ========== Case Cards ========== */
.case-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.case-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.case-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.case-body { padding: 24px; }
.case-body h4 { color: var(--primary); margin-bottom: 8px; }
.case-body p { color: var(--text-medium); font-size: 0.95rem; }
.case-tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ========== Contact Form ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 { color: var(--primary); margin-bottom: 4px; }
.contact-info-item p { color: var(--text-medium); font-size: 0.95rem; }

.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-light);
}

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

/* ========== Legal Pages ========== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin: 32px 0 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--text-medium);
  margin-bottom: 10px;
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content .last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

/* ========== Pricing Table ========== */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.pricing-table tr:nth-child(even) td {
  background: var(--bg-light);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ========== CTA Section ========== */
.cta-section {
  background: var(--bg-light);
  text-align: center;
  padding: 60px 20px;
}

.cta-section h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-medium);
  margin-bottom: 24px;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 40px 20px 24px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.footer-links h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.footer-bottom .company-info {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ========== Page Banner ========== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.page-banner h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-banner p {
  opacity: 0.9;
  font-size: 1.05rem;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  background: var(--bg-light);
  padding: 12px 0;
  font-size: 0.9rem;
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  align-items: center;
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb span { color: var(--text-light); }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 0;
  }

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

  .nav-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

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

  .hero { padding: 50px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }

  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-top { flex-direction: column; gap: 24px; }
  .footer-links { gap: 32px; }

  .info-table th { width: 120px; }
  .info-table th, .info-table td { padding: 10px 12px; font-size: 0.9rem; }

  .pricing-table th, .pricing-table td { padding: 10px 12px; font-size: 0.9rem; }

  .page-banner h1 { font-size: 1.6rem; }
  .page-banner { padding: 40px 20px; }

  .legal-content { padding: 0 4px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.3rem; }
  .btn { padding: 10px 24px; font-size: 0.95rem; }
}
