/*
Theme Name: PearlTech Showcase
Theme URI: https://daidaihome.com/
Author: Daidaihome
Description: Product and technical display theme for pearlescent pigments.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: pearletech-showcase
*/

:root {
  --ink: #121621;
  --muted: #5d6472;
  --line: rgba(18, 22, 33, 0.12);
  --paper: #f7f8f6;
  --white: #ffffff;
  --teal: #0e7c7b;
  --coral: #c65a4a;
  --gold: #c99a32;
  --violet: #6956a8;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(18, 22, 33, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(18, 22, 33, 0.76), rgba(18, 22, 33, 0));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff 0 12%, transparent 13%),
    conic-gradient(from 20deg, #5fe1c8, #f3d36c, #c765a9, #6575d9, #5fe1c8);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  font-size: 14px;
}
.site-nav a { opacity: 0.88; }
.site-nav a:hover { opacity: 1; }

.section-screen {
  min-height: 100vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0 76px;
}
.hero {
  color: var(--white);
  background: #111622;
}
#pearlCanvas,
.hero-shade,
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media {
  z-index: 0;
  object-fit: cover;
}
#pearlCanvas {
  z-index: 1;
}
.hero.has-media #pearlCanvas {
  opacity: 0.42;
}
.hero-shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 12, 18, 0.82) 0%, rgba(10, 12, 18, 0.48) 48%, rgba(10, 12, 18, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 12, 18, 0.68), rgba(10, 12, 18, 0.04) 36%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding-top: 74px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #a7f0dc; }
h1, h2, h3, p { letter-spacing: 0; }
h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
}
.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #0b1720; background: #a7f0dc; }
.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}
.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(24px, 7vw, 80px);
  z-index: 3;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100% - 40px));
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.hero-panel span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
}
.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}
.section-heading p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.product-section { background: var(--white); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  min-height: 390px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(18, 22, 33, 0.06);
}
.product-surface {
  height: 180px;
  border-radius: 6px;
  margin-bottom: 22px;
  background-size: 180% 180%;
  background-position: center;
  animation: sheen 8s ease-in-out infinite alternate;
}
.product-surface.has-image {
  background-size: cover;
  animation: none;
}
.product-surface.pearl {
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.92), transparent 28%),
    linear-gradient(135deg, #dfe6e5, #f7f2da, #d7eef2, #ffffff);
}
.product-surface.interference {
  background: linear-gradient(115deg, rgba(255,255,255,0.8), transparent 24%),
    linear-gradient(135deg, #f4df6b, #aee8d1, #aab7f0, #f5f5fa);
}
.product-surface.chameleon {
  background: radial-gradient(circle at 24% 18%, rgba(255,255,255,0.78), transparent 18%),
    linear-gradient(135deg, #1f6d77, #7b4ba0, #c15a70, #d7a941);
}
.product-surface.metallic {
  background: linear-gradient(120deg, rgba(255,255,255,0.8), transparent 22%, rgba(255,255,255,0.56) 44%, transparent 64%),
    linear-gradient(135deg, #8b5b35, #d8a94f, #6b7c8f, #f0e2bd);
}
.product-card h3,
.application-grid h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.15;
}
.product-card p,
.application-grid p {
  margin: 0;
  color: var(--muted);
}
.color-section { background: #eef4ef; }
.color-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
}
.swatch-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 12px;
}
.swatch {
  aspect-ratio: 1;
  min-height: 120px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px;
  color: var(--white);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}
.swatch:hover { transform: translateY(-4px) scale(1.01); }
.swatch span {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.26);
}
.s1 { background: linear-gradient(135deg, #f7f7ef, #b7d6d2, #f4e5ad); color: #1b2430; }
.s2 { background: linear-gradient(135deg, #e6c84d, #fff8ca, #66c2ae); }
.s3 { background: linear-gradient(135deg, #d75263, #f4ba8c, #f9f1e5); }
.s4 { background: linear-gradient(135deg, #37275e, #6956a8, #89c6d7); }
.s5 { background: linear-gradient(135deg, #0e7c7b, #77ca87, #dac35a); }
.s6 { background: linear-gradient(135deg, #363849, #c65a4a, #e2b85a); }
.s7 { background: linear-gradient(135deg, #738192, #fff6d7, #b5cad2); color: #1b2430; }
.s8 { background: linear-gradient(135deg, #4e2f2b, #a16044, #d7a56a); }
.application-section {
  background: #141a24;
  color: var(--white);
}
.application-section .section-heading p:last-child { color: rgba(255, 255, 255, 0.68); }
.application-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.application-grid article {
  min-height: 320px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)), transparent;
}
.app-index {
  display: block;
  margin-bottom: 84px;
  color: #a7f0dc;
  font-weight: 900;
}
.application-grid p { color: rgba(255, 255, 255, 0.7); }
.contact-section { background: var(--paper); }
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfbfa;
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.download-section {
  min-height: 78vh;
  background: linear-gradient(135deg, rgba(14, 124, 123, 0.1), rgba(198, 90, 74, 0.08)), var(--white);
}
.download-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 46px;
  align-items: center;
}
.download-list {
  display: grid;
  gap: 12px;
}
.download-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(18, 22, 33, 0.06);
}
.download-list a::after {
  content: "PDF";
  color: var(--teal);
  font-size: 13px;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: #10141c;
}
.site-footer p { margin: 0; }
.site-footer a {
  color: #a7f0dc;
  font-weight: 800;
}
@keyframes sheen {
  from { background-position: 0% 40%; }
  to { background-position: 100% 60%; }
}
@media (max-width: 980px) {
  .product-grid,
  .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .color-layout,
  .contact-layout,
  .download-layout { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
}
@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
    background: rgba(18, 22, 33, 0.82);
  }
  .site-nav {
    justify-content: flex-start;
    font-size: 13px;
  }
  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-top: 132px;
  }
  h1 { font-size: 43px; }
  .product-grid,
  .application-grid,
  .swatch-board { grid-template-columns: 1fr; }
  .product-card,
  .application-grid article { min-height: auto; }
  .app-index { margin-bottom: 32px; }
  .section-inner {
    width: calc(100% - 32px);
    padding-top: 92px;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
