/*
Theme Name: Coolws23 Treatt Clone
Theme URI: https://coolws23.net
Author: Ailly
Description: B2B flavor & fragrance ingredient supplier theme, cloned from treatt.com structure. Warm orange/teal color scheme, product categories, capabilities.
Version: 1.0.0
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Poppins','Helvetica Neue',Arial,sans-serif; line-height: 1.6; color: #2d2d2d; background: #fff; overflow-x: hidden; }
a { color: #e8743c; text-decoration: none; transition: color .3s; }
a:hover { color: #c5582a; }
img { max-width: 100%; height: auto; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== HEADER ========== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: all .3s; }
.site-header.scrolled { background: rgba(255,255,255,.98); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo { font-size: 1.5rem; font-weight: 700; color: #1a4c5c; letter-spacing: -.5px; }
.site-logo span { color: #e8743c; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-size: .88rem; font-weight: 500; color: #333; text-transform: uppercase; letter-spacing: .5px; }
.main-nav a:hover { color: #e8743c; }
.main-nav .has-sub { position: relative; cursor: pointer; }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; box-shadow: 0 4px 12px rgba(0,0,0,.1); border-radius: 4px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.main-nav .has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { display: block; padding: 8px 20px; font-size: .85rem; text-transform: none; }
.main-nav .sub-menu a:hover { background: #fff5f0; color: #e8743c; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; }

/* ========== HERO ========== */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a4c5c, #2a6b7a 50%, #e8743c); overflow: hidden; }
.hero-content { text-align: center; color: #fff; z-index: 2; padding: 0 24px; max-width: 800px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 300; margin-bottom: 16px; line-height: 1.2; }
.hero-content h1 strong { font-weight: 700; }
.hero-content p { font-size: 1.2rem; margin-bottom: 32px; opacity: .9; }
.hero-btn { display: inline-block; padding: 14px 40px; border: 2px solid #fff; border-radius: 30px; color: #fff; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; transition: all .3s; }
.hero-btn:hover { background: #fff; color: #e8743c; }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-dark { background: #1a4c5c; color: #fff; }
.section-light { background: #f8f9fa; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; font-weight: 300; color: #1a4c5c; margin-bottom: 16px; }
.section-dark .section-title h2 { color: #fff; }
.section-title p { font-size: 1.1rem; color: #666; max-width: 700px; margin: 0 auto; }
.section-dark .section-title p { color: #ccc; }

/* ========== PRODUCT GRID ========== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.product-card-img { height: 200px; background: linear-gradient(135deg, #f0f6f8, #e0eef2); display: flex; align-items: center; justify-content: center; }
.product-card-img .icon { font-size: 3rem; color: #e8743c; opacity: .3; }
.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 1.2rem; margin-bottom: 12px; color: #1a4c5c; }
.product-card-body p { font-size: .9rem; color: #666; margin-bottom: 16px; }
.product-card-body a { font-size: .85rem; color: #e8743c; text-transform: uppercase; font-weight: 500; letter-spacing: .5px; }

/* ========== CAPABILITY SECTION ========== */
.cap-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; min-height: 400px; }
.cap-image { background: linear-gradient(135deg, #fff5f0, #ffe0d0); display: flex; align-items: center; justify-content: center; }
.cap-image .icon { font-size: 5rem; color: #e8743c; opacity: .3; }
.cap-content { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.cap-content .tag { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: #e8743c; margin-bottom: 16px; }
.cap-content h2 { font-size: 2rem; margin-bottom: 20px; color: #1a4c5c; }
.cap-content p { margin-bottom: 16px; color: #555; }
.cap-content a { color: #e8743c; font-weight: 500; text-transform: uppercase; font-size: .85rem; letter-spacing: 1px; }

/* ========== THREE COL ========== */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.col-card { position: relative; min-height: 350px; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; }
.col-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #1a4c5c, #2a6b7a); opacity: .85; }
.col-card-content { position: relative; z-index: 2; padding: 40px; color: #fff; }
.col-card-content h3 { font-size: 1.6rem; margin-bottom: 12px; font-weight: 600; }
.col-card-content p { font-size: .95rem; opacity: .9; margin-bottom: 20px; }
.col-card-content a { color: #fff; border: 1px solid #fff; padding: 8px 24px; border-radius: 20px; font-size: .85rem; text-transform: uppercase; }
.col-card-content a:hover { background: #fff; color: #e8743c; }

/* ========== NEWS ========== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.news-item-body { padding: 24px; }
.news-item .date { font-size: .8rem; color: #999; margin-bottom: 8px; }
.news-item h4 { font-size: 1.1rem; margin-bottom: 8px; }
.news-item h4 a { color: #1a4c5c; }

/* ========== FOOTER ========== */
.site-footer { background: #1a4c5c; color: #ccc; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; color: #aaa; padding: 4px 0; font-size: .9rem; }
.footer-col a:hover { color: #e8743c; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col p { font-size: .9rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #2a5b6b; padding-top: 20px; text-align: center; font-size: .85rem; color: #888; }

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col, .news-grid { grid-template-columns: 1fr; }
  .cap-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-content h1 { font-size: 2.2rem; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.8rem; }
}
