/* Emedia Networks — site styles */
:root {
  --black: #000;
  --white: #fff;
  --ink: #111;
  --grey-btn: #878787;
  --grey-field: #c9c9c9;
  --max: 1500px;
  --gutter: clamp(20px, 3vw, 45px);
  --head: "Poppins", system-ui, sans-serif;
  --body: "AR One Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #eee;
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
}
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-size: 15px; padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--grey-btn); color: var(--white);
  font-family: var(--head); font-size: 15px; letter-spacing: .02em;
  padding: 14px 30px; border: 0; border-radius: 300px;
  transition: background .2s;
}
.btn:hover { background: #6d6d6d; }
.header-inner .btn { margin-left: auto; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .logo img { height: 22px; }
  .menu-toggle {
    display: block; margin-left: auto; background: none; border: 0;
    font: 500 15px var(--head); cursor: pointer; padding: 8px;
  }
  .nav, .header-inner .btn { display: none; }
  .site-header.open .nav { display: flex; flex-direction: column; width: 100%; gap: 10px; padding: 10px 0 6px; }
  .site-header.open .nav a { font-size: 20px; }
  .site-header.open .header-inner .btn { display: inline-block; margin: 0 0 10px; }
}

/* ---------- Home ---------- */
.hero {
  position: relative; background: #000; min-height: min(88vh, 876px);
  display: grid; place-items: center; text-align: center;
  color: var(--white); overflow: hidden;
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-text { position: relative; padding: 0 var(--gutter); text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 4px rgba(0,0,0,.6); }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); margin-bottom: .4em; }
.hero p { font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; margin: 0; }

.dark { background: var(--black); color: var(--white); }
.intro {
  max-width: 1400px; margin: 0 auto; text-align: center;
  font-size: clamp(17px, 1.5vw, 21px);
  padding: clamp(60px, 8vw, 110px) var(--gutter) 50px;
}
.tiles {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 11px;
  padding: 0 var(--gutter) clamp(60px, 7vw, 95px);
}
.tile { position: relative; display: block; aspect-ratio: 704 / 487; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: transform .5s, filter .3s; }
.tile:hover img { transform: scale(1.03); filter: brightness(.85); }
.tile span {
  position: absolute; background: var(--white); color: var(--black);
  font: 500 clamp(20px, 2.6vw, 36px)/1 var(--head);
  padding: .55em 1.4em;
}
.tile.pos-a span { top: 25%; left: 17%; }
.tile.pos-b span { top: 25%; left: 8%; }
.tile.pos-c span { top: 17%; left: 51%; }
.tile.pos-d span { top: 17%; left: 49%; }
@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr; }
  .tile span { top: auto !important; left: 0 !important; bottom: 0; }
}

.team {
  max-width: 960px; margin: 0 auto; text-align: center;
  font-size: clamp(17px, 1.5vw, 21px);
  padding: clamp(60px, 8vw, 110px) var(--gutter);
}
.discover {
  position: relative; display: grid; place-items: center;
  min-height: 185px; overflow: hidden; text-decoration: none;
}
.discover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discover span {
  position: relative; color: var(--white); text-align: center;
  font: 700 clamp(24px, 3.4vw, 46px)/1.1 var(--head);
  text-transform: uppercase; padding: 0 var(--gutter);
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

/* ---------- Inner pages ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: clamp(50px, 6vw, 80px) var(--gutter) clamp(70px, 8vw, 110px); }
.page-title { text-align: center; font-size: clamp(32px, 3.4vw, 46px); margin-bottom: clamp(40px, 5vw, 70px); }
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px);
  align-items: start; margin-bottom: clamp(50px, 6vw, 80px);
}
.row:last-child { margin-bottom: 0; }
.row img { width: 100%; aspect-ratio: 618 / 348; object-fit: cover; }
.row h2 { font-size: clamp(26px, 2.6vw, 38px); }
.row p { font-size: 16px; margin: 0 0 1em; }
.row.flip > :first-child { order: 2; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .row.flip > :first-child { order: 0; }
}
.quote {
  max-width: 1000px; margin: 0 auto clamp(40px, 5vw, 70px); text-align: center;
  font: 400 clamp(19px, 1.9vw, 26px)/1.6 var(--head);
}
.quote cite { display: block; font: italic 16px var(--body); margin-top: 14px; color: #555; }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 120px);
  padding: clamp(40px, 5vw, 60px) var(--gutter) clamp(70px, 8vw, 100px);
}
.contact h1 { font-size: clamp(30px, 3.3vw, 46px); margin-top: clamp(20px, 7vw, 110px); }
.contact dt { font-family: var(--head); font-size: 15px; margin-top: 22px; }
.contact dd { margin: 4px 0 0; font-size: 15px; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { text-decoration: underline; }
.form label, .form legend { display: block; font-size: 13px; margin-bottom: 6px; }
.form small { opacity: .65; }
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .field { margin-bottom: 22px; }
.form input, .form textarea {
  width: 100%; font: 15px var(--body); color: var(--ink);
  background: var(--grey-field); border: 1px solid #a9a9a9; border-radius: 0;
  padding: 12px 14px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--white); outline-offset: 1px; }
.form .hp { position: absolute; left: -9999px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Legal ---------- */
.legal { max-width: 860px; margin: 0 auto; padding: clamp(50px, 6vw, 80px) var(--gutter) 100px; }
.legal h1 { font-size: clamp(30px, 3vw, 42px); }
.legal h2 { font-size: 20px; margin-top: 2em; }
.legal p, .legal li { font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black); color: #ddd; text-align: center;
  font-size: 14px; padding: 50px var(--gutter);
}
.site-footer p { margin: 8px 0; }
.site-footer a { color: #999; }
.site-footer a:hover { color: var(--white); }
