/*
Theme Name: Flavor Developer
Theme URI: https://maratgamidov.ru
Author: Marat Gamidov
Author URI: https://maratgamidov.ru
Description: Custom theme for Marat Gamidov — SEO specialist, content manager, copywriter & content marketer. 175 services, one contact.
Version: 1.0.0
Text Domain: flavor-developer
*/

/* ═══ CSS Variables ═══ */
:root {
  --lime: #D2E34E;
  --lime-hover: #C5D63E;
  --lime-soft: #EEF2C8;
  --lime-bg: #F7F8E8;
  --dark: #111111;
  --surface: #F6F5F1;
  --surface-2: #EEEDEA;
  --white: #FFFFFF;
  --text: #111111;
  --text-2: #6B6B63;
  --text-3: #9B9B92;
  --border: #E2E1DC;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

/* ═══ Reset ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol, li { list-style: none; }
button { font-family: inherit; }

/* ═══ Layout ═══ */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ═══ Typography ═══ */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

/* ═══ Animations ═══ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ═══ Header ═══ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: all .4s cubic-bezier(.22,1,.36,1);
}
.header.scrolled { padding: 8px 0; }
.header__inner {
  display: flex; justify-content: space-between; align-items: center;
  position: relative;
}
.logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700;
  letter-spacing: -.03em; color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px; z-index: 10;
}
.logo__mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 800;
  color: var(--dark); transition: transform .3s;
}
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.05); }

/* Pill Navigation */
.nav-pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 4px;
  display: flex; align-items: center; gap: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.02);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header.scrolled .nav-pill {
  background: rgba(255,255,255,.88);
  box-shadow: 0 4px 24px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.03);
}
.nav-pill a {
  font-size: 13px; color: var(--text-2); text-decoration: none; font-weight: 500;
  padding: 8px 18px; border-radius: 100px;
  transition: all .25s cubic-bezier(.22,1,.36,1);
  position: relative; white-space: nowrap;
}
.nav-pill a:hover { color: var(--text); background: var(--surface); }
.nav-pill a.active { color: var(--text); background: var(--surface-2); font-weight: 600; }
.nav-pill__sep { width: 1px; height: 16px; background: var(--border); flex-shrink: 0; margin: 0 2px; }
.header__right { display: flex; align-items: center; gap: 12px; z-index: 10; }

/* Burger */
.burger {
  display: none; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--white); cursor: pointer;
  position: relative; z-index: 10;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  transition: background .2s;
}
.burger:hover { background: var(--surface); }
.burger span {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  border-radius: 2px; transition: all .3s cubic-bezier(.22,1,.36,1);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(246,245,241,.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  z-index: 5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .35s cubic-bezier(.22,1,.36,1);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700;
  color: var(--text); text-decoration: none; padding: 14px 32px; border-radius: 16px;
  transition: all .2s; letter-spacing: -.02em;
}
.mobile-menu a:hover { background: var(--white); color: var(--dark); }
.mobile-menu__cta { margin-top: 24px; }

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  border: none; border-radius: 100px; cursor: pointer; text-decoration: none;
  transition: all .25s cubic-bezier(.22,1,.36,1);
  position: relative; overflow: hidden;
}
.btn--primary { background: var(--dark); color: var(--white); padding: 12px 28px; }
.btn--primary:hover { background: var(--text-2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.btn--lime { background: var(--lime); color: var(--dark); padding: 16px 32px; font-size: 15px; }
.btn--lime:hover { background: var(--lime-hover); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(210,227,78,.35); }
.btn--outline { background: transparent; color: var(--text); padding: 16px 32px; font-size: 15px; border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--text-3); transform: translateY(-1px); }
.btn--white { background: var(--white); color: var(--dark); padding: 16px 36px; font-size: 16px; }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }

/* ═══ Sections ═══ */
.section { padding: 80px 0; }
.section__head { margin-bottom: 40px; }
.section__tag {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; color: var(--text-3); margin-bottom: 14px;
}
.section__title {
  font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 800;
  letter-spacing: -.035em; line-height: 1.1;
}
.section__title--sm { font-size: 36px; }

