:root {
  /* PALETTE: Corporate Editorial */
  --bg-white: #ffffff;
  --bg-paper: #f9f7f2; /* Warm beige/paper */
  --bg-dark: #1a202c; /* Dark Slate/Navy */

  --text-main: #2d3748;
  --text-light: #718096;
  --text-white: #f7fafc;

  --primary: #2c3e50; /* Strict Navy */
  --accent: #c0392b; /* Muted Burgundy - Editorial Accent */
  --border: #cbd5e0;

  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", "Arial", sans-serif;

  --container: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-white);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-main);
}
.text-white p {
  color: #cbd5e0;
}

/* LAYOUT */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
}
.bg-paper {
  background-color: var(--bg-paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}
.max-800 {
  max-width: 800px;
  margin: 0 auto;
}

/* HEADER */
.header {
  padding: 25px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}
.logo i {
  color: var(--accent);
}
.logo img {
  width: 50px;
  height: 50px;
}

.nav {
  display: flex;
  gap: 30px;
}
.nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.5px;
}
.nav a:hover {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.burger-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.line {
  width: 30px;
  height: 2px;
  background: var(--primary);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 85px;
  left: 0;
  width: 100%;
  height: calc(100vh - 85px);
  background: var(--bg-paper);
  transform: translateX(100%);
  transition: 0.4s;
  z-index: 90;
  padding: 40px;
  border-top: 1px solid var(--border);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
}
.btn--primary {
  background: var(--primary);
  color: #fff;

  @media (max-width: 500px) {
    display: none;
  }
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn--white {
  background: #fff;
  color: var(--primary);
  border: none;
}
.btn--white:hover {
  background: #e2e8f0;
}
.btn--small {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* LINKS */
.link-u {
  text-decoration: underline;
  font-weight: 600;
  color: var(--primary);
}
.link-u:hover {
  color: var(--accent);
}

/* HERO */
.hero {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.meta-tag {
  display: inline-block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--accent);
}
.hero-body {
  font-size: 1.1rem;
  border-left: 4px solid var(--bg-paper);
  padding-left: 20px;
  margin: 30px 0;
}
.hero-links {
  display: flex;
  gap: 20px;
}
.image-frame {
  padding: 15px;
  border: 1px solid var(--border);
  background: #fff;
  transform: rotate(2deg);
  transition: 0.5s;
}
.image-frame:hover {
  transform: rotate(0deg);
}

/* EDITORIAL (PHILOSOPHY) */
.editorial-layout {
  gap: 60px;
}
.col-title {
  width: 30%;
}
.col-text {
  width: 70%;
  font-size: 1.15rem;
  font-family: var(--font-serif);
}
.separator {
  width: 50px;
  height: 4px;
  background: var(--accent);
  margin-top: 20px;
}

/* BLOG GRID */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.link-arrow {
  font-weight: 600;
  color: var(--accent);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: 0.3s;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 15px;
  display: block;
  letter-spacing: 1px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.article-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.article-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  flex-grow: 1;
}
.read-time {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--primary);
  display: block;
  margin-top: 20px;
}

/* METHODOLOGY */
.centered-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.step-item {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid #4a5568;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #4a5568;
  margin-bottom: 10px;
  line-height: 1;
}

/* SERVICES LIST */
.services-list {
  border-top: 2px solid var(--primary);
}
.service-row {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: 0.2s;
}
.service-row:hover {
  background: #fff;
  padding-left: 20px;
  border-left: 4px solid var(--accent);
}
.srv-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.srv-desc {
  color: var(--text-light);
}
.srv-action {
  text-align: right;
  color: var(--accent);
  opacity: 0;
  transition: 0.3s;
}
.service-row:hover .srv-action {
  opacity: 1;
}

/* CASES */
.subtitle {
  font-style: italic;
  color: var(--text-light);
}
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.case-card {
  background: var(--bg-paper);
  padding: 40px;
  border: 1px solid var(--border);
  position: relative;
}
.case-meta {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 5px 15px;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.case-problem,
.case-sol {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.case-result {
  margin-top: 20px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

/* FAQ */
.accordion {
  border-top: 1px solid var(--border);
}
.acc-item {
  border-bottom: 1px solid var(--border);
}
.acc-head {
  padding: 25px 0;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.acc-head:hover {
  color: var(--accent);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s;
}
.acc-body p {
  padding-bottom: 25px;
  color: var(--text-light);
}

/* FORM SECTION */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  margin-top: 30px;
  font-size: 0.95rem;
}
.ci-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
  color: #cbd5e0;
}
.ci-row i {
  color: var(--accent);
}

.consulting-form {
  background: #232d3f;
  padding: 40px;
  border: 1px solid #374151;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  background: #1a202c;
  border: 1px solid #4a5568;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  border-radius: 0;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  outline: none;
}
.accent-text {
  color: var(--accent);
  font-weight: bold;
}
.short-input {
  width: 120px !important;
}
.full-width {
  width: 100%;
}

/* FOOTER */
.footer {
  background: var(--bg-white);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.f-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
  border: none;
  letter-spacing: 1px;
}
.f-col a {
  display: block;
  margin-bottom: 10px;
  color: var(--text-main);
}
.f-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.f-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary);
}
.footer-copy {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* COOKIE */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 15px 30px;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 200;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 989px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .desktop-nav {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  h1 {
    font-size: 2.5rem;
  }
  .hero__grid,
  .editorial-layout,
  .articles-grid,
  .steps-row,
  .cases-grid,
  .form-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }
  .col-title {
    width: 100%;
    margin-bottom: 30px;
  }
  .col-title h2 {
    font-size: 2rem;
  }
  .col-text {
    width: 100%;
  }
  .hero__img {
    order: -1;
  }
  .image-frame {
    transform: rotate(0);
  }
  .services-list {
    border-top: none;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 15px;
  }
  .service-row:hover {
    padding-left: 20px;
  }
  .srv-action {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
}
