/* ============================================================
   CONTITEX — Single-Page B2B Textile Agency Website
   Visual direction: Editorial European corporate / textile lookbook
   ============================================================ */

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

:root {
  --bg:           #faf9f6;
  --text:         #1b1b19;
  --text-mid:     #4e4b46;
  --text-light:   #8a857d;
  --rule:         #d6d1cb;
  --max-w:        1120px;
  --body-w:       760px;
  --serif:        'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:         'Helvetica Neue', Helvetica, Arial, sans-serif;
  --pad-x:        52px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   UTILITY
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.inner {
  max-width: var(--body-w);
}

hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
}

/* Label — small uppercase sans-serif used as section identifiers */
.label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  display: block;
}

/* ============================================================
   FADE-IN — very restrained, respects motion preferences
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  padding: 68px var(--pad-x) 52px;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.logo-text-fallback {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text);
}

.header-descriptor {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 400;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 56vh;
  min-height: 340px;
  max-height: 620px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ============================================================
   COMPANY PROFILE
   ============================================================ */
.profile {
  padding: 80px 0 72px;
}

.profile .inner {
  max-width: var(--body-w);
}

.profile-heading-block {
  margin-bottom: 36px;
}

.profile-heading-block .label {
  margin-bottom: 6px;
}

.profile-subheading {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 400;
}

.profile-body {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.68;
  letter-spacing: 0.015em;
  color: var(--text-mid);
  max-width: var(--body-w);
}

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise {
  padding: 0 0 80px;
}

.expertise .inner {
  max-width: var(--body-w);
}

.expertise-header {
  margin-bottom: 0;
}

.expertise-list {
  list-style: none;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}

.expertise-list li {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
}

.expertise-list li .e-title {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  flex: 0 0 240px;
  padding-top: 1px;
  line-height: 1.5;
}

.expertise-list li .e-desc {
  font-family: var(--serif);
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.58;
  flex: 1;
}

.expertise-note {
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--text-light);
  line-height: 1.65;
  font-style: normal;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 64px 0 80px;
  border-top: 1px solid var(--rule);
}

.contact .inner {
  max-width: var(--body-w);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 36px;
}

.contact-col {
  padding-right: 40px;
}

.contact-col:not(:first-child) {
  padding-left: 40px;
  padding-right: 40px;
  border-left: 1px solid var(--rule);
}

.contact-col:last-child {
  padding-right: 0;
}

.contact-col .col-label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  display: block;
  margin-bottom: 16px;
}

.contact-col address,
.contact-col p {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-mid);
  font-style: normal;
}

.contact-col a {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-mid);
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.contact-col a:hover {
  color: var(--text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 26px 0;
  text-align: center;
}

.site-footer p {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --pad-x: 36px;
  }

  .expertise-list li .e-title {
    flex: 0 0 200px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --pad-x: 24px;
  }

  .site-header {
    padding: 52px var(--pad-x) 40px;
  }

  .logo-img {
    height: 44px;
  }

  .logo-text-fallback {
    font-size: 16px;
    letter-spacing: 0.38em;
  }

  .hero img {
    height: 52vw;
    min-height: 240px;
    object-position: center 30%;
  }

  .profile {
    padding: 56px 0 48px;
  }

  .profile-body {
    font-size: 15.5px;
    line-height: 1.7;
  }

  .expertise {
    padding: 0 0 56px;
  }

  .expertise-list li {
    flex-direction: column;
    gap: 7px;
    padding: 16px 0;
  }

  .expertise-list li .e-title {
    flex: none;
  }

  .expertise-list li .e-desc {
    font-size: 15px;
  }

  .contact {
    padding: 48px 0 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-col {
    padding: 28px 0;
    border-left: none !important;
    border-bottom: 1px solid var(--rule);
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .contact-col:last-child {
    border-bottom: none;
  }

  .contact-col address,
  .contact-col p,
  .contact-col a {
    font-size: 15px;
  }
}
