/*
Theme Name: AUTO SOFT
Theme URI: https://auto-soft-search.mhariz.chatgpt.site/
Author: AUTO SOFT
Author URI: mailto:autosoft.my@gmail.com
Description: A responsive one-page WordPress theme for AUTO SOFT covering SEO, AEO, consulting, training and training-room rental.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: auto-soft
*/

:root {
  --red: rgb(254, 32, 98);
  --red-dark: rgb(214, 22, 82);
  --ink: #171717;
  --muted: #66625f;
  --line: #e6e0dc;
  --warm: #f6f3f1;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.announcement {
  min-height: 38px;
  padding: 8px clamp(24px, 5vw, 78px);
  display: flex;
  justify-content: center;
  gap: 28px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.announcement a { font-weight: 800; border-bottom: 1px solid #fff8; }

.site-header {
  height: 84px;
  max-width: 1440px;
  margin: auto;
  padding: 0 clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 104px; height: 72px; object-fit: contain; }
.footer-brand img { width: 112px; height: 78px; }
nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; color: #42403e; }
nav a { position: relative; padding: 10px 0; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--red); transition: right .2s ease; }
nav a:hover::after { right: 0; }

.button {
  min-height: 52px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--red);
  color: white;
  font-weight: 750;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgb(254 32 98 / 13%);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--red-dark); box-shadow: 0 12px 26px rgb(254 32 98 / 21%); }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #171717; outline-offset: 3px; }
.button-small { min-height: 43px; padding: 0 17px; font-size: 12px; gap: 14px; }

.hero {
  min-height: 690px;
  max-width: 1440px;
  margin: auto;
  padding: 74px clamp(24px, 5vw, 72px) 70px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(40px, 6vw, 92px);
}
.eyebrow {
  margin: 0 0 23px;
  display: flex; align-items: center; gap: 10px;
  color: var(--red);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
}
.eyebrow > span { width: 28px; height: 2px; background: currentColor; }
.hero h1, h2 {
  margin: 0;
  font-size: clamp(54px, 6vw, 88px);
  line-height: .95;
  letter-spacing: -.07em;
  font-weight: 780;
}
h1 em, h2 em { color: var(--red); font-style: normal; }
.hero-lead { max-width: 610px; margin: 30px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; letter-spacing: -.02em; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 28px; }
.text-link { font-size: 13px; font-weight: 750; display: flex; gap: 13px; }
.trust-row { margin-top: 58px; padding-top: 23px; border-top: 1px solid var(--line); display: flex; gap: 42px; }
.trust-row div { display: grid; gap: 2px; }
.trust-row strong { font-size: 13px; }
.trust-row span { font-size: 11px; color: var(--muted); }

