/*
Theme Name: Foshan Panel Export
Theme URI: https://example.com/foshan-panel-export
Author: Codex
Author URI: https://openai.com
Description: A ready-to-use WordPress theme for a Foshan decorative panel export factory. Includes automatic homepage, navigation, products, applications, inquiries, and multilingual front-end copy.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: foshan-panel
*/

:root {
  --navy: #162d4a;
  --navy-2: #244460;
  --gold: #c8a464;
  --gold-2: #d7b779;
  --ink: #20242a;
  --muted: #667085;
  --cloud: #f5f6f8;
  --steel: #d8dee7;
  --line: #e6e9ef;
  --white: #ffffff;
  --success: #2f7d5b;
  --shadow: 0 16px 36px rgba(22, 45, 74, 0.12);
  --shadow-soft: 0 8px 24px rgba(32, 36, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.admin-bar .site-header {
  top: 32px;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 96px;
}

.section-light {
  background: var(--cloud);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.section-dark .section-heading h2,
.section-dark .section-heading p {
  color: var(--white);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(230, 233, 239, 0.9);
  box-shadow: 0 8px 30px rgba(22, 45, 74, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 238px;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.brand-title {
  display: block;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  line-height: 1.3;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin-left: auto;
}

.primary-nav a {
  color: #354052;
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.language-switcher button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-switcher button.is-active {
  background: var(--navy);
  color: var(--white);
}

.quote-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quote-link,
.button-primary {
  background: var(--navy);
  color: var(--white);
}

.quote-link:hover,
.button-primary:hover {
  background: var(--gold);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.button-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.button-gold {
  background: var(--gold);
  color: var(--ink);
}

.button-gold:hover {
  background: var(--white);
  color: var(--navy);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.mobile-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.mobile-toggle span::before,
.mobile-toggle span::after {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy);
  content: "";
}

.mobile-toggle span::before {
  top: -7px;
}

.mobile-toggle span::after {
  top: 7px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.mobile-nav a {
  color: var(--navy);
  font-weight: 750;
}

.hero {
  position: relative;
  display: flex;
  min-height: 92vh;
  align-items: center;
  padding: 128px 0 64px;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 25, 42, 0.9) 0%, rgba(22, 45, 74, 0.74) 38%, rgba(22, 45, 74, 0.22) 70%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16));
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero h1 span {
  color: var(--gold-2);
}

.hero p {
  max-width: 680px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stat-band {
  position: relative;
  z-index: 3;
  margin-top: -46px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stat-item {
  min-height: 112px;
  padding: 22px;
  background: var(--white);
}

.stat-value {
  display: block;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 850;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.product-card,
.application-card,
.contact-card,
.advantage-card,
.process-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.product-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: 252px;
  object-fit: cover;
}

.product-card-body {
  padding: 24px;
}

.product-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(200, 164, 100, 0.16);
  color: #8a652d;
  font-size: 0.9rem;
  font-weight: 750;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.split-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.split-content h3,
.factory-copy h2,
.contact-copy h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #4b5563;
}

.check-list li::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  content: "✓";
  font-size: 0.76rem;
  font-weight: 900;
}

.advantage-layout,
.factory-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

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

.advantage-card {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--white);
  box-shadow: none;
}

.advantage-card.wide {
  grid-column: 1 / -1;
}

.advantage-icon,
.process-step {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.advantage-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.advantage-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.advantage-image,
.factory-grid img {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.advantage-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.application-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.application-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.application-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.application-card h3 {
  min-height: 66px;
  margin: 0;
  padding: 18px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.cooperation-note {
  max-width: 860px;
  margin: 34px auto 0;
  color: #4b5563;
  font-size: 1.06rem;
  text-align: center;
}

.factory-copy p,
.contact-copy p {
  margin: 0 0 16px;
  color: #4b5563;
}

.factory-copy .highlight {
  color: #8a652d;
  font-weight: 750;
}

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

.factory-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  padding: 24px;
}

.process-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.1rem;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-section {
  background: #22262d;
  color: var(--white);
}

.contact-section .contact-copy h2,
.contact-section .contact-copy p {
  color: var(--white);
}

.contact-section .contact-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.contact-card {
  padding: 20px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.contact-card span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.contact-card strong,
.contact-card a {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-size: 1rem;
  word-break: break-word;
}

.inquiry-form {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.inquiry-form h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  color: #344054;
  font-size: 0.88rem;
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 164, 100, 0.18);
}

.form-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(47, 125, 91, 0.1);
  color: var(--success);
  font-weight: 750;
}

.site-footer {
  background: #0f141b;
  color: rgba(255, 255, 255, 0.66);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.content-page {
  padding: 132px 0 80px;
}

.content-page article {
  max-width: 860px;
  margin: 0 auto;
}

.content-page h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 1100px) {
  .primary-nav,
  .header-actions .quote-link {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .section {
    padding: 68px 0;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand {
    min-width: 0;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    display: none;
  }

  .language-switcher {
    display: none;
  }

  .mobile-panel .language-switcher {
    display: inline-flex;
    margin-top: 10px;
  }

  .hero {
    min-height: 88vh;
    padding: 108px 0 52px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 11vw, 3.2rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .stat-band {
    margin-top: 0;
  }

  .stat-grid,
  .product-grid,
  .split-panel,
  .advantage-layout,
  .factory-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    min-height: auto;
  }

  .advantage-grid,
  .application-grid,
  .process-grid,
  .contact-cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .advantage-image img {
    height: 360px;
  }

  .factory-grid {
    grid-template-columns: 1fr;
  }

  .factory-grid img,
  .application-card img,
  .product-card img {
    height: 230px;
  }

  .field-full {
    grid-column: auto;
  }
}
