/* ============================================================
   TRÁMITES MERCANTILES — Diseño estilo Axesor
   Colores: Morado + Magenta/Rosa
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --purple:      #5B2D8E;
  --purple-dark: #3D1A6B;
  --purple-mid:  #7B4DB2;
  --purple-light:#F3EEF9;
  --magenta:     #C0267A;
  --magenta-dark:#9A1960;
  --magenta-light:#FFE9F3;
  --white:       #FFFFFF;
  --gray-50:     #F8F8F8;
  --gray-100:    #EFEFEF;
  --gray-200:    #DCDCDC;
  --gray-400:    #999999;
  --gray-500:    #666666;
  --gray-700:    #333333;
  --text:        #2A2A2A;

  --font-title: 'Lato', sans-serif;
  --font-body:  'Open Sans', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);
  --t: 220ms ease;
}


/* ─── Critical mobile fix ─────────────────────────────────── */
/* Prevent horizontal scroll on all screens */
html, body { max-width: 100%; overflow-x: hidden; }
/* Ensure fixed elements don't cause layout shift */
.navbar { width: 100%; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.75rem;
  font-family: var(--font-title); font-size: .875rem; font-weight: 700;
  border: 2px solid transparent; border-radius: 4px;
  cursor: pointer; transition: all var(--t); white-space: nowrap; text-decoration: none;
}
.btn-primary   { background: var(--magenta);  color: var(--white); border-color: var(--magenta); }
.btn-primary:hover { background: var(--magenta-dark); border-color: var(--magenta-dark); }
.btn-purple    { background: var(--purple); color: var(--white); border-color: var(--purple); }
.btn-purple:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--purple); }
.btn-outline-purple { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-outline-purple:hover { background: var(--purple); color: var(--white); }
.btn-sm  { padding: .5rem 1.25rem; font-size: .8rem; }
.btn-lg  { padding: .85rem 2.25rem; font-size: 1rem; }
.btn-xl  { padding: 1rem 2.5rem; font-size: 1rem; }

/* ─── Top Bar ──────────────────────────────────────────────── */
.topbar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  height: 38px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.topbar-phones { display: flex; gap: 1.5rem; }
.topbar-phone {
  font-size: .78rem; color: var(--gray-500);
  display: flex; align-items: center; gap: .35rem;
}
.topbar-phone strong { color: var(--gray-700); font-weight: 700; }
.topbar-links { display: flex; align-items: center; gap: 1.25rem; }
.topbar-link { font-size: .78rem; color: var(--gray-500); transition: color var(--t); }
.topbar-link:hover { color: var(--purple); }

/* ─── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: 72px;
  display: flex; align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.navbar-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.navbar-logo { display: flex; align-items: center; flex-shrink: 0; }
.navbar-logo img { height: 40px; width: auto; }
.navbar-menu { display: flex; align-items: center; gap: .25rem; }
.navbar-link {
  padding: .5rem .875rem; font-size: .875rem; font-weight: 600;
  color: var(--gray-700); border-radius: 4px; transition: all var(--t);
  white-space: nowrap;
}
.navbar-link:hover, .navbar-link.active { color: var(--purple); }
.navbar-actions { display: flex; align-items: center; gap: .75rem; }
.navbar-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.navbar-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-700); transition: all var(--t); }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 50%, #8B3FA0 100%);
  overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1600&q=80');
  background-size: cover; background-position: center;
  opacity: .25;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 600px; padding: 80px 0;
}
.hero-badge {
  display: inline-block; background: var(--magenta);
  color: var(--white); font-size: .75rem; font-weight: 700;
  padding: .25rem .75rem; border-radius: 20px; margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-title); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; color: var(--white); line-height: 1.2; margin-bottom: 1rem;
}
.hero-desc { font-size: 1rem; color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Search bar ───────────────────────────────────────────── */
.search-bar-wrap {
  background: var(--magenta);
  padding: 0;
}
.search-tabs { display: flex; }
.search-tab {
  padding: .75rem 1.5rem; font-size: .875rem; font-weight: 700;
  color: rgba(255,255,255,.7); background: transparent; border: none;
  cursor: pointer; transition: all var(--t); border-bottom: 3px solid transparent;
}
.search-tab.active, .search-tab:hover { color: var(--white); border-bottom-color: var(--white); background: rgba(0,0,0,.15); }
.search-input-row {
  background: rgba(0,0,0,.2); padding: .75rem 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.search-input {
  flex: 1; background: var(--white); border: none; border-radius: 3px;
  padding: .7rem 1rem; font-size: .9rem; font-family: var(--font-body);
  color: var(--text); outline: none;
}
.search-btn {
  background: rgba(0,0,0,.2); border: none; border-radius: 3px;
  padding: .7rem 1rem; color: var(--white); cursor: pointer; transition: background var(--t);
}
.search-btn:hover { background: rgba(0,0,0,.35); }
.search-advanced { text-align: right; padding: .4rem 1rem .6rem; }
.search-advanced a { font-size: .78rem; color: rgba(255,255,255,.8); text-decoration: underline; }

/* ─── Section ──────────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-title {
  font-family: var(--font-title); font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 900; color: var(--gray-700); margin-bottom: .75rem;
}
.section-subtitle { font-size: .95rem; color: var(--gray-500); line-height: 1.7; max-width: 560px; }
.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ─── Service cards (image style like Axesor) ────────────────── */
.services-grid-img {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-img-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: 4px; overflow: hidden;
  transition: all var(--t); cursor: pointer;
  text-decoration: none; color: inherit;
}
.service-img-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-img-card.featured { background: linear-gradient(135deg, var(--magenta) 0%, #8B1A6B 100%); }
.service-img-wrap { position: relative; height: 200px; overflow: hidden; background: var(--gray-100); }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-img-card:hover .service-img-wrap img { transform: scale(1.05); }
.service-img-featured-content {
  height: 200px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem;
}
.service-img-featured-text { font-size: 1.2rem; font-weight: 900; color: var(--white); text-align: center; line-height: 1.2; }
.service-img-featured-text span { color: rgba(255,255,255,.85); font-weight: 300; }
.service-img-featured-icon { font-size: 3rem; color: rgba(255,255,255,.9); }
.service-img-body { padding: 1.25rem; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.service-img-title { font-family: var(--font-title); font-size: 1rem; font-weight: 700; color: var(--purple); }
.service-img-desc { font-size: .85rem; color: var(--gray-500); line-height: 1.6; text-align: center; margin: 0; }
.service-img-card.featured .service-img-body { display: none; }

/* Services grid (list style for inner page) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: 4px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: all var(--t); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(to right, var(--purple), var(--magenta));
  opacity: 0; transition: opacity var(--t);
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--purple-light); display: flex; align-items: center; justify-content: center; color: var(--purple); }
.service-card-title { font-family: var(--font-title); font-size: 1rem; font-weight: 700; color: var(--purple); }
.service-card a { text-decoration: none; color: inherit; }
.service-card a:hover { color: var(--magenta); }
.service-card-desc { font-size: .85rem; color: var(--gray-500); line-height: 1.6; flex: 1; }
.service-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; border-top: 1px solid var(--gray-100); margin-top: auto; }
.service-card-plazo { font-size: .72rem; font-weight: 700; color: var(--gray-400); display: flex; align-items: center; gap: .3rem; }
.service-card-link { font-size: .8rem; font-weight: 700; color: var(--magenta); display: flex; align-items: center; gap: .25rem; transition: gap var(--t); }
.service-card-link:hover { gap: .5rem; }

/* ─── CTA Banner ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  padding: 40px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-text { font-family: var(--font-title); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700; color: var(--white); margin: 0; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Features strip ────────────────────────────────────────── */
.features-strip { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 2.5rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; }
.feature-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--purple-light); display: flex; align-items: center; justify-content: center; color: var(--purple); }
.feature-title { font-weight: 700; font-size: .95rem; color: var(--gray-700); }
.feature-desc { font-size: .82rem; color: var(--gray-500); line-height: 1.6; }

/* ─── Testimonials ──────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 4px; padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; transition: all var(--t); }
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: .2rem; color: var(--magenta); }
.testimonial-text { font-size: .9rem; color: var(--gray-700); line-height: 1.7; font-style: italic; flex: 1; margin: 0; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); color: var(--white); font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: .875rem; color: var(--gray-700); }
.testimonial-company { font-size: .78rem; color: var(--gray-400); }

/* ─── Process ───────────────────────────────────────────────── */
.process-section { background: var(--gray-50); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 28px; left: 14%; right: 14%; height: 2px; background: linear-gradient(to right, var(--purple), var(--magenta)); opacity: .3; }
.process-step { text-align: center; }
.process-num { width: 56px; height: 56px; border-radius: 50%; background: var(--purple); color: var(--white); font-family: var(--font-title); font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; position: relative; z-index: 1; transition: all var(--t); }
.process-step:hover .process-num { background: var(--magenta); transform: scale(1.1); }
.process-step h4 { font-family: var(--font-title); font-size: .95rem; font-weight: 700; color: var(--gray-700); margin-bottom: .4rem; }
.process-step p { font-size: .82rem; color: var(--gray-500); line-height: 1.6; }

/* ─── Blog ──────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: all var(--t); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-img-wrap { display: block; height: 180px; overflow: hidden; background: var(--gray-100); }
.blog-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.04); }
.blog-card-no-img { display: flex; align-items: center; justify-content: center; color: var(--gray-400); }
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .4rem; }
.blog-category { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); }
.blog-card-title { font-family: var(--font-title); font-size: .95rem; font-weight: 700; line-height: 1.4; }
.blog-card-title a { color: var(--gray-700); }
.blog-card-title a:hover { color: var(--purple); }
.blog-card-excerpt { font-size: .84rem; color: var(--gray-500); line-height: 1.6; flex: 1; margin: 0; }
.blog-card-meta { display: flex; gap: .4rem; font-size: .75rem; color: var(--gray-400); margin-top: .4rem; align-items: center; }

/* Blog sidebar */
.blog-layout { display: grid; grid-template-columns: 1fr 260px; gap: 3rem; align-items: start; }
.blog-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-widget { background: var(--white); border: 1px solid var(--gray-100); border-radius: 4px; padding: 1.25rem; }
.sidebar-widget-title { font-family: var(--font-title); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); margin-bottom: .875rem; border-bottom: 2px solid var(--magenta); padding-bottom: .5rem; display: inline-block; }
.sidebar-cats { display: flex; flex-direction: column; gap: .2rem; }
.sidebar-cats a { display: flex; justify-content: space-between; align-items: center; padding: .5rem .625rem; border-radius: 3px; font-size: .875rem; color: var(--gray-500); transition: all var(--t); }
.sidebar-cats a:hover, .sidebar-cats a.active { background: var(--purple-light); color: var(--purple); }
.cat-count { font-size: .72rem; background: var(--gray-100); border-radius: 10px; padding: 1px 6px; color: var(--gray-400); }
.sidebar-recent { display: flex; flex-direction: column; gap: .875rem; }
.sidebar-recent li { display: flex; flex-direction: column; gap: .2rem; }
.sidebar-recent a { font-size: .85rem; font-weight: 600; color: var(--gray-700); line-height: 1.4; }
.sidebar-recent a:hover { color: var(--purple); }
.sidebar-recent time { font-size: .72rem; color: var(--gray-400); }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-block; padding: .25rem .7rem; border-radius: 3px; font-size: .75rem; font-weight: 600; background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); transition: all var(--t); }
.tag:hover, .tag.active { background: var(--purple); color: var(--white); border-color: var(--purple); }
.sidebar-cta { background: linear-gradient(135deg, var(--purple), var(--magenta)) !important; border-color: transparent !important; }
.sidebar-cta .sidebar-widget-title { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }
.sidebar-cta h3 { color: var(--white); font-size: .975rem; margin-bottom: .4rem; }
.sidebar-cta p { color: rgba(255,255,255,.7); font-size: .84rem; margin-bottom: .875rem; }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.1rem 0; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--gray-700); gap: 1rem; transition: color var(--t); }
.faq-question:hover { color: var(--purple); }
.faq-icon { flex-shrink: 0; color: var(--magenta); transition: transform var(--t); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 0 1.1rem; font-size: .875rem; color: var(--gray-500); line-height: 1.75; }
.faq-answer[hidden] { display: none; }

