/* =============================================
   CABINETCRAFT PRO — MAIN STYLESHEET
   ============================================= */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #b8862c;
  --gold-light:  #d4a84b;
  --dark:        #1a1510;
  --dark-2:      #2c2418;
  --mid:         #4a3f2f;
  --text:        #3a3228;
  --text-light:  #7a6e60;
  --bg:          #faf8f5;
  --bg-warm:     #f2ede4;
  --white:       #ffffff;
  --border:      #e0d8cc;
  --success:     #2d7a4f;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.16);
  --transition:  .28s cubic-bezier(.4,0,.2,1);
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.section { padding-block: 96px; }

/* --- Section Header ---------------------------------------- */
.section__header {
  text-align: center;
  margin-bottom: 56px;
}
.section__header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-block: 8px 12px;
}
.section__header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin-inline: auto;
}
.section__tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,134,44,.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn--nav {
  background: var(--gold);
  color: var(--white) !important;
  border-color: var(--gold);
  padding: 10px 22px;
  font-size: .88rem;
}
.btn--nav:hover { background: var(--gold-light); }
.btn--full { width: 100%; justify-content: center; }

/* --- Navbar ------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 18px;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(26,21,16,.96);
  backdrop-filter: blur(12px);
  padding-block: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.nav__logo i { color: var(--gold); font-size: 1.2rem; }
.nav__logo span { color: var(--gold); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav__links a:hover { color: var(--gold-light); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,21,16,.88) 0%,
    rgba(44,36,24,.72) 60%,
    rgba(74,63,47,.5) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 120px 60px;
}
.hero__badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero__title span { color: var(--gold-light); }
.hero__sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.8;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 32px;
}
.stat { color: var(--white); }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold-light);
}
.stat span { font-size: .82rem; color: rgba(255,255,255,.65); }
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* --- Trust Bar --------------------------------------------- */
.trust {
  background: var(--dark);
  padding-block: 20px;
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 40px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 500;
}
.trust__item i { color: var(--gold); }

/* --- Services ---------------------------------------------- */
.services { background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 16px;
}
.service-card ul { display: flex; flex-direction: column; gap: 6px; }
.service-card ul li {
  font-size: .85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* --- Portfolio --------------------------------------------- */
.portfolio { background: var(--bg-warm); }
.portfolio__filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.portfolio-item.hidden { display: none; }
.portfolio-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.portfolio-item__img {
  height: 220px;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.portfolio-item__overlay {
  width: 100%;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__overlay h4 { color: var(--white); font-size: 1rem; margin-bottom: 2px; }
.portfolio-item__overlay p  { color: rgba(255,255,255,.7); font-size: .8rem; }

/* --- About ------------------------------------------------- */
.about { background: var(--white); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about__visual { position: relative; }
.about__img-wrap {
  position: relative;
  height: 480px;
}
.about__img {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about__img--main {
  width: 75%;
  height: 380px;
  bottom: 0; right: 0;
  background-size: cover;
  background-position: center;
}
.about__img--accent {
  width: 55%;
  height: 260px;
  top: 0; left: 0;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}
.about__badge-float {
  position: absolute;
  bottom: 24px;
  left: -16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.about__badge-float i { color: var(--gold); font-size: 1.4rem; }
.about__badge-float strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--dark); }
.about__badge-float span  { font-size: .75rem; color: var(--text-light); }
.about__text .section__tag { margin-bottom: 16px; }
.about__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 20px;
}
.about__text p { color: var(--text-light); margin-bottom: 16px; }
.about__features { margin-block: 24px 32px; display: flex; flex-direction: column; gap: 10px; }
.about__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
}
.about__feature i { color: var(--gold); }

/* --- Process ----------------------------------------------- */
.process { background: var(--dark); color: var(--white); }
.process .section__header h2 { color: var(--white); }
.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.process__step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  padding: 0 16px;
}
.process__num {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
}
.process__step h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.process__step p  { color: rgba(255,255,255,.6); font-size: .88rem; }
.process__arrow {
  color: var(--gold);
  font-size: 1.4rem;
  padding-top: 20px;
  align-self: flex-start;
}

/* --- Testimonials ------------------------------------------ */
.testimonials { background: var(--bg-warm); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card__stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-card p {
  color: var(--text);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.7;
}
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
}
.testimonial-card__author strong { display: block; color: var(--dark); font-size: .95rem; }
.testimonial-card__author span  { color: var(--text-light); font-size: .8rem; }
.testimonials__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.testimonials__logos span { color: var(--text-light); font-size: .85rem; }
.testimonials__logos a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  transition: var(--transition);
}
.testimonials__logos a:hover { color: var(--gold); }

