/* SHIWANG TRADE — light indigo + terracotta, rounded cards (distinct from dark-green trade templates) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #1e1b4b;
  --ink-soft: #312e81;
  --muted: #64748b;
  --bg: #eef2ff;
  --surface: #ffffff;
  --accent: #c2410c;
  --accent-soft: #fff7ed;
  --line: rgba(49, 46, 129, 0.12);
  --shadow: 0 18px 50px rgba(30, 27, 75, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, .logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}
.logo img { height: 40px; width: auto; }
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-menu a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--accent); }

.menu-toggle {
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--ink-soft);
}

/* Hero carousel */
.hero-wrap {
  padding: 0 1.25rem 2.5rem;
  margin-top: 0.5rem;
}
.hero-panel {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  min-height: min(78vh, 640px);
  box-shadow: var(--shadow);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30, 27, 75, 0.82) 0%, rgba(30, 27, 75, 0.35) 45%, transparent 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: min(78vh, 640px);
  max-width: 640px;
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero-copy.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fef9c3;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero-copy h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.hero-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 1.5rem;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); }

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.15);
}

/* Sections */
.sect-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.sect-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

/* Products — fixed 4-col grid, equal cards */
.products-section {
  padding: 3.5rem 0 4rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.prod-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.prod-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}
.prod-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-body {
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prod-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}
.prod-body p {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

/* About strip on home */
.about-section {
  padding: 1rem 0 4rem;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-copy p + p { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }
.about-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.85rem;
}
.about-mosaic figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0;
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.1);
}
.about-mosaic img { width: 100%; height: 100%; object-fit: cover; min-height: 140px; }
.about-mosaic .tall { grid-row: span 2; }
.about-mosaic .tall img { min-height: 280px; }

/* Testimonials */
.testimonials-section {
  padding: 2rem 0 3.5rem;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.t-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.t-stars { color: #f59e0b; letter-spacing: 0.05em; font-size: 0.95rem; }
.t-text { color: var(--muted); font-size: 0.92rem; flex: 1; }
.t-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}
.t-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-soft);
}
.t-name { font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); }
.t-role { font-size: 0.8rem; color: var(--muted); }

/* Message — split */
.message-section {
  padding: 2rem 0 4rem;
}
.message-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.message-split .msg-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.message-form-wrap {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.message-form-wrap .sect-title { margin-bottom: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(49, 46, 129, 0.15);
  background: #fff;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 1rem;
}
.footer-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr;
  gap: 2rem;
}
.footer-brand img { height: 42px; margin-bottom: 0.85rem; }
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 32ch;
  margin-bottom: 1.25rem;
}
.footer-social h4,
.footer-nav h4,
.footer-contact h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fde68a;
  margin-bottom: 0.85rem;
}
.footer-social-links {
  display: flex;
  gap: 0.65rem;
}
.footer-social-links a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.footer-social-links a:hover { background: var(--accent); }
.footer-nav ul { list-style: none; }
.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 2;
}
.footer-nav a:hover { color: #fde68a; }
.footer-contact p,
.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  text-decoration: none;
}
.footer-contact a:hover { color: #fde68a; }
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 50;
}

/* About page */
.page-hero {
  padding: 2.5rem 1.25rem 1rem;
}
.page-hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.page-hero-inner h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.page-hero-inner p { color: var(--muted); }

.about-page-gallery {
  padding: 2rem 0 4rem;
}
.gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.gallery-stack figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.gallery-stack img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.gallery-prose {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gallery-prose p + p { margin-top: 1rem; }
.gallery-prose p { color: var(--muted); }

/* Contact page */
.contact-banner {
  margin: 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: var(--max);
  margin-inline: auto;
  box-shadow: var(--shadow);
}
.contact-banner img {
  width: 100%;
  height: min(42vh, 380px);
  object-fit: cover;
}

.contact-body {
  padding: 2.5rem 0 4rem;
}
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.contact-split figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.contact-split img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-card h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.contact-row {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.contact-row strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.contact-row a { word-break: break-all; }

/* Responsive */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 0.85rem 0; }
  .site-header { position: relative; }

  .about-split { grid-template-columns: 1fr; }
  .about-mosaic { grid-template-columns: 1fr 1fr; }
  .about-mosaic .tall { grid-row: auto; }

  .message-split {
    grid-template-columns: 1fr;
  }
  .message-split .msg-visual { order: -1; }
  .message-split .msg-visual img { min-height: 220px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .contact-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr; }
}