/* ─── Page header ───────────────────────────────────────────── */
.page-header { background: linear-gradient(135deg, var(--purple-dark), var(--purple)); padding: 100px 0 50px; }
.page-header h1 { font-family: var(--font-title); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; color: var(--white); margin-bottom: .625rem; }
.page-header p { color: rgba(255,255,255,.7); font-size: .975rem; max-width: 520px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .78rem; margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span:last-child { color: rgba(255,255,255,.9); font-weight: 600; }

/* ─── Contact page ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3.5rem; align-items: start; }
.contact-info h2 { font-family: var(--font-title); font-size: 1.4rem; font-weight: 900; margin-bottom: 1rem; color: var(--gray-700); }
.contact-info > p { color: var(--gray-500); margin-bottom: 1.75rem; line-height: 1.75; }
.contact-items { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-item { display: flex; align-items: flex-start; gap: .875rem; font-size: .9rem; }
.contact-item-icon { width: 38px; height: 38px; border-radius: 4px; background: var(--purple-light); color: var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item div { display: flex; flex-direction: column; gap: .15rem; }
.contact-item strong { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gray-400); }
.contact-item a, .contact-item span { color: var(--text); font-weight: 600; }
.contact-item a:hover { color: var(--purple); }
.contact-note { margin-top: 1.5rem; padding: .875rem 1rem; background: var(--purple-light); border-left: 3px solid var(--purple); border-radius: 0 4px 4px 0; font-size: .84rem; color: var(--gray-500); }
.contact-form { display: flex; flex-direction: column; gap: .875rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
.contact-form .form-group { display: flex; flex-direction: column; gap: .35rem; }
.contact-form label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-500); }
.contact-form input, .contact-form textarea, .contact-form select { padding: .7rem .875rem; border: 1.5px solid var(--gray-200); border-radius: 4px; font-family: var(--font-body); font-size: .9rem; color: var(--text); outline: none; transition: border .2s, box-shadow .2s; background: var(--white); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91,45,142,.1); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .checkbox-label { display: flex; align-items: flex-start; gap: .6rem; font-size: .84rem; cursor: pointer; color: var(--gray-500); }
.contact-form .checkbox-label input { margin-top: .2rem; width: auto; flex-shrink: 0; accent-color: var(--purple); }

/* ─── Service detail ──────────────────────────────────────── */
.service-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.service-card-sticky { background: var(--white); border: 1px solid var(--gray-100); border-radius: 4px; padding: 1.75rem; position: sticky; top: 90px; box-shadow: var(--shadow-sm); }
.service-card-sticky h3 { font-family: var(--font-title); font-size: 1.1rem; font-weight: 900; margin-bottom: 1rem; color: var(--gray-700); }
.sidebar-price { margin-bottom: 1rem; }
.price-label { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gray-400); display: block; margin-bottom: .2rem; }
.price-value { font-family: var(--font-title); font-size: 1.6rem; font-weight: 900; color: var(--purple); }
.sidebar-meta { display: flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--gray-500); margin-bottom: .625rem; }
.sidebar-features { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.sidebar-features li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--gray-500); }
.sidebar-features svg { color: var(--magenta); flex-shrink: 0; }