/* --- Contact ----------------------------------------------- */
.contact { background: var(--white); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact__info .section__tag { margin-bottom: 16px; }
.contact__info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 16px;
}
.contact__info > p { color: var(--text-light); margin-bottom: 32px; }
.contact__details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact__detail i {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: .9rem;
  flex-shrink: 0;
}
.contact__detail strong { display: block; font-size: .8rem; color: var(--text-light); margin-bottom: 2px; }
.contact__detail a, .contact__detail span { font-size: .92rem; color: var(--text); }
.contact__detail a:hover { color: var(--gold); }
.contact__social span { font-size: .82rem; color: var(--text-light); font-weight: 500; display: block; margin-bottom: 10px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: .9rem;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}

/* --- Form -------------------------------------------------- */
.contact__form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: .02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,44,.12);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #e05454; }
.form-group textarea { resize: vertical; }
.form-group--check { flex-direction: row; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.form-group--check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold);
  padding: 0;
  border: none;
}
.form-group--check label { font-size: .83rem; font-weight: 400; color: var(--text-light); }
.form-error { font-size: .75rem; color: #e05454; min-height: 16px; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #edf7f1;
  border: 1px solid #a8d9b8;
  border-radius: 10px;
  color: var(--success);
  font-weight: 500;
  font-size: .9rem;
}
.form-success.show { display: flex; }

/* --- Footer ------------------------------------------------ */
.footer { background: var(--dark-2); color: rgba(255,255,255,.7); }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-block: 64px 48px;
}
.footer__brand p {
  font-size: .88rem;
  margin-block: 14px 20px;
  max-width: 280px;
  line-height: 1.7;
}
.footer__col h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer__col ul li a:hover { color: var(--gold-light); }
.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.footer__contact-list li i { color: var(--gold); margin-top: 3px; font-size: .85rem; }
.footer__contact-list li a { transition: var(--transition); }
.footer__contact-list li a:hover { color: var(--gold-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* --- Back to Top ------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(184,134,44,.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .about__inner,
  .contact__inner { grid-template-columns: 1fr; }
  .about__img-wrap { height: 320px; }
  .about__img--main { width: 80%; height: 260px; }
  .about__img--accent { height: 180px; }
  .about__badge-float { left: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .section { padding-block: 64px; }
  .nav__links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,21,16,.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.2rem; }
  .nav__burger { display: flex; z-index: 100; }
  .nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .form-row { grid-template-columns: 1fr; }
  .process__steps { flex-direction: column; align-items: center; gap: 16px; }
  .process__arrow { transform: rotate(90deg); }
  .footer__top { grid-template-columns: 1fr; }
  .hero__stats { gap: 20px; }
  .trust__inner { gap: 12px 24px; }
}

@media (max-width: 480px) {
  .contact__form { padding: 24px 20px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { justify-content: center; }
}

/* --- Video Showcase ---------------------------------------- */
.video-section { background: var(--dark); }
.video-section .section__header h2 { color: var(--white); }
.video-section .section__header p  { color: rgba(255,255,255,.55); }

.video-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.video-showcase__player {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 480px;
  background: #000;
  outline: none;
  box-shadow: var(--shadow-lg);
}
.video-showcase__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.thumb-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  opacity: .85;
}
.thumb-img:hover {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}

@media (max-width: 860px) {
  .video-showcase { grid-template-columns: 1fr; }
  .video-showcase__thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .video-showcase__thumbs { grid-template-columns: repeat(3, 1fr); }
}
