/* ===========================
   SochiCabinetMaker — Styles
   Premium Minimalist Theme
   =========================== */

/* --- CSS Variables --- */
:root {
  /* Colors — dark graphite / anthracite palette */
  --clr-bg: #1E1E1C;
  --clr-bg-alt: #222222;
  --clr-bg-dark: #161614;
  --clr-bg-card: #2A2A28;
  --clr-text: #E8E4DE;
  --clr-text-light: #9B9488;
  --clr-text-inv: #FAF6F0;
  --clr-primary: #8B7355;
  --clr-primary-dark: #6B5335;
  --clr-primary-light: #CBBBA0;
  --clr-gold: #A89070;
  --clr-gold-light: #CBBBA0;
  --clr-accent: #5A7A5A;
  --clr-accent-light: #7A9F7A;
  --clr-border: #3A3A38;
  --clr-overlay: rgba(20, 20, 18, 0.7);
  --clr-card-shadow: rgba(0, 0, 0, 0.25);
  --clr-glow: rgba(203, 187, 160, 0.08);

  /* Typography */
  --ff-heading: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sizing */
  --container: 1200px;
  --gap: 24px;
  --radius: 10px;
  --radius-sm: 8px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Allow pointer events on interactive image wrappers */
.portfolio-card__img-wrap,
.service-card__img-wrap,
.material-card__img-wrap,
.hero__bg,
.lightbox__content {
  pointer-events: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* --- Section --- */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--clr-primary-light);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--ff-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section__title--left {
  text-align: left;
}

.section__desc {
  font-size: 17px;
  color: var(--clr-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons (matte, no outlines) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease);
}

.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-text-inv);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary span,
.btn--primary {
  position: relative;
  z-index: 1;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 16px;
}

/* ========================
   HEADER
   ======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(22, 22, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(203, 187, 160, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.header--hidden {
  transform: translateY(-100%);
}

.header--scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  background: rgba(22, 22, 20, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--clr-text-inv);
}

.logo__icon {
  color: var(--clr-primary-light);
  font-size: 18px;
}

.logo__sub {
  color: var(--clr-primary-light);
  font-weight: 400;
  font-size: 16px;
  margin-left: 2px;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 246, 240, 0.7);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary-light);
  transition: width var(--duration) var(--ease);
}

.nav__link:hover {
  color: var(--clr-primary-light);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--clr-primary);
  color: var(--clr-text-inv) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text-inv);
  transition: all var(--duration) var(--ease);
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20, 20, 18, 0.88) 0%,
    rgba(20, 20, 18, 0.6) 50%,
    rgba(20, 20, 18, 0.45) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 0;
}

.hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Subtle divider after hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
  z-index: 3;
}

/* ========================
   ADVANTAGES
   ======================== */
.advantages {
  padding: 60px 0;
  background: var(--clr-bg-dark);
  position: relative;
}

.advantages::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.advantage {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.advantage:hover {
  background: rgba(203, 187, 160, 0.04);
}

.advantage__icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.85;
}

.advantage__title {
  font-family: var(--ff-heading);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--clr-primary-light);
  font-weight: 600;
}

.advantage__text {
  font-size: 14px;
  color: rgba(250, 246, 240, 0.6);
  line-height: 1.6;
}

/* ========================
   SERVICES
   ======================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--clr-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--clr-card-shadow);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-card__img-wrap {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 28px;
}

.service-card__title {
  font-family: var(--ff-heading);
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--clr-text);
}

.service-card__text {
  font-size: 15px;
  color: var(--clr-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-card__tags li {
  background: rgba(139, 115, 85, 0.12);
  color: var(--clr-primary-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ========================
   MATERIALS
   ======================== */
.materials {
  background: var(--clr-bg-alt);
}

.materials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.material-card {
  background: var(--clr-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--clr-card-shadow);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
}

.material-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.material-card:hover::after {
  opacity: 1;
}

.material-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.material-card__img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.material-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.material-card:hover .material-card__img {
  transform: scale(1.05);
}

.material-card__body {
  padding: 28px;
}

.material-card__title {
  font-family: var(--ff-heading);
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--clr-text);
}