/* ═══ Tags ═══ */
.tag { background: var(--surface); color: var(--text-2); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.tag--lime { background: var(--lime-bg); color: var(--dark); }

/* ═══ Cards ═══ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .35s cubic-bezier(.22,1,.36,1);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 80% 20%, rgba(210,227,78,.1), transparent 60%);
  transition: opacity .35s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.07);
  border-color: rgba(210,227,78,.4);
}
.card:hover::before { opacity: 1; }

/* ═══ Mini CTA ═══ */
.mini-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 36px; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); margin: 40px 0;
}
.mini-cta__text { font-size: 16px; font-weight: 600; color: var(--text); }

/* ═══ CTA Block ═══ */
.cta {
  background: var(--dark); border-radius: var(--radius-xl);
  padding: 80px 64px; position: relative; overflow: hidden; margin-top: 40px;
}
.cta::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210,227,78,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta::after {
  content: ''; position: absolute; bottom: -30%; left: 10%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(210,227,78,.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta__inner {
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
}
.cta__title {
  font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 800;
  color: var(--white); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 14px;
}
.cta__sub { font-size: 17px; color: rgba(255,255,255,.45); line-height: 1.6; }
.cta__buttons { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ═══ Footer ═══ */
.footer { padding: 0; }
.footer__top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px;
  padding: 48px 0 40px; border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700;
  letter-spacing: -.03em; color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.footer__logo-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 800; color: var(--dark);
}
.footer__desc { font-size: 14px; color: var(--text-3); line-height: 1.6; max-width: 280px; }
.footer__socials { display: flex; gap: 8px; margin-top: 4px; }
.footer__social {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--text-2); font-size: 14px;
  transition: all .25s;
}
.footer__social:hover { background: var(--lime); border-color: var(--lime); color: var(--dark); }
.footer__col-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-3);
  margin-bottom: 16px;
}
.footer__col-links { display: flex; flex-direction: column; gap: 10px; }
.footer__col-links ul,
.footer .menu {
  list-style: none !important; margin: 0 !important; padding: 0 !important;
  display: flex; flex-direction: column; gap: 10px;
}
.footer__col-links li,
.footer .menu-item {
  list-style: none !important; margin: 0 !important; padding: 0 !important;
}
.footer__col-links a,
.footer__col-links li a {
  font-size: 14px; color: var(--text-2); text-decoration: none;
  transition: color .2s; font-weight: 500; display: block;
}
.footer__col-links a:hover,
.footer__col-links li a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-3);
}
.footer__bottom a { color: var(--text-3); text-decoration: none; transition: color .2s; }
.footer__bottom a:hover { color: var(--text); }
.footer__bottom-links { display: flex; gap: 20px; }

/* ═══ Forms ═══ */
.form__group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form__label { font-size: 13px; font-weight: 600; color: var(--text); }
.form__input,
.form__textarea,
.form__select {
  font-family: inherit; font-size: 15px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  transition: all .25s cubic-bezier(.22,1,.36,1);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-3); }
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--lime);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(210,227,78,.15);
}
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239B9B92' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__hint { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 12px; }
.form-msg { padding: 14px 18px; border-radius: 14px; font-size: 14px; display: none; margin-bottom: 16px; }
.form-msg--error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.form-msg--success { background: var(--lime-bg); color: var(--dark); border: 1px solid var(--lime); }

@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
  .form__input, .form__textarea, .form__select { font-size: 16px; padding: 12px 14px; }
}

/* ═══ Breadcrumbs ═══ */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3); margin-bottom: 24px;
}
.breadcrumbs a { color: var(--text-3); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs__sep { color: var(--border); }

/* ═══ Page Hero ═══ */
.page-hero { padding: 160px 0 60px; }
.page-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px; font-weight: 800;
  letter-spacing: -.04em; line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero__sub {
  font-size: 18px; color: var(--text-2);
  line-height: 1.65; max-width: 680px;
}

/* ═══ Grids ═══ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ═══ Services Page: Stats ═══ */
.svc-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 32px;
}
.svc-stat {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; text-align: center;
}
.svc-stat strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 800;
  letter-spacing: -.03em; color: var(--lime);
}
.svc-stat span { font-size: 13px; color: var(--text-2); }

