/*
Theme Name: ARSTECH HVAC
Theme URI: https://arstech.co/
Author: ARSTECH
Description: A lightweight, dependency-free WordPress theme for ARSTECH HVAC solutions.
Version: 1.0.5
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: arstech-hvac
*/

:root {
  --navy: #0b2239;
  --navy-soft: #153b5c;
  --blue: #0b6f9f;
  --cyan: #53c7e5;
  --orange: #c84f0c;
  --ink: #182536;
  --muted: #526476;
  --line: #d9e3e9;
  --surface: #f5f8fa;
  --white: #fff;
  --shadow: 0 20px 55px rgba(10, 31, 51, .11);
  --radius: 20px;
  --container: 1180px;
  --section-space: clamp(72px, 7vw, 96px);
  --layout-gap: clamp(36px, 5vw, 70px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { width: auto; height: auto; clip: auto; margin: 12px; padding: 10px 16px; z-index: 9999; background: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(11, 31, 51, .08);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-logo .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.site-logo .custom-logo { width: auto; max-width: 220px; max-height: 62px; object-fit: contain; }
.site-logo-footer .custom-logo-link { padding: 9px 12px; border-radius: 10px; background: #fff; }
.site-logo-footer .custom-logo { max-width: 200px; max-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-weight: 800; letter-spacing: -.035em; font-size: 23px; }
.brand:hover { color: var(--navy); }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; color: #fff; border-radius: 13px;
  background: linear-gradient(145deg, var(--cyan), var(--blue)); font-size: 16px; letter-spacing: -.05em;
  box-shadow: 0 8px 20px rgba(20, 126, 179, .25);
}
.brand-word span { color: var(--orange); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #34475a; font-weight: 700; font-size: 14px; }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cta { color: #fff; padding: 11px 18px; border-radius: 999px; background: var(--navy); }
.site-nav .nav-cta:hover { color: #fff; background: var(--blue); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--navy); padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: currentColor; transition: .2s ease; }

.hero {
  position: relative; isolation: isolate; min-height: 650px; display: grid; align-items: center; overflow: hidden;
  color: #fff; background: var(--navy) var(--hero-image) center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5, 23, 39, .96) 0%, rgba(5, 23, 39, .83) 46%, rgba(5, 23, 39, .30) 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 440px; height: 440px; border-radius: 50%; left: -150px; bottom: -280px; border: 80px solid rgba(53, 183, 216, .15); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(285px, .55fr); gap: var(--layout-gap); align-items: end; padding-block: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--blue); font-weight: 800; font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero .eyebrow, .section-dark .eyebrow, .contact-panel .eyebrow { color: var(--cyan); }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(44px, 5.5vw, 70px); line-height: 1.06; letter-spacing: -.048em; }
.hero h1 span { color: var(--cyan); }
.hero-copy { max-width: 660px; margin: 22px 0 30px; color: #d5e1e9; font-size: clamp(17px, 2vw, 20px); }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 22px; border-radius: 9px; font-weight: 700; font-size: 14px; line-height: 1.35; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--orange); }
.button-primary:hover { color: #fff; background: #a93d05; }
.button-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); }
.button-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.hero-card { padding: 28px; border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius); background: rgba(11,31,51,.75); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.hero-card strong { display: block; font-size: 36px; line-height: 1; color: var(--cyan); }
.hero-card p { margin: 10px 0 18px; color: #d8e2e9; }
.hero-card ul { margin: 0; padding: 17px 0 0; border-top: 1px solid rgba(255,255,255,.14); list-style: none; }
.hero-card li { display: flex; align-items: center; gap: 9px; margin: 8px 0; font-size: 14px; }
.hero-card li::before { content: "✓"; color: var(--cyan); font-weight: 900; }

.trust-strip { background: var(--navy); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 24px 28px; border-right: 1px solid rgba(255,255,255,.11); }
.trust-item:first-child { border-left: 1px solid rgba(255,255,255,.11); }
.trust-item strong { display: block; color: var(--cyan); font-size: 18px; line-height: 1.35; }
.trust-item span { color: #b9c8d4; font-size: 13px; }

.section { padding-block: var(--section-space); }
.section-soft { background: var(--surface); }
.section-dark { background: var(--navy); color: #fff; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section h2, .page-hero h1 { margin: 0; color: var(--navy); font-size: clamp(32px, 4vw, 48px); line-height: 1.14; letter-spacing: -.038em; }
.section-dark h2 { color: #fff; }
.section-lead { margin: 17px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 18px); line-height: 1.65; }
.section-dark .section-lead { color: #b9c8d3; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { position: relative; min-height: 300px; padding: 30px 26px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.service-number { position: absolute; right: 22px; top: 18px; color: #edf2f5; font-size: 58px; line-height: 1; font-weight: 900; }
.service-icon { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 44px; color: var(--blue); border-radius: 16px; background: #e9f7fb; }
.service-icon svg { width: 29px; height: 29px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.service-card h3 { position: relative; margin: 0 0 10px; color: var(--navy); font-size: 20px; line-height: 1.3; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--layout-gap); align-items: center; }
.about-visual { position: relative; min-height: 490px; border-radius: 28px; overflow: hidden; background: #d9e6ed; box-shadow: var(--shadow); }
.about-visual img { width: 100%; height: 100%; min-height: 490px; object-fit: cover; }
.about-badge { position: absolute; left: 24px; bottom: 24px; max-width: 225px; padding: 20px; color: #fff; border-radius: 16px; background: var(--navy); }
.about-badge strong { display: block; color: var(--cyan); font-size: 30px; line-height: 1; }
.about-badge span { display: block; margin-top: 7px; font-size: 13px; line-height: 1.45; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 31px; }
.feature { display: flex; gap: 13px; align-items: flex-start; }
.feature-check { flex: 0 0 25px; display: grid; place-items: center; width: 25px; height: 25px; margin-top: 2px; color: #fff; border-radius: 50%; background: var(--blue); font-size: 13px; font-weight: 900; }
.feature strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.4; }
.feature span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card { position: relative; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.solution-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,20,34,.94) 0%, rgba(4,20,34,.1) 70%); }
.solution-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.solution-card:hover img { transform: scale(1.045); }
.solution-content { position: relative; z-index: 1; padding: 28px; }
.solution-content span { color: var(--cyan); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.solution-content h3 { margin: 7px 0 0; color: #fff; font-size: 22px; line-height: 1.3; }

.sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sector { padding: 12px 18px; border: 1px solid #d9e4ea; border-radius: 999px; background: #fff; color: #3d5064; font-size: 14px; font-weight: 700; }

.contact-panel { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(36px, 4vw, 50px); align-items: center; padding: clamp(38px, 4.5vw, 54px); border-radius: 26px; background: linear-gradient(135deg, #12314e, var(--navy)); box-shadow: var(--shadow); }
.contact-panel h2 { color: #fff; }
.contact-panel p { max-width: 670px; margin: 16px 0 0; color: #c7d5df; font-size: 16px; line-height: 1.65; }
.contact-actions { display: grid; gap: 11px; }
.contact-actions .button { width: 100%; }
.contact-actions small { color: #9eb2c1; text-align: center; }
.contact-details { display: grid; grid-template-columns: .8fr 1fr 1.8fr; gap: 20px; margin-top: 28px; }
.contact-detail { padding-top: 15px; border-top: 1px solid rgba(255,255,255,.16); }
.contact-detail span { display: block; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-detail strong { display: block; margin-top: 4px; color: #fff; font-size: 14px; line-height: 1.5; }
.contact-detail a { color: inherit; }

.page-hero { padding: 86px 0; color: #fff; background: linear-gradient(135deg, var(--navy-soft), var(--navy)); }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 650px; color: #c7d3dc; font-size: 17px; }
.content-shell { width: min(calc(100% - 40px), 860px); margin: 0 auto; padding-block: 80px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { color: var(--navy); line-height: 1.25; }
.entry-content img { border-radius: 16px; }
.entry-content blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--cyan); background: var(--surface); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.post-card h2 { margin: 8px 0 10px; font-size: 22px; }
.post-card p { color: var(--muted); font-size: 14px; }
.post-meta { color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.site-footer { color: #aebdca; background: #071727; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: var(--layout-gap); padding-block: 58px; }
.site-footer .brand { color: #fff; }
.footer-copy { max-width: 440px; margin: 19px 0 0; color: #bac8d3; font-size: 14px; line-height: 1.65; }
.footer-title { margin: 0 0 15px; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 7px 0; }
.footer-links, .footer-links a { color: #bac8d3; font-size: 14px; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.09); font-size: 13px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; display: none; left: 20px; right: 20px; top: calc(100% + 8px); padding: 20px; flex-direction: column; align-items: stretch; gap: 7px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 9px 7px; }
  .site-nav .nav-cta { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 450px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: 2; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .solution-card:last-child { grid-column: 1 / -1; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr 1fr; }
  .contact-detail:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 72px; }
  .site-logo .custom-logo { max-width: 180px; max-height: 54px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 39px; height: 39px; }
  .hero { min-height: auto; }
  .hero-grid { gap: 32px; padding-block: 64px; }
  .hero-grid > * { min-width: 0; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 40px); overflow-wrap: anywhere; }
  .hero-card { width: 100%; max-width: 100%; min-width: 0; padding: 22px; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button-row .button { width: 100%; white-space: normal; text-align: center; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { min-width: 0; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.11); overflow-wrap: anywhere; }
  .section { padding-block: 64px; }
  .section-heading { margin-bottom: 34px; }
  .services-grid, .solutions-grid, .posts-grid { grid-template-columns: 1fr; }
  .solution-card:last-child { grid-column: auto; }
  .service-card { min-height: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .about-visual, .about-visual img { min-height: 390px; }
  .contact-panel { gap: 30px; padding: 30px 22px; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-detail:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 48px; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .hero h1 span { display: block; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child { border-left: 0; border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
