/*
Theme Name: Steel Service Center
Theme URI: https://www.scgm-jp.com
Author: SCG Metals Co Ltd
Description: Custom theme for SCG Metals Co Ltd — steel and pipe materials supplier. Navy and copper industrial design with top-right navigation.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: steel-service-center
*/

/* ============================================================
   STEEL SERVICE CENTER — main stylesheet
   ============================================================ */

:root {
  --navy: #0B1F2E;
  --navy-2: #122A3D;
  --copper: #C75D34;
  --copper-dark: #A8472A;
  --steel: #4A5560;
  --steel-light: #8A95A1;
  --light: #F2F4F6;
  --white: #FFFFFF;
  --ink: #1A2329;

  --font-display: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.15;
}

h2 { font-size: 30px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }

p { margin: 0 0 14px; color: var(--steel); font-weight: 700; }

ul { padding: 0; margin: 0; list-style: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  background: var(--copper);
  color: var(--white);
  transition: background 0.2s ease, transform 0.15s ease;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 96% 100%, 0 100%);
}
.btn:hover { background: var(--copper-dark); transform: translateY(-1px); }
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: #06141d; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--navy);
  color: #B9C4CC;
  font-family: var(--font-mono);
  font-size: 17px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: #DCE3E8; border-bottom: 1px solid transparent; }