/* ═══ Direction Cards ═══ */
.dir-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
  transition: all .35s cubic-bezier(.22,1,.36,1);
  position: relative; overflow: hidden;
}
.dir-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 80% 20%, rgba(210,227,78,.1), transparent 60%);
  transition: opacity .35s; pointer-events: none;
}
.dir-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.07);
  border-color: rgba(210,227,78,.4);
}
.dir-card:hover::before { opacity: 1; }
.dir-card__head {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 16px;
}
.dir-card__count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px; font-weight: 800;
  color: var(--lime); letter-spacing: -.03em;
}
.dir-card__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--surface); display: flex;
  align-items: center; justify-content: center; font-size: 22px;
}
.dir-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 800;
  margin-bottom: 10px; letter-spacing: -.02em;
}
.dir-card__desc {
  font-size: 15px; color: var(--text-2);
  line-height: 1.6; margin-bottom: 20px; flex: 1;
}
.dir-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; }
.dir-card__link {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-3);
  transition: color .2s;
}
.dir-card:hover .dir-card__link { color: var(--text); }
.card__arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; transition: all .3s;
}
.dir-card:hover .card__arrow,
.card:hover .card__arrow {
  background: var(--dark); color: var(--white);
}

/* ═══ Direction Page: Hero ═══ */
.svc-hero {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: start;
}
.svc-meta {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; min-width: 280px;
}
.svc-meta__item {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.svc-meta__item:last-child { border-bottom: none; }
.svc-meta__label { color: var(--text-3); }
.svc-meta__value { font-weight: 600; }

/* ═══ Direction Page: Service Groups ═══ */
.svc-group { margin-bottom: 48px; }
.svc-group__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700;
  margin-bottom: 16px; display: flex;
  align-items: center; gap: 12px;
}
.svc-group__count {
  font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--text-3);
  padding: 3px 10px; border-radius: 100px;
}
.svc-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.svc-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px;
  font-size: 14px; font-weight: 500;
  transition: all .2s; display: flex;
  align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.svc-item:hover { border-color: var(--lime); background: var(--lime-bg); }
.svc-item__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); flex-shrink: 0;
}

/* ═══ Responsive: Tablet landscape ═══ */
@media (max-width: 1100px) {
  .wrap { padding: 0 32px; }
  .cta { padding: 60px 48px; }
  .cta__title { font-size: 38px; }
}

/* ═══ Responsive: Tablet portrait ═══ */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .nav-pill { display: none; }
  .burger { display: flex; }
  .header__right .btn { display: none; }
  .page-hero { padding: 120px 0 40px; }
  .page-hero__title { font-size: 36px; }
  .section { padding: 60px 0; }
  .section__title { font-size: 32px; }
  .section__head { margin-bottom: 32px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .svc-stats { grid-template-columns: repeat(2, 1fr); }
  .svc-hero { grid-template-columns: 1fr; }
  .svc-meta { min-width: auto; }
  .svc-list { grid-template-columns: 1fr; }
  .mini-cta { margin: 32px 0; flex-direction: column; text-align: center; gap: 14px; padding: 24px; }
  .cta { padding: 48px 36px; border-radius: var(--radius-lg); margin-top: 32px; }
  .cta__inner { flex-direction: column; text-align: center; gap: 28px; }
  .cta__title { font-size: 32px; }
  .cta__buttons { align-items: center; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 28px; padding: 44px 0 36px; margin-top: 32px; }
}

/* ═══ Responsive: Mobile ═══ */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .page-hero { padding: 100px 0 32px; }
  .page-hero__title { font-size: 28px; }
  .page-hero__sub { font-size: 15px; }
  .section { padding: 48px 0; }
  .section__title { font-size: 28px; }
  .section__head { margin-bottom: 28px; }
  .svc-stats { grid-template-columns: 1fr; }
  .mini-cta { margin: 24px 0; padding: 20px 16px; }
  .mini-cta__text { font-size: 14px; }
  .btn--lime, .btn--outline { padding: 14px 28px; font-size: 14px; }
  .cta { padding: 40px 24px; border-radius: var(--radius); margin-top: 24px; }
  .cta__title { font-size: 26px; }
  .cta__sub { font-size: 15px; }
  .btn--white { padding: 14px 28px; font-size: 14px; width: 100%; justify-content: center; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 28px; margin-top: 28px; }
  .footer__brand { text-align: center; align-items: center; }
  .footer__desc { max-width: 100%; }
  .footer__socials { justify-content: center; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; padding: 20px 0 32px; }
}

/* ═══ Responsive: Small mobile ═══ */
@media (max-width: 380px) {
  .section__title { font-size: 24px; }
  .cta__title { font-size: 22px; }
}

@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
