/* IPs Global FZCO — site styles */
:root {
  --ink: #1d2328;
  --ink-soft: #46515a;
  --slate: #2f3d46;
  --slate-deep: #1b252c;
  --paper: #f4f2ee;
  --card: #ffffff;
  --line: #ddd8cf;
  --accent: #c39a3a;
  --accent-dark: #7f631d;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(20 30 40 / 6%), 0 6px 20px rgb(20 30 40 / 7%);
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }
.skip-link:hover, .skip-link:focus { color: #fff; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.hero :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: 190px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-list, .lang-switch { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-list { gap: 4px; }
.nav-list a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.nav-list a:hover { background: var(--paper); }
.nav-list a[aria-current="page"] { color: var(--accent-dark); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.lang-switch { border: 1px solid var(--line); border-radius: 6px; }
.lang-switch a {
  display: block; padding: 5px 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-soft); text-decoration: none;
}
.lang-switch li:first-child a { border-radius: 5px 0 0 5px; }
.lang-switch li:last-child a { border-radius: 0 5px 5px 0; }
.lang-switch a[aria-current="true"] { background: var(--slate); color: #fff; }
.nav-toggle { display: none; }

@media (min-width: 961px) {
  .header-inner { gap: 16px; }
  .site-nav { gap: 16px; }
  .nav-list { gap: 2px; }
  .nav-list a { padding: 8px 10px; }
}
/* The company name next to the logo is hidden where it would collide with the menu. */
@media (min-width: 961px) and (max-width: 1140px) { .brand-name { display: none; } }
@media (max-width: 440px) { .brand-name { display: none; } }

@media (max-width: 960px) {
  .header-inner { min-height: 64px; flex-wrap: wrap; }
  .brand img { width: 160px; }
  .brand-name { font-size: 16px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    margin-left: auto; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: "";
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  /* Without JavaScript the menu is simply shown under the logo. */
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 0 0 16px; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; width: auto;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    box-shadow: 0 12px 24px rgb(0 0 0 / 8%);
  }
  .js .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 12px 8px; font-size: 16px; }
  .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .lang-switch { align-self: flex-start; }
  .lang-switch a { padding: 8px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: 340px; padding: 64px 0;
  background: var(--slate);
  color: #fff;
}
.hero--home { min-height: min(78vh, 720px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(27 37 44 / 72%) 0%, rgb(27 37 44 / 55%) 55%, rgb(27 37 44 / 78%) 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.hero-frame {
  border: 2px solid rgb(255 255 255 / 90%);
  padding: 28px 44px;
  max-width: 820px;
  background: rgb(27 37 44 / 25%);
}
.hero h1 { font-size: clamp(30px, 5vw, 54px); margin: 0; text-shadow: 0 2px 12px rgb(0 0 0 / 35%); }
.hero .tagline {
  margin: 14px 0 0; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; font-size: clamp(13px, 1.6vw, 16px); color: #f1e3bf;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 600px) {
  .hero { min-height: 240px; padding: 44px 0; }
  .hero--home { min-height: 70vh; }
  .hero-frame { padding: 20px 22px; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero-actions { margin: 0 auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 24px; border-radius: 6px;
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .02em;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--accent { background: var(--accent); color: #1b1608; }
.btn--accent:hover { background: #d6ad4c; color: #1b1608; }
.btn--ghost { border-color: rgb(255 255 255 / 80%); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(26px, 3.2vw, 36px); text-align: center; margin-bottom: 40px; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 16px auto 0; background: var(--accent);
}
@media (max-width: 600px) { .section { padding: 48px 0; } }

/* Prose (About and any markdown body) */
.prose { max-width: 780px; margin: 0 auto; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.8em;
  padding-top: .9em; border-top: 1px solid var(--line);
}
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--slate-deep); }
.page-about .prose > p:first-child { font-size: 19px; color: var(--ink-soft); }

/* Home: services grid */
.svc-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.svc-grid a {
  display: flex; gap: 14px; align-items: flex-start; height: 100%;
  padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.svc-grid a:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.num {
  flex: 0 0 auto; font-family: var(--font-head); font-weight: 700; color: var(--accent-dark);
  font-size: 1.05em; min-width: 2ch; font-variant-numeric: lining-nums;
}

/* Home: partners strip */
.logo-strip {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px;
}
.logo-strip img { display: block; max-height: 64px; width: auto; max-width: 200px; }

/* Home: call to action */
.cta { background: var(--slate); color: #fff; padding: 56px 0; border-bottom: 3px solid var(--accent); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: .3em; }
.cta p { margin: 0; color: #c9d1d6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Services page */
.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
}
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow);
}
.service h2 { display: flex; gap: 12px; align-items: baseline; font-size: 22px; margin-bottom: 16px; }
.service-body ul { margin: 0; padding-left: 1.1em; }
.service-body li { margin-bottom: .45em; font-size: 16px; }
.service-body li::marker { color: var(--accent); }
.service-body p { margin: 0 0 .8em; }
.service:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(195 154 58 / 30%); }
.outro {
  margin-top: 36px; padding: 24px 30px; border-left: 4px solid var(--accent);
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
}
.outro p { margin: 0 0 .5em; }
.outro p:last-child { margin: 0; }
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .service { padding: 22px 20px; }
}

/* Partners page */
.partners {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px;
}
.partner {
  display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%;
  padding: 28px 22px; text-align: center; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
a.partner:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 110px; width: 100%; }
.partner-logo img { max-height: 110px; max-width: 100%; width: auto; object-fit: contain; }
.partner-name { font-weight: 700; }
.partner-link { font-size: 14px; color: var(--accent-dark); }

/* Feedback page */
.form-embed {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.form-embed iframe { display: block; width: 100%; border: 0; min-height: 900px; }
.form-fallback { text-align: center; font-size: 15px; margin-top: 18px; }

/* Contacts page */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.contacts-img { width: 100%; max-width: 480px; justify-self: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contacts-card { padding: 34px 36px; }
.contacts-card h2 { font-size: 26px; }
.details { margin: 0 0 26px; }
.details dt { font-weight: 700; color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.details dd { margin: 2px 0 16px; overflow-wrap: anywhere; }
.details address { font-style: normal; }
@media (max-width: 960px) {
  .contacts { grid-template-columns: 1fr; gap: 28px; }
  .contacts-img { max-width: 300px; }
}
@media (max-width: 600px) { .contacts-card { padding: 26px 22px; } }

/* 404 */
.not-found { text-align: center; }
.not-found h2 { margin-top: 2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-deep); color: #c9d1d6; font-size: 15px; }
.site-footer a { color: #f1e3bf; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px;
}
.footer-logo { width: 170px; filter: brightness(0) invert(1); opacity: .85; margin-bottom: 14px; }
.footer-name { color: #fff; font-weight: 700; margin: 0 0 6px; }
.footer-label { color: #fff; font-weight: 700; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
.site-footer p { margin: 0 0 8px; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 12%); padding-top: 18px; padding-bottom: 22px; font-size: 13px; color: #8f9aa2; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
