/* ===================================================
   Service Bay Tools Co., Ltd. — Global Stylesheet
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0d1b2a;
  --dark:   #1a2b3c;
  --mid:    #2e4057;
  --accent: #f4801a;
  --accent2:#e06010;
  --light:  #f5f7fa;
  --white:  #ffffff;
  --text:   #2c3e50;
  --muted:  #6c7a89;
  --border: #dde3ea;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --transition: .25s ease;
  --font: 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 72px 0; }
.bg-light     { background: var(--light); }

/* --- Typography helpers --- */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
  text-align: center;
}
.section-sub {
  color: var(--muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.badge {
  display: inline-block;
  background: rgba(244,128,26,.15);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 1rem;
}
.accent { color: var(--accent); }

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
  font-size: .95rem;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 8px;
  transition: background var(--transition);
  font-size: .95rem;
}
.btn-outline:hover { background: rgba(255,255,255,.15); }

.btn-light {
  display: inline-block;
  background: var(--white);
  color: var(--accent);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  transition: opacity var(--transition);
  font-size: .95rem;
  white-space: nowrap;
}
.btn-light:hover { opacity: .9; }

.btn-nav {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 7px;
  font-size: .88rem;
  transition: background var(--transition);
}
.btn-nav:hover { background: var(--accent2); }

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; cursor: default; }
.logo-icon { font-size: 1.6rem; color: var(--accent); }
.logo-main {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.logo-sub {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
}

/* Nav */
.main-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}
.main-nav a {
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.header-cta { flex-shrink: 0; }

/* ===================================================
   HERO
   =================================================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 55%, var(--mid) 100%);
  padding: 80px 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { color: var(--white); }
.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin: .6rem 0 1.2rem;
}
.hero-text p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image img {
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  max-height: 400px;
}

/* ===================================================
   GOOGLE ADS BANNER
   =================================================== */
.ads-banner {
  background: #fff9f3;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  padding: 20px 0;
}
.ads-label {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ads-headlines {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ads-headlines .sep { color: var(--muted); font-weight: 400; }
.ads-desc {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
  max-width: 900px;
}

/* ===================================================
   FEATURES
   =================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p  { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ===================================================
   CATEGORIES
   =================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.cat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.cat-icon { font-size: 2.4rem; margin-bottom: 14px; }
.cat-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cat-card p  { color: var(--muted); font-size: .88rem; }

/* ===================================================
   FEATURED
   =================================================== */
.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.featured-text h2 { font-size: 1.9rem; font-weight: 700; color: var(--navy); margin: .6rem 0 1rem; }
.featured-text p  { color: var(--muted); margin-bottom: 1.4rem; font-size: .97rem; }
.check-list { margin-bottom: 1.8rem; }
.check-list li {
  color: var(--text);
  font-size: .92rem;
  padding: 5px 0 5px 28px;
  position: relative;
}
.check-list li::before {
  content: '✔';
  color: var(--accent);
  font-size: .85rem;
  position: absolute;
  left: 0;
  top: 5px;
}
.featured-img img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 420px;
}

/* ===================================================
   CTA STRIP
   =================================================== */
.cta-strip {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  padding: 52px 0;
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-strip h2 { font-size: 1.75rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.cta-strip p  { color: rgba(255,255,255,.85); font-size: .97rem; }

/* ===================================================
   PAGE HERO (inner pages)
   =================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--mid) 100%);
  padding: 56px 0;
  color: var(--white);
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: .6rem;
}
.page-hero p {
  color: rgba(255,255,255,.75);
  max-width: 620px;
  font-size: 1.05rem;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: .5; }

/* ===================================================
   PRODUCT GRID
   =================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 0;
}
.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-info p  { color: var(--muted); font-size: .87rem; flex: 1; margin-bottom: 14px; line-height: 1.55; }
.product-tag {
  display: inline-block;
  background: rgba(244,128,26,.12);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.product-cta {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 7px;
  transition: background var(--transition);
  text-align: center;
  margin-top: auto;
}
.product-cta:hover { background: var(--accent); }

/* ===================================================
   TWO-COL SECTION
   =================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 420px;
}
.two-col-text h2 { font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.two-col-text p  { color: var(--muted); margin-bottom: 1rem; font-size: .97rem; }

/* ===================================================
   INFO TABLE
   =================================================== */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.spec-table th { background: var(--light); font-weight: 700; color: var(--navy); width: 40%; }
.spec-table td { color: var(--text); }

/* ===================================================
   ABOUT PAGE
   =================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.team-avatar {
  width: 72px;
  height: 72px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}
.team-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-card .role { color: var(--accent); font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.team-card p   { color: var(--muted); font-size: .87rem; }

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.contact-item p  { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.contact-item a  { color: var(--accent); }
.contact-form { background: var(--light); padding: 36px; border-radius: 14px; }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-submit { width: 100%; padding: 13px; font-size: 1rem; cursor: pointer; border: none; }

/* ===================================================
   STATS BAR
   =================================================== */
.stats-bar {
  background: var(--navy);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item h3 { font-size: 2.2rem; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.stat-item p  { color: rgba(255,255,255,.7); font-size: .88rem; }

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-card blockquote { color: var(--text); font-size: .93rem; line-height: 1.65; margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: .88rem; }
.testimonial-company { color: var(--muted); font-size: .82rem; }

/* ===================================================
   BLOG / ARTICLES
   =================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.article-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 0;
}
.article-body { padding: 20px; }
.article-meta { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.article-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.article-body p  { color: var(--muted); font-size: .87rem; line-height: 1.55; margin-bottom: 12px; }
.read-more { color: var(--accent); font-weight: 700; font-size: .85rem; }
.read-more:hover { text-decoration: underline; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--navy);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: rgba(255,255,255,.55); font-size: .88rem; margin-top: 14px; line-height: 1.65; max-width: 260px; }
.footer-links h4, .footer-contact h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer-links ul li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact p {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-contact a { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.footer-bottom p { color: rgba(255,255,255,.4); font-size: .82rem; text-align: center; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .hero-inner, .featured-inner, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .features-grid, .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .testimonials-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section-pad { padding: 48px 0; }
  .main-nav { display: none; }
  .hero-text h1 { font-size: 1.9rem; }
  .features-grid, .cat-grid, .product-grid,
  .team-grid, .testimonials-grid, .articles-grid { grid-template-columns: 1fr; }
  .cta-strip-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid, .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
