/* ===== SOON MODEL CNC — stylesheet ===== */
:root {
    --accent: #e07b39;
    --accent-2: #5aa9e6;
    --radius: 12px;
    --maxw: 1200px;
    --header-h: 104px;
    --transition: .2s ease;
}

/* Dark theme (default) */
[data-theme="dark"] {
    --bg: #0f1218;
    --bg-alt: #161b24;
    --surface: #1b212c;
    --surface-2: #232b38;
    --border: #2c3542;
    --text: #e6ecf3;
    --text-dim: #9aa7b8;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Light theme */
[data-theme="light"] {
    --bg: #f5f7fa;
    --bg-alt: #eaeef4;
    --surface: #ffffff;
    --surface-2: #f0f3f8;
    --border: #dde3ec;
    --text: #1c232e;
    --text-dim: #5c6675;
    --shadow: 0 10px 30px rgba(20,30,50,.10);
}

/* Light-blue theme */
[data-theme="blue"] {
    --bg: #cbdef2;
    --bg-alt: #bcd3ec;
    --surface: #e6f1fc;
    --surface-2: #d5e6f8;
    --border: #a9c6e6;
    --text: #10233a;
    --text-dim: #46617d;
    --shadow: 0 10px 30px rgba(30, 80, 150, .15);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; display: block; }
/* Deter saving/dragging of media */
img, video {
    -webkit-user-drag: none; user-drag: none;
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
    -webkit-touch-callout: none;
}
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    position: sticky; top: 12px; z-index: 100;
    max-width: var(--maxw);
    margin: 12px auto 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--header-h); gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px; }
.brand-mark { color: var(--accent); font-size: 1.3rem; }
.brand-name { font-size: 1.15rem; white-space: nowrap; }
.brand-logo { height: 84px; width: auto; display: block; }
.footer-logo-img { height: 72px; width: auto; display: block; margin-bottom: 10px; }
/* The logo art is bright silver (reads on the dark default theme). On light/blue
   themes darken it so it stays readable on the light header/footer surfaces. */
[data-theme="light"] .brand-logo, [data-theme="blue"] .brand-logo,
[data-theme="light"] .footer-logo-img, [data-theme="blue"] .footer-logo-img {
    filter: brightness(0.4) drop-shadow(0 1px 1px rgba(0,0,0,.15));
}
@media (max-width: 560px) { :root { --header-h: 84px; } .brand-logo { height: 62px; } }
.header-right { display: flex; align-items: center; gap: 18px; }
.brand-tagline {
    font-family: 'Dancing Script', 'Segoe Script', cursive;
    font-size: clamp(20px, 2.1vw, 29px); font-weight: 700;
    color: var(--accent); line-height: 1; white-space: nowrap;
    padding-top: 2px;
}
@media (max-width: 992px) { .brand-tagline { display: none; } }

