/*
Theme Name: MACSOV
Theme URI: https://macsov.sg.com
Author: MACSOV
Description: Corporate WordPress theme migrated from the MACSOV Next.js implementation.
Version: 1.0.0
Text Domain: macsov
*/

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap");

:root { --charcoal: #292929; --orange: #f4512c; --red: #b91f32; --ivory: #f7f4ef; --grey: #e8e5e1; --white: #fff; --ink-muted: #a8a5a0; --line-dark: rgba(255,255,255,.1); --max: 1280px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--charcoal); color: var(--white); font-family: "Manrope", sans-serif; font-size: 16px; line-height: 1.7; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: var(--orange); color: var(--white); }
.page-shell { overflow: hidden; }
.site-header, .site-footer, .section-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.site-header-wrap { position: sticky; top: 0; z-index: 20; background: rgba(41,41,41,.86); border-bottom: 1px solid var(--line-dark); backdrop-filter: blur(16px); }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; width: 176px; align-items: center; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; justify-content: center; gap: 24px; }
.nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav a { color: rgba(255,255,255,.64); font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; transition: color 160ms ease; }
.nav a:hover, .nav .active { color: var(--white); }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border: 1px solid var(--orange); border-radius: 0; background: var(--orange); color: var(--white); cursor: pointer; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.header-cta:hover, .button:hover { background: var(--red); border-color: var(--red); }
.button.secondary, .header-cta.secondary { background: transparent; border-color: rgba(255,255,255,.35); color: var(--white); }
.button.secondary:hover, .header-cta.secondary:hover { background: var(--white); border-color: var(--white); color: var(--charcoal); }

