/*
Theme Name: Zinir
Theme URI: https://zinir.com/
Author: Ian Goodyer
Description: Purpose-built theme for ZiNIR Ltd. Reproduces the original Pofo-based design as clean, dependency-free templates — no page builder, no parent theme.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zinir
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ---------------------------------------------------------------- tokens */
:root {
  --accent: #c3b600;
  --accent-70: rgba(195, 182, 0, 0.7);
  --cream: #f2f0cd;
  --ink: #6f6f6f;
  --ink-strong: #232323;
  --line: #e0e0e0;
  --white: #fff;
  --max: 1200px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink-strong); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  margin: 0 0 16px;
  color: var(--ink-strong);
  font-weight: 600;
  line-height: 1.15;
}

p { margin: 0 0 18px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 30px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #e6e2a0; /* the original header strip, distinct from the page cream */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header .wrap {
  max-width: none;
  padding: 0 34px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
}
.brand {
  display: block;
  line-height: 0;
  background: #fff;
  padding: 2px 16px;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.brand img { width: 180px; height: auto; }

.nav-toggle { display: none; }

.primary-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-strong);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { border-bottom-color: var(--accent); color: var(--ink-strong); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  background-image: url("/wp-content/uploads/2022/10/SE_TopViewCloseUp1_008.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.5;
}
.hero .wrap { position: relative; max-width: none; padding: 0; }
.hero-panel {
  background: var(--accent-70);
  padding: 11% 8% 11% 12%;
  width: 50%;
  min-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-rule {
  width: 180px;
  height: 1px;
  background: var(--white);
  opacity: 0.65;
  margin-bottom: 34px;
}
.hero-panel h1 {
  color: var(--white);
  font-size: 52px;
  line-height: 59px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-panel p {
  color: var(--white);
  font-size: 18px;
  line-height: 26px;
  font-weight: 300;
  margin: 0;
  max-width: 95%;
}

/* ---------------------------------------------------------------- band */
.band {
  background: var(--ink-strong);
  padding: 160px 30px;
  text-align: center;
}
.band h2 {
  color: var(--white);
  font-size: 48px;
  line-height: 54px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: none;
}

/* ---------------------------------------------------------------- intro */
.intro { padding: 70px 0 30px; text-align: center; }
.intro p {
  font-size: 18px;
  line-height: 26px;
  font-weight: 300;
  max-width: 980px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- services */
.services { padding: 30px 0 80px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.service img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto 22px;
}
.service .rule {
  width: 30px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 18px;
}
.service h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  margin-bottom: 12px;
}
.service p { font-size: 14px; line-height: 24px; margin: 0; }

/* ---------------------------------------------------------------- technology */
.technology { padding: 80px 0; text-align: center; }
.technology h2 {
  font-size: 55px;
  line-height: 60px;
  font-weight: 400;
  margin-bottom: 26px;
}
.technology p {
  font-size: 18px;
  line-height: 28px;
  font-weight: 300;
  max-width: 980px;
  margin: 0 auto;
}
.technology a { color: var(--ink-strong); border-bottom: 1px solid var(--accent); }

/* ---------------------------------------------------------------- team */
.team { padding: 20px 0 90px; }
.person {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.person:first-child { border-top: 0; }
.person img { width: 220px; height: 300px; object-fit: cover; }
.person h3 { font-size: 18px; line-height: 24px; margin-bottom: 4px; }
.person .role {
  font-size: 15px;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 14px;
}
.person p { font-size: 14px; line-height: 24px; margin: 0 0 12px; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink-strong);
  color: #ccc;
  padding: 64px 0 40px;
  font-size: 13px;
  line-height: 22px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer p { color: #ccc; margin: 0 0 8px; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.social { display: flex; gap: 14px; margin-top: 4px; }
.social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #4a4a4a;
  border-radius: 50%;
  color: var(--white);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.colophon {
  border-top: 1px solid #3a3a3a;
  margin-top: 46px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8f8f8f;
  font-size: 12px;
}

/* ---------------------------------------------------------------- posts */
.post { padding: 70px 0 90px; }
.post-header { text-align: center; margin-bottom: 40px; }
.post-header h1 { font-size: 44px; line-height: 52px; font-weight: 400; max-width: 900px; margin: 0 auto 14px; }
.post-header .meta { font-size: 13px; color: #8f8f8f; }
.post-body { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 28px; }
.post-body h2, .post-body h3 { margin-top: 34px; }
.post-body img { margin: 26px auto; }

.news-list { padding: 70px 0 90px; }
.news-list h1 { font-size: 44px; line-height: 52px; font-weight: 400; text-align: center; margin-bottom: 40px; }
.news-item { border-top: 1px solid var(--line); padding: 26px 0; }
.news-item h2 { font-size: 20px; line-height: 28px; margin-bottom: 6px; }
.news-item .meta { font-size: 13px; color: #8f8f8f; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 760px; }
  .hero-panel { min-height: 760px; width: 55%; }
  .hero-panel h1 { font-size: 42px; line-height: 50px; }
  .band h2 { font-size: 36px; line-height: 44px; }
}

@media (max-width: 860px) {
  .hero { background-attachment: scroll; min-height: 0; padding: 60px 0; }
  .hero-panel { width: 100%; min-height: 0; max-width: none; padding: 8% 7%; }
  .site-header .wrap { min-height: 96px; padding: 10px 20px; }
  .brand img { height: 74px; }
  .technology h2 { font-size: 40px; line-height: 46px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 34px; }
  .person { grid-template-columns: 1fr; }
  .person img { width: 100%; height: auto; max-width: 260px; }
  .post-header h1 { font-size: 32px; line-height: 40px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--ink-strong);
    border-radius: 0;
    padding: 10px 14px;
    font: inherit;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-strong);
    cursor: pointer;
  }
  .primary-nav { display: none; width: 100%; order: 3; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 10px 0 18px; }
  .primary-nav li { border-top: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 14px 0; border-bottom: 0; }
  .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
}

@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-panel h1 { font-size: 32px; line-height: 39px; }
  .hero-panel p { font-size: 16px; line-height: 24px; }
  .intro p, .technology p { font-size: 16px; line-height: 25px; }
  .band { padding: 54px 22px; }
  .band h2 { font-size: 26px; line-height: 34px; }
}