.material-card__text {
  font-size: 15px;
  color: var(--clr-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.material-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.material-card__tags span {
  background: rgba(90, 122, 90, 0.1);
  color: var(--clr-accent-light);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.material-card__use {
  font-size: 14px;
  color: var(--clr-text-light);
}

.material-card__use strong {
  color: var(--clr-text);
}

/* ========================
   PORTFOLIO
   ======================== */
.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.portfolio__filter {
  background: var(--clr-bg-card);
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-text-light);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.portfolio__filter:hover {
  color: var(--clr-text);
  background: rgba(203, 187, 160, 0.1);
}

.portfolio__filter.active {
  background: var(--clr-primary);
  color: var(--clr-text-inv);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portfolio-card {
  background: var(--clr-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--clr-card-shadow);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
}

.portfolio-card__img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.portfolio-card:hover .portfolio-card__img {
  transform: scale(1.06);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 20, 18, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__zoom {
  font-size: 28px;
  color: #fff;
}

.portfolio-card__body {
  padding: 24px;
}

.portfolio-card__title {
  font-family: var(--ff-heading);
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--clr-text);
}

.portfolio-card__meta {
  font-size: 13px;
  color: var(--clr-primary);
  margin-bottom: 10px;
  font-weight: 500;
}

.portfolio-card__desc {
  font-size: 14px;
  color: var(--clr-text-light);
  line-height: 1.6;
}

/* ========================
   ABOUT
   ======================== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px var(--clr-card-shadow);
  position: relative;
}

.about__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(203, 187, 160, 0.1);
  pointer-events: none;
}

.about__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about__content .section__label {
  display: block;
  margin-bottom: 12px;
}

.about__content .section__title {
  margin-bottom: 24px;
}

.about__text {
  font-size: 16px;
  color: var(--clr-text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--clr-border);
}

.about__stat {
  display: flex;
  flex-direction: column;
}

.about__stat-num {
  font-family: var(--ff-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--clr-primary-light);
}

.about__stat-label {
  font-size: 14px;
  color: var(--clr-text-light);
  margin-top: 4px;
}

/* ========================
   PROCESS
   ======================== */
.process {
  background: var(--clr-bg-alt);
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.process__step {
  position: relative;
  padding: 32px;
  background: var(--clr-bg-card);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--clr-card-shadow);
  transition: all var(--duration) var(--ease);
}

.process__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.process__num {
  font-family: var(--ff-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--clr-primary-light);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 16px;
}

.process__title {
  font-family: var(--ff-heading);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--clr-text);
}

.process__text {
  font-size: 14px;
  color: var(--clr-text-light);
  line-height: 1.6;
}

/* ========================
   CTA BANNER
   ======================== */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 18, 0.9) 0%,
    rgba(20, 20, 18, 0.7) 100%
  );
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-banner__title {
  font-family: var(--ff-heading);
  font-size: clamp(28px, 4vw, 40px);
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner__text {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================
   CONTACT
   ======================== */
/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px;
  background: var(--clr-bg-dark);
  border-radius: var(--radius);
}

.contact-info__name {
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--clr-text-inv);
}

.contact-info__title {
  font-family: var(--ff-heading);
  font-size: 16px;
  color: var(--clr-primary-light);
  margin-bottom: 8px;
}

.contact-info__link {
  font-size: 20px;
  font-weight: 600;
  color: var(--clr-primary-light);
  word-break: break-all;
}

.contact-info__link--email {
  font-size: 16px;
}

.contact-info__link:hover {
  color: var(--clr-text-inv);
}

.contact-info__messengers {
  display: flex;
  gap: 16px;
}

.contact-info__messenger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(203, 187, 160, 0.06);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 246, 240, 0.8);
  transition: all var(--duration) var(--ease);
}

.contact-info__messenger:hover {
  background: rgba(203, 187, 160, 0.12);
  color: var(--clr-primary-light);
}

.contact-info__text {
  font-size: 15px;
  color: rgba(250, 246, 240, 0.6);
}

/* ========================
   CONTACT FORM
   ======================== */
.contact-form {
  background: var(--clr-bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  max-width: 500px;
  margin-bottom: 40px;
}

.contact-form__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--clr-text-inv);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-inv);
  font-family: var(--ff-body);
  font-size: 14px;
  transition: border-color var(--duration) var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-size: 14px;
}

.form-group--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
  color: var(--clr-text);
  margin-bottom: 0;
}

.form-group--checkbox input {
  width: auto;
  margin-top: 3px;
  cursor: pointer;
}

.form-group--checkbox a {
  color: var(--clr-primary-light);
  text-decoration: underline;
}

.form-group--checkbox a:hover {
  color: var(--clr-primary);
}

.form__notice {
  font-size: 12px;
  color: var(--clr-text-light);
  margin-top: 16px;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--clr-bg-dark);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer .logo__text,
