/* ===========================
   Ingenio Law - Main Stylesheet
   Colors: #333F48, #80286C, #009776, #9BB8D3
   =========================== */

/* --- CSS Variables --- */
:root {
  --color-dark: #333F48;
  --color-purple: #80286C;
  --color-teal: #009776;
  --color-light-blue: #9BB8D3;
  --color-white: #ffffff;
  --color-off-white: #f8f9fa;
  --color-light-gray: #e9ecef;
  --color-medium-gray: #6c757d;
  --color-dark-overlay: rgba(51, 63, 72, 0.9);
  --font-heading: 'Barlow', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-blog: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --max-width: 1200px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(51, 63, 72, 0.08);
  --shadow-md: 0 4px 12px rgba(51, 63, 72, 0.12);
  --shadow-lg: 0 8px 24px rgba(51, 63, 72, 0.16);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.7;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-teal);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.3;
  font-weight: 800;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-medium-gray);
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.text-center {
  text-align: center;
}

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

.section-header h2 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-teal);
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-purple);
  color: var(--color-white);
  border-color: var(--color-purple);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-purple);
}

.btn-secondary {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--color-teal);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn-outline-dark:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
}

.logo-text span {
  color: var(--color-purple);
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-medium-gray);
  display: block;
  margin-top: -2px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  color: var(--color-dark);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-purple);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-purple);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--color-light-gray);
  border-radius: 20px;
  padding: 2px;
  gap: 0;
}

.lang-toggle button {
  padding: 0.35rem 0.85rem;
  border: none;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--color-medium-gray);
  font-family: var(--font-body);
}

.lang-toggle button.active {
  background: var(--color-purple);
  color: var(--color-white);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a2530 60%, var(--color-purple) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239BB8D3' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero h1 .accent {
  color: var(--color-light-blue);
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 550px;
  line-height: 1.8;
}

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

.hero-decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border: 2px solid rgba(155, 184, 211, 0.15);
  border-radius: 50%;
}

.hero-decoration::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  border: 2px solid rgba(128, 40, 108, 0.2);
  border-radius: 50%;
}

/* --- About Preview / Intro Section --- */
.intro {
  background: var(--color-off-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-content h2 {
  margin-bottom: 1.5rem;
}

.intro-content p {
  font-size: 1.05rem;
}

.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-purple);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-medium-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* --- Practice Areas / Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.service-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-teal));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--color-white);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-purple);
}

.service-card .learn-more:hover {
  gap: 0.75rem;
}

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.team-photo {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--color-dark), var(--color-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 3rem;
  font-family: var(--font-heading);
  position: relative;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(51, 63, 72, 0.3));
}

.team-info {
  padding: 1.5rem 2rem;
}

.team-info h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.team-info .title {
  color: var(--color-purple);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: block;
}

.team-info p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.team-info .contact-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-light-gray);
}

.team-info .contact-links a {
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- Testimonials --- */
.testimonials {
  background: var(--color-dark);
  color: var(--color-white);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-item {
  padding: 2rem;
}

.testimonial-text {
  font-family: var(--font-blog);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-size: 0.95rem;
  color: var(--color-light-blue);
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Blog / Insights --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.blog-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-light-blue), var(--color-teal));
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image .category-badge {
  background: var(--color-purple);
  color: var(--color-white);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-body {
  padding: 1.5rem 2rem;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--color-medium-gray);
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-family: var(--font-blog);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-body h3 a {
  color: var(--color-dark);
}

.blog-card-body h3 a:hover {
  color: var(--color-purple);
}

.blog-card-body p {
  font-size: 0.9rem;
}

.blog-card-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-purple);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-teal));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-detail p {
  font-size: 0.9rem;
  margin: 0;
}

