/* =============================================================
   CHUTTANI TRADE GROUP — STYLESHEET
   ============================================================= */

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

html {
  scroll-behavior: smooth;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ----- CUSTOM PROPERTIES ----- */
:root {
  --bg:       #1A1A1A;
  --bg-alt:   #222222;
  --surface:  #2A2A2A;
  --body:     #F0EDE8;
  --muted:    #888888;
  --accent:   #C8C0B4;
  --border:   #333333;
  --pad:      clamp(1.25rem, 4vw, 2rem);
  --max-w:    1200px;
  --section-v: 6rem;
}

/* ----- BASE ----- */
body {
  background-color: var(--bg);
  color: var(--body);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.12;
  color: var(--body);
}

/* ----- CONTAINER ----- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ----- SECTION SPACING ----- */
.section {
  padding-block: var(--section-v);
}

/* ----- SECTION LABEL ----- */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.875rem 1.75rem;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

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

.btn--primary:hover {
  opacity: 0.87;
}

.btn--ghost {
  background-color: transparent;
  color: var(--body);
  border: 1px solid var(--body);
}

.btn--ghost:hover {
  opacity: 0.72;
}

.btn--cta {
  background-color: var(--body);
  color: var(--bg);
}

.btn--cta:hover {
  opacity: 0.87;
}

.btn--full {
  width: 100%;
}

/* =============================================================
   LOGO
   ============================================================= */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.logo__main {
  color: var(--body);
}

.logo__sub {
  color: var(--accent);
  font-size: 0.95rem;
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 900;
  padding-block: 1.25rem;
  transition: background-color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: var(--bg);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--body);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 1;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--body);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =============================================================
   MOBILE OVERLAY
   ============================================================= */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.overlay__close {
  position: absolute;
  top: 1.5rem;
  right: var(--pad);
  font-size: 1.4rem;
  color: var(--body);
  opacity: 0.65;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.overlay__close:hover {
  opacity: 1;
}

.overlay__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.overlay__link {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--body);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.overlay__link:hover {
  opacity: 1;
}

.overlay__cta {
  margin-top: 0.5rem;
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 237, 232, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 237, 232, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.hero__content {
  flex: 1;
  max-width: 620px;
}

.hero__h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--body);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--body);
  opacity: 0.72;
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* stats */
.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem 3rem;
  flex-shrink: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat__num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--body);
  line-height: 1;
}

.stat__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============================================================
   TRUST BAR
   ============================================================= */
.trust-bar {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 1.125rem;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 0.875rem;
}

.trust-bar__item {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-bar__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

/* =============================================================
   SERVICES
   ============================================================= */
.services {
  background-color: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* card */
.card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 2.5rem 2rem 2.25rem;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.card:hover {
  opacity: 0.92;
}

.card__num {
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 7rem;
  font-weight: 700;
  color: var(--body);
  opacity: 0.035;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.card__list li {
  font-size: 0.9rem;
  color: var(--body);
  opacity: 0.78;
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--muted);
}

/* =============================================================
   HOW IT WORKS
   ============================================================= */
.steps {
  background-color: var(--bg-alt);
}

.steps .container {
  position: relative;
}

.steps__track {
  display: none;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.steps__grid::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background-color: var(--border);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.step__circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
}

.step__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--body);
  line-height: 1.3;
}

.step__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================================
   ABOUT
   ============================================================= */
.about {
  background-color: var(--bg);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 5rem;
  align-items: start;
}

.about__photo {
  aspect-ratio: 1 / 1;
  background-color: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__initials {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 600;
  color: var(--body);
  opacity: 0.55;
  letter-spacing: 0.04em;
}

.about__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.about__body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--body);
  opacity: 0.83;
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact {
  background-color: var(--bg-alt);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 5rem;
  align-items: start;
}

.contact__h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.contact__sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 360px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__link {
  font-size: 0.95rem;
  color: var(--body);
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.contact__link:hover {
  opacity: 1;
}

/* form */
.form {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form__row .field {
  margin-bottom: 0;
}

.field__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__input {
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--body);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  padding: 0.875rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.field__input:focus {
  border-color: var(--muted);
}

.field__input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.field__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field__select option {
  background-color: var(--surface);
  color: var(--body);
}

.field__textarea {
  resize: vertical;
  min-height: 110px;
}

.form__success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background-color: rgba(240, 237, 232, 0.05);
  font-size: 0.9rem;
  color: var(--body);
  opacity: 0.88;
  text-align: center;
  line-height: 1.6;
}

.form__success.visible {
  display: block;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 1.875rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__logo {
  font-size: 1.05rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__social {
  color: var(--muted);
  transition: color 0.2s ease;
  line-height: 0;
}

.footer__social:hover {
  color: var(--body);
}

/* =============================================================
   RESPONSIVE — 1024px
   ============================================================= */
@media (max-width: 1024px) {
  :root {
    --section-v: 5rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__photo {
    max-width: 260px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__sub {
    max-width: 100%;
  }
}

/* =============================================================
   RESPONSIVE — 768px
   ============================================================= */
@media (max-width: 768px) {
  :root {
    --section-v: 4rem;
  }

  /* hide desktop nav, show hamburger */
  .nav__list {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* hero stacks */
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .hero__stats {
    width: 100%;
    gap: 2rem;
  }

  /* steps: 2 columns */
  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }

  .steps__grid::before {
    display: none;
  }

  /* trust bar: hide dots, wrap items */
  .trust-bar__inner {
    gap: 0.625rem 1.5rem;
    justify-content: center;
  }

  .trust-bar__dot {
    display: none;
  }

  /* footer stacks */
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* =============================================================
   RESPONSIVE — 480px (mobile)
   ============================================================= */
@media (max-width: 480px) {
  .hero__h1 {
    font-size: 2.25rem;
  }

  .hero__sub {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    text-align: center;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }

  .steps__grid {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 1.5rem;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .services__grid {
    max-width: 100%;
  }

  .card {
    padding: 2rem 1.5rem;
  }
}
