/*
Theme Name: Taian Subic Catalog
Theme URI: https://new.taiansubic.com/
Author: Taian (Subic) Electric, Inc.
Description: A browse-and-inquire industrial product catalog theme for Taian (Subic) Electric, Inc. No shopping cart or checkout features.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: taian-subic-catalog
*/

:root {
  --taian-red: #e30613;
  --taian-red-dark: #a80d18;
  --taian-green: #3cc472;
  --ink: #1a1f23;
  --body: #333333;
  --muted: #6d767d;
  --soft: #f5f5f5;
  --line: #e7eaec;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 12px 34px rgba(26,31,35,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--body); background: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--taian-red); text-decoration: none; }
a:hover { color: var(--taian-red-dark); }
img { max-width: 100%; height: auto; }
.container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-bar { min-height: 84px; display: flex; gap: 26px; align-items: center; justify-content: space-between; }
.custom-logo-link img { max-height: 58px; width: auto; }
.site-title { color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.site-title span { color: var(--taian-red); }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.main-navigation a { display: block; padding: 12px 14px; font-weight: 700; color: var(--ink); font-size: .94rem; }
.main-navigation .current-menu-item a, .main-navigation a:hover { color: var(--taian-red); }
.menu-toggle { display: none; background: var(--ink); color: #fff; border: 0; border-radius: 6px; padding: 9px 12px; font-weight: 700; }
.hero { color: #fff; min-height: 560px; display: grid; align-items: center; position: relative; isolation: isolate; background: linear-gradient(110deg, rgba(18,22,25,.84), rgba(18,22,25,.43)), url('assets/hero-placeholder.svg') center/cover; }
.hero:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(227,6,19,.24), transparent 55%); z-index: -1; }
.hero-content { max-width: 720px; padding: 80px 0; }
.eyebrow { color: var(--taian-green); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { color: #fff; font-size: clamp(2.35rem, 5vw, 4.65rem); line-height: 1.05; margin: 0 0 20px; letter-spacing: -.03em; }
.hero p:not(.eyebrow) { font-size: 1.16rem; max-width: 620px; margin-bottom: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--taian-red); color: #fff; border: 2px solid var(--taian-red); font-size: .95rem; padding: 13px 20px; border-radius: 5px; font-weight: 800; transition: .2s ease; }
.button:hover { background: var(--taian-red-dark); border-color: var(--taian-red-dark); color: #fff; transform: translateY(-1px); }
.button.alt { background: transparent; border-color: #fff; margin-left: 8px; }
.button.alt:hover { background: #fff; color: var(--ink); }
.section { padding: 82px 0; }
.section.soft { background: var(--soft); }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2, .entry-content h1 { color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.12; margin: 0 0 12px; }
.section-heading p { margin: 0; color: var(--muted); }
.category-grid, .product-grid, .value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.catalog-card, .product-card, .value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 3px 12px rgba(26,31,35,.04); transition: .2s ease; }
.catalog-card:hover, .product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.catalog-card-image, .product-card-image { aspect-ratio: 16/10; display: grid; place-items: center; background: #e9edef; color: var(--muted); font-weight: 700; text-align: center; padding: 20px; }
.catalog-card-image img, .product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card-image img.official-product-image { object-fit: contain; background: #fff; }
.equipment-section { background: #fff; }
.equipment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.equipment-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; padding: 16px; box-shadow: 0 3px 12px rgba(26,31,35,.04); }
.equipment-image { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; }
.equipment-image img { max-height: 100%; width: 100%; object-fit: contain; }
.equipment-card h3 { color: var(--ink); font-size: .95rem; line-height: 1.25; margin: 14px 2px 2px; }
.catalog-card-body, .product-card-body, .value-card { padding: 22px; }
.catalog-card h3, .product-card h2, .value-card h3 { color: var(--ink); font-size: 1.15rem; line-height: 1.25; margin: 0 0 8px; }
.catalog-card p, .product-card p, .value-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.photo-placeholder { min-height: 340px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #1a1f23, #40494f); color: #fff; border-radius: var(--radius); padding: 35px; text-align: center; font-weight: 700; }
.photo-placeholder img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 24px 0; }
.fact { border-left: 4px solid var(--taian-red); padding: 4px 0 4px 14px; }
.fact strong { display: block; color: var(--ink); font-size: 1.1rem; }
.cta-band { background: var(--ink); color: #fff; padding: 58px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: #d7dcdf; }
.page-hero { background: var(--ink); color: #fff; padding: 70px 0; }
.page-hero h1 { margin: 0; font-size: clamp(2rem,4vw,3.5rem); }
.page-hero p { color: #d7dcdf; margin: 10px 0 0; }
.site-main { min-height: 42vh; }
.entry-wrap { padding: 68px 0; }
.entry-content > * { max-width: 850px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1140px; }
.entry-content h2 { color: var(--ink); margin-top: 34px; }
.entry-content .wp-block-button__link { background: var(--taian-red); border-radius: 5px; font-weight: 800; }
.product-card .product-taxonomy { color: var(--taian-green); text-transform: uppercase; letter-spacing: .09em; font-size: .72rem; font-weight: 800; margin-bottom: 8px; }
.product-detail { padding: 68px 0; }
.product-detail-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; }
.product-image { min-height: 320px; background: var(--soft); border-radius: var(--radius); display: grid; place-items: center; padding: 25px; }
.product-image img { max-height: 480px; object-fit: contain; }
.product-meta { border-top: 1px solid var(--line); margin-top: 26px; }
.spec-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-row strong { color: var(--ink); }
.download-box { margin-top: 28px; padding: 22px; background: var(--soft); border-radius: var(--radius); }
.archive-tools { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin: 0 0 28px; }
.archive-tools select { border: 1px solid var(--line); padding: 12px 14px; border-radius: 5px; background: #fff; min-width: 240px; }
.site-footer { background: #111619; color: #d0d6d9; padding: 58px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 42px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 13px; }
.site-footer p, .site-footer li { font-size: .92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #d0d6d9; }
.site-footer a:hover { color: var(--taian-green); }
.footer-bottom { border-top: 1px solid #2d373c; margin-top: 36px; padding-top: 18px; color: #9ea8ad; font-size: .83rem; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-card { background: var(--soft); padding: 26px; border-radius: var(--radius); }
.contact-card h3 { margin-top: 0; color: var(--ink); }
.inquiry-form label { display: block; font-weight: 700; color: var(--ink); margin: 0 0 5px; }
.inquiry-form input, .inquiry-form textarea { width: 100%; border: 1px solid #ccd2d5; border-radius: 5px; padding: 12px; font: inherit; margin: 0 0 18px; }
.inquiry-form textarea { min-height: 145px; }
.notice { padding: 14px 16px; background: #eaf8ef; border-left: 4px solid var(--taian-green); margin-bottom: 18px; }
.notice-error { background: #fff0f1; border-color: var(--taian-red); }
.about-visual { background: #fff; border-radius: var(--radius); min-height: 340px; display: grid; place-items: center; padding: 36px; box-shadow: var(--shadow); }
.about-visual img { max-height: 380px; object-fit: contain; }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.download-card { border: 1px solid var(--line); border-left: 4px solid var(--taian-red); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px; background: #fff; }
.download-card h2 { color: var(--ink); font-size: 1.2rem; margin: 0 0 8px; }
.download-card p { color: var(--muted); margin: 0 0 18px; }
.text-link { font-weight: 800; }
@media (max-width: 1000px) { .equipment-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .header-bar { min-height: 74px; } .menu-toggle { display: block; } .main-navigation { display: none; position: absolute; left: 0; right: 0; top: 74px; background: #fff; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); } .main-navigation.open { display: block; } .main-navigation ul { display: block; } .main-navigation a { padding: 10px 0; } .category-grid, .product-grid, .value-grid, .equipment-grid, .download-grid { grid-template-columns: 1fr; } .split, .product-detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; } .cta-band .container { align-items: flex-start; flex-direction: column; } .footer-grid { grid-template-columns: 1fr; gap: 24px; } .hero { min-height: 500px; } .hero-content { padding: 60px 0; } .section { padding: 60px 0; } .spec-row { grid-template-columns: 1fr; gap: 4px; } .archive-tools { align-items: flex-start; flex-direction: column; } }
