/*
Theme Name: TOSTUDY Corporate
Theme URI: https://tostudy.org
Author: TOSTUDY
Description: Bilingual enterprise showcase and product catalogue theme.
Version: 1.0.0
Text Domain: tostudy
*/

:root {
  --ink: #171717;
  --muted: #5d5d5d;
  --brand: #e3000b;
  --brand-dark: #b80009;
  --accent: #ffd500;
  --blue: #0055bf;
  --green: #00a650;
  --paper: #f6f7fb;
  --white: #fff;
  --line: #dce7e3;
  --radius: 22px;
  --shadow: 0 18px 0 rgba(23,23,23,.08), 0 24px 50px rgba(23,23,23,.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-main { min-height: 55vh; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(220,231,227,.75); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 850; letter-spacing: .05em; }
.brand-mark { width: 42px; height: 38px; display: grid; place-items: center; color: white; border: 3px solid #171717; border-radius: 7px; background: var(--brand); box-shadow: 5px 5px 0 var(--accent); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: #345157; font-size: 15px; font-weight: 650; }
.main-nav a:hover { color: var(--brand); }
.lang-switch { display: flex; align-items: center; gap: 5px; color: var(--brand); font-size: 13px; font-weight: 800; }
.lang-switch ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lang-switch li { margin: 0; list-style: none; }
.lang-switch a { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; }
.language-select { min-width: 62px; padding: 8px 24px 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font: inherit; cursor: pointer; }
.header-cta { padding: 11px 17px; color: #fff; background: var(--ink); border-radius: 12px; font-size: 14px; font-weight: 750; }
.menu-toggle { display: none; border: 0; background: none; font-size: 24px; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 88% 12%,rgba(255,213,0,.58),transparent 24%), radial-gradient(circle at 8% 88%,rgba(0,85,191,.10),transparent 28%), linear-gradient(145deg,#fffdf3,#fff 60%); }
.hero:after { content: ""; position: absolute; right: -110px; bottom: -170px; width: 520px; height: 320px; border: 32px solid rgba(227,0,11,.07); border-radius: 22px; transform: rotate(-12deg); }
.hero-grid { position: relative; z-index: 1; min-height: 660px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--brand); font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { max-width: 720px; margin: 20px 0; font-size: clamp(42px,5.2vw,72px); line-height: 1.08; letter-spacing: -.04em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-copy { max-width: 630px; color: var(--muted); font-size: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--ink); border-radius: 13px; background: var(--ink); color: #fff; font-weight: 750; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-light { color: var(--ink); background: transparent; }
.btn-brand { border-color: var(--brand); background: var(--brand); box-shadow: 5px 5px 0 var(--accent); }
.hero-panel { position: relative; padding: 25px; border: 3px solid #171717; border-radius: 24px; background: #fff; box-shadow: 12px 12px 0 var(--accent), var(--shadow); }
.visual-main { min-height: 390px; display: flex; flex-direction: column; justify-content: flex-end; padding: 35px; color: white; border: 3px solid #171717; border-radius: 14px; background-color: var(--blue); background-image: radial-gradient(circle at 24px 24px,rgba(255,255,255,.24) 0 13px,rgba(0,0,0,.13) 14px 16px,transparent 17px); background-size: 72px 72px; }
.visual-main strong { font-size: 30px; line-height: 1.2; }
.visual-badge { position: absolute; top: 45px; right: -25px; padding: 16px 20px; border: 3px solid #171717; border-radius: 10px; background: var(--accent); box-shadow: 6px 6px 0 #171717; font-size: 13px; font-weight: 900; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 10px; }
.metric { padding: 17px; text-align: center; border: 2px solid #171717; border-radius: 10px; background: white; }
.metric:nth-child(1) { border-top: 8px solid var(--brand); }
.metric:nth-child(2) { border-top: 8px solid var(--accent); }
.metric:nth-child(3) { border-top: 8px solid var(--green); }
.metric b { display: block; color: var(--brand); font-size: 22px; }
.metric span { color: var(--muted); font-size: 12px; }

.section { padding: 92px 0; }
.section-soft { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head h2 { max-width: 710px; margin: 8px 0 0; font-size: clamp(32px,4vw,48px); line-height: 1.15; letter-spacing: -.03em; }
.section-head p { max-width: 450px; margin: 0; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.card { overflow: hidden; border: 2px solid #171717; border-radius: 16px; background: white; transition: .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-body { padding: 25px; }
.card h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.product-image { min-height: 235px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#f1f3f7,#fff); }
.product-image img { width: 100%; height: 235px; object-fit: cover; }
.product-placeholder { position: relative; width: 158px; height: 92px; border: 3px solid #171717; border-radius: 8px; transform: rotate(-5deg); background: var(--brand); box-shadow: 13px 13px 0 var(--accent); }
.product-placeholder:before { content: ""; position: absolute; top: -21px; left: 19px; width: 30px; height: 18px; border: 3px solid #171717; border-bottom: 0; border-radius: 8px 8px 0 0; background: inherit; box-shadow: 48px 0 0 -3px var(--brand), 48px 0 0 0 #171717, 96px 0 0 -3px var(--brand), 96px 0 0 0 #171717; }
.card:nth-child(3n+2) .product-placeholder { background: var(--blue); box-shadow: 13px 13px 0 var(--green); }
.card:nth-child(3n+2) .product-placeholder:before { box-shadow: 48px 0 0 -3px var(--blue), 48px 0 0 0 #171717, 96px 0 0 -3px var(--blue), 96px 0 0 0 #171717; }
.card:nth-child(3n+3) .product-placeholder { background: var(--accent); box-shadow: 13px 13px 0 var(--brand); }
.card:nth-child(3n+3) .product-placeholder:before { box-shadow: 48px 0 0 -3px var(--accent), 48px 0 0 0 #171717, 96px 0 0 -3px var(--accent), 96px 0 0 0 #171717; }
.product-meta { margin-top: 14px; color: var(--brand); font-size: 13px; font-weight: 800; }
.feature { padding: 28px; }
.feature-icon { width: 54px; height: 46px; display: grid; place-items: center; margin-bottom: 24px; border: 3px solid #171717; border-radius: 7px; color: white; background: var(--brand); box-shadow: 5px 5px 0 var(--accent); font-weight: 900; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.image-block { min-height: 480px; position: relative; border: 3px solid #171717; border-radius: 20px; background-color: var(--brand); background-image: radial-gradient(circle at 34px 34px,rgba(255,255,255,.25) 0 17px,rgba(0,0,0,.13) 18px 21px,transparent 22px); background-size: 96px 96px; box-shadow: 14px 14px 0 var(--blue); }
.image-block:before,.image-block:after { content: ""; position: absolute; border: 3px solid #171717; border-radius: 10px; }
.image-block:before { width: 180px; height: 90px; left: 45px; bottom: 55px; background: var(--accent); transform: rotate(8deg); box-shadow: 8px 8px 0 rgba(23,23,23,.25); }
.image-block:after { width: 150px; height: 72px; right: 40px; top: 58px; background: var(--green); transform: rotate(-8deg); box-shadow: 8px 8px 0 rgba(23,23,23,.25); }
.check-list { margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 14px 0; padding-left: 34px; }
.check-list li:before { content: "✓"; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--brand); font-size: 13px; font-weight: 900; }
.cta-band { padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border: 3px solid #171717; border-radius: 18px; color: white; background: var(--blue); box-shadow: 12px 12px 0 var(--accent); }
.cta-band h2 { margin: 0 0 7px; font-size: clamp(28px,4vw,44px); }
.cta-band p { margin: 0; color: rgba(255,255,255,.72); }

.page-hero { padding: 90px 0 65px; background: var(--paper); }
.page-hero h1 { margin: 8px 0 12px; font-size: clamp(40px,6vw,64px); line-height: 1.1; }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 18px; }
.content-wrap { padding: 70px 0 100px; }
.entry-content { max-width: 830px; }
.entry-content h2 { margin-top: 42px; font-size: 32px; }
.entry-content p,.entry-content li { color: #3d5960; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; padding: 75px 0; }
.product-detail .product-image { min-height: 490px; border-radius: 28px; }
.product-detail h1 { font-size: clamp(38px,5vw,58px); line-height: 1.1; }
.spec-list { margin: 28px 0; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: 130px 1fr; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 700; }

.inquiry-form { display: grid; gap: 14px; max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-form input,.inquiry-form textarea,.inquiry-form select { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.inquiry-form textarea { min-height: 150px; resize: vertical; }
.notice { margin-bottom: 22px; padding: 14px 18px; border-radius: 12px; background: #e7f8f3; color: var(--brand-dark); }

.site-footer { padding: 70px 0 25px; color: rgba(255,255,255,.75); background: #0c282d; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 65px; padding-bottom: 50px; }
.site-footer .brand { color: white; }
.site-footer h3 { color: white; font-size: 15px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; }
.footer-note { max-width: 470px; margin-top: 20px; }
.copyright { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 900px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 20px; background: white; border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 12px; }
  .hero-grid,.split,.product-detail { grid-template-columns: 1fr; }
  .hero-grid { padding: 80px 0; }
  .hero-panel { max-width: 620px; }
  .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); }
  .section-head,.cta-band { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .lang-switch > span { display: none; }
  .language-select { min-width: 58px; padding-inline: 7px; }
  .hero h1 { font-size: 42px; }
  .hero-grid { gap: 42px; }
  .visual-badge { right: 15px; }
  .metrics { grid-template-columns: 1fr; }
  .grid-3,.grid-4,.form-row,.footer-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .cta-band { padding: 32px 25px; }
}
