/* ============================================================
   Personal Trust Site — Linen Fabric Export
   Warm, natural palette inspired by linen & raw cotton
   ============================================================ */

:root {
  --cream: #F7F2EA;
  --sand: #ECE4D5;
  --sand-dark: #D8CBB2;
  --ink: #26221C;
  --muted: #6B645A;
  --accent: #A8552F;
  --accent-dark: #8C4426;
  --green: #4F6046;
  --line: #DDD3C0;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 34, 28, 0.08);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-small { padding: 10px 22px; font-size: 14px; }

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 47, 0.3);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

.btn-outline-light {
  border-color: rgba(247, 242, 234, 0.6);
  color: var(--cream);
}
.btn-outline-light:hover { background: rgba(247, 242, 234, 0.12); }

/* ---------- Eyebrow & headings ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; color: var(--ink); }

h2 { font-size: clamp(28px, 4vw, 42px); }

h3 { font-size: 22px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(38, 34, 28, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 19px;
}

.brand-name { font-family: var(--font-head); font-size: 18px; font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:not(.btn) { position: relative; padding: 4px 0; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 160px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(216, 203, 178, 0.35), transparent 70%),
    var(--cream);
}

/* subtle linen weave texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(38,34,28,0.022) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(38,34,28,0.022) 0 1px, transparent 1px 4px);
}

.hero-inner { position: relative; max-width: 780px; }

.hero h1 {
  font-size: clamp(52px, 9vw, 92px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.hero-role { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin-bottom: 22px; }
.hero-role strong { color: var(--ink); }

.hero-tagline {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-tagline em { color: var(--ink); font-style: normal; font-weight: 600; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: var(--accent);
}
.hero-stats span { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  animation: float 2.4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- About ---------- */

.about { padding: 110px 0; background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.about-photo .photo-note {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: rgba(247, 242, 234, 0.9);
}

.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text p strong { color: var(--ink); }
.about-text h2 { margin-bottom: 26px; }

.about-points { margin-top: 10px; }
.about-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 500;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(168, 85, 47, 0.15);
}

/* ---------- Products ---------- */

.products { padding: 110px 0; }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { margin-top: 6px; }

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card-visual {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 22px;
  color: var(--white);
}
.card-visual svg { width: 38px; height: 38px; }
.visual-linen { background: var(--accent); }
.visual-blend { background: var(--green); }
.visual-viscose { background: #8A6F3F; }

.card h3 { margin-bottom: 12px; }
.card > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

.card ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 8px;
}
.card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Advantages ---------- */

.advantages { margin-top: 90px; }
.advantages > h3 { text-align: center; margin-bottom: 44px; }

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.advantage {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.advantage:hover { background: var(--sand-dark); transform: translateY(-4px); }

.advantage svg {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--accent);
}
.advantage svg path, .advantage svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; }
.advantage svg path:first-child:not([stroke]) { fill: currentColor; stroke: none; }

.advantage h4 { font-size: 18px; margin-bottom: 8px; }
.advantage p { font-size: 14.5px; color: var(--muted); }

/* ---------- Company ---------- */

.company { padding: 110px 0; background: var(--ink); color: var(--cream); }

.company h2, .company h3 { color: var(--cream); }

.company-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.company-text p { color: rgba(247, 242, 234, 0.72); margin-bottom: 18px; }
.company-text p strong { color: var(--cream); }
.company-text h2 { margin-bottom: 26px; }
.company-text .btn { margin-top: 10px; }