.hero { padding: 0; border-bottom: 1px solid var(--line-dark); }
.hero .section-inner { width: 100%; }
.hero-card { position: relative; min-height: calc(100vh - 80px); overflow: hidden; background: #181818; }
.hero-card.small { min-height: min(72vh, 720px); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { filter: grayscale(.28) saturate(.82); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(22,22,22,.94) 0%,rgba(22,22,22,.72) 44%,rgba(22,22,22,.18) 100%),linear-gradient(0deg,rgba(22,22,22,.52),transparent 56%); }
.hero-content { position: relative; z-index: 1; display: flex; align-items: flex-end; width: min(var(--max), calc(100% - 48px)); min-height: calc(100vh - 80px); margin: 0 auto; padding: 80px 0 108px; }
.hero-card.small .hero-content { min-height: min(72vh,720px); padding-bottom: 80px; }
.hero-copy { max-width: 780px; }
.eyebrow { margin: 0 0 20px; color: var(--orange); font-size: .65rem; font-weight: 700; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; }
.hero-copy .eyebrow { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.55); color: var(--ivory); }
h1,h2,h3 { margin: 0; font-family: "Montserrat", sans-serif; font-weight: 500; letter-spacing: -.035em; line-height: .98; }
h1 { max-width: 16ch; margin-bottom: 38px; font-size: clamp(2.3rem,4.4vw,4.35rem); line-height: 1.04; text-transform: uppercase; }
h2 { max-width: 15ch; font-size: clamp(2.25rem,4vw,4.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.hero-copy > p:last-of-type { max-width: 610px; margin-top: 0; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.72); font-size: 1.02rem; font-weight: 300; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.section { padding: 112px 0; border-bottom: 1px solid var(--line-dark); }
.section-inner { display: grid; gap: 64px; }
.split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; }
.split.reverse .section-media { order: -1; }
.section-copy { max-width: 630px; }
.section-heading { max-width: 630px; }
.section-heading h2 { margin-bottom: 26px; }
.section-heading > p:last-child { color: var(--ink-muted); font-size: .95rem; font-weight: 300; }
.section-copy h2, .feature-box h2 { margin-bottom: 26px; }
.section-copy p, .feature-box p { color: var(--ink-muted); font-size: .95rem; font-weight: 300; }
.section-copy p + p, .feature-box p + p { margin-top: 16px; }
.section-media { position: relative; background: #1e1e1e; overflow: hidden; }
.section-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.14); pointer-events: none; }
.section-media img { aspect-ratio: 1/.92; object-fit: cover; filter: grayscale(.2) saturate(.85); transition: transform .6s ease; }
.section-media:hover img, .card:hover img { transform: scale(1.04); }
.cards-3,.cards-5,.grid-panels { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cards-5 { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.grid-panels { grid-template-columns: repeat(3,minmax(0,1fr)); }
.card,.panel,.feature-box { border: 1px solid var(--line-dark); border-radius: 0; overflow: hidden; transition: border-color 180ms ease,background 180ms ease; }
.card { background: #222; }
.card:hover,.panel:hover { border-color: rgba(244,81,44,.75); }
.card-image { overflow: hidden; }
.card-image img { aspect-ratio: 1.32/1; object-fit: cover; filter: grayscale(.22) saturate(.84); transition: transform .55s ease; }
.card-body,.panel,.feature-box { padding: 30px; }
.card-body h3 { margin-bottom: 14px; }
.card-body p,.panel p { color: var(--ink-muted); font-size: .86rem; font-weight: 300; line-height: 1.75; }
.card-index,.panel strong { display: inline-block; margin-bottom: 18px; color: var(--orange); font-family: "Montserrat", sans-serif; font-size: .67rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.panel { min-height: 200px; background: transparent; }
.focus-timeline-section { background: #1f1f1f; }
.focus-timeline { position: relative; display: grid; gap: 0; max-width: 1080px; }
.focus-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 43px; width: 1px; background: rgba(244,81,44,.65); }
.timeline-item { position: relative; display: grid; grid-template-columns: 88px minmax(0,1fr) minmax(260px,380px); gap: 36px; align-items: center; min-height: 300px; padding: 38px 0; border-top: 1px solid var(--line-dark); }
.timeline-item:last-child { border-bottom: 1px solid var(--line-dark); }
.timeline-marker { position: relative; z-index: 1; display: grid; width: 88px; height: 88px; place-items: center; border: 1px solid var(--orange); border-radius: 50%; background: var(--charcoal); color: var(--orange); font-family: "Montserrat", sans-serif; font-size: .84rem; font-weight: 600; letter-spacing: .08em; }
.timeline-content { max-width: 490px; }
.timeline-label { margin-bottom: 12px; color: var(--orange); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.timeline-content h3 { margin-bottom: 16px; font-size: clamp(1.55rem,2.4vw,2.4rem); }
.timeline-content > p:last-child { color: var(--ink-muted); font-size: .95rem; font-weight: 300; }
.timeline-media { overflow: hidden; border: 1px solid var(--line-dark); }
.timeline-media img { aspect-ratio: 1.35 / 1; object-fit: cover; filter: grayscale(.18) saturate(.86); transition: transform .5s ease; }
.timeline-item:hover .timeline-media img { transform: scale(1.04); }

.quote-band,.cta-band,.dark-band { margin: 0; padding: 112px 0; border-bottom: 1px solid var(--line-dark); }
.quote-band,.dark-band { background: #1d1d1d; }
.dark-band { background-image: linear-gradient(rgba(41,41,41,.94),rgba(41,41,41,.94)),url("/assets/20-dark-editorial-texture.png"); background-position: center; background-size: cover; }
.dark-band .panel { background: rgba(41,41,41,.78); }
.center-stack { max-width: 860px; margin: 0 auto; text-align: center; }
.center-stack h2 { max-width: none; margin: 0 auto 22px; }
.quote { color: var(--ivory); font-family: "Montserrat", sans-serif; font-size: clamp(2rem,3.5vw,4rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.quote + p { margin-top: 22px; color: var(--ink-muted); }
.cta-band { background: #191919; }
.cta-shell { position: relative; min-height: 460px; overflow: hidden; border: 1px solid var(--line-dark); }
.cta-shell > img,.cta-shell > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) saturate(.75); }
.cta-shell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(29,29,29,.96),rgba(29,29,29,.64) 54%,rgba(29,29,29,.24)); }
.cta-block { position: relative; z-index: 1; max-width: 750px; padding: 80px; }
.cta-block h2 { margin-bottom: 22px; }
.cta-block p { color: rgba(255,255,255,.7); font-weight: 300; }
.feature-box { background: #222; }
.meta-list { display: grid; gap: 14px; margin-top: 30px; }
.meta-list div { padding-top: 14px; border-top: 1px solid var(--line-dark); }
.meta-list strong { display: block; margin-bottom: 3px; color: var(--ivory); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; }
.contact-form { display: grid; gap: 14px; margin-top: 24px; }
.contact-form input,.contact-form textarea { width: 100%; border: 1px solid var(--line-dark); border-radius: 0; outline: none; background: #292929; color: var(--white); padding: 15px 16px; }
.contact-form input:focus,.contact-form textarea:focus { border-color: var(--orange); }
.contact-form textarea { min-height: 168px; resize: vertical; }
.contact-form label { display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.macsov-honeypot { position: absolute; left: -9999px; }
.contact-form-status { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--orange); color: var(--ivory); background: rgba(255,255,255,.06); font-size: .85rem; }
.contact-form-status--error,.contact-form-status--invalid { border-left-color: var(--red); }
.map-frame { min-height: 440px; overflow: hidden; border: 1px solid var(--line-dark); }
.map-frame iframe { width: 100%; min-height: 440px; border: 0; filter: grayscale(1) contrast(.85) brightness(.72); }

.site-footer-wrap { padding: 0; background: #171717; }
.site-footer { padding: 88px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; margin-bottom: 68px; }
.footer-logo { width: 210px; margin-bottom: 24px; filter: grayscale(1) brightness(4); }
.footer-top h2 { max-width: 10ch; font-size: clamp(2.1rem,3.3vw,3.7rem); }
.footer-copy p,.footer-group a,.footer-group p { color: var(--ink-muted); font-size: .85rem; font-weight: 300; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 32px; padding-top: 30px; border-top: 1px solid var(--line-dark); }
.footer-group h3 { margin-bottom: 18px; color: var(--white); font-family: "Manrope",sans-serif; font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-group a { display: block; margin-bottom: 9px; transition: color 160ms ease; }
.footer-group a:hover { color: var(--orange); }
.footer-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: #77736e; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.wp-post-content > * + * { margin-top: 1.25rem; }
.wp-post-content { color: var(--ink-muted); font-weight: 300; }
.wp-post-content h2,.wp-post-content h3 { color: var(--white); }

@media (max-width:1100px) { .nav { gap:14px; } .nav a { font-size:.6rem; } .cards-5 { grid-template-columns:repeat(3,minmax(0,1fr)); } .cards-3,.grid-panels { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:820px) { .site-header,.site-footer,.section-inner,.hero-content { width:min(var(--max),calc(100% - 32px)); } .site-header { min-height:72px; } .brand { width:145px; } .nav { display:none; } .header-cta { min-height:38px; padding:0 14px; font-size:.6rem; } .hero-card,.hero-content { min-height:calc(78vh - 72px); } .hero-card.small,.hero-card.small .hero-content { min-height:58vh; } .hero-content { padding:48px 0 60px; } .section,.quote-band,.cta-band,.dark-band { padding:76px 0; } .split,.footer-top,.footer-grid { grid-template-columns:1fr; gap:38px; } .split.reverse .section-media { order:0; } .cards-5,.cards-3,.grid-panels { grid-template-columns:1fr; } .timeline-item { grid-template-columns:64px minmax(0,1fr); gap:22px; min-height:0; padding:32px 0; } .focus-timeline::before { left:31px; } .timeline-marker { width:64px; height:64px; font-size:.72rem; } .timeline-media { grid-column:2; } .cta-block { padding:42px 30px; } }
@media (max-width:480px) { .site-header,.site-footer,.section-inner,.hero-content { width:calc(100% - 28px); } .header-cta { padding:0 10px; font-size:.55rem; } h1 { margin-bottom:30px; font-size:clamp(2.2rem,10vw,3.05rem); } .card-body,.panel,.feature-box { padding:24px; } .footer-meta { flex-direction:column; } }