/* ─── About page ──────────────────────────────────────────── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-family: var(--font-title); margin-bottom: 1rem; }
.about-text p { color: var(--gray-500); line-height: 1.75; margin-bottom: 1rem; }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.about-stat { background: var(--white); border: 1px solid var(--gray-100); border-radius: 4px; padding: 1.75rem; text-align: center; }
.stat-big { display: block; font-family: var(--font-title); font-size: 2.4rem; font-weight: 900; color: var(--purple); }
.stat-label { font-size: .78rem; color: var(--gray-400); margin-top: .4rem; display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 4px; padding: 1.75rem; text-align: center; transition: all var(--t); }
.team-card:hover { box-shadow: var(--shadow-md); }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--purple); color: var(--white); font-family: var(--font-title); font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.team-name { font-weight: 700; font-size: .975rem; margin-bottom: .25rem; }
.team-role { font-size: .78rem; color: var(--purple); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .625rem; }
.team-bio { font-size: .84rem; color: var(--gray-500); line-height: 1.6; margin: 0; }

/* ─── Prose ──────────────────────────────────────────────────── */
.prose { font-size: .95rem; line-height: 1.8; color: var(--gray-700); }
.prose h2 { font-family: var(--font-title); font-size: 1.3rem; font-weight: 900; color: var(--gray-700); margin: 1.75rem 0 .625rem; }
.prose h3 { font-family: var(--font-title); font-size: 1.05rem; font-weight: 700; color: var(--gray-700); margin: 1.25rem 0 .4rem; }
.prose p { margin-bottom: .875rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: .875rem; }
.prose li { margin-bottom: .35rem; }
.prose strong { font-weight: 700; color: var(--gray-700); }
.prose a { color: var(--purple); }
.prose blockquote { border-left: 3px solid var(--magenta); padding-left: 1.25rem; color: var(--gray-500); font-style: italic; margin: 1.25rem 0; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--white); border-top: 1px solid var(--gray-200); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--gray-200); }
.footer-logo { display: block; margin-bottom: 1rem; }
.footer-logo img { height: 40px; }
.footer-desc { font-size: .875rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .625rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-500); transition: all var(--t); }
.footer-social a:hover { background: var(--purple); color: var(--white); }
.footer-heading { font-family: var(--font-title); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--purple); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .875rem; color: var(--gray-500); transition: color var(--t); }
.footer-links a:hover { color: var(--purple); }
.footer-contact { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .625rem; }
.footer-contact svg { color: var(--purple); flex-shrink: 0; margin-top: .15rem; }
.footer-contact a, .footer-contact span { font-size: .875rem; color: var(--gray-500); transition: color var(--t); }
.footer-contact a:hover { color: var(--purple); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; flex-wrap: wrap; gap: .75rem; }
.footer-bottom p { font-size: .78rem; color: var(--gray-400); margin: 0; }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: .78rem; color: var(--gray-400); transition: color var(--t); }
.footer-legal a:hover { color: var(--purple); }