.footer .logo__icon {
  color: var(--clr-text-inv);
}

.footer .logo__sub {
  color: var(--clr-primary-light);
}

.footer__copy {
  font-size: 13px;
  color: rgba(253, 250, 246, 0.5);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(253, 250, 246, 0.6);
}

.footer__links a:hover {
  color: var(--clr-primary-light);
}

/* ========================
   SCROLL TOP
   ======================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--duration) var(--ease);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

/* ========================
   MESSENGER FLOAT BUTTONS
   ======================== */
.messengers-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 998;
}

.messenger-float {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(255, 255, 255, 0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-radius 0.3s ease;
  backdrop-filter: blur(4px);
}

.messenger-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.messenger-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  border-radius: 20px;
}

.messenger-float:active {
  transform: translateY(-1px) scale(0.97);
}

.messenger-float svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.messenger-float--wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.messenger-float--wa:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, #2BE87A 0%, #1DA87A 100%);
}

.messenger-float--tg {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 50%, #1A8AC9 100%);
}

.messenger-float--tg:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, #45C1FF 0%, #2AABEE 100%);
}

@media (max-width: 480px) {
  .messengers-float {
    bottom: 80px;
    right: 16px;
    gap: 10px;
  }
  .messenger-float {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .messenger-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ========================
   ANIMATIONS (Scroll Reveal)
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   SCROLL PROGRESS BAR
   ======================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  z-index: 1001;
  transition: width 0.05s linear;
}

/* ========================
   ACTIVE NAV LINK
   ======================== */
.nav__link--active {
  color: var(--clr-primary-light) !important;
}

.nav__link--active::after {
  width: 100% !important;
  background: var(--clr-primary-light) !important;
}

/* ========================
   LIGHTBOX
   ======================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 4, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox__container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 80vw;
  max-height: 75vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox__title {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--ff-heading);
  font-size: 18px;
  margin-top: 16px;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 36px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.lightbox__close:hover {
  color: var(--clr-primary-light);
  transform: rotate(90deg);
}

.lightbox__nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 40px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 4px;
}

.lightbox__nav:hover {
  background: rgba(203, 187, 160, 0.15);
  border-color: var(--clr-primary-light);
  color: var(--clr-primary-light);
}

/* ========================
   BUTTON EFFECTS
   ======================== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: scale(0);
  animation: rippleExpand 0.6s ease-out;
  pointer-events: none;
  margin-left: -10px;
  margin-top: -10px;
}

/* ========================
   CURSOR GLOW
   ======================== */
.portfolio {
  position: relative;
  overflow: hidden;
}

.cursor-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(203, 187, 160, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

/* ========================
   PROCESS STEP ACTIVE
   ======================== */
.process__step--active {
  animation: pulseStep 1s ease-out;
}

.process__step--active .process__num {
  opacity: 1 !important;
}

/* ========================
   DIGITAL VISUALIZATION EFFECTS
   ======================== */

/* Wood texture highlight on card image hover */
.portfolio-card__img-wrap::after,
.service-card__img-wrap::after,
.material-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(203, 187, 160, 0.0) 0%,
    rgba(203, 187, 160, 0.08) 50%,
    rgba(203, 187, 160, 0.0) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.portfolio-card:hover .portfolio-card__img-wrap::after,
.service-card:hover .service-card__img-wrap::after,
.material-card:hover .material-card__img-wrap::after {
  opacity: 1;
}

/* Subtle section gradient dividers */
.services::after,
.materials::after,
.portfolio::after,
.about::after,
.process::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
  margin-top: 100px;
}

/* Card hover brightness shift (digital feel) */
.service-card:hover .service-card__img,
.material-card:hover .material-card__img,
.portfolio-card:hover .portfolio-card__img {
  filter: brightness(1.05) contrast(1.02);
}

/* Smooth letter-spacing animation on section labels */
.section__label {
  transition: letter-spacing 0.4s ease, color 0.3s ease;
}

.section__header:hover .section__label {
  letter-spacing: 5px;
}

/* Subtle radial ambient light behind section headers */
.section__header {
  position: relative;
}

.section__header::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(139, 115, 85, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================
   RESPONSIVE
   ======================== */

/* Tablets */
@media (max-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .materials__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__img {
    height: 360px;
  }

  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  /* Burger menu */
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--clr-bg-dark);
    padding: 100px 32px 40px;
    transition: right var(--duration) var(--ease);
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .nav__link {
    font-size: 18px;
  }

  .nav__link--cta {
    margin-top: 16px;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero__content {
    padding: 100px 0 60px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Advantages */
  .advantages {
    padding: 48px 0;
  }

  .advantages__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .advantage {
    padding: 20px 12px;
  }

  .advantage__icon {
    font-size: 32px;
  }

  .advantage__title {
    font-size: 15px;
  }

  .advantage__text {
    font-size: 13px;
  }

  /* Services */
  .service-card__img-wrap {
    height: 200px;
  }

  .service-card__body {
    padding: 20px;
  }

  .service-card__title {
    font-size: 19px;
  }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .portfolio__filters {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .portfolio__filters::-webkit-scrollbar {
    display: none;
  }

  .portfolio__filter {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .portfolio-card__img-wrap {
    height: 200px;
  }

  /* Materials */
  .material-card__body {
    padding: 20px;
  }

  .material-card__title {
    font-size: 20px;
  }

  /* Process */
  .process__timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process__step {
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .process__num {
    font-size: 36px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .process__title {
    font-size: 17px;
  }

  /* About */
  .about__img {
    height: 280px;
  }

  .section__title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .section__desc {
    font-size: 15px;
  }

  /* Contact */
  .contact-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-input {
    padding: 14px 16px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .form-textarea {
    min-height: 100px;
  }

  .contact-info {
    padding: 28px 20px;
    gap: 24px;
  }

  .contact-info__link {
    font-size: 18px;
  }

  .contact-info__link--email {
    font-size: 14px;
  }

  .contact-info__messengers {
    flex-direction: column;
    gap: 12px;
  }

  .contact-info__messenger {
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  /* About stats */
  .about__stats {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* CTA */
  .cta-banner {
    padding: 64px 0;
  }

  .cta-banner__title {
    font-size: clamp(22px, 5vw, 32px);
  }

  .cta-banner__text {
    font-size: 15px;
  }

  /* Footer */
  .footer__inner {
    gap: 16px;
  }

  .footer__links {
    gap: 12px 16px;
  }

  .footer__copy {
    font-size: 12px;
  }

  /* Lightbox mobile */
  .lightbox__img {
    max-width: 95vw;
    max-height: 70vh;
    border-radius: var(--radius-sm);
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .lightbox__container {
    gap: 8px;
  }

  .lightbox__close {
    top: -36px;
    right: -4px;
  }

  /* Disable tilt/magnetic on touch */
  .portfolio-card,
  .service-card {
    transform: none !important;
  }

  /* Touch-friendly tap areas */
  .btn {
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }

  .portfolio__filter {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Scroll progress thinner on mobile */
  .scroll-progress {
    height: 2px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --gap: 16px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .hero__content {
    padding: 90px 0 50px;
  }

  .about__stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .about__stat {
    align-items: center;
  }

  .about__img {
    height: 220px;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .advantage {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px 12px;
  }

  .advantage__icon {
    font-size: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .advantage__title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .advantage__text {
    font-size: 12px;
  }

  .section__header {
    margin-bottom: 36px;
  }

  .section__label {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .section {
    padding: 48px 0;
  }

  .service-card__img-wrap {
    height: 180px;
  }

  .portfolio-card__img-wrap {
    height: 160px;
  }

  .lightbox__nav {
    display: none;
  }

  .lightbox__title {
    font-size: 14px;
  }

  .contact-info__name {
    font-size: 19px;
  }

  .contact-info__messengers {
    gap: 10px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form {
    max-width: 100%;
    padding: 24px;
  }

  .scroll-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
  }

  .btn--lg {
    padding: 15px 28px;
    font-size: 15px;
  }

  .footer {
    padding: 32px 0;
  }

  .contact-form {
    max-width: 480px;
  }
}

/* ========================
   COOKIE CONSENT
   ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(30, 30, 28, 0.97);
  border-top: 1px solid rgba(193, 154, 107, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cookie-banner.visible {
  opacity: 1;
  visibility: visible;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner__text {
  font-size: 14px;
  color: rgba(253, 250, 246, 0.8);
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--clr-primary-light);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-banner__btn--accept {
  background: var(--clr-primary);
  color: #fff;
}

.cookie-banner__btn--accept:hover {
  background: var(--clr-primary-dark);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: rgba(253, 250, 246, 0.6);
  border: 1px solid rgba(253, 250, 246, 0.2);
}

.cookie-banner__btn--reject:hover {
  color: #fff;
  border-color: rgba(253, 250, 246, 0.4);
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner__text {
    font-size: 13px;
  }
}
