/*
Theme Name: REYOUNG
Theme URI: https://reyoungintl.com
Author: REYOUNG International
Author URI: https://reyoungintl.com
Description: Premium agricultural anti-insect netting manufacturer — custom WordPress theme for REYOUNG International Trading Co., Ltd.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: reyoung
*/

:root {
  --green: #15803D;
  --green-dark: #14532D;
  --green-light: #22C55E;
  --green-pale: #F0FDF4;
  --amber: #A16207;
  --white: #FFFFFF;
  --text-primary: #18191C;
  --text-secondary: #64748B;
  --text-gray: #6B7280;
  --text-light: #9CA3AF;
  --text-label: #374151;
  --form-bg: #F9FAFB;
  --hero-sub: #BBF7D0;
  --hero-from: #147F3D;
  --hero-to: #0A542D;
  --shadow-header: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-card: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-form: 0 4px 20px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: #E5E7EB; overflow-x: hidden;
  font-family: 'Open Sans', sans-serif;
}

.page-wrapper {
  width: 1440px; margin: 0 auto;
  background: var(--green-pale);
}

/* ===== HEADER ===== */
.header {
  width: 1440px; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 80px;
  background: var(--white);
  box-shadow: var(--shadow-header);
  position: sticky; top: 0; z-index: 100;
}
.logo-group {
  display: flex; align-items: center; gap: 12px;
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 4px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.logo-text {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 22px; color: var(--green-dark); line-height: 1.5;
}
/* Custom logo (when uploaded via Customizer) */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img,
.custom-logo { max-height: 40px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 40px;
}
.nav-link {
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 15px; color: var(--text-secondary); text-decoration: none;
  transition: color 0.2s;
}
.nav-link.active, .nav-link:hover { color: var(--green-dark); }
.nav-link.active { color: var(--green-dark); }
.header-cta {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  background: var(--green); border-radius: 4px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 15px; color: var(--white); text-decoration: none;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--green-dark); }

