/* ===============================
   Theme Variables
   =============================== */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #141414;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #111827;
  --brand-ink: #ffffff;
  --accent: #0f172a;
  --radius: 18px;
  --shadow: 0 6px 22px rgba(0, 0, 0, .06);
}

/* ===============================
   Base Styles
   =============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}
h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 900;
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 8px;
}
.muted {
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25d366;
  color: var(--brand-ink);
  padding: .5rem 1.1rem;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: background .2s ease-in-out;
}

.btn:hover {
  background: var(--accent);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


/* ===============================
   Header
   =============================== */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .8);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  /* background: var(--brand); */
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.logo-mark img {
  border-radius: 14px;
}
.lang-toggle {
  background: transparent;
  border: 0;
  padding: .5rem .8rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

/* ===============================
   Hero
   =============================== */
.hero {
  position: relative;
  padding: 70px 0;
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.light {
  background: #f3f4f6;
  color: #111827;
}
.feature {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .95rem;
  color: #374151;
}
.shadow {
  box-shadow: var(--shadow);
  margin: auto;
  border-radius: 20px;
}
@media (width > 1024px) {
  .shadow {
  width: 683px;
  height: 384px;
  }
  .shadow img {
  border-radius: 20px;
  }
}
@media (width < 1024px) {
  .shadow{
  max-width: 683px;
  max-height: 384px;
  }
    .shadow img {
  border-radius: 20px;
  }
}

/* ===============================
   section
   =============================== */
.between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  align-items: center;
  gap: 28px;
}

@media (min-width: 1024px) {
  .grid.cols-2 {
    grid-template-columns: 1.05fr .95fr;
  }
}

.section {
  padding: 48px 0;
}

.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
@media (width < 425px) {
  .partners {
    flex-direction: column;
  }
  .partner {
    max-width: 250px !important;
    max-height: 250px !important;
}
}

.partner {
    max-width: 300px;
    max-height: 300px;
}
.service-card {
  padding: 18px;
}

/* ===============================
   cta
   =============================== */  
.cta {
  background: #0b0f19;
  color: #fff;
  padding: 38px 0;
}
/* ===============================
   Contact Form
   =============================== */
.contact {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

form .row {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  form .row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: .9rem;
  color: #6b7280;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===============================
   Footer
   =============================== */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: #f8fafc;
}


/* ===============================
   Services Gallery
   =============================== */
.services-grid{
  grid-template-columns: repeat(1, 1fr);
}
.service-card-inner{
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 16px;
  align-items: stretch;
}
.svc-head{
  display:flex;
  gap:.6rem;
  align-items:center;
  font-weight:700;
}
.svc-icon{
  width:34px;height:34px;
  border:1px solid var(--line);
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff;
}
.svc-title{font-weight:800}
.svc-desc{margin-top:10px;line-height:1.7}
.svc-content{
  display:flex;
  flex-direction:column;
  min-height: 220px; /* aligns brand logo to bottom even if text is short */
}
.svc-brand{
  margin-top:auto;
  padding-top:14px;
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
}
.svc-brand img{
  max-width: 260px;
  max-height: 72px;
  width:auto;
  height:auto;
  object-fit: contain;
  display:block;
  opacity: .95;
}


.svc-gallery{
  display:grid;
  gap:10px;
}
.svc-main{
  width:100%;
  height: 220px;
  border:1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  background: #f3f4f6;
  padding:0;
  cursor: zoom-in;
}
.svc-main img{
  width:100%;
  height:100%;
  object-fit: contain; /* prevents distortion */
  display:block;
}
.svc-thumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.svc-thumb{
  width:64px;
  height:48px;
  border:1px solid var(--line);
  border-radius: 12px;
  overflow:hidden;
  background:#fff;
  padding:0;
  cursor:pointer;
  opacity:.88;
}
.svc-thumb.active{outline:2px solid rgba(17,24,39,.35); opacity:1}
.svc-thumb img{
  width:100%;
  height:100%;
  object-fit: contain; /* prevents distortion */
  display:block;
  background:#f3f4f6;
}
.svc-empty{
  height:220px;
  border:1px dashed var(--line);
  border-radius:16px;
  display:grid;
  place-items:center;
  text-align:center;
  padding:14px;
  background:#fafafa;
}

@media(max-width: 860px){
  .service-card-inner{ grid-template-columns: 1fr; }
  .svc-main{ height: 200px; }
  .svc-content{ min-height: auto; }
  .svc-brand{ justify-content:center; }

}

/* Lightbox */
.atmz-lightbox{
  --lb-pad: 18px;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.7);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: var(--lb-pad);
}
.atmz-lightbox.open{ display:flex; }

@media (max-width: 640px){
  .atmz-lightbox{ --lb-pad: 12px; }
}
.atmz-lightbox .box{
  width:min(980px, 96vw);
  /* Keep controls always visible on short viewports */
  max-height: calc(100vh - (2 * var(--lb-pad)));
  max-height: calc(100dvh - (2 * var(--lb-pad)));
  height: min(620px, calc(100vh - (2 * var(--lb-pad))));
  height: min(620px, calc(100dvh - (2 * var(--lb-pad))));
  background:#0b0f19;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
  display:flex;
  flex-direction: column;
}
.atmz-lightbox .viewer{
  position:relative;
  flex: 1 1 auto;
  min-height: 0; /* critical: allow the image area to shrink */
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
}
.atmz-lightbox img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.atmz-lightbox .bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex: 0 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.06);
  color:#fff;
}
.atmz-lightbox .x,
.atmz-lightbox .nav{
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
}
.atmz-lightbox .hint{opacity:.85;font-size:.9rem}