/* ─── Alerts & Forms ─────────────────────────────────────────── */
.alert { padding: .8rem 1.1rem; border-radius: 4px; font-size: .875rem; margin-bottom: 1rem; display: flex; align-items: flex-start; gap: .625rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ─── Auth pages ─────────────────────────────────────────────── */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--gray-50); padding: 1.5rem; }
.auth-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 6px; padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-md); }
.auth-logo { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.auth-title { font-family: var(--font-title); font-size: 1.5rem; font-weight: 900; color: var(--gray-700); text-align: center; margin-bottom: .3rem; }
.auth-subtitle { text-align: center; color: var(--gray-400); font-size: .875rem; margin-bottom: 1.75rem; }
.auth-form { display: flex; flex-direction: column; gap: .875rem; }
.auth-form .form-group { display: flex; flex-direction: column; gap: .35rem; }
.auth-form label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-500); display: flex; justify-content: space-between; align-items: center; }
.auth-form input { padding: .7rem .875rem; border: 1.5px solid var(--gray-200); border-radius: 4px; font-family: var(--font-body); font-size: .95rem; outline: none; transition: border .2s, box-shadow .2s; }
.auth-form input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91,45,142,.1); }
.label-link { font-size: .78rem; color: var(--purple); font-weight: 400; }
.input-password-wrap { position: relative; }
.input-password-wrap input { padding-right: 2.75rem; }
.toggle-password { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-400); }
.toggle-password:hover { color: var(--purple); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
.form-check .checkbox-label { display: flex; align-items: flex-start; gap: .6rem; font-size: .84rem; cursor: pointer; color: var(--gray-500); line-height: 1.5; }
.checkbox-label input { margin-top: .2rem; width: auto; flex-shrink: 0; accent-color: var(--purple); }
.auth-footer { text-align: center; font-size: .84rem; color: var(--gray-400); margin-top: 1.25rem; }
.auth-footer a { color: var(--purple); font-weight: 700; }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; gap: .25rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 .625rem; border-radius: 4px; font-size: .82rem; transition: all var(--t); border: 1px solid var(--gray-200); color: var(--gray-500); font-weight: 600; }
.pagination a:hover { border-color: var(--purple); color: var(--purple); }
.pagination .current { background: var(--purple); color: var(--white); border-color: var(--purple); font-weight: 700; }

