:root {
  --bg-warm: #f4f1ea;
  --text-main: #2c2c2c;
  --accent-blue: #1a3a5f;
  --accent-burgundy: #722f37;
  --gray-muted: #8e8e8e;
  --border-color: rgba(44, 44, 44, 0.1);
  --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-warm);
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);

  /* subtle animated highlight */
  overflow: hidden;
  isolation: isolate;
  animation: headerEnter 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: box-shadow var(--transition), transform 250ms ease,
    background-color var(--transition);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 58, 95, 0.06),
    rgba(114, 47, 55, 0.04)
  );
  background-size: 200% 200%;
  opacity: 0.9;
  transform: translateX(-10%);
  animation: headerGlow 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.site-header:hover {
  box-shadow: 0 10px 30px rgba(26, 58, 95, 0.08);
  transform: translateY(-3px);
  background: rgba(244, 241, 234, 1);
}

.header-wrap {
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1; /* keep content above decorative overlay */
  transition: transform 250ms ease;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-blue);
  letter-spacing: -0.5px;
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo:hover {
  color: var(--accent-burgundy);
}

.desktop-nav {
  display: flex;
  gap: 35px;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-burgundy);
  transition: var(--transition);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.nav-contact-link {
  color: var(--accent-burgundy) !important;
}

/* Burger */
.burger-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-warm);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: var(--transition);
}

.mobile-menu.active {
  transform: translateY(0);
}

.no-scroll {
  overflow: hidden;
}

.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 24px;
  font-weight: 600;
}

/* Intro Section */
.intro-text-block {
  position: relative;
  padding: 200px 0 100px;
  overflow: hidden;
  z-index: 0;
}

/* soft animated gradient layer */
.intro-text-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(26, 58, 95, 0.1),
    rgba(114, 47, 55, 0.08) 40%,
    rgba(244, 241, 234, 0) 70%
  );
  background-size: 200% 200%;
  filter: blur(24px) saturate(120%);
  transform: translateZ(0);
  animation: introGradient 12s linear infinite;
  z-index: -2;
}

/* decorative radial shapes that slowly drift */
.intro-text-block::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  top: -10%;
  right: -20%;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(26, 58, 95, 0.12),
      transparent 40%
    ),
    radial-gradient(circle at 70% 70%, rgba(114, 47, 55, 0.1), transparent 30%);
  transform-origin: center;
  animation: introShape 18s ease-in-out infinite;
  z-index: -1;
}

/* ensure content stays above background layers */
.intro-text-block > * {
  position: relative;
  z-index: 1;
}

h1 {
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.1;
  margin-bottom: 60px;
  color: var(--accent-blue);
  font-weight: 800;
  letter-spacing: -2px;
}

.inline-icon {
  color: var(--accent-burgundy);
  margin-right: 10px;
  vertical-align: middle;
}

.intro-paragraphs p {
  margin-bottom: 30px;
  color: var(--text-main);
  font-size: 20px;
}

/* Common Sections */
.section-classic {
  padding: 120px 0;
}

.section-alt {
  padding: 120px 0;
  background-color: #edeae0;
}

.border-top {
  border-top: 1px solid var(--border-color);
}
.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

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

h2 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 40px;
  color: var(--accent-blue);
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.sticky-head {
  position: sticky;
  top: 130px;
  height: fit-content;
}

.line-accent {
  width: 60px;
  height: 4px;
  background: var(--accent-burgundy);
  margin-top: 20px;
}

.analysis-item {
  margin-bottom: 50px;
  display: flex;
  gap: 25px;
}

.analysis-item i {
  flex-shrink: 0;
  color: var(--accent-burgundy);
  width: 30px;
  height: 30px;
}

/* Growth Matrix */
.growth-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.growth-card {
  padding: 50px 40px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}

.growth-card:hover {
  background-color: var(--white);
  border-color: var(--accent-blue);
  transform: translateY(-10px);
}

.growth-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--accent-blue);
}

/* Skills List */
.skills-list {
  margin-top: 60px;
}

.skill-row {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.skill-row i {
  width: 40px;
  height: 40px;
  color: var(--accent-burgundy);
  flex-shrink: 0;
}

.skill-row h4 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--accent-blue);
}

/* Dark Accent Section */
.section-dark-accent {
  padding: 120px 0;
  background-color: var(--accent-blue);
  color: #f4f1ea;
}