/* ===== HERO ===== */
.hero {
  width: 1440px; min-height: 680px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 90px 80px;
  background: linear-gradient(180deg, var(--hero-from), var(--hero-to));
  overflow: hidden;
}
.hero-content {
  width: 560px; display: flex; flex-direction: column; gap: 28px;
}
.hero-badge {
  display: flex; align-items: center; justify-content: center;
  width: 215px; height: 36px;
  background: var(--amber); border-radius: 4px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 13px; color: var(--white);
}
.hero-headline {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 56px; line-height: 1.21; color: var(--white);
  white-space: pre-line;
}
.hero-subheadline {
  font-size: 18px; line-height: 28px; color: var(--hero-sub);
}
.hero-ctas {
  display: flex; align-items: center; gap: 16px;
}
.hero-primary-cta {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 36px;
  background: var(--white); border-radius: 4px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 16px; color: var(--green); text-decoration: none;
}
.hero-secondary-cta {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 36px;
  border: 1.5px solid rgba(255,255,255,0.4); border-radius: 4px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 16px; color: var(--white); text-decoration: none;
}
.hero-right {
  display: flex; align-items: center; gap: 40px;
}
.hero-image {
  width: 520px; height: 460px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-stats {
  width: 200px; display: flex; flex-direction: column; gap: 16px;
}
.hero-stat {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stat-number {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 28px; color: var(--white);
}
.hero-stat-label {
  font-size: 13px; color: var(--hero-sub);
}

/* ===== ABOUT ===== */
.about {
  width: 1440px; min-height: 600px;
  display: flex; align-items: center; gap: 60px;
  padding: 80px;
  background: var(--white); position: relative;
}
.about-content {
  width: 520px; display: flex; flex-direction: column; gap: 20px;
}
.about-label {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 12px; color: var(--amber);
  letter-spacing: 2px; text-transform: uppercase;
}
.about-headline {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 40px; line-height: 1.25; color: var(--green-dark);
}
.about-desc {
  font-size: 16px; line-height: 26px; color: var(--text-secondary);
}
.about-values {
  display: flex; gap: 32px;
}
.about-value {
  display: flex; flex-direction: column; gap: 8px;
}
.about-value-num {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 32px; color: var(--green);
}
.about-value-label {
  font-size: 14px; color: var(--text-secondary);
}
.about-image {
  width: 520px; height: 400px; border-radius: 8px;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-highlight {
  position: absolute; right: 80px; bottom: 80px;
  width: 280px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--green-pale); border-radius: 8px;
}
.cert-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.highlight-text {
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 15px; line-height: 22px; color: var(--green-dark);
}

/* ===== PRODUCTS ===== */
.products {
  width: 1440px; min-height: 838px;
  display: flex; flex-direction: column; align-items: center; gap: 60px;
  padding: 80px;
  background: var(--green-pale);
}
.products-header {
  width: 1280px; display: flex; align-items: center; justify-content: space-between;
}
.products-header-left {
  display: flex; flex-direction: column; gap: 12px;
}
.products-label {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 12px; color: var(--amber);
  letter-spacing: 2px; text-transform: uppercase;
}
.products-title {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 36px; line-height: 1.22; color: var(--green-dark);
  max-width: 500px;
}
.products-view-all {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  border: 1.5px solid var(--green); border-radius: 4px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 14px; color: var(--green); text-decoration: none;
  transition: all 0.2s;
}
.products-view-all:hover { background: var(--green); color: var(--white); }
.product-grid {
  width: 1280px; display: flex; gap: 24px;
}
.product-card {
  flex: 1; display: flex; flex-direction: column; gap: 20px;
  padding: 40px; max-width: 302px;
  background: var(--white); border-radius: 8px;
  box-shadow: var(--shadow-card);
}
.product-image {
  width: 222px; height: 200px; margin: 0 auto;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card-title {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 20px; color: var(--green-dark);
}
.product-card-desc {
  font-size: 14px; line-height: 22px; color: var(--text-secondary);
}

/* ===== ADVANTAGES ===== */
.advantages {
  width: 1440px; min-height: 681px;
  display: flex; flex-direction: column; align-items: center; gap: 60px;
  padding: 80px;
  background: var(--white);
}
.adv-header {
  width: 600px; text-align: center; display: flex; flex-direction: column; gap: 12px;
}
.adv-label {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 12px; color: var(--amber);
  letter-spacing: 2px; text-transform: uppercase;
}
.adv-title {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 36px; line-height: 1.22; color: var(--green-dark);
}
.adv-grid {
  width: 1280px; display: flex; gap: 1px;
}
.adv-column {
  flex: 1; display: flex; flex-direction: column; gap: 1px;
}
.adv-card {
  display: flex; align-items: flex-start; gap: 24px; padding: 32px;
  background: var(--white); border-radius: 4px;
}
.adv-card.accent { background: var(--green-pale); }
.adv-icon {
  width: 48px; height: 48px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.adv-icon.green { background: var(--green); }
.adv-icon.light-green { background: var(--green-light); }
.adv-icon.amber { background: var(--amber); }
.adv-content { display: flex; flex-direction: column; gap: 8px; }
.adv-card-title {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 18px; color: var(--green-dark);
}
.adv-card-desc {
  font-size: 14px; line-height: 22px; color: var(--text-secondary);
}

/* ===== CTA ===== */
.cta-section {
  width: 1440px; min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  padding: 80px;
  background: linear-gradient(180deg, var(--hero-from), var(--hero-to));
  text-align: center;
}
.cta-headline {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 44px; color: var(--white); max-width: 698px;
}
.cta-subheadline {
  font-size: 18px; line-height: 28px; color: var(--hero-sub); max-width: 600px;
}
.cta-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 40px;
  background: var(--white); border-radius: 4px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 16px; color: var(--green); text-decoration: none;
}
.cta-contact {
  font-size: 14px; color: var(--hero-sub);
}

/* ===== CONTACT ===== */
.contact {
  width: 1440px; min-height: 811px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 80px;
  background: var(--white);
}
.contact-label {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 14px; color: var(--green);
  letter-spacing: 2px; text-transform: uppercase;
}
.contact-headline {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 40px; color: var(--text-primary);
}
.contact-content {
  display: flex; gap: 80px; width: 1200px; justify-content: center;
}
.contact-left {
  width: 380px; display: flex; flex-direction: column; gap: 24px;
  padding-top: 20px;
}
.contact-desc {
  font-size: 16px; line-height: 26px; color: var(--text-gray);
}
.contact-trust {
  font-family: 'Open Sans', sans-serif; font-weight: 600;
  font-size: 15px; color: var(--green);
}
.contact-email {
  font-size: 14px; color: var(--text-light);
}
.contact-form {
  width: 440px; padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--white); border-radius: 12px;
  box-shadow: var(--shadow-form);
  border: 1px solid #F3F4F6;
}
.form-title {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 20px; color: var(--text-primary); margin-bottom: 4px;
}
.form-label {
  font-family: 'Open Sans', sans-serif; font-weight: 600;
  font-size: 13px; color: var(--text-label);
}
.form-input {
  width: 100%; height: 44px; padding: 0 16px;
  background: var(--form-bg); border: 1px solid #E5E7EB; border-radius: 8px;
  font-family: 'Open Sans', sans-serif; font-size: 14px; color: var(--text-primary);
  outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--green); }
.form-input::placeholder { color: var(--text-light); }
.form-textarea {
  width: 100%; height: 120px; padding: 12px 16px;
  background: var(--form-bg); border: 1px solid #E5E7EB; border-radius: 8px;
  font-family: 'Open Sans', sans-serif; font-size: 14px; color: var(--text-primary);
  outline: none; resize: none; transition: border-color 0.2s;
}
.form-textarea:focus { border-color: var(--green); }
.form-textarea::placeholder { color: var(--text-light); }
.form-submit {
  width: 100%; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); border: none; border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 15px; color: var(--white); cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--green-dark); }
.form-success {
  padding: 14px 16px; margin-bottom: 16px;
  background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 8px;
  font-size: 14px; color: #065F46; line-height: 1.5;
}
.form-error {
  padding: 14px 16px; margin-bottom: 16px;
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px;
  font-size: 14px; color: #991B1B; line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  width: 1440px; min-height: 382px; padding-bottom: 0;
  background: var(--green-dark);
}
.footer-main {
  display: flex; gap: 80px; padding: 60px 80px 40px;
}
.footer-brand {
  width: 320px; display: flex; flex-direction: column; gap: 20px;
}
.footer-logo-group {
  display: flex; align-items: center; gap: 10px;
}
.footer-logo-mark {
  width: 32px; height: 32px; border-radius: 3px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-text {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 20px; color: var(--white);
}
.footer-desc {
  font-size: 14px; line-height: 22px; color: var(--hero-sub);
}
.footer-col {
  display: flex; flex-direction: column; gap: 16px;
}
.footer-col-title {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 14px; color: var(--white);
}
.footer-link {
  font-size: 14px; color: var(--hero-sub); text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }
.footer-separator {
  width: 1440px; height: 1px; background: var(--green-light);
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 80px;
}
.footer-copyright {
  font-size: 12px; color: var(--hero-sub);
}
.footer-legal {
  display: flex; gap: 24px;
}
.footer-legal a {
  font-size: 12px; color: var(--hero-sub); text-decoration: none;
}
.footer-legal a:hover { color: var(--white); }

/* ===== WordPress Overrides ===== */
/* Remove admin bar margin on front page */
.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}