/* ─── Error page ─────────────────────────────────────────────── */
.error-code { font-family: var(--font-title); font-size: clamp(6rem, 16vw, 10rem); font-weight: 900; color: var(--gray-100); line-height: 1; }

/* ─── Reveal ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }
.counter { font-variant-numeric: tabular-nums; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid-img { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-layout { grid-template-columns: 1fr; }
  .service-card-sticky { position: static; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .navbar-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: .75rem 1rem;
    gap: .1rem;
    border-bottom: 2px solid var(--magenta);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 999;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu li { width: 100%; }
  .navbar-menu .navbar-link {
    display: block;
    width: 100%;
    padding: .875rem 1rem;
    border-radius: 6px;
    border-bottom: 1px solid var(--gray-100);
    font-size: .95rem;
  }
  .navbar-menu .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: .5rem;
    justify-content: center;
  }
  .navbar-toggle { display: flex; }
  .hero-content { padding: 60px 0; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .services-grid-img { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ─── Checkboxes & Radios fix ──────────────────────────────── */
input[type="checkbox"],
input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  cursor: pointer;
  accent-color: var(--purple, #5B2D8E);
  flex-shrink: 0;
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: 2px solid var(--purple, #5B2D8E);
  outline-offset: 2px;
}
.checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: .625rem;
  cursor: pointer;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--gray-500, #666);
}
.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  margin-top: .15rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: .625rem;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
}

