/* ============================================================
   DV GLOBAL GRUPP OÜ — corporate landing styles
   Palette: navy / ivory / gold
   ============================================================ */

:root {
  --navy-900: #06182F;
  --navy-800: #0B2545;
  --navy-700: #163A6B;
  --navy-500: #3A5485;
  --navy-100: #B7BFD0;
  --ink:      #1C2A44;
  --ivory:    #F7F3EC;
  --paper:    #FFFFFF;
  --surface-alt: #F7F3EC;
  --line:     #E4DDD0;
  --gold:     #C9A961;
  --gold-d:   #8E7536;
  --gold-l:   #F0D89B;
  --muted:    #5A6478;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 22px 60px rgba(11, 37, 69, 0.18);

  --radius: 14px;
  --radius-sm: 8px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);

  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', 'Source Serif Pro', 'Georgia', serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy-800); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-d); }

h1, h2, h3, h4 { line-height: 1.15; color: var(--navy-800); margin: 0 0 .5em; }
h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 76px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(20px, 1.9vw, 24px);
  letter-spacing: -0.005em;
}
h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.005em; }

/* sticky header offset so anchor jumps don't hide section headings */
section { scroll-margin-top: 96px; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
  will-change: transform;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(0,0,0,0.12); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-800);
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(201, 169, 97, 0.28);
}
.btn-primary:hover { background: var(--gold-l); border-color: var(--gold-l); color: var(--navy-900); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201, 169, 97, 0.35); }
.btn-primary:active { transform: translateY(0); box-shadow: inset 0 2px 6px rgba(142, 117, 54, 0.25); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 243, 236, 0.4);
}
.btn-ghost:hover { background: rgba(247, 243, 236, 0.08); border-color: var(--ivory); color: var(--ivory); }
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); color: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 6px 0; position: relative;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--navy-800); }
.nav-list a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold);
}

.lang-switch {
  display: inline-flex; gap: 4px;
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
}
.lang-switch a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 999px; color: var(--muted); text-transform: uppercase;
}
.lang-switch a.is-active { background: var(--navy-800); color: var(--ivory); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--ivory);
  padding: clamp(96px, 13vw, 168px) 0 clamp(96px, 13vw, 168px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%; right: -8vw;
  width: min(64vh, 720px); aspect-ratio: 1 / 1;
  background: url('../assets/hero-pattern.svg') center / contain no-repeat;
  transform: translateY(-50%);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 80%);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(247, 243, 236, 0.04));
  pointer-events: none;
  z-index: -1;
}
.hero .container { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .hero::before { right: -25vw; width: 100vw; opacity: 0.3; }
}
.hero .eyebrow { color: var(--gold-l); }
.hero .eyebrow::before { background: var(--gold-l); }
.hero h1 { color: var(--ivory); max-width: 18ch; }
.hero h1 .accent { color: var(--gold-l); }
.hero p.lead {
  color: var(--navy-100);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 60ch;
  margin-top: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(247, 243, 236, 0.15);
  font-size: 13px; color: var(--navy-100); letter-spacing: 0.04em;
}
.hero-meta span strong { color: var(--ivory); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 9vw, 120px) 0; }
section.alt { background: var(--surface-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }

/* ---------- Services bento grid ---------- */
.grid-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1080px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  /* Diagonal accent on cards 1 & 4 (top-left + bottom-right) gives "featured" feel
     without size distortion — each cell is content-height, no empty pockets */
  .service:nth-child(1),
  .service:nth-child(4) {
    padding: 40px 36px;
    background: linear-gradient(180deg, var(--paper) 0%, var(--surface-alt) 100%);
    border-color: var(--gold-l);
  }
  .service:nth-child(1) .service-icon,
  .service:nth-child(4) .service-icon { width: 60px; height: 60px; border-radius: 14px; }
  .service:nth-child(1) .service-icon svg,
  .service:nth-child(4) .service-icon svg { width: 32px; height: 32px; }
}
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.service::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 600;
  color: var(--gold-d); letter-spacing: 0.18em;
}
.service-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-800); color: var(--gold-l);
  border-radius: 12px;
  margin: 18px 0 22px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.service-icon svg { width: 28px; height: 28px; transition: transform .3s ease; }
.service:hover .service-icon { background: var(--gold); color: var(--navy-900); transform: rotate(-4deg) scale(1.05); }
.service:hover .service-icon svg { transform: rotate(4deg); }
.service h3 { margin-bottom: 10px; }
.service p  { color: var(--muted); margin-bottom: 16px; }
.service ul { padding-left: 18px; margin: 0; color: var(--ink); font-size: 14px; }
.service ul li { margin-bottom: 6px; }
.service ul li::marker { color: var(--gold-d); }

