/* PHILBI LLC - Professional Translation Services */
/* Base: Navy Blue | Modern & Responsive */

:root {
  --navy-900: #0a1628;
  --navy-800: #0d2137;
  --navy-700: #132f4c;
  --navy-600: #1a3a5c;
  --navy-500: #2d5a87;
  --navy-400: #4a90d9;
  --navy-300: #6ba3e8;
  --navy-200: #a8c9f0;
  --navy-100: #e8f1fa;
  --white: #ffffff;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --accent: #4a90d9;
  --shadow: 0 4px 6px -1px rgba(10, 22, 40, 0.1), 0 2px 4px -2px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(10, 22, 40, 0.1), 0 4px 6px -4px rgba(10, 22, 40, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-800);
  background: var(--white);
}

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

a {
  color: var(--navy-500);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy-400);
}

/* Header & Navigation */
.header {
  background: var(--white);
  color: var(--navy-800);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.08);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 45px;
  width: auto;
  transition: filter 0.3s ease;
}

.header.scrolled .logo-link img {
  filter: brightness(0) invert(1);
}

.logo-link svg {
  height: 45px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--navy-600);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

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

.header.scrolled .nav-menu a {
  color: var(--navy-200);
}

.header.scrolled .nav-menu a:hover,
.header.scrolled .nav-menu a.active {
  color: var(--white);
}

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

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
  }

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

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(19, 47, 76, 0.8) 100%),
    url('../assets/images/hero-banner.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--navy-200);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--navy-400);
  color: var(--white) !important;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--navy-300);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy-400);
}

.btn-outline:hover {
  background: var(--navy-400);
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-with-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-with-image .section-inner {
  position: relative;
  z-index: 1;
}

.section-with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: 0;
}

.section-image-banner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.section-image-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .section-image-banner img {
    height: 180px;
  }
  
  .hero {
    min-height: 350px;
    padding: 3rem 1rem;
  }
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  color: var(--gray-600);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Industries Section */
.industries-section {
  background: var(--navy-100);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.industry-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-200);
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.08);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-700);
  text-align: center;
  line-height: 1.3;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.industry-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(45, 90, 135, 0.18);
  border-color: var(--navy-400);
  background: var(--white);
}

@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .industry-tag {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
  }
}

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

.service-card {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-card h3 {
  color: var(--navy-700);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Languages */
.languages-section {
  position: relative;
  background: linear-gradient(rgba(232, 241, 250, 0.95), rgba(232, 241, 250, 0.95)),
    url('../assets/images/languages-section.jpg') center center / cover no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .languages-section {
    background-attachment: scroll;
  }
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.lang-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 90, 135, 0.15);
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lang-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 90, 135, 0.12);
  border-color: var(--navy-300);
}

.lang-from,
.lang-to {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-700);
}

.lang-connector {
  font-size: 0.85rem;
  color: var(--navy-400);
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .languages-grid {
    grid-template-columns: 1fr;
  }
}

/* Fallback for old lang-tag (services page) */
.lang-tag {
  background: var(--white);
  color: var(--navy-700);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--navy-200);
}

/* Contact Form */
.contact-section {
  background: var(--gray-100);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 340px 1fr;
    gap: 3rem;
  }
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.contact-info-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.contact-info-company {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--navy-200);
}

.contact-info-line,
.contact-info-address {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.contact-info-address {
  font-style: normal;
}

.contact-info-email {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.contact-info-email a {
  font-weight: 600;
  color: var(--navy-500);
  font-size: 1rem;
}

.contact-info-email a:hover {
  color: var(--navy-400);
}

.form-container {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .form-container {
    max-width: none;
  }
}

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

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group select {
  cursor: pointer;
  appearance: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-400);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--navy-600);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.form-submit:hover {
  background: var(--navy-500);
}

/* Footer */
.footer {
  background: var(--navy-900);
  color: var(--navy-200);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

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

.footer a {
  color: var(--navy-200);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-700);
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-content h1 {
  font-size: 2rem;
  color: var(--navy-900);
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: var(--navy-700);
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.legal-content ul {
  margin-left: 1.5rem;
}

/* Success message */
.form-success {
  display: none;
  padding: 1.5rem;
  background: #d1fae5;
  color: #065f46;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-align: center;
}

.form-success.show {
  display: block;
}
