/* ===== CLEANDY INNOVATION - public site ===== */
:root {
  --navy: #0c2a63;
  --navy-2: #123a85;
  --blue: #1557b5;
  --blue-2: #1f7fd8;
  --green: #239236;
  --green-2: #57b92c;
  --ink: #142139;
  --muted: #5a6a82;
  --sky: #eef6fd;
  --line-green: #06c755;
  --border: #dde7f2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 50, 110, .10);
  --shadow-sm: 0 4px 14px rgba(15, 50, 110, .08);
  --head: 'Prompt', system-ui, sans-serif;
  --body: 'Sarabun', 'Prompt', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.3; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-en { color: var(--muted); font-size: .85rem; letter-spacing: .04em; margin-top: -.3em; }
.hl-green { color: var(--green); }
.hl-blue { color: var(--blue); }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.4em; border-radius: 12px; font-family: var(--head); font-weight: 500; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-blue { background: linear-gradient(135deg, var(--navy-2), var(--blue)); color: #fff; box-shadow: 0 8px 20px rgba(21, 87, 181, .3); }
.btn-green { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; box-shadow: 0 8px 20px rgba(35, 146, 54, .3); }
.btn-outline-green { border-color: var(--green); color: var(--navy); background: rgba(255, 255, 255, .85); }
.btn-outline-green .ico { color: var(--green); }
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-outline-green:hover .ico { color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline-white { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); }
.btn-line { background: var(--line-green); color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(12, 42, 99, .07); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand img { height: 62px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a { font-family: var(--head); font-weight: 500; color: var(--navy); padding: .5em .9em; border-radius: 8px; position: relative; transition: color .2s; }
.main-nav a::after { content: ''; position: absolute; left: .9em; right: .9em; bottom: .25em; height: 2px; background: var(--blue-2); transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover, .main-nav a.active { color: var(--blue-2); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav .nav-quote { display: none; }
.header-call { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; padding: 8px 22px 8px 10px; border-radius: 40px; box-shadow: 0 8px 20px rgba(35, 146, 54, .3); transition: transform .2s; }
.header-call:hover { transform: translateY(-2px); }
.header-call-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.header-call-icon .ico { width: 22px; height: 22px; }
.header-call-text { display: flex; flex-direction: column; font-family: var(--head); font-size: 1.05rem; line-height: 1.25; }
.nav-cb { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }
.nav-toggle .ico { width: 28px; height: 28px; }
.nav-toggle .i-close { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--hero) center right / cover no-repeat; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .82) 38%, rgba(255, 255, 255, 0) 62%); }
.hero-inner { position: relative; padding-top: 50px; padding-bottom: 90px; }
.hero-text { max-width: 620px; }
.hero h1 { font-weight: 700; margin-bottom: .3em; }
.hero h1 .t1, .hero h1 .t2 { display: block; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.2; }
.hero h1 .t1 { color: var(--navy-2); }
.hero h1 .t2 { background: linear-gradient(90deg, var(--navy-2), var(--green) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-family: var(--head); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: var(--navy); margin-bottom: .2em; }
.hero-sub em { font-style: normal; color: var(--blue-2); }
.hero-desc { font-size: 1.2rem; color: #33445e; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.nw { white-space: nowrap; }
.hb-line { display: block; }
.hero-badge { position: absolute; left: 47%; top: 8px; font-family: var(--head); font-weight: 600; font-style: italic; color: var(--navy-2); font-size: 1.35rem; line-height: 1.3; transform: rotate(-12deg); text-align: center; text-shadow: 0 2px 10px rgba(255, 255, 255, .9); }

/* ---------- info strip ---------- */
.info-bar { position: relative; z-index: 3; margin-top: -56px; padding-bottom: 8px; }
.info-panel { display: grid; grid-template-columns: 1.45fr 1.3fr .95fr 1.2fr .95fr; background: #fff; border-radius: 20px; box-shadow: 0 18px 40px rgba(12, 42, 99, .12); border: 1px solid var(--border); overflow: hidden; }
.info-card { display: flex; align-items: center; gap: 12px; padding: 18px 16px; min-width: 0; transition: background .2s; }
.info-card + .info-card { border-left: 1px solid var(--border); }
a.info-card:hover { background: var(--sky); }
.info-card small { display: block; font-family: var(--head); font-size: .76rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-bottom: 1px; }
.info-card p { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--ink); font-weight: 500; overflow-wrap: break-word; }
.info-card .phones { display: flex; flex-direction: column; }
.info-card .phones a { white-space: nowrap; }
.info-card .phones a:hover { color: var(--blue-2); }
.info-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.info-ic .ico { width: 22px; height: 22px; }
.info-ic.green { background: linear-gradient(135deg, #17682a, var(--green-2)); }
.info-ic.blue { background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.info-ic.fb { background: #1877f2; }
.info-ic.line { background: var(--line-green); }
.info-ic.navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-sky { background: linear-gradient(180deg, var(--sky), #f8fbff); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); font-weight: 700; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.h-left { color: var(--navy); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.eyebrow { display: inline-block; font-family: var(--head); color: var(--green); font-weight: 600; letter-spacing: .05em; margin-bottom: .4em; }

/* cleaning service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { display: grid; grid-template-columns: 1fr 44%; min-height: 170px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-body { padding: 18px 8px 18px 18px; }
.svc-body h3 { color: var(--navy-2); font-size: 1.1rem; margin: 10px 0 4px; }
.svc-body p, .svc-body ul { font-size: .9rem; color: #3a4a63; margin: 0; }
.svc-body ul { padding-left: 1.1em; }
.svc-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-2), var(--blue-2)); color: #fff; box-shadow: 0 6px 14px rgba(21, 87, 181, .3); }
.svc-icon .ico { width: 28px; height: 28px; }
.svc-img { position: relative; }
.svc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 30%); }

/* construction cards */
.con-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.con-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px; transition: transform .25s, box-shadow .25s; border: 1px solid var(--border); }
.con-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.con-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-height: 56px; }
.con-head h3 { font-size: 1.05rem; color: var(--navy); margin: 0; }
.con-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #18692a, var(--green)); color: #fff; flex: none; }
.con-icon .ico { width: 26px; height: 26px; }
.con-card img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: 10px; }

/* why us */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.why-item { text-align: center; padding: 8px 18px; }
.why-item + .why-item { border-left: 1px solid var(--border); }
.why-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #17682a, var(--green)); color: #fff; margin-bottom: 10px; box-shadow: 0 8px 18px rgba(35, 146, 54, .25); }
.why-icon .ico { width: 32px; height: 32px; }
.why-item h3 { color: var(--blue); font-size: 1.15rem; margin-bottom: .2em; }
.why-item p { font-size: .92rem; color: var(--muted); margin: 0; }

/* about teaser */
.about-teaser { background: linear-gradient(180deg, #f5f9fe, #fff); padding: 64px 0; }
.about-teaser-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 32px; align-items: center; }
.about-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.about-copy h2 { color: var(--navy); font-size: 1.8rem; margin-bottom: .1em; }
.about-copy h3 { color: var(--navy-2); font-size: 1.15rem; margin: 0; }
.about-copy p:not(.muted-en) { font-size: .95rem; color: #3a4a63; }
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; transition: transform .3s; }
.about-gallery a { overflow: hidden; border-radius: 10px; }
.about-gallery a:hover img { transform: scale(1.06); }

/* contact band (home) + footer */
.contact-band { background: radial-gradient(circle at 15% 20%, #1c4ea3 0%, var(--navy) 55%); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.contact-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--blue-2), var(--green-2)); }
.contact-band-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 36px; align-items: start; }
.band-title { font-size: 1.3rem; margin-bottom: .8em; }
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-mark { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 6px; flex: none; }
.footer-name { font-family: var(--head); font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: .02em; }
.footer-name small { font-size: .95rem; font-weight: 500; letter-spacing: .25em; }
.footer-company { font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.footer-company small { font-weight: 400; font-size: .8rem; opacity: .8; }
.footer-slogan { opacity: .85; font-size: .95rem; }

.contact-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ico { width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.contact-list a:hover { text-decoration: underline; }
.contact-list.is-light { color: rgba(255, 255, 255, .92); font-size: .95rem; }
.contact-list.is-light .ico { color: #fff; }

.site-footer { background: #0a2152; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.2fr; gap: 36px; padding-top: 52px; padding-bottom: 36px; }
.footer-col h3 { font-size: 1.15rem; margin-bottom: .8em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--green-2); }
.footer-bottom { background: #fff; color: #44536b; font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.footer-bottom-links a { margin-left: 16px; }
.footer-bottom-links a:hover { color: var(--blue-2); }
.is-home .footer-grid { display: none; }

/* ---------- forms ---------- */
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-card h3 { color: var(--navy); font-size: 1.2rem; }
.field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; margin-bottom: 12px; background: #f9fbfe; transition: border-color .2s, box-shadow .2s; }
.field:focus-within, .lbl input:focus, .lbl select:focus, .lbl textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(31, 127, 216, .15); outline: none; }
.field .ico { color: #8a99ad; }
.field input, .field textarea { border: 0; background: transparent; padding: 11px 0; width: 100%; outline: none; color: var(--ink); }
.field-area { align-items: flex-start; }
.field-area .ico { margin-top: 13px; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.alert { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: .95rem; margin-bottom: 14px; }
.alert.ok { background: #e7f7ea; color: #1b6f2b; }
.alert.err { background: #fdecec; color: #a42020; }
.lbl { display: block; font-family: var(--head); font-size: .92rem; font-weight: 500; color: var(--navy); margin-bottom: 14px; }
.lbl input, .lbl select, .lbl textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: #f9fbfe; font-family: var(--body); font-weight: 400; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-lg { padding: 32px; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; background: var(--hero) center 30% / cover no-repeat; padding: 70px 0 60px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 42, 99, .92) 0%, rgba(18, 58, 133, .78) 50%, rgba(35, 146, 54, .35) 100%); }
.page-hero .container { position: relative; color: #fff; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: .2em 0 .2em; }
.page-hero p { max-width: 640px; opacity: .92; margin: 0; }
.crumbs { font-size: .9rem; opacity: .85; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }

.svc-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .5em 1.1em; border-radius: 30px; border: 1px solid var(--border); background: #fff; font-family: var(--head); font-size: .95rem; color: var(--navy); cursor: pointer; transition: all .2s; }
.chip:hover, .chip.active { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.chip .ico { color: var(--green); }
.chip:hover .ico { color: #fff; }

.svc-detail-list { display: grid; gap: 34px; }
.svc-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.svc-detail.flip .svc-detail-img { order: 2; }
.svc-detail-img { position: relative; }
.svc-detail-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; }
.svc-icon.float { position: absolute; left: 16px; bottom: -18px; width: 62px; height: 62px; border: 4px solid #fff; }
.svc-detail-copy h3 { color: var(--navy); font-size: 1.5rem; }
.svc-detail-copy .lead { font-family: var(--head); color: var(--green); font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks .ico { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

.about-main { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.about-main-photo img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4/3.2; object-fit: cover; }
.body-lg { font-size: 1.05rem; color: #34445d; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.stats div { background: var(--sky); border-radius: 14px; padding: 16px 8px; text-align: center; }
.stats b { display: block; font-family: var(--head); font-size: 1.7rem; color: var(--blue); line-height: 1.1; }
.stats span { font-size: .85rem; color: var(--muted); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.vm-card h3 { color: var(--navy); font-size: 1.4rem; }
.vm-card p { color: var(--muted); margin: 0; }

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
.work-card { position: relative; border-radius: 14px; overflow: hidden; display: block; }
.work-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s; }
.work-card:hover img { transform: scale(1.06); }
.work-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-family: var(--head); font-size: .95rem; background: linear-gradient(transparent, rgba(8, 28, 70, .85)); }
.work-grid-lg { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-item { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .25s, box-shadow .25s; }
.work-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-zoom { display: block; overflow: hidden; cursor: zoom-in; }
.work-zoom img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s; }
.work-item:hover .work-zoom img { transform: scale(1.05); }
.work-item figcaption { padding: 16px 18px 18px; }
.work-item h3 { color: var(--navy); font-size: 1.1rem; margin: 6px 0 4px; }
.work-item p { font-size: .92rem; color: var(--muted); margin: 0 0 6px; }
.work-item small { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; font-family: var(--head); background: #e8f5ea; color: var(--green); padding: 2px 10px; border-radius: 20px; }
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 15, 40, .96); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lightbox:target { display: flex; }
.lightbox-bg { position: absolute; inset: 0; cursor: zoom-out; }
.lb-fig { position: relative; margin: 0; max-width: min(1100px, 92vw); display: grid; gap: 12px; justify-items: center; pointer-events: none; }
.lb-fig img { max-height: 76vh; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: lbIn .25s ease; }
.lb-fig figcaption { color: #fff; text-align: center; display: grid; gap: 2px; font-size: .95rem; }
.lb-fig figcaption b { font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.lb-meta { color: var(--green-2); font-family: var(--head); font-size: .85rem; }
.lb-desc { opacity: .8; }
.lb-count { font-size: .8rem; opacity: .7; letter-spacing: .05em; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; transition: background .2s; }
.lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-nav .ico { width: 26px; height: 26px; }
.lb-prev { left: 18px; }
.lb-prev .ico { transform: rotate(180deg); }
.lb-next { right: 18px; }
.zoomable { cursor: zoom-in; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .lb-nav { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lb-fig { margin-bottom: 60px; }
}
.lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }

.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.quick-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

.quote-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.quote-side { display: grid; gap: 20px; position: sticky; top: 104px; }
.side-card { background: var(--sky); border-radius: 18px; padding: 24px; }
.side-card h3 { color: var(--navy); font-size: 1.15rem; }
.side-dark { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; display: grid; gap: 10px; }
.side-dark h3 { color: #fff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: center; }
.steps b { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--head); flex: none; }

.cta-band { background: linear-gradient(120deg, var(--navy-2), var(--blue-2) 60%, var(--green) 130%); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .2em; }
.cta-inner p { margin: 0; opacity: .9; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.big-404 { font-size: 6rem; color: var(--navy-2); margin: 0; }

/* ---------- floating buttons ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; border: 0; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transition: transform .2s; }
.float-btn:hover { transform: scale(1.08); }
.float-btn .ico { width: 28px; height: 28px; }
.float-line { background: var(--line-green); }
.float-line .ico { width: 32px; height: 32px; }
.float-call { background: linear-gradient(135deg, var(--green), var(--green-2)); }
.float-call::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green-2); z-index: -1; animation: pulse 1.8s ease-out infinite; }
.float-call .ico { animation: ring 2.4s ease-in-out infinite; }
.float-top { width: 44px; height: 44px; background: var(--navy-2); opacity: .85; }
.float-top .ico { width: 22px; height: 22px; }
.float-label { position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--ink); font-family: var(--head); font-size: .9rem; padding: 6px 12px; border-radius: 8px; box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(8px); transition: all .2s; pointer-events: none; }
.float-btn:hover .float-label { opacity: 1; transform: none; }
.call-wrap { position: relative; }
.call-wrap > summary { list-style: none; }
.call-wrap > summary::-webkit-details-marker { display: none; }
.call-wrap[open] > summary .float-label { display: none; }
.call-menu { position: absolute; right: 70px; bottom: 0; width: 250px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(10, 30, 80, .25); padding: 14px; display: grid; gap: 8px; animation: pop .18s ease-out; }
.call-menu > b { font-family: var(--head); font-weight: 500; font-size: .9rem; color: var(--muted); padding: 0 4px; }
.call-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--sky); transition: background .2s; }
.call-menu a:hover { background: #dcebfa; }
.call-menu a .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; }
.call-menu a span { display: flex; flex-direction: column; font-family: var(--head); font-weight: 600; color: var(--navy); line-height: 1.25; }
.call-menu small { font-weight: 400; font-size: .82rem; color: var(--muted); }
.phone-lines { display: grid; gap: 2px; }
.btn small { font-weight: 400; opacity: .8; font-size: .82em; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 5%, 15%, 25% { transform: rotate(-14deg); } 10%, 20% { transform: rotate(14deg); } }

/* ---------- reveal on scroll ---------- */
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none !important; }
  .float-call::before, .float-call .ico { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .header-call-text { display: none; }
  .header-call { padding: 8px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .con-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .why-item:nth-child(4) { border-left: 0; }
  .about-teaser-grid { grid-template-columns: 1fr 1fr; }
  .about-gallery { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .contact-band-grid { grid-template-columns: 1fr 1fr; }
  .contact-band-grid .form-card { grid-column: 1 / -1; }
  .hero-badge { display: none; }
  .info-panel { grid-template-columns: repeat(3, 1fr); }
  .info-card.ic-addr { grid-column: span 2; }
  .info-card:nth-child(3) { border-left: 0; }
  .info-card:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .header-inner { height: 70px; gap: 12px; }
  .brand img { height: 50px; }
  .nav-toggle { display: block; }
  .header-call { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .main-nav { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 20px 20px; box-shadow: 0 16px 30px rgba(12, 42, 99, .15); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s; }
  .main-nav a { padding: 14px 6px; border-bottom: 1px solid var(--border); }
  .main-nav a::after { display: none; }
  .main-nav .nav-quote { display: block; margin-top: 14px; text-align: center; background: linear-gradient(135deg, var(--navy-2), var(--blue)); color: #fff; border-radius: 10px; border: 0; }
  .nav-cb:checked ~ .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-cb:checked ~ .nav-toggle .i-open { display: none; }
  .nav-cb:checked ~ .nav-toggle .i-close { display: block; }
  .nav-cb:focus-visible ~ .nav-toggle { outline: 2px solid var(--blue-2); border-radius: 8px; }

  /* Mobile hero: text on a light background, photo shown below it */
  .hero { min-height: 0; display: block; background: linear-gradient(180deg, #fff 0%, #eef6fd 100%); }
  .hero::before { display: none; }
  .hero::after { content: ''; display: block; height: 240px; background: var(--hero) 78% center / cover no-repeat; }
  .hero .hero-inner { padding-top: 30px; padding-bottom: 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-text { max-width: 540px; width: 100%; }
  .hero h1 { margin-bottom: .45em; }
  .hero h1 .t1, .hero h1 .t2 { font-size: clamp(1.45rem, 7vw, 2.3rem); line-height: 1.25; }
  .hero-sub { font-size: clamp(1.05rem, 4.6vw, 1.35rem); text-wrap: balance; margin-bottom: .35em; }
  .hero-desc { font-size: clamp(.95rem, 4vw, 1.08rem); text-wrap: balance; color: var(--muted); margin-bottom: 0; }
  .hero-actions { justify-content: center; margin-top: 22px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; max-width: 420px; padding: .8em 1.2em; }
  .hero-badge { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 .35em; position: static; transform: none; order: -1; margin: 0 0 14px; padding: 6px 16px; border-radius: 30px; background: #e8f5ea; color: #17682a; font-size: .85rem; font-style: normal; font-weight: 500; line-height: 1.4; text-shadow: none; }
  .hero-badge .hb-line { display: inline; }
  .hero-badge .hb-q { display: none; }
  .hero::after { height: 230px; margin: 0 16px 0; border-radius: 18px 18px 0 0; }
  .info-bar { margin-top: 0; padding-top: 16px; }
  .page-hero { padding: 48px 0 40px; background-position: 70% 25%; }
  .page-hero::before { background: linear-gradient(180deg, rgba(12, 42, 99, .9), rgba(18, 58, 133, .82)); }
  .info-panel { grid-template-columns: 1fr 1fr; }
  .info-card { padding: 14px; }
  .info-card + .info-card { border-left: 0; }
  .info-card { border-top: 1px solid var(--border); }
  .info-card.ic-addr { grid-column: 1 / -1; border-top: 0; }
  .info-card:nth-child(3), .info-card:nth-child(5) { border-left: 1px solid var(--border); }
  .info-ic { width: 38px; height: 38px; border-radius: 10px; }
  .info-card { gap: 10px; }

  .section { padding: 52px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item { border-left: 0 !important; }
  .why-item:last-child { grid-column: 1 / -1; }
  .about-teaser-grid, .contact-band-grid, .footer-grid, .about-main, .vm-grid, .contact-page, .quote-page, .svc-detail { grid-template-columns: 1fr; }
  .about-gallery { grid-template-columns: 1fr 1fr; }
  .svc-detail.flip .svc-detail-img { order: 0; }
  .svc-detail { gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .work-grid-lg { grid-template-columns: 1fr 1fr; }
  .quote-side { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .form-lg { padding: 22px; }
  .footer-bottom-links { display: none; }
}

@media (max-width: 520px) {
  .info-panel { grid-template-columns: 1fr; }
  .info-card, .info-card:nth-child(3), .info-card:nth-child(5) { border-left: 0; border-top: 1px solid var(--border); padding: 12px 16px; }
  .info-card.ic-addr { border-top: 0; }
  .info-card .phones { flex-direction: row; flex-wrap: wrap; gap: 0 14px; }
  .container { padding: 0 16px; }
  .con-grid { grid-template-columns: 1fr; }
  .work-grid-lg { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .svc-card { grid-template-columns: 1fr 40%; }
  .float-btn { width: 52px; height: 52px; }
  .float-actions { right: 12px; bottom: 12px; gap: 10px; }
  .float-top { display: none; }
  .call-menu { right: 0; bottom: 64px; width: min(270px, calc(100vw - 24px)); }
  .float-label { display: none; }
  .cta-actions .btn { flex: 1 1 100%; }
}

/* service card without a photo */
.svc-card.no-img { grid-template-columns: 1fr; }
