/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #120B09;
  --bg-secondary: #2B1E19;
  --text-primary: #FAF5F2;
  --text-muted: #C4B5A8;
  --accent: #B88764;
  --accent-hover: #D4A07A;
  --border: rgba(184, 135, 100, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --section-padding: clamp(60px, 8vw, 120px);
  --container-padding: clamp(16px, 4vw, 40px);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  margin-bottom: clamp(32px, 6vw, 60px);
  text-align: center;
  position: relative;
  padding-bottom: 16px;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 135, 100, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--accent);
}

.btn--secondary:hover {
  background: rgba(184, 135, 100, 0.1);
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(18, 11, 9, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo__img {
  height: 36px;
  width: auto;
  display: block;
}

.logo__accent {
  color: var(--accent);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50px;
  font-weight: 600;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
}

.nav__link--active {
  color: var(--accent);
}

.nav__link--active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(100px, 12vw, 140px) 0 clamp(60px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(184, 135, 100, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Mockup Visual */
.hero__mockup {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.mockup__bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
}

.mockup__dot:nth-child(1) { background: #FF5F56; opacity: 1; }
.mockup__dot:nth-child(2) { background: #FFBD2E; opacity: 1; }
.mockup__dot:nth-child(3) { background: #27C93F; opacity: 1; }

.mockup__body {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.mockup__stat {
  background: rgba(184, 135, 100, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}

.mockup__stat-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.mockup__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup__line {
  height: 6px;
  background: rgba(184, 135, 100, 0.15);
  border-radius: 3px;
  grid-column: 1 / -1;
}

.mockup__line--short {
  width: 65%;
}

.mockup__bar-chart {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding-top: 8px;
}

.mockup__chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), rgba(184, 135, 100, 0.4));
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
  animation: barRise 1.2s ease-out forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

@keyframes barRise {
  to { transform: scaleY(1); }
}

/* ===== ABOUT ===== */
.about {
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--border);
}

.about__content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.9;
}

/* ===== SERVICES ===== */
.services {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3vw, 28px);
  transition: var(--transition);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(184, 135, 100, 0.12);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.service-card__icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: var(--section-padding) 0;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.case-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3vw, 28px);
  position: relative;
  transition: var(--transition);
}

.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(184, 135, 100, 0.1);
}

.case-card__badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(184, 135, 100, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-card__title {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.case-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.case-card__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.case-card__metric-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.case-card__metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.testimonial-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 32px) clamp(20px, 3vw, 28px);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.testimonial-card__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
  color: #F5A623;
  font-size: 1.1rem;
}

.testimonial-card__verified {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: #27C93F;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(39, 201, 63, 0.1);
  padding: 3px 10px;
  border-radius: 50px;
}

.testimonial-card__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card__author {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===== FAQ ===== */
.faq {
  padding: var(--section-padding) 0;
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

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

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

.faq__icon::before {
  width: 14px;
  height: 2px;
}

.faq__icon::after {
  width: 2px;
  height: 14px;
}

.faq__item.active .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__answer p {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq__item.active .faq__answer {
  max-height: 300px;
}

/* ===== FOOTER ===== */
.footer {
  padding: clamp(48px, 6vw, 70px) 0 clamp(24px, 3vw, 30px);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__tagline {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.92rem;
}

.footer__heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer__contact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer__link {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.9rem;
}

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

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

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE — WIDE SCREENS ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero__grid {
    gap: 80px;
  }

  .hero__title {
    font-size: 3.75rem;
  }

  .hero__subtitle {
    font-size: 1.15rem;
    max-width: 600px;
  }
}

/* ===== RESPONSIVE — TABLET LANDSCAPE & BELOW ===== */
@media (max-width: 1200px) {
  .hero__grid {
    gap: 48px;
  }
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__content {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .about__content {
    text-align: center;
    max-width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ===== RESPONSIVE — TABLET PORTRAIT & MOBILE ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100dvh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    padding: 100px clamp(24px, 5vw, 32px) 40px;
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .nav__link {
    font-size: 1rem;
    padding: 6px 0;
  }

  .nav__link--cta {
    display: inline-block;
    margin-top: 8px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
    padding: 16px 28px;
  }

  .mockup__body {
    padding: 20px 16px;
  }

  .mockup__stat-value {
    font-size: 1.3rem;
  }

  .about__content {
    font-size: 0.95rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__links {
    align-items: center;
  }

  .footer__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ===== RESPONSIVE — SMALL PHONES ===== */
@media (max-width: 480px) {
  .logo {
    gap: 8px;
  }

  .logo__img {
    height: 28px;
  }

  .hero {
    padding-top: 80px;
  }

  .hero__title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .hero__subtitle {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 28px;
  }

  .hero__actions .btn {
    font-size: 0.88rem;
    padding: 14px 24px;
  }

  .mockup__body {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 12px;
  }

  .mockup__stat {
    padding: 14px 10px;
  }

  .mockup__stat-value {
    font-size: 1.1rem;
  }

  .mockup__stat-label {
    font-size: 0.65rem;
  }

  .mockup__bar-chart {
    height: 60px;
  }

  .service-card__title {
    font-size: 1.05rem;
  }

  .service-card__desc {
    font-size: 0.88rem;
  }

  .case-card__title {
    font-size: 1.1rem;
  }

  .case-card__metric-value {
    font-size: 1.25rem;
  }

  .faq__question {
    font-size: 0.92rem;
    padding: 16px 18px;
  }

  .faq__answer p {
    padding: 0 18px 16px;
    font-size: 0.88rem;
  }
}

/* ===== RESPONSIVE — VERY SMALL PHONES (320px–374px) ===== */
@media (max-width: 374px) {
  .container {
    padding: 0 12px;
  }

  .logo {
    font-size: 1rem;
    gap: 6px;
  }

  .logo__img {
    height: 24px;
  }

  .hero__title {
    font-size: 1.4rem;
  }

  .hero__subtitle {
    font-size: 0.85rem;
  }

  .hero__actions .btn {
    font-size: 0.82rem;
    padding: 12px 20px;
  }

  .service-card {
    padding: 20px 16px;
  }

  .service-card__title {
    font-size: 0.95rem;
  }

  .case-card {
    padding: 20px 16px;
  }

  .testimonial-card {
    padding: 20px 16px;
  }

  .testimonial-card__text {
    font-size: 0.85rem;
  }

  .mockup__body {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 8px;
  }

  .mockup__stat {
    padding: 10px 8px;
  }

  .mockup__stat-value {
    font-size: 1rem;
  }

  .mockup__bar-chart {
    height: 48px;
  }

  .footer__heading {
    font-size: 1rem;
  }
}

/* ===== RESPONSIVE — LANDSCAPE PHONES ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 90px 0 50px;
  }

  .hero__grid {
    gap: 24px;
  }

  .hero__visual {
    max-width: 350px;
  }

  .mockup__body {
    padding: 12px 14px;
    gap: 8px;
  }

  .mockup__stat {
    padding: 10px 8px;
  }

  .mockup__stat-value {
    font-size: 1rem;
  }

  .mockup__bar-chart {
    height: 40px;
  }
}

/* ===== ACCESSIBILITY — REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== ACCESSIBILITY — FOCUS ===== */
@media (prefers-reduced-motion: no-preference) {
  *:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}

/* ===== RESPONSIVE — PRINT ===== */
@media print {
  .header,
  .nav-toggle,
  .btn--primary {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}
