/*
Theme Name: TAOMEGU Sanitary Ware
Theme URI: https://example.com
Author: TAOMEGU
Author URI: https://example.com
Description: A factory-style WordPress theme for TAOMEGU sanitary ware, including products, factory tour, OEM/ODM services, quality inspection, packing, shipment and hotel project cases.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: taomegu
*/

:root {
  --ink: #101214;
  --muted: #687079;
  --line: #d9dee4;
  --paper: #f6f7f8;
  --white: #ffffff;
  --steel: #1f2933;
  --blue: #286f9a;
  --gold: #b7935c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px 5vw;
  border-bottom: 1px solid rgba(16, 18, 20, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}
.brand img { width: 156px; height: 46px; object-fit: contain; object-position: left center; }
.nav { display: flex; justify-content: center; gap: 22px; font-size: 14px; font-weight: 700; }
.nav a { padding: 9px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); }
.search span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.search input { width: 118px; border: 0; outline: 0; font: inherit; }

button, .hero-buttons a, .inquiry-form button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}
button { background: var(--white); color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 360px 360px;
  gap: 16px;
  padding: 16px;
  background: var(--paper);
}
.hero-card { position: relative; min-height: 320px; overflow: hidden; background: var(--steel); }
.hero-primary { grid-row: span 2; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.hero-card::after, .contact-section::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.02));
}
.hero-copy { position: absolute; inset: auto auto 10% 7%; z-index: 1; width: min(620px, 78%); color: var(--white); }
.hero-copy span, .section-heading span, .case-feature span, .contact-panel span, .news-grid span {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy h1, .hero-copy h2, .section-heading h2, .contact-panel h2 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-copy h2 { font-size: 32px; line-height: 1.05; }
.hero-copy p { max-width: 540px; margin: 0 0 28px; color: rgba(255,255,255,.9); font-size: 18px; }
.hero-copy.compact { inset: auto 28px 30px 28px; width: auto; }
.hero-copy.compact p { font-size: 15px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-buttons a { display: inline-flex; align-items: center; }
.hero-buttons .ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }

.section { padding: 86px 5vw; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading h2 { color: var(--ink); font-size: clamp(32px, 4vw, 54px); }
.section-heading p, .split p, .profile-panel p { max-width: 660px; color: var(--muted); font-size: 17px; }
.split { display: flex; justify-content: space-between; gap: 32px; max-width: none; align-items: end; }
.split p { margin-bottom: 18px; }

.intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; }
.intro-media, .profile-panel, .advantage-grid article, .product-card, .service-layout article, .news-grid article {
  border: 1px solid var(--line);
  background: var(--white);
}
.intro-media img { width: 100%; height: 520px; object-fit: cover; }
.profile-panel { display: flex; flex-direction: column; justify-content: center; padding: 38px; }
.profile-panel img { width: 240px; margin-bottom: 34px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stats div { padding: 18px; background: var(--paper); }
.stats strong, .stats span { display: block; }
.stats span { color: var(--muted); font-size: 13px; }

.dark-band, .cases-section { background: #15191d; color: var(--white); }
.section-heading.light h2, .section-heading.light p { color: var(--white); }
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.advantage-grid article { background: #20262c; border-color: rgba(255,255,255,.14); }
.advantage-grid img { width: 100%; height: 210px; object-fit: cover; }
.advantage-grid h3, .advantage-grid p, .service-layout h3, .service-layout p, .product-card h3, .product-card p, .case-grid h3 {
  margin-left: 18px;
  margin-right: 18px;
}
.advantage-grid h3 { margin-top: 18px; }
.advantage-grid p { margin-bottom: 22px; color: rgba(255,255,255,.74); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card img { width: 100%; aspect-ratio: 1 / .82; object-fit: cover; background: var(--paper); }
.product-card h3, .service-layout h3 { margin-top: 18px; font-size: 20px; }
.product-card p, .service-layout p { margin-bottom: 24px; color: var(--muted); }
.product-card.wide { grid-column: span 2; }

.process-section { background: var(--paper); }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.process-list article { position: relative; overflow: hidden; min-height: 310px; background: var(--ink); }
.process-list img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.process-list span { position: absolute; top: 16px; left: 16px; color: var(--white); font-size: 13px; font-weight: 800; }
.process-list h3 { position: absolute; left: 16px; right: 16px; bottom: 10px; color: var(--white); font-size: 21px; }

.service-layout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-layout img { width: 100%; height: 230px; object-fit: cover; }

.case-feature { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 28px; margin-bottom: 18px; background: #20262c; }
.case-feature img { width: 100%; height: 520px; object-fit: cover; }
.case-feature div { padding: 34px; }
.case-feature h3 { margin: 12px 0; font-size: 36px; line-height: 1.08; }
.case-feature p { color: rgba(255,255,255,.74); }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-grid article { overflow: hidden; background: #20262c; }
.case-grid img { width: 100%; height: 190px; object-fit: cover; }
.case-grid h3 { min-height: 58px; color: var(--white); font-size: 18px; }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news-grid article { min-height: 210px; padding: 24px; }
.news-grid h3 { font-size: 22px; line-height: 1.15; }
.news-grid p { color: var(--muted); }

.contact-section { position: relative; min-height: 720px; display: flex; align-items: center; padding: 70px 5vw; overflow: hidden; }
.contact-section > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 42px;
  color: var(--white);
  background: rgba(16,18,20,.72);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.contact-panel h2 { font-size: clamp(32px, 4vw, 56px); }
.contact-panel p { color: rgba(255,255,255,.78); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.contact-grid div { padding: 14px; background: rgba(255,255,255,.08); }
.contact-grid strong, .contact-grid span { display: block; }
.contact-grid span { color: rgba(255,255,255,.78); font-size: 14px; }
.inquiry-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.inquiry-form input, .inquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.92);
  padding: 13px 14px;
  font: inherit;
}
.inquiry-form textarea { grid-column: 1 / -1; min-height: 110px; resize: vertical; }
.inquiry-form button { width: fit-content; background: var(--blue); border-color: var(--blue); }

.footer { display: flex; justify-content: space-between; gap: 28px; padding: 34px 5vw; color: var(--white); background: #0d0f11; }
.footer p { margin: 6px 0 0; color: rgba(255,255,255,.66); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr; }
  .nav { justify-content: flex-start; flex-wrap: wrap; }
  .hero, .intro-grid, .case-feature { grid-template-columns: 1fr; }
  .hero-primary { grid-row: auto; }
  .advantage-grid, .product-grid, .process-list, .service-layout, .case-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { position: static; padding: 14px 18px; }
  .header-actions, .split, .footer { flex-direction: column; align-items: stretch; }
  .hero { grid-template-rows: none; padding: 10px; }
  .hero-card { min-height: 430px; }
  .hero-copy { inset: auto 24px 32px 24px; width: auto; }
  .hero-copy h1 { font-size: 40px; }
  .section { padding: 58px 18px; }
  .advantage-grid, .product-grid, .process-list, .service-layout, .case-grid, .news-grid, .contact-grid, .inquiry-form, .stats { grid-template-columns: 1fr; }
  .product-card.wide { grid-column: auto; }
  .intro-media img, .case-feature img { height: 340px; }
  .contact-panel { padding: 28px; }
}