.header-tools { display: flex; align-items: center; gap: 12px; }
.socials { display: flex; gap: 8px; }
.soc {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; border: 0;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
/* fixed brand colors */
.soc.ig { background: radial-gradient(circle at 30% 110%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.soc.wa { background: #25d366; }
.soc.fb { background: #1877f2; }
/* shadow (glow) on hover */
.soc:hover { transform: translateY(-2px); filter: brightness(1.05); }
.soc.ig:hover { box-shadow: 0 6px 18px rgba(214, 36, 159, .55); }
.soc.wa:hover { box-shadow: 0 6px 18px rgba(37, 211, 102, .55); }
.soc.fb:hover { box-shadow: 0 6px 18px rgba(24, 119, 242, .55); }

/* Fixed floating social buttons (bottom-right) */
.floating-socials {
    position: fixed; right: 18px; bottom: 18px; z-index: 95;
    display: flex; flex-direction: column; gap: 12px;
}
.fsoc {
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fsoc:hover { transform: scale(1.1); box-shadow: 0 10px 24px rgba(0,0,0,.38); }
.fsoc.wa { background: #25d366; }
.fsoc.ig { background: radial-gradient(circle at 30% 110%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fsoc.fb { background: #1877f2; }
@media (max-width: 560px) {
    .floating-socials { right: 12px; bottom: 12px; gap: 10px; }
    .fsoc { width: 46px; height: 46px; }
}

.lang-switch { display: flex; gap: 2px; font-size: .8rem; font-weight: 700; }
.lang-switch a { padding: 4px 7px; border-radius: 6px; color: var(--text-dim); }
.lang-switch a.active { background: var(--accent); color: #fff; }

.theme-toggle, .nav-toggle {
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); border-radius: 8px; height: 34px; min-width: 34px;
    cursor: pointer; font-size: 1rem; padding: 0 8px;
}
.theme-toggle .ico { display: none; }
[data-theme="dark"] .theme-toggle .ico-dark { display: inline; }
[data-theme="light"] .theme-toggle .ico-light { display: inline; }
[data-theme="blue"] .theme-toggle .ico-blue { display: inline; }
.nav-toggle { display: none; font-size: 1.3rem; }

/* ===== Nav ===== */
.site-nav { background: var(--bg-alt); border-radius: 0 0 19px 19px; }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; }
.nav-inner > a, .has-drop > a, .has-drop > .nav-parent {
    display: block; padding: 14px 12px; font-weight: 600; font-size: 0.98rem; white-space: nowrap;
    color: var(--text); border-radius: 10px; transition: background var(--transition), color var(--transition);
}
.has-drop > .nav-parent { cursor: pointer; user-select: none; }
.nav-inner > a:hover, .has-drop > a:hover, .has-drop > .nav-parent:hover { background: var(--surface-2); color: var(--accent); }
.has-drop { position: relative; }
.caret { font-size: .7rem; color: var(--text-dim); }
.drop {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; box-shadow: var(--shadow);
    padding: 6px; display: none; z-index: 120;
}
.has-drop:hover .drop, .has-drop.open .drop { display: block; }
.drop a { display: block; padding: 10px 12px; border-radius: 7px; font-size: .9rem; }
.drop a:hover { background: var(--surface-2); color: var(--accent); }

/* ===== Hero ===== */
.hero {
    position: relative;
    max-width: var(--maxw);
    margin: 24px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    height: clamp(300px, 50vh, 520px);
    background: #0f141b;
}
.hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: blur(22px) brightness(.5); transform: scale(1.12);
}
.hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; display: block;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.1) 45%, rgba(0,0,0,0) 74%);
}
.hero-content {
    position: absolute; inset: 0; color: #fff;
    display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 34px;
}
@media (max-width: 760px) { .hero { height: clamp(230px, 40vh, 340px); } }
.hero-content h1 { font-size: clamp(1.4rem, 3.4vw, 2.7rem); margin: 0 0 .4rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero-content p { font-size: clamp(1rem, 2vw, 1.4rem); margin: 0; color: #e9edf3; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    text-align: center; font-size: 1.6rem; margin: 0 0 32px;
    position: relative; padding-bottom: 12px;
}
.section-title.left { text-align: left; }
.section-title::after {
    content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 56px; height: 3px; background: var(--accent); border-radius: 3px;
}
.section-title.left::after { left: 0; transform: none; }

/* ===== Grid & cards ===== */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; margin: 0;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.card-media img, .card-media video, .card-media iframe {
    width: 100%; height: 100%; object-fit: cover; border: 0;
}
.card-body { padding: 16px 18px; }
.card-body h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card-body p { margin: 0; color: var(--text-dim); font-size: .92rem; }

/* video */
.video-embed { position: relative; width: 100%; height: 100%; }
.video-poster { position: relative; width: 100%; height: 100%; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
    position: absolute; inset: 0; margin: auto; width: 60px; height: 60px;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem;
}

/* ===== Logo scroller ===== */
.logo-scroller { overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.logo-track { display: flex; gap: 20px; width: max-content; }
.logo-item {
    flex: 0 0 auto; width: 180px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 16px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.logo-item.cert { width: 160px; }
.logo-item img { height: 80px; object-fit: contain; }
.logo-item.cert img { height: 200px; }
.logo-item span { font-size: .85rem; color: var(--text-dim); }

/* ===== References marquee (auto, infinite, logos only) ===== */
.marquee {
    overflow: hidden; width: 100%; padding: 12px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
    display: flex; width: max-content; will-change: transform;
    animation: marquee-scroll 35s linear infinite;
}
.marquee-item { flex: 0 0 auto; margin-right: 72px; display: flex; align-items: center; }
.marquee-item img { height: 66px; width: auto; max-width: 220px; object-fit: contain; }

/* captioned variant (certificates: image + name below) */
.marquee.captioned .marquee-item { flex-direction: column; gap: 10px; text-align: center; }
.marquee.captioned .marquee-item img { height: 150px; max-width: 200px; }
.marquee-caption { font-size: .9rem; font-weight: 600; color: var(--text-dim); }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ===== Choice cards (corporate / services landing) ===== */
.choice-grid { max-width: 900px; margin: 0 auto; }
.choice-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px 20px; text-align: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.choice-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.choice-icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.choice-card h3 { margin: 0; font-size: 1.2rem; }

/* ===== Page head ===== */
.page-head {
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 36px 0;
}
.page-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.back-link { color: var(--text-dim); font-size: .9rem; display: inline-block; margin-bottom: 8px; }
.back-link:hover { color: var(--accent); }

/* ===== Rich text ===== */
.rich-text { max-width: 820px; font-size: 1.02rem; }
.rich-text h2, .rich-text h3 { margin-top: 1.6em; }
.rich-text img { border-radius: 10px; margin: 1em 0; }

/* ===== Services list layout ===== */
.services-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.service-list { columns: 2; column-gap: 30px; padding-left: 1.2em; margin: 0; }
.service-list li { margin-bottom: 12px; break-inside: avoid; }
.services-side {
    position: sticky; top: calc(var(--header-h) + 60px);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
}
.cat-buttons { display: flex; flex-direction: column; gap: 10px; }
.cat-btn {
    display: block; padding: 12px 16px; text-align: center; font-weight: 700;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cat-btn:hover { background: var(--accent); color: #fff; transform: translateX(3px); }

/* category detail */
.detail-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--border); }
.detail-image img { width: 100%; max-height: 520px; object-fit: cover; }
.detail-body { max-width: none; }
.cat-intro { max-width: 1000px; margin: 0 auto 36px; }

/* repeatable category blocks: title (heading) → photo → description, stacked */
.cat-blocks { display: flex; flex-direction: column; gap: 48px; max-width: 1000px; margin: 0 auto; }
.cat-block { margin: 0; }
.cat-block-title {
    font-size: 1.4rem; font-weight: 700; color: var(--text);
    margin: 0 0 14px; padding-bottom: 10px; position: relative;
}
.cat-block-title::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 48px; height: 3px; background: var(--accent); border-radius: 3px;
}
.cat-block-media {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); background: var(--surface-2);
}
.cat-block-media img { width: 100%; display: block; max-height: 620px; object-fit: cover; }
.cat-block-desc { margin-top: 16px; color: var(--text); line-height: 1.75; font-size: 1.02rem; }

/* sector grid */
.sector-card .card-body { text-align: center; }
a.sector-card { display: block; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
a.sector-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
a.sector-card .card-media img { transition: transform .35s ease; }
a.sector-card:hover .card-media img { transform: scale(1.06); }
a.sector-card .card-body h3 { position: relative; display: inline-block; }
a.sector-card .card-body h3::after { content: '→'; margin-left: 8px; opacity: 0; transition: opacity .18s ease, margin-left .18s ease; }
a.sector-card:hover .card-body h3::after { opacity: .7; margin-left: 12px; }

/* references grid */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.ref-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; text-align: center; transition: transform var(--transition), box-shadow var(--transition);
}
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ref-logo { height: 110px; display: grid; place-items: center; margin-bottom: 12px; }
.ref-logo img { max-height: 110px; object-fit: contain; }
.ref-name { font-weight: 600; }

/* certificates page */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.cert-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; margin: 0; text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-img { display: block; height: 300px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.cert-img img { width: 100%; height: 100%; object-fit: contain; }
.cert-name { margin-top: 12px; font-weight: 600; }
.muted-text { color: var(--text-dim); }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.gallery-item {
    margin: 0; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover .gallery-media img { transform: scale(1.06); }
.gallery-zoom {
    position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(0,0,0,.5); color: #fff; font-size: 1.15rem;
    opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-cap { padding: 14px 16px; }
.gallery-cap strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.gallery-desc {
    color: var(--text-dim); font-size: .9rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.86);
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lb-inner { max-width: 1000px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lb-inner img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 8px; background: #111; }
.lb-caption { color: #fff; text-align: center; margin-top: 14px; max-width: 760px; }
.lb-caption h3 { margin: 0 0 6px; }
.lb-caption #lbDesc { color: #d7dde6; font-size: .95rem; }
.lb-close {
    position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.3rem; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px; border-radius: 50%; border: 0; z-index: 1001;
    background: rgba(255,255,255,.15); color: #fff; font-size: 2.2rem; line-height: 1;
    cursor: pointer; display: grid; place-items: center;
}
.lb-nav:hover { background: rgba(255,255,255,.32); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
@media (max-width: 560px) {
    .lb-nav { width: 44px; height: 44px; font-size: 1.7rem; }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
.vl-player { width: 100%; display: flex; justify-content: center; }
.vl-player video { max-width: 100%; max-height: 74vh; border-radius: 8px; background: #000; }
.vl-player iframe { width: 900px; height: 506px; max-width: 100%; border-radius: 8px; background: #000; }
.video-noposter { width: 100%; height: 100%; background: linear-gradient(135deg, #2b3240, #161a22); }

/* ===== Watermark on photos & videos (not on reference logos / certificates) ===== */
.gallery-item:not(.video-item) .gallery-media,
.cat-block-media, .card-media, .detail-image, .lb-inner, .vl-player { position: relative; }
.gallery-item:not(.video-item) .gallery-media::after,
.cat-block-media::after, .card-media::after, .detail-image::after,
.lb-inner::after, .vl-player::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
    background: url('/uploads/watermark.png') center / 46% no-repeat;
    opacity: .5;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

/* contact */
.contact-card {
    max-width: 720px; margin: 0 auto; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
}
.contact-list { display: grid; grid-template-columns: 160px 1fr; gap: 12px 20px; margin: 0; }
.contact-list dt { font-weight: 700; color: var(--text-dim); }
.contact-list dd { margin: 0; }
.contact-socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* new contact layout */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: stretch; }
/* left column: 3 stacked boxes that fill the form's height (gaps expand) */
.contact-info { display: flex; flex-direction: column; gap: 20px; justify-content: space-between; }
.contact-box, .contact-form-wrap {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.contact-box { padding: 24px 26px; }
.contact-form-wrap { padding: 30px; }
.contact-box h2, .contact-form-wrap h2 { margin: 0 0 14px; font-size: 1.3rem; }
.contact-company { font-weight: 700; color: var(--accent); margin: 0; }
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-lines li:last-child { margin-bottom: 0; }
.ci-ico {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center; font-size: 1.1rem;
    background: var(--surface-2); border: 1px solid var(--border);
}
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); margin-bottom: 2px; }
.contact-follow .contact-socials { margin-top: 12px; }

/* form */
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit;
    background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
    transition: border-color var(--transition);
}
.contact-form select { cursor: pointer; height: 46px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-dim); opacity: .8; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.form-success { background: rgba(37,211,102,.15); border: 1px solid #25d366; color: #baf5cf; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.form-error { background: rgba(224,79,79,.15); border: 1px solid #e04f4f; color: #ffd3d3; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.contact-map-section { padding-bottom: 0; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); line-height: 0; }
.map-box iframe { display: block; width: 100%; }

@media (max-width: 820px) {
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .contact-form .form-row { grid-template-columns: 1fr; }
}

/* buttons */
.btn {
    display: inline-block; padding: 11px 22px; border-radius: 9px; font-weight: 700;
    background: var(--accent); color: #fff; border: 0; cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
}
.btn:hover { opacity: .9; transform: translateY(-2px); }
.btn-wa { background: #25d366; }
.btn-ig { background: #e1306c; }
.btn-fb { background: #1877f2; }

/* ===== Footer ===== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 32px; padding: 46px 20px; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.footer-slogan { margin-top: 6px; font-weight: 700; letter-spacing: 1px; color: var(--text-dim); }
.footer-col h4 { margin: 0 0 14px; font-size: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 9px; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; font-size: .85rem; color: var(--text-dim); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-bottom .copyright { text-align: left; }
.site-credit { font-size: 1.7rem; font-weight: 700; letter-spacing: .5px; color: var(--text); opacity: .32; white-space: nowrap; }
@media (max-width: 640px) {
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }
    .site-credit { font-size: 1.4rem; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .services-layout { grid-template-columns: 1fr; }
    .services-side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .site-nav { display: none; }
    .site-nav.open { display: block; }
    .nav-inner { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; }
    .drop { position: static; display: none; box-shadow: none; border: none; padding-left: 12px; background: transparent; }
    .has-drop.open .drop { display: block; }
    .has-drop > a { display: flex; justify-content: space-between; }
    .brand-name { font-size: 1rem; }
    .lang-switch { order: 3; }
}

@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .service-list { columns: 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-list { grid-template-columns: 1fr; }
    .contact-list dt { margin-top: 8px; }
    .socials .soc { width: 32px; height: 32px; }
    .header-tools { gap: 8px; }
}