.top-bar a:hover { border-bottom-color: var(--copper); }
.steel-icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  flex-shrink: 0;
}
.top-bar .steel-icon { margin-right: 6px; color: var(--copper); width: 18px; height: 18px; vertical-align: -3px; }
.top-bar .phone-label { margin-right: 10px; color: var(--white); }
.top-bar .phone { color: var(--white); font-weight: 600; margin-left: 6px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark-img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.logo-text .title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.logo-text .subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--copper);
}
.main-nav ul,
.main-nav .menu {
  display: flex;
  gap: 8px;
  align-items: center;
}
.main-nav a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.main-nav li.active a,
.main-nav li.current-menu-item a,
.main-nav a:hover,
.main-nav a:focus {
  color: var(--navy);
  border-color: var(--copper);
  background-color: rgba(199, 93, 52, 0.08);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 4px;
}
.nav-toggle .steel-icon { width: 28px; height: 28px; vertical-align: middle; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--navy);
    box-shadow: 0 12px 24px rgba(11,31,46,0.12);
  }
  .main-nav.open { display: block; }
  .main-nav ul,
  .main-nav .menu { flex-direction: column; gap: 4px; align-items: stretch; padding: 8px 24px 16px; }
  .main-nav a { display: block; padding: 12px 14px; }
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(199,93,52,0.35), transparent 45%),
    repeating-linear-gradient(115deg, #0E2536 0px, #0E2536 2px, #0B1F2E 2px, #0B1F2E 34px),
    linear-gradient(135deg, #0B1F2E 0%, #122A3D 60%, #0B1F2E 100%);
}
.torch-cut-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.torch-cut-svg polyline { stroke: var(--copper); stroke-width: 3; }

/* Hero photo slideshow (replaces .hero-bg when photos are uploaded
   via Appearance > Customize > Hero Slideshow) */
.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
  max-width: var(--container-w);
}
.hero-content h1 {
  color: var(--white);
  font-size: 52px;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.7);
}
.hero-content p {
  color: #F0F3F5;
  font-size: 17px;
  max-width: 420px;
  margin-bottom: 28px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-arrows { display: none; }
.hero-dots { display: none; }

@media (max-width: 600px) {
  .hero { min-height: 460px; }
  .hero-content h1 { font-size: 36px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-white { background: var(--white); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: #9FAEB8; }

.page-header { padding: 64px 0 56px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 36px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Chevron lists ---------- */
.chev-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-size: 17px;
  color: var(--steel);
}
.section-dark .chev-list li { border-bottom-color: rgba(255,255,255,0.1); color: #C2CCD3; }
.chev-list .chev { display: none; }
.chev .steel-icon,
.label .chev .steel-icon { width: 16px; height: 16px; }

/* ---------- Numbered items (About > Goals) ---------- */
.numbered-item { display: flex; gap: 16px; margin-bottom: 26px; }
.num-badge {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--copper);
  flex-shrink: 0;
  min-width: 38px;
}

/* ---------- Image placeholders (illustrative, no external assets) ---------- */
[style*="IMG_"] { display: none; } /* fallback hide if literal token ever leaks through */

.about-photo {
  width: 100%;
  height: 220px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 26px),
    linear-gradient(160deg, var(--steel) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(199,93,52,0.45) 100%);
}

/* ---------- Product cards (image-wrap uses CSS illustration) ---------- */
.product-card { display: block; background: var(--white); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(11,31,46,0.12); }
.img-wrap {
  height: 190px;
  background: linear-gradient(150deg, var(--steel) 0%, var(--navy) 75%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.img-wrap.has-photo { background: none; background-size: cover; background-position: center; }
.img-wrap.has-photo::before,
.img-wrap.has-photo::after { display: none; }
.img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -35deg,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 2px,
    transparent 2px,
    transparent 16px
  );
}
.img-wrap::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background: var(--copper);
  opacity: 0.55;
  border-radius: 50%;
  filter: blur(2px);
}
.product-card .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  border: 1px solid #E4E8EB;
  border-top: none;
}
.product-card .label .chev { color: var(--copper); }

/* ---------- Text blocks ---------- */
.text-block h3 { margin-bottom: 10px; }
.text-block p { font-size: 17px; }

/* ---------- Advantages ---------- */
.adv-item { display: flex; gap: 18px; margin-bottom: 28px; }
.adv-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
}
.adv-icon .steel-icon { width: 24px; height: 24px; }
.adv-item h4 { margin-bottom: 6px; }
.adv-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.cta-banner .hero-bg {
  background:
    radial-gradient(circle at 15% 70%, rgba(199,93,52,0.3), transparent 50%),
    linear-gradient(120deg, #0B1F2E 0%, #16344A 100%);
}
.cta-text {
  position: relative;
  z-index: 2;
  margin-right: auto;
  padding: 0 60px;
  max-width: 420px;
  text-align: left;
}
.cta-text h2 { color: var(--white); font-size: 28px; margin-bottom: 20px; }

/* When a CTA photo is uploaded: text on the left, photo filling the right */
.cta-banner.has-photo {
  justify-content: space-between;
  gap: 32px;
  padding: 0 0 0 60px;
}
.cta-banner.has-photo .cta-text {
  margin-right: 0;
  padding: 0;
  flex-shrink: 0;
}
.cta-photo {
  position: relative;
  z-index: 1;
  align-self: stretch;
  flex: 1 1 50%;
  min-height: 320px;
  overflow: hidden;
}
.cta-photo-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.cta-photo-slide.is-active { opacity: 1; }

@media (max-width: 700px) {
  .cta-text { margin: 0 auto; padding: 0 24px; text-align: center; }
  .cta-banner.has-photo {
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
  }
  .cta-banner.has-photo .cta-text { margin: 0 auto; text-align: center; }
  .cta-photo { width: 100%; min-height: 220px; flex: none; }
}

/* ---------- Dark cards (services) ---------- */
.dark-card {
  background: var(--navy-2);
  padding: 26px 22px;
  border-top: 3px solid var(--copper);
}
.dark-card img { display: none; } /* token-based src removed; icon glyph used instead */
.dark-card h3 { font-size: 17px; margin-bottom: 10px; }
.dark-card p { font-size: 17px; margin-bottom: 14px; }
.dark-card .read-more {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dark-card .read-more:hover { color: #E08658; }

/* ---------- Contact page ---------- */
.contact-info h2 { margin-bottom: 14px; }
.contact-address {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--navy);
  background: var(--white);
  border-left: 3px solid var(--copper);
  padding: 14px 18px;
  margin: 18px 0;
}
.contact-details { margin-top: 18px; }
.contact-details > div { padding: 8px 0; border-bottom: 1px solid #E4E8EB; font-size: 17px; }
.contact-details .label { font-family: var(--font-mono); font-weight: 600; color: var(--steel); margin-right: 8px; }
.contact-details a:hover { color: var(--copper); }

.contact-form { background: var(--white); padding: 28px; border: 1px solid #E4E8EB; }
.contact-form .row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.contact-form input,
.contact-form textarea,
.contact-form .wpcf7-form-control {
  flex: 1;
  min-width: 140px;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid #D7DCE0;
  background: var(--light);
  color: var(--ink);
}
.contact-form textarea,
.contact-form textarea.wpcf7-form-control { width: 100%; min-height: 130px; resize: vertical; margin-bottom: 18px; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form .wpcf7-form-control:focus { outline: 2px solid var(--copper); outline-offset: 1px; background: var(--white); }

/* Contact Form 7 specific structure */
.contact-form .wpcf7-form p { margin: 0 0 14px; }
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form input[type="submit"] {
  flex: none;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  background: var(--navy);
  color: var(--white);
  transition: background 0.2s ease, transform 0.15s ease;
}
.contact-form input[type="submit"]:hover { background: #06141d; transform: translateY(-1px); }
.contact-form .wpcf7-response-output {
  margin-top: 16px !important;
  font-size: 13.5px;
  border-radius: 2px;
}
.contact-form .wpcf7-not-valid-tip { font-size: 12.5px; color: var(--copper-dark); margin-top: 4px; }
.contact-form .wpcf7-spinner { margin-left: 10px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #9FAEB8; padding-top: 48px; }
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
footer .logo-text .title { color: var(--white); }
.footer-address { font-size: 17px; margin-bottom: 6px; max-width: 320px; }
.footer-tagline { font-size: 13.5px; margin-bottom: 6px; max-width: 320px; }
.footer-phone { font-family: var(--font-mono); color: var(--white); font-weight: 600; font-size: 17px; }
.back-to-top {
  width: 44px;
  height: 44px;
  background: var(--copper);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 20px;
  transition: background 0.2s ease;
}
.back-to-top .steel-icon { width: 22px; height: 22px; }
.back-to-top:hover { background: var(--copper-dark); }
.footer-bottom {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.03em;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom .privacy { text-decoration: underline; }
.footer-bottom .privacy:hover { color: var(--white); }

@media (max-width: 600px) {
  .footer-top { flex-direction: column; }
}
