/*
Theme Name: Tetcore
Theme URI: https://tetcore.com
Author: Tetcore
Description: Professional global polymer trading theme
Version: 1.0
License: Proprietary
Text Domain: tetcore
*/

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0D1B3E;
  --orange: #F7941D;
  --blue:   #1B75BC;
  --green:  #5BA631;
  --gray:   #6D6E71;
  --light:  #F4F6F9;
  --white:  #FFFFFF;
  --text:   #2C2C2C;
  --border: #E0E4EA;
  --shadow: 0 4px 24px rgba(13,27,62,0.10);
  --radius: 6px;
  --font:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w:  1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}

h1,h2,h3,h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #e07c0a;
  border-color: #e07c0a;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(247,148,29,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: #162252;
  color: var(--white);
  transform: translateY(-1px);
}

/* ============================================
   HEADER & NAV
============================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

#site-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

#site-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all .2s;
}

#site-nav a:hover,
#site-nav .current-menu-item a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta a {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
}
.nav-cta a:hover {
  background: #e07c0a !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================
   HERO
============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162252 60%, #1a3068 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247,148,29,0.15);
  border: 1px solid rgba(247,148,29,0.4);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

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

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.65;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}

.hero-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat-value span { color: var(--orange); }

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   SECTION: PRODUCTS STRIP
============================================ */
.products-strip {
  background: var(--white);
  padding: 72px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.product-card.orange::before { background: var(--orange); }
.product-card.blue::before   { background: var(--blue); }
.product-card.green::before  { background: var(--green); }
.product-card.navy::before   { background: var(--navy); }

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.product-icon.orange { background: rgba(247,148,29,0.12); }
.product-icon.blue   { background: rgba(27,117,188,0.12); }
.product-icon.green  { background: rgba(91,166,49,0.12); }
.product-icon.navy   { background: rgba(13,27,62,0.08); }

.product-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.product-card p  { font-size: 14px; color: var(--gray); line-height: 1.6; margin: 0; }

/* ============================================
   SECTION: VALUES
============================================ */
.values-section {
  background: var(--navy);
  padding: 80px 0;
  color: var(--white);
}

.values-section .section-header h2 { color: var(--white); }
.values-section .section-header p  { color: rgba(255,255,255,0.65); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.value-item {
  background: var(--navy);
  padding: 40px 32px;
  text-align: center;
  transition: background .2s;
}

.value-item:hover { background: #162252; }

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.value-item:nth-child(1) .value-icon { background: rgba(247,148,29,0.15); }
.value-item:nth-child(2) .value-icon { background: rgba(27,117,188,0.15); }
.value-item:nth-child(3) .value-icon { background: rgba(91,166,49,0.15); }
.value-item:nth-child(4) .value-icon { background: rgba(109,110,113,0.2); }

.value-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.value-item:nth-child(1) .value-name { color: var(--orange); }
.value-item:nth-child(2) .value-name { color: var(--blue); }
.value-item:nth-child(3) .value-name { color: var(--green); }
.value-item:nth-child(4) .value-name { color: #aaa; }

.value-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   SECTION: MARKETS
============================================ */
.markets-section { background: var(--light); }

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.market-card {
  background: var(--white);
  border-radius: 10px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all .25s;
}

.market-card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-3px);
}

.market-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  background: rgba(13,27,62,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.market-card h3 { font-size: 1rem; margin-bottom: 6px; }
.market-card p  { font-size: 13.5px; color: var(--gray); margin: 0; line-height: 1.6; }

/* ============================================
   SECTION: GLOBAL REACH
============================================ */
.global-section {
  background: linear-gradient(135deg, #1B75BC 0%, #0D1B3E 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.global-section h2 { color: var(--white); margin-bottom: 16px; }
.global-section p  { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 580px; margin: 0 auto 40px; }

.global-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.region-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================
   SECTION: CTA
============================================ */
.cta-section {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p  { color: var(--gray); font-size: 17px; margin-bottom: 36px; }

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   INNER PAGE HERO
============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162252 100%);
  padding: 64px 0;
  color: var(--white);
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 17px; max-width: 560px; }

/* ============================================
   ABOUT PAGE
============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
}

.about-intro-text h2 { margin-bottom: 20px; }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.pillar {
  background: var(--light);
  border-radius: 8px;
  padding: 20px;
  border-left: 3px solid var(--orange);
}

.pillar h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.pillar p  { font-size: 13px; color: var(--gray); margin: 0; }

.about-visual {
  background: linear-gradient(135deg, var(--navy), #1B75BC);
  border-radius: 16px;
  padding: 48px 40px;
  color: var(--white);
  text-align: center;
}

.about-visual h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 28px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.about-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ============================================
   PRODUCTS PAGE
============================================ */
.products-section { padding: 72px 0; }

.product-category {
  margin-bottom: 64px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.category-badge {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.category-badge.orange { background: rgba(247,148,29,0.12); color: var(--orange); }
.category-badge.blue   { background: rgba(27,117,188,0.12); color: var(--blue); }

.resins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.resin-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  transition: all .2s;
}

.resin-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.resin-card h4 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.resin-card p  { font-size: 13px; color: var(--gray); margin: 0; line-height: 1.55; }

/* ============================================
   CONTACT PAGE
============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--gray); margin-bottom: 36px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(13,27,62,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-detail-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--navy);
  margin-bottom: 3px;
}

.contact-detail-text a,
.contact-detail-text span {
  font-size: 15px;
  color: var(--gray);
}

.contact-form-wrap {
  background: var(--light);
  border-radius: 12px;
  padding: 40px;
}

.contact-form-wrap h3 { margin-bottom: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  transition: border-color .2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================
   MARKETS PAGE
============================================ */
.markets-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .markets-detail-grid { grid-template-columns: 1fr; }
}

.market-detail-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.market-detail-header {
  padding: 32px 32px 24px;
  color: var(--white);
}

.market-detail-header.orange { background: linear-gradient(135deg, var(--orange), #e07c0a); }
.market-detail-header.blue   { background: linear-gradient(135deg, var(--blue), #155fa0); }
.market-detail-header.green  { background: linear-gradient(135deg, var(--green), #4a8e25); }
.market-detail-header.navy   { background: linear-gradient(135deg, var(--navy), #162252); }

.market-detail-header h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.market-detail-header p  { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0; }

.market-detail-body {
  padding: 24px 32px;
  background: var(--white);
}

.market-detail-body ul {
  list-style: none;
  padding: 0;
}

.market-detail-body ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: center;
}

.market-detail-body ul li::before {
  content: '›';
  color: var(--orange);
  font-weight: 700;
  font-size: 18px;
}

.market-detail-body ul li:last-child { border-bottom: none; }

/* ============================================
   NEWS PAGE
============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all .25s;
}

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

.news-card-body { padding: 28px; }
.news-card-meta { font-size: 12px; color: var(--gray); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.8px; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.news-card h3 a { color: var(--navy); }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { font-size: 14px; color: var(--gray); margin: 0; }

/* ============================================
   FOOTER
============================================ */
#site-footer {
  background: #080F22;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo-name { font-size: 20px; color: var(--white); }
.footer-brand p { font-size: 14px; margin-top: 16px; line-height: 1.7; color: rgba(255,255,255,0.55); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--orange); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.footer-contact-item a { color: rgba(255,255,255,0.55); }
.footer-contact-item a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0; }
  .hero-stats { gap: 28px; margin-top: 40px; }

  #site-nav { display: none; }
  #site-nav.open {
    display: block;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  #site-nav.open ul { flex-direction: column; gap: 4px; }
  .nav-toggle { display: flex; }

  .header-inner { position: relative; }

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

@media (max-width: 500px) {
  .values-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
}

/* ============================================
   UTILITIES
============================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.text-orange { color: var(--orange); }
.text-blue   { color: var(--blue); }
.text-green  { color: var(--green); }
.text-gray   { color: var(--gray); }