.signal-panel {
  position: relative;
  min-height: 510px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
}
.signal-panel::before {
  content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -80px;
  border-radius: 50%; background: var(--red);
}
.signal-panel::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(#d9d3cf55 1px, transparent 1px), linear-gradient(90deg, #d9d3cf55 1px, transparent 1px);
  background-size: 44px 44px; z-index: -1;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.panel-label { position: absolute; top: 26px; left: 26px; display: flex; gap: 8px; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.panel-label span { width: 8px; height: 8px; background: #35a56a; border-radius: 50%; box-shadow: 0 0 0 4px #35a56a22; }
.signal-card {
  position: absolute; background: #fff; border: 1px solid #ddd6d2;
  box-shadow: 0 18px 48px #52222214; border-radius: 16px;
}
.signal-card-main { width: 68%; left: 12%; top: 19%; padding: 26px; }
.signal-kicker { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.signal-card-main strong { font-size: 24px; letter-spacing: -.04em; }
.chart { height: 190px; margin-top: 28px; padding: 0 4px; display: flex; align-items: end; gap: 8px; border-bottom: 1px solid var(--line); }
.chart i { flex: 1; background: rgb(254 32 98 / 20%); border-radius: 5px 5px 0 0; }
.chart i:nth-last-child(-n+2) { background: var(--red); }
.chart-axis { margin-top: 9px; display: flex; justify-content: space-between; color: #8a8582; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.signal-card-a, .signal-card-b { display: flex; align-items: center; gap: 11px; padding: 14px 17px; }
.signal-card-a { right: 5%; top: 17%; }
.signal-card-b { right: 5%; bottom: 11%; }
.signal-card-a div, .signal-card-b div { display: grid; }
.signal-card-a b, .signal-card-b b { font-size: 12px; }
.signal-card-a small, .signal-card-b small { font-size: 9px; color: var(--muted); margin-top: 2px; }
.pulse-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 7px rgb(254 32 98 / 8%); }
.answer-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--red); font-weight: 800; }
.orbit { position: absolute; border: 1px solid rgb(254 32 98 / 31%); border-radius: 50%; z-index: -1; }
.orbit-one { width: 380px; height: 380px; right: -20%; top: 6%; }
.orbit-two { width: 260px; height: 260px; right: -8%; top: 18%; }

.logo-strip {
  min-height: 65px; padding: 18px 28px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 25px;
  background: var(--ink); color: white; font-size: 10px; font-weight: 750; letter-spacing: .15em;
}
.logo-strip i { color: var(--red); font-style: normal; }
.section { max-width: 1440px; margin: auto; padding: 110px clamp(24px, 5vw, 72px); }
.section-heading { display: grid; grid-template-columns: 1.1fr .65fr; gap: 70px; align-items: end; margin-bottom: 60px; }
.section-heading h2, .training h2, .faq h2 { font-size: clamp(44px, 5vw, 72px); }
.section-heading > p { max-width: 510px; margin: 0 0 4px; color: var(--muted); line-height: 1.7; font-size: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 410px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.service-card:hover { background: var(--warm); transform: translateY(-5px); }
.service-top { display: flex; justify-content: space-between; color: var(--red); font: 750 10px "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.service-top b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; transition: .2s ease; }
.service-card:hover .service-top b { background: var(--red); color: white; border-color: var(--red); }
.service-card h3 { margin: 58px 0 18px; font-size: 26px; line-height: 1.05; letter-spacing: -.045em; }
.service-card p { min-height: 94px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.service-card ul { list-style: none; margin: 25px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 11px; font-weight: 650; }
.service-card li::before { content: "—"; margin-right: 9px; color: var(--red); }

.approach { background: var(--red); color: white; padding: 115px max(24px, calc((100vw - 1440px) / 2 + 72px)); display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(60px, 10vw, 170px); }
.eyebrow.light { color: white; }
.approach h2 { font-size: clamp(48px, 5.5vw, 80px); }
.approach h2 em { color: white; opacity: .6; }
.approach-copy > p:not(.eyebrow) { max-width: 470px; margin: 28px 0 32px; color: #fffbd; line-height: 1.65; }
.button-white { background: white; color: var(--red); box-shadow: none; }
.button-white:hover { background: var(--ink); color: white; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid #ffffff40; }
.steps li { padding: 24px 0; display: grid; grid-template-columns: 56px 1fr; border-bottom: 1px solid #ffffff40; }
.steps > li > span { font: 750 10px "SFMono-Regular", Consolas, "Liberation Mono", monospace; color: #ffffffa5; padding-top: 5px; }
.steps b { font-size: 24px; letter-spacing: -.04em; }
.steps p { max-width: 520px; margin: 7px 0 0; color: #ffffffb8; font-size: 13px; line-height: 1.55; }

.training { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(60px, 8vw, 120px); align-items: center; }
.room-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 330px 150px; gap: 10px; }
.room-photo { min-width: 0; min-height: 0; margin: 0; overflow: hidden; border-radius: 14px; background: var(--warm); }
.room-photo-main { grid-column: 1 / 4; }
.room-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s ease; }
.room-photo:hover img { transform: scale(1.025); }
.training-copy > p:not(.eyebrow) { margin: 28px 0; color: var(--muted); line-height: 1.7; }
.room-pricing { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.room-pricing div { min-height: 92px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; border-right: 1px solid var(--line); }
.room-pricing div:last-child { border-right: 0; }
.room-pricing .popular { background: var(--red); color: white; }
.room-pricing span { font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; }
.room-pricing strong { font-size: 20px; letter-spacing: -.04em; }
.room-features { margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 12px; font-weight: 700; }
.room-features span::before { content: "✓"; margin-right: 9px; color: var(--red); }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--red); font-size: 24px; font-weight: 400; transition: transform .2s ease; }
details[open] summary span { transform: rotate(45deg); }
details p { margin: -5px 60px 26px 0; color: var(--muted); line-height: 1.65; font-size: 14px; }

.contact { padding: 110px 24px; text-align: center; background: var(--red); color: white; }
.contact .eyebrow { justify-content: center; }
.contact h2 { font-size: clamp(52px, 7vw, 96px); }
.contact h2 em { color: white; opacity: .58; }
.contact > p:not(.eyebrow) { max-width: 620px; margin: 28px auto; color: #ffffffc7; line-height: 1.6; font-size: 17px; }
.contact-actions { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 32px; }
.contact-link { font-weight: 700; font-size: 13px; border-bottom: 1px solid #ffffff70; padding-bottom: 3px; }

footer { min-height: 110px; max-width: 1440px; margin: auto; padding: 30px clamp(24px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; }
footer p, footer > a:last-child { font-size: 10px; font-weight: 700; letter-spacing: .13em; color: var(--muted); }

@media (max-width: 1020px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { max-width: 760px; }
  .signal-panel { min-height: 470px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .approach { grid-template-columns: 1fr; }
  .training { grid-template-columns: 1fr; }
  .room-gallery { order: 2; }
  .faq { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 650px) {
  .announcement { justify-content: space-between; font-size: 10px; }
  .announcement > span { max-width: 240px; }
  .site-header { height: 72px; }
  .site-header .button-small { display: none; }
  .hero { min-height: auto; padding-top: 48px; }
  .hero h1 { font-size: clamp(49px, 15vw, 68px); }
  .hero-actions, .contact-actions { align-items: stretch; flex-direction: column; }
  .text-link { padding: 10px 0; justify-content: center; }
  .trust-row { gap: 22px; justify-content: space-between; }
  .signal-panel { min-height: 405px; }
  .signal-card-main { width: 84%; left: 8%; top: 21%; }
  .chart { height: 140px; }
  .signal-card-a { display: none; }
  .signal-card-b { right: 4%; bottom: 4%; }
  .logo-strip { justify-content: flex-start; gap: 16px; }
  .section { padding-top: 82px; padding-bottom: 82px; }
  .section-heading { grid-template-columns: 1fr; gap: 30px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 350px; }
  .approach { padding-top: 85px; padding-bottom: 85px; }
  .room-gallery { grid-template-rows: 250px 115px; }
  .room-pricing { grid-template-columns: 1fr; }
  .room-pricing div { min-height: 74px; border-right: 0; border-bottom: 1px solid var(--line); }
  .room-pricing div:last-child { border-bottom: 0; }
  .faq { gap: 36px; }
  footer { flex-direction: column; gap: 22px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