.company-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fact {
  background: rgba(247, 242, 234, 0.06);
  border: 1px solid rgba(247, 242, 234, 0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.fact:hover { border-color: var(--accent); background: rgba(168, 85, 47, 0.1); }

.fact strong {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
}
.fact span { font-size: 13.5px; color: rgba(247, 242, 234, 0.7); }

/* ---------- CTA ---------- */

.cta {
  padding: 110px 0;
  background:
    linear-gradient(135deg, rgba(168, 85, 47, 0.92), rgba(140, 68, 38, 0.96)),
    var(--accent);
  text-align: center;
  color: var(--cream);
}

.cta h2 { color: var(--cream); margin-bottom: 18px; }
.cta p {
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(247, 242, 234, 0.85);
  font-size: 17px;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: #1D1A15;
  color: rgba(247, 242, 234, 0.75);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand .brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 10px;
}
.footer-brand p { font-size: 14.5px; }

.site-footer h4 {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 18px;
}

.footer-contact li, .footer-links li { margin-bottom: 12px; font-size: 14.5px; }
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(247, 242, 234, 0.12);
  padding: 22px 0;
  font-size: 13.5px;
  text-align: center;
  color: rgba(247, 242, 234, 0.5);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid, .company-grid {
    grid-template-columns: 1fr;
  }
  .about-photo { max-width: 380px; margin-inline: auto; }
  .advantage-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-photos { max-width: 520px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 0 18px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; padding: 12px 0; }
  .nav-links li:last-child { padding-top: 8px; }

  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .advantage-grid, .company-facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 130px; }
  .catalog-photos.single { max-width: 420px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}

/* ---------- Anchor offset (fixed header) ---------- */

[id] { scroll-margin-top: 92px; }

/* ---------- Dropdown nav ---------- */

.has-dropdown { position: relative; }

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  color: inherit;
  padding: 4px 0;
  position: relative;
}
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.dropdown-toggle:hover::after,
.has-dropdown.open .dropdown-toggle::after { width: 100%; }

.caret { width: 10px; height: 10px; transition: transform 0.25s ease; }
.has-dropdown.open .caret { transform: rotate(180deg); }

/* invisible bridge so hover survives the gap to the panel */
.has-dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px; right: -12px;
  height: 20px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14.5px;
}
.dropdown li a:hover { background: var(--sand); color: var(--accent); }
.dropdown li a::after { display: none; }

/* ---------- Product catalog ---------- */

.section-sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.catalog-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.catalog-pill {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.25s ease;
}
.catalog-pill:hover { border-color: var(--accent); color: var(--accent); }
.catalog-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.catalog-category {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(30px, 5vw, 56px);
  margin-bottom: 44px;
}
.catalog-category:last-of-type { margin-bottom: 0; }

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.catalog-index {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.catalog-info h3 { font-size: 30px; margin-bottom: 14px; }

.catalog-desc { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }

.catalog-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin-bottom: 26px;
}
.catalog-specs tr { border-bottom: 1px solid var(--line); }
.catalog-specs tr:last-child { border-bottom: 0; }
.catalog-specs th {
  text-align: left;
  padding: 10px 16px 10px 0;
  color: var(--muted);
  font-weight: 500;
  width: 38%;
  white-space: nowrap;
  vertical-align: top;
}
.catalog-specs td { padding: 10px 0; font-weight: 500; }

.catalog-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.catalog-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1.5px solid rgba(168, 85, 47, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}
.catalog-more:hover { border-color: var(--accent); }

.catalog-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.catalog-photos.single { grid-template-columns: 1fr; }

.catalog-photos figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.catalog-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.catalog-photos figure:hover img { transform: scale(1.04); }
.catalog-photos figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 14px 10px;
  font-size: 12.5px;
  color: var(--cream);
  background: linear-gradient(transparent, rgba(38, 34, 28, 0.75));
}

/* ---------- Mobile dropdown ---------- */

@media (max-width: 640px) {
  .has-dropdown { width: 100%; }
  .has-dropdown::before { display: none; }
  .dropdown-toggle { width: 100%; justify-content: center; }
  .dropdown-toggle::after { display: none; }
  .dropdown {
    position: static;
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    margin: 6px 24px 0;
    background: var(--sand);
    border: 0;
    box-shadow: none;
    text-align: center;
  }
  .has-dropdown.open .dropdown { display: block; }
}
