/* GISTEL – static site styles */
:root {
  --brand: #4054b2;
  --brand-dark: #2f3f8c;
  --accent: #23a455;
  --text: #3b3f46;
  --muted: #7f7f7f;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --card: #ffffff;
  --line: #e4e6eb;
  --footer: #1d2130;
  --footer-text: #b9bdc8;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(20, 30, 60, .10);
  --max: 1140px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #d9dce3; --muted: #9aa0ad; --bg: #14161d; --bg-alt: #1b1e27; --card: #20242f; --line: #2c313d;
    --shadow: 0 6px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --text: #d9dce3; --muted: #9aa0ad; --bg: #14161d; --bg-alt: #1b1e27; --card: #20242f; --line: #2c313d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.7 "Open Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: Roboto, "Open Sans", sans-serif; line-height: 1.25; margin: 0 0 .6em; color: inherit; }
iframe { max-width: 100%; border: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 860px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.hdr { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.logo img { height: 50px; width: auto; }
.mainnav { display: flex; align-items: center; gap: 24px; }
.mainnav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.mainnav ul a {
  display: block; padding: 8px 12px; color: #6b6b6b; font: 600 14px/1.2 Roboto, sans-serif;
  letter-spacing: .04em; text-transform: uppercase; border-radius: var(--radius);
}
.mainnav ul a:hover, .mainnav ul a.active { color: var(--brand); text-decoration: none; background: rgba(64,84,178,.07); }
.lang-switch { display: flex; border: 1px solid #dcdfe6; border-radius: 20px; overflow: hidden; }
.lang-switch a { padding: 4px 11px; font: 600 12px/1.6 Roboto, sans-serif; color: #6b6b6b; }
.lang-switch a + a { border-left: 1px solid #dcdfe6; }
.lang-switch a.current { background: var(--brand); color: #fff; }
.lang-switch a:hover { text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid #adadad; color: #adadad; border-radius: 4px; padding: 6px 10px; font-size: 18px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .mainnav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch;
    gap: 12px; padding: 12px 16px 18px; box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none;
  }
  .mainnav.open { display: flex; }
  .mainnav ul { flex-direction: column; }
  .lang-switch { align-self: flex-start; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: var(--brand-dark) center/cover no-repeat; color: #fff; overflow: hidden;
  animation: kenburns 18s ease-out both;
}
.hero-small { min-height: 340px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,50,.25), rgba(10,20,50,.55)); }
.hero .container { position: relative; }
.hero h1 { font-size: clamp(28px, 5vw, 54px); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 2px 12px rgba(0,0,0,.35); margin: 0; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: var(--bg);
  -webkit-mask: radial-gradient(60px 30px at 50% 0, transparent 98%, #000) 0 0/120px 60px repeat-x;
          mask: radial-gradient(60px 30px at 50% 0, transparent 98%, #000) 0 0/120px 60px repeat-x;
  opacity: .9;
}
@keyframes kenburns { from { background-size: 115%; } to { background-size: 100%; } }
@media (max-width: 900px) { .hero { animation: none; } }

/* ---------- sections / grid ---------- */
.sec { padding: 64px 0; background-size: cover; background-position: center; }
.sec:nth-of-type(even):not([style]) { background: var(--bg-alt); }
.sec-dark { color: #fff; }
.sec-dark a { color: #fff; }
.sec-bg { position: relative; color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row > .col { flex-grow: 1; flex-shrink: 1; min-width: 0; }
.row.inner { width: 100%; margin: 16px 0; }
.sec > .container > .row > .col { flex-basis: auto; }
.col { padding: 0; border-radius: var(--radius); }
.col[style*="background"] { padding: 20px; }
@media (min-width: 768px) {
  .row { flex-wrap: nowrap; }
  .row > .col { flex-basis: 0; }
}
@media (max-width: 767px) {
  .row > .col { flex-basis: 100% !important; }
  .sec { padding: 44px 0; }
}

.w-heading { font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
h2.w-heading { text-align: center; margin-bottom: 28px; text-transform: none; }
.w-heading + .w-heading { font-size: 20px; color: var(--muted); font-weight: 500; }
.w-text { text-align: justify; }
.w-text p { margin: 0 0 1em; }
.w-text img { border-radius: var(--radius); margin: 12px auto; }
.w-image { margin: 0; display: flex; justify-content: center; }
.w-image img { border-radius: var(--radius); max-height: 520px; object-fit: cover; }
.row.inner .w-image img { max-height: 150px; object-fit: contain; }

/* partners row */
.row.inner > .col[style*="background"] { display: flex; align-items: center; justify-content: center; min-height: 170px; }

/* gallery (services) */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.g-card {
  position: relative; display: block; height: 300px; border-radius: var(--radius); overflow: hidden;
  background: #222; box-shadow: var(--shadow); color: #fff;
}
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .85; }
.g-card span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); font: 500 17px/1.4 Roboto, sans-serif;
}
.g-card:hover { text-decoration: none; }
.g-card:hover img { transform: scale(1.07); opacity: 1; }
.g-card.is-hidden { display: none; }
.btn {
  display: inline-block; margin-top: 28px; padding: 11px 28px; border: 0; border-radius: 30px; cursor: pointer;
  background: #6d6d6d; color: #fff !important; font: 600 14px/1.4 Roboto, sans-serif; letter-spacing: .05em; text-transform: uppercase;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.w-gallery { text-align: center; }
.w-gallery .btn[hidden] { display: none; }

/* flip boxes (products) */
.w-flip { perspective: 1200px; height: 300px; outline: none; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .7s; transform-style: preserve-3d; }
.w-flip:hover .flip-inner, .w-flip:focus-within .flip-inner, .w-flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px;
}
.flip-front { background: var(--card); }
.flip-front img { max-height: 200px; object-fit: contain; margin-bottom: 12px; border-radius: var(--radius); }
.flip-front h3 { font-size: 19px; margin: 0; }
.flip-back { background: var(--brand); color: #fff; transform: rotateY(180deg); }
.flip-back h3 { font-size: 18px; }
.flip-back .btn { margin-top: 12px; background: #fff; color: var(--brand) !important; }

/* image / icon boxes */
.w-imagebox, .w-iconbox { display: block; text-align: center; color: inherit; background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: 100%; }
.w-imagebox:hover { text-decoration: none; transform: translateY(-3px); }
.w-imagebox img { margin: 0 auto 14px; max-height: 200px; object-fit: contain; }
.w-iconbox i { font-size: 36px; color: var(--brand); margin-bottom: 12px; }

/* social */
.w-social { display: flex; gap: 10px; margin-top: 10px; }
.w-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff !important; font-size: 16px;
}
.w-social a:hover { background: var(--brand-dark); text-decoration: none; }

/* blog */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card img, .pc-ph { width: 100%; height: 200px; object-fit: cover; display: block; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.pc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pc-body time, .post time { color: var(--muted); font-size: 13px; }
.pc-body h3 { font-size: 19px; margin: 6px 0 10px; }
.pc-body h3 a { color: inherit; }
.pc-body p { margin: 0 0 14px; font-size: 15px; flex: 1; }
.more { font-weight: 600; font-size: 14px; }
.post { text-align: justify; }
.post img { margin: 16px auto; border-radius: var(--radius); }
.post iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.back { margin-top: 32px; }

/* search */
.search-form { display: flex; margin-top: 8px; }
.search-form input {
  flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #3a3f52; border-right: 0; border-radius: 4px 0 0 4px;
  background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: 14px;
}
.search-form button { padding: 0 14px; border: 0; border-radius: 0 4px 4px 0; background: var(--brand); color: #fff; cursor: pointer; }
.search-form.big input { border-color: var(--line); padding: 12px 14px; font-size: 16px; }
#search-results { margin-top: 28px; }
.sr-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sr-item h3 { font-size: 19px; margin: 0 0 4px; }
.sr-item p { margin: 0; font-size: 14px; color: var(--muted); }
.sr-item mark { background: #fde68a; color: #111; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); font-size: 15px; }
.site-footer a { color: #e6e8ee; }
.fcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.fcols h3 { color: #fff; font-size: 16px; letter-spacing: .08em; margin-bottom: 14px; }
.fcols h3 + * + h3, .fcols ul + h3 { margin-top: 26px; }
.fcols p { text-align: justify; }
.fcols img { margin-bottom: 12px; }
.recent, .address { list-style: none; margin: 0; padding: 0; }
.recent li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.recent li span { display: block; font-size: 12px; opacity: .65; }
.address li { display: flex; gap: 12px; align-items: baseline; padding: 4px 0; }
.address i { color: var(--brand); width: 16px; filter: brightness(1.6); }
.copyright { border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.cbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
.cbar p { margin: 0; }
.cbar ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
@media (max-width: 767px) { .fcols { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- language chooser (root index) ---------- */
body.chooser { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(135deg, #eef1fb, #ffffff); }
.chooser-box { text-align: center; max-width: 640px; width: 100%; }
.chooser-box img { margin: 0 auto 18px; }
.chooser-box p { color: #6b6b6b; }
.chooser-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.chooser-links a { background: #fff; border-radius: 10px; padding: 22px 12px; box-shadow: var(--shadow); color: #333; }
.chooser-links a:hover { text-decoration: none; outline: 2px solid var(--brand); }
.chooser-links strong { display: block; font: 700 26px Roboto, sans-serif; color: var(--brand); }
.chooser-links span { font-size: 13px; }
@media (max-width: 520px) { .chooser-links { grid-template-columns: 1fr; } }