.contact-form {
  background: var(--color-off-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  transition: var(--transition);
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(128, 40, 108, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-purple), var(--color-dark));
  color: var(--color-white);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-about .logo-text {
  color: var(--color-white);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-about p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer-links a {
  display: block;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 0.25rem;
}

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

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

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

.footer-legal {
  display: flex;
  gap: 2rem;
}

/* --- Page Banner (inner pages) --- */
.page-banner {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a2530 60%, var(--color-purple) 100%);
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239BB8D3' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-banner h1 {
  color: var(--color-white);
  font-size: 2.75rem;
  position: relative;
  z-index: 1;
}

.page-banner .breadcrumb {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-banner .breadcrumb a {
  color: var(--color-light-blue);
}

/* --- About Page --- */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(128, 40, 108, 0.1), rgba(0, 151, 118, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
}

/* --- Timeline / History --- */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-light-gray);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background: var(--color-purple);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  max-width: 400px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-teal);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* --- Blog Detail --- */
.blog-list {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.blog-sidebar {
  padding: 2rem;
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  height: fit-content;
}

.blog-sidebar h4 {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.blog-sidebar .category-list a {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-medium-gray);
  border-bottom: 1px solid var(--color-light-gray);
  font-size: 0.9rem;
}

.blog-sidebar .category-list a:hover {
  color: var(--color-purple);
}

/* --- Article Detail --- */
.article-detail {
  max-width: 100%;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-category {
  background: var(--color-purple);
  color: var(--color-white);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-date {
  font-size: 0.85rem;
  color: var(--color-medium-gray);
}

.article-title {
  font-family: var(--font-blog);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.article-byline {
  font-size: 0.9rem;
  color: var(--color-medium-gray);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-light-gray);
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.article-body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-teal);
  border-radius: 2px;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--color-medium-gray);
}

.article-list {
  margin: 1.5rem 0 2rem;
  padding-left: 0;
}

.article-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-medium-gray);
  border-bottom: 1px solid var(--color-light-gray);
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  background: var(--color-teal);
  border-radius: 50%;
}

.article-list li strong {
  color: var(--color-dark);
}

/* --- Article Tables --- */
.article-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 500px;
}

.article-table thead {
  background: var(--color-dark);
}

.article-table thead th {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 1.25rem;
  text-align: left;
  border: none;
}

.article-table tbody tr {
  border-bottom: 1px solid var(--color-light-gray);
  transition: var(--transition);
}

.article-table tbody tr:last-child {
  border-bottom: none;
}

.article-table tbody tr:nth-child(even) {
  background: var(--color-off-white);
}

.article-table tbody tr:hover {
  background: rgba(155, 184, 211, 0.12);
}

.article-table tbody td {
  padding: 0.85rem 1.25rem;
  color: var(--color-medium-gray);
  line-height: 1.6;
  vertical-align: top;
}

.article-table tbody td strong {
  color: var(--color-dark);
  font-weight: 600;
}

.article-table-comparison tbody td:first-child {
  min-width: 180px;
  background: rgba(51, 63, 72, 0.03);
  font-weight: 500;
}

/* --- Article CTA Box --- */
.article-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(128, 40, 108, 0.05), rgba(0, 151, 118, 0.05));
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-purple);
}

.article-cta p {
  color: var(--color-dark);
}

.article-cta p strong {
  font-size: 1.15rem;
}

.article-cta .btn {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.65rem;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }

  .article-table {
    font-size: 0.8rem;
  }

  .article-table thead th,
  .article-table tbody td {
    padding: 0.65rem 0.85rem;
  }

  .article-cta {
    padding: 1.5rem;
  }
}

/* --- Portal Cards & Forms --- */
.portal-card {
  text-align: left;
}

.portal-badge {
  display: inline-block;
  background: var(--color-purple);
  color: var(--color-white);
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.portal-badge-teal {
  background: var(--color-teal);
}

.portal-badge-blue {
  background: var(--color-light-blue);
  color: var(--color-dark);
}

.portal-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-off-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.portal-form-intro {
  margin-bottom: 2.5rem;
}

.portal-form-intro h2 {
  margin-bottom: 1rem;
}

.portal-form-intro p {
  font-size: 1.05rem;
}

.form-section-title {
  font-size: 1.1rem;
  color: var(--color-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-light-gray);
}

.form-section-title:first-of-type {
  margin-top: 0;
}

@media (max-width: 768px) {
  .portal-form-wrapper {
    padding: 1.75rem;
  }
}

/* --- Map Placeholder --- */
.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-medium-gray);
  font-size: 1.1rem;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .intro-grid {
    gap: 2rem;
  }

  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--color-light-gray);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: 80vh;
    padding-top: 100px;
  }

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

  .hero-decoration { display: none; }

  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .team-grid,
  .blog-grid,
  .about-values {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-banner {
    padding: 8rem 0 3rem;
  }

  .timeline::before { left: 1rem; }
  .timeline-item {
    padding-right: 0;
    padding-left: 3rem;
    justify-content: flex-start;
  }
  .timeline-item:nth-child(even) {
    padding-left: 3rem;
  }
  .timeline-item::after {
    left: 1rem;
  }
}

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

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

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 1rem;
  }
}

/* --- Overlay for mobile menu --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