.quote-block {
  text-align: center;
  margin-bottom: 60px;
}

.quote-block i {
  width: 60px;
  height: 60px;
  margin-bottom: 30px;
  color: var(--accent-burgundy);
}

blockquote {
  font-size: 32px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
}

.experience-text {
  text-align: center;
  font-size: 22px;
  opacity: 0.9;
}

/* Strategy Section */
.strategy-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.strategy-steps {
  list-style: none;
  margin-top: 40px;
}

.strategy-steps li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-weight: 600;
}

.strategy-steps i {
  color: var(--accent-burgundy);
  width: 20px;
}

.strategy-visual {
  display: flex;
  justify-content: center;
}

.icon-sphere {
  width: 300px;
  height: 300px;
  border: 1px solid var(--accent-burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sphereRotate 20s linear infinite;
}

.icon-sphere i {
  width: 80px;
  height: 80px;
  color: var(--accent-blue);
}

@keyframes sphereRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Animated gradient and drifting shapes for intro */
@keyframes introGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes introShape {
  0% {
    transform: translateX(0) rotate(0deg);
    opacity: 0.9;
  }
  50% {
    transform: translateX(-8%) rotate(12deg);
    opacity: 1;
  }
  100% {
    transform: translateX(0) rotate(0deg);
    opacity: 0.9;
  }
}

/* Header entrance & glow */
@keyframes headerGlow {
  0% {
    background-position: 0% 50%;
    opacity: 0.85;
    filter: blur(0.2px);
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
    filter: blur(0.6px);
  }
  100% {
    background-position: 0% 50%;
    opacity: 0.85;
    filter: blur(0.2px);
  }
}

@keyframes headerEnter {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .intro-text-block {
    padding: 140px 0 60px;
  }
  .intro-text-block::before {
    filter: blur(12px);
  }
  .intro-text-block::after {
    display: none;
  }
}

/* FAQ Accordion */
.faq-accordion {
  margin-top: 60px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-trigger {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 20px;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-content p {
  padding-bottom: 30px;
  color: var(--gray-muted);
}

.faq-item.active .faq-content {
  max-height: 300px;
}

.faq-item.active i {
  transform: rotate(180deg);
}

/* Contact Form */
.form-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-field input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  padding: 15px 0;
  font-size: 18px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-field input:focus {
  border-color: var(--accent-burgundy);
}

.captcha-field {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.captcha-field input {
  width: 100px;
}

.form-checkbox {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.form-checkbox a {
  text-decoration: underline;
  color: var(--accent-blue);
}

.form-checkbox input {
  margin-top: 7px;
}

.form-checkbox label {
  font-size: 14px;
  color: var(--gray-muted);
  white-space: normal;
}

.submit-btn {
  background-color: var(--accent-blue);
  color: white;
  border: none;
  padding: 25px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--accent-burgundy);
}

/* Footer */
.site-footer {
  padding: 100px 0 50px;
  background-color: #222;
  color: #f4f1ea;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-info .logo {
  color: white;
  display: block;
  margin-bottom: 25px;
}

.footer-contacts p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-legal nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-legal a {
  color: #8e8e8e;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  color: #8e8e8e;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  padding: 30px;
  max-width: 350px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 3000;
  display: none;
  border-left: 4px solid var(--accent-burgundy);
}

.cookie-content p {
  font-size: 14px;
  margin-bottom: 20px;
}

.btn-accent {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1064px) {
  .header-wrap {
    height: 70px;
  }
  .container-narrow h1 {
    font-size: 2.2rem;
  }
  .desktop-nav {
    display: none;
  }
  .burger-trigger {
    display: block;
  }
  .grid-layout,
  .strategy-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .growth-matrix {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 48px;
  }
  h2 {
    font-size: 32px;
  }
  .intro-text-block {
    padding: 140px 0 60px;
  }
  .sticky-head {
    position: static;
  }

  /* Lightweight header on tablets and phones */
  .site-header::before {
    display: none;
  }
  .site-header {
    animation: none;
    transition: none;
  }
  .site-header:hover {
    transform: none;
    box-shadow: none;
  }
}
.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;
}

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

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@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;
  }
  .margin {
    font-size: 28px;
    margin-top: 150px;
  }
}
