/*
 Theme Name: JTCooling Singapore
 Theme URI: https://jtcooling.com.sg
 Author: JTCooling / W
 Author URI: https://jtcooling.com.sg
 Description: Corporate theme for JTCooling Singapore Pte. Ltd. — one-stop cooling tower solutions (new towers, servicing, repair and retrofit).
 Version: 1.0
 Requires at least: 5.8
 Tested up to: 6.6
 Requires PHP: 7.4
 License: GPL-2.0-or-later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Tags: business, industrial, responsive-layout, custom-colors, custom-logo
 Text Domain: jtcooling
*/

/* =========================================================
   JTCooling Singapore Pte. Ltd. — Corporate Site Stylesheet
   Clean · Professional · Industrial
   ========================================================= */

:root {
  /* Brand palette */
  --navy:        #0B3D59;   /* primary deep ocean navy */
  --navy-700:    #0A3350;
  --navy-900:    #072539;
  --teal:        #0E8BA0;   /* secondary cooling-teal */
  --teal-600:    #0C7A8D;
  --cyan:        #1FB6CC;   /* accent */
  --cyan-soft:   #E2F4F7;
  --amber:       #E8A33D;   /* highlight CTA */

  /* Neutrals */
  --ink:         #16242F;
  --muted:       #5B6B7B;
  --line:        #E4EBF0;
  --bg:          #FFFFFF;
  --bg-alt:      #F4F8FA;
  --bg-dark:     #0B3D59;

  /* Effects */
  --shadow-sm:   0 1px 3px rgba(11,61,89,.08), 0 1px 2px rgba(11,61,89,.06);
  --shadow-md:   0 10px 30px rgba(11,61,89,.10);
  --shadow-lg:   0 20px 50px rgba(7,37,57,.18);
  --radius:      14px;
  --radius-sm:   10px;
  --maxw:        1200px;
  --header-h:    92px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.section--dark .section-head p { color: rgba(255,255,255,.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: var(--bg-alt); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--cyan-soft); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; color: var(--navy); letter-spacing: -.02em; }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.brand .logo-img { height: 78px; width: auto; object-fit: contain; display: block; }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--teal); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
  color: var(--ink); transition: all .18s ease;
}
.nav-links a:hover { color: var(--teal); background: var(--bg-alt); }
.nav-links a.active { color: var(--teal); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 620px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--navy-900);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,37,57,.92) 0%, rgba(11,61,89,.72) 45%, rgba(14,139,160,.35) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.hero__inner { max-width: 660px; }
.hero .eyebrow { color: var(--cyan); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); margin: 16px 0 18px; color: #fff; }
.hero h1 .hl { color: var(--cyan); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.88); margin-bottom: 30px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero__stats .stat .num { font-size: 30px; font-weight: 800; color: #fff; }
.hero__stats .stat .lbl { font-size: 14px; color: rgba(255,255,255,.7); }

/* ---------- Logos / trust strip ---------- */
.trust { background: var(--navy-700); color: rgba(255,255,255,.8); padding: 22px 0; }
.trust .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.trust .sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cyan-soft); color: var(--teal); margin-bottom: 18px;
}
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin-bottom: 14px; }
.card .more { color: var(--teal); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card .more .arrow { transition: transform .2s; }
.card:hover .more .arrow { transform: translateX(3px); }

/* Service feature card with image */
.svc-card { overflow: hidden; padding: 0; }
.svc-card .thumb { height: 200px; overflow: hidden; }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc-card:hover .thumb img { transform: scale(1.06); }
.svc-card .body { padding: 26px 28px 30px; }
.svc-card .body h3 { font-size: 21px; }
.svc-card .body p { color: var(--muted); }
.svc-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.svc-card .tag { font-size: 12.5px; font-weight: 600; color: var(--teal-600); background: var(--cyan-soft); padding: 4px 12px; border-radius: 999px; }

/* ---------- Why us ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan-soft); color: var(--teal);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 2px;
}
.checklist li strong { display: block; font-size: 15.5px; }
.checklist li span { color: var(--muted); font-size: 14.5px; }

/* ---------- Stats band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-band .num { font-size: 40px; font-weight: 800; color: var(--cyan); }
.stat-band .lbl { color: rgba(255,255,255,.78); font-size: 15px; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.step::after { content: ""; position: absolute; top: 21px; left: 50px; right: -12px; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h4 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(110deg, var(--navy) 0%, var(--teal) 100%); color: #fff; border-radius: var(--radius); padding: 52px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 30px; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 120px 0 80px; color: #fff; overflow: hidden; background: var(--navy-900);
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,37,57,.94), rgba(11,61,89,.7)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 12px 0 12px; color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 620px; margin: 0; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- About specifics ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.value-card { text-align: left; }
.value-card .icon { background: var(--cyan-soft); color: var(--teal); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.team-card .photo { height: 240px; background: var(--bg-alt); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .info { padding: 20px 22px; }
.team-card .info h4 { font-size: 17px; margin: 0 0 2px; }
.team-card .info .role { color: var(--teal); font-size: 13.5px; font-weight: 600; }
.team-card .info p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--cyan-soft); color: var(--teal); display: grid; place-items: center; }
.contact-info .info-item h4 { font-size: 15px; margin: 0 0 2px; }
.contact-info .info-item p, .contact-info .info-item a { color: var(--muted); margin: 0; }
.contact-info .info-item a:hover { color: var(--teal); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--cyan-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-success { display: none; background: #E7F6EC; color: #1C7A43; border: 1px solid #BFE6CC; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }
.form-error { display: none; background: #FDECEC; color: #B42318; border: 1px solid #F6C9C5; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 320px; background: var(--bg-alt); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand .logo-img { height: 88px; }
.site-footer p { font-size: 14.5px; }
.footer-col h5 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14.5px; color: rgba(255,255,255,.72); transition: color .15s; }
.footer-col a:hover { color: var(--cyan); }
.footer-col p { font-size: 14.5px; margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 16px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4, .steps, .stat-band, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 36px 28px; }
  .hero__stats { gap: 26px; }
}
