/* ============================================
   Trimbelt Max 27 – Main Stylesheet
   ============================================ */

:root {
  --gold: #c89b5e;
  --gold-hover: #b8864d;
  --dark: #1e1e1e;
  --text-secondary: #1e1e1e;
  --bg-main: #f6f4f1;
  --bg-card: #ffffff;
  --divider: #e7e1d8;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', 'Segoe UI', sans-serif;
  --header-height: 80px;
  --container: 1200px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-dark {
  color: var(--dark);
}

.text-gold {
  color: var(--gold);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--solid {
  background: var(--gold);
  color: var(--bg-card);
  border-color: var(--gold);
}

.btn--solid:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

.btn--outline {
  background: var(--bg-card);
  color: var(--gold);
  border-color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--bg-card);
}

/* ---- Section labels & titles ---- */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.section-title--center {
  text-align: center;
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__icon {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.logo__name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.2;
}

.logo__tagline {
  display: block;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--divider);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(30, 30, 30, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--gold);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.header__cta {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  transition: transform var(--transition), opacity var(--transition);
}

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--dark);
}

.mobile-menu__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__link {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--transition);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--gold);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: var(--header-height);
  overflow: hidden;
  background: var(--bg-card);
}

.hero__bg {
  position: relative;
  width: 100%;
  height: 300px;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 36px 0 52px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 4.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  max-width: 420px;
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 400px;
}

.hero__btn svg {
  flex-shrink: 0;
}

/* ---- Features ---- */
.features {
  padding: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--divider);
}

.features .container {
  padding-top: 0;
  padding-bottom: 0;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--divider);
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 16px;
  text-align: left;
  border: 1px solid var(--divider);
  margin: -0.5px;
  background: var(--bg-card);
}

.feature__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding-top: 2px;
}

.feature__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.feature__content {
  flex: 1;
  min-width: 0;
}

.feature__title {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--dark);
}

.feature__text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---- References ---- */
.references {
  padding: 72px 0;
  background: var(--bg-main);
}

.references__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.references__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 400px;
}

.references__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: var(--bg-card);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(30, 30, 30, 0.75), transparent);
  color: var(--bg-card);
}

.project-card__overlay span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- About ---- */
.about {
  padding: 72px 0;
  background: var(--bg-card);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__btn {
  margin-top: 8px;
}

.about__visual {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.about__sketch {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* ---- Process ---- */
.process {
  padding: 72px 0;
  background: var(--bg-main);
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

.process__step {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
}

.process__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.process__step h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.process__step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---- Contact CTA ---- */
.contact-cta {
  padding: 72px 0;
  background: var(--bg-main);
  border-top: 1px solid var(--divider);
}

.contact-cta__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-cta__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.75;
}

/* ---- Footer ---- */
.footer {
  padding: 60px 0 32px;
  background: var(--bg-card);
  border-top: 1px solid var(--divider);
}

.footer__top {
  margin-bottom: 40px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--gold);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-item a:hover {
  color: var(--gold);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  transition: background var(--transition), color var(--transition);
}

.footer__social a:hover {
  background: var(--gold);
  color: var(--bg-card);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__copy {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ============================================
   Tablet & Desktop
   ============================================ */
@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature {
    border: none;
    border-right: 1px solid var(--divider);
    margin: 0;
    padding: 32px 20px;
    gap: 16px;
  }

  .feature__icon img {
    width: 44px;
    height: 44px;
  }

  .feature:last-child {
    border-right: none;
  }

  .references__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .about__inner {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .about__content {
    flex: 1;
  }

  .about__visual {
    flex: 1;
  }

  .process__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  .hero {
    flex-direction: row;
    align-items: stretch;
    min-height: calc(100vh - var(--header-height));
    min-height: 620px;
    background: var(--bg-main);
  }

  .hero__bg {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .hero__overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      to right,
      var(--bg-main) 0%,
      rgba(246, 244, 241, 0.95) 22%,
      rgba(246, 244, 241, 0.75) 38%,
      rgba(246, 244, 241, 0.2) 58%,
      transparent 72%
    );
  }

  .hero__container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: inherit;
  }

  .hero__content {
    padding: 80px 0;
    max-width: 460px;
  }

  .hero__title {
    font-size: clamp(1.65rem, 2.4vw, 2.1rem);
    letter-spacing: 0.06em;
    margin-bottom: 24px;
    max-width: 400px;
  }

  .references__inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .references__text {
    flex: 0 0 38%;
  }

  .references__grid {
    flex: 1;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    min-width: 0;
  }

  .project-card {
    aspect-ratio: 3 / 4;
    max-height: none;
  }
}