/* ---------- About / facts ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  background: var(--paper);
  padding: 28px 24px;
}
.fact dt {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.fact dd {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700; color: var(--navy-800);
  letter-spacing: -0.01em;
}
.fact dd small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 4px; letter-spacing: 0; }

/* ---------- Markets ---------- */
.markets {
  background: var(--navy-800);
  color: var(--ivory);
}
.markets h2 { color: var(--ivory); }
.markets p.lead { color: var(--navy-100); max-width: 60ch; }
.markets .eyebrow { color: var(--gold-l); }
.markets .eyebrow::before { background: var(--gold-l); }
.markets-map {
  margin: 48px 0 8px;
  max-width: 920px;
}
.markets-map img {
  width: 100%; height: auto; display: block;
}
.regions {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px;
}
.regions li {
  background: rgba(247, 243, 236, 0.06);
  border: 1px solid rgba(247, 243, 236, 0.18);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-weight: 600; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 12px;
  transition: background .2s ease, border-color .2s ease;
}
.regions li:hover { background: rgba(201, 169, 97, 0.12); border-color: rgba(201, 169, 97, 0.6); }
.regions li::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: 18px; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 14px 20px; font-size: 15px; }
.contact-card dt { color: var(--muted); font-weight: 500; }
.contact-card dd { margin: 0; font-weight: 600; color: var(--navy-800); }
.contact-card dd a { color: var(--navy-800); border-bottom: 1px solid transparent; }
.contact-card dd a:hover { border-bottom-color: var(--gold); }
.contact-card .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.contact-cta h2 { margin-bottom: 18px; }
.contact-cta p { color: var(--muted); max-width: 46ch; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--navy-100);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(247, 243, 236, 0.12);
}
.footer-top .brand img { height: 44px; }
.footer-top h4 {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-l); margin: 0 0 16px;
}
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: 10px; }
.footer-top a { color: var(--navy-100); }
.footer-top a:hover { color: var(--ivory); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  padding-top: 24px; color: var(--navy-100); font-size: 13px;
}
.footer-bottom .lang-switch { background: rgba(247, 243, 236, 0.06); border-color: rgba(247, 243, 236, 0.15); }
.footer-bottom .lang-switch a { color: var(--navy-100); }
.footer-bottom .lang-switch a.is-active { background: var(--gold); color: var(--navy-900); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 20px;
    transform: translateY(-110%); transition: transform .25s ease;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 0; padding: 0 var(--gutter); }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 16px 0; }
  .nav .lang-switch { margin: 16px var(--gutter) 4px; align-self: flex-start; }
  .nav .btn { margin: 12px var(--gutter) 0; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .contact-card dt { margin-top: 12px; }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; top: -40px; left: 8px; background: var(--navy-800); color: var(--ivory);
  padding: 10px 14px; border-radius: var(--radius-sm); z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; color: var(--ivory); }

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B2545;
    --surface-alt: #06182F;
    --ink: #E8E2D2;
    --line: rgba(247, 243, 236, 0.1);
    --muted: #95A1BB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
  }
  body { background: var(--paper); color: var(--ink); }
  h1, h2, h3, h4 { color: #F0E8D2; }
  a { color: var(--gold-l); }
  a:hover { color: var(--gold); }
  .site-header {
    background: rgba(11, 37, 69, 0.88);
    border-bottom-color: rgba(247, 243, 236, 0.08);
  }
  .nav-list a { color: var(--ink); }
  .nav-list a:hover, .nav-list a.is-active { color: var(--gold-l); }
  .lang-switch { background: rgba(247, 243, 236, 0.06); border-color: rgba(247, 243, 236, 0.1); }
  .lang-switch a { color: var(--ink); }
  .lang-switch a.is-active { background: var(--gold); color: var(--navy-900); }
  .nav-toggle span { background: var(--ink); }
  .btn-outline { color: #F0E8D2; border-color: rgba(247, 243, 236, 0.4); }
  .btn-outline:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
  .service { background: rgba(247, 243, 236, 0.03); border-color: var(--line); }
  .service:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); background: rgba(247, 243, 236, 0.05); }
  .service-icon { background: rgba(247, 243, 236, 0.08); color: var(--gold-l); }
  .service ul { color: var(--ink); }
  .facts { background: var(--line); border-color: var(--line); }
  .fact { background: rgba(247, 243, 236, 0.03); }
  .fact dd { color: #F0E8D2; }
  .contact-card { background: rgba(247, 243, 236, 0.04); border-color: var(--line); }
  .contact-card h3, .contact-card dd { color: #F0E8D2; }
  .contact-card dd a { color: var(--gold-l); }
  .contact-card dd a:hover { color: var(--gold); }
  @media (max-width: 720px) {
    .nav { background: #0B2545; border-bottom-color: rgba(247, 243, 236, 0.1); }
    .nav-list li { border-bottom-color: rgba(247, 243, 236, 0.1); }
  }
}
