/* ZENYARE — zenyaretyre.com */

:root {
  --ink: #15191c;
  --ink-2: #2b3338;
  --muted: #5c666c;
  --line: #dcd8cf;
  --paper: #f7f5f0;
  --white: #ffffff;
  --accent: #c1441c;
  --accent-dark: #9d3514;
  --sand: #ece7dc;
  --control-border: #737b7e;
  --container-full: 1180px;
  --container-reading: 800px;
  --container-form: 860px;
  --wrap: var(--container-full);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-card-title: 1.25rem;
  --fs-card-title-lg: 1.375rem;
  --fs-h2: 2.125rem;
  --fs-prose-h2: 1.625rem;
  --fs-h1: 3.55rem;
  --fs-lead: 1.125rem;
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.62;
  overflow-wrap: break-word;
}

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

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-top: 0; }
h3, h4 { font-size: var(--fs-card-title); line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }

.wrap,
.container--full,
.container--narrow,
.container--form { width: 100%; margin-inline: auto; padding: 0 22px; }
.wrap, .container--full { max-width: var(--container-full); }
.container--narrow { max-width: var(--container-reading); }
.container--form { max-width: var(--container-form); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 245, 240, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 1.35rem; line-height: 1; letter-spacing: -.04em;
}
.brand-word { display: flex; flex-direction: column; font-weight: 800; font-size: 1.16rem; letter-spacing: .09em; line-height: 1.05; }
.brand-word small { font-size: .58rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-light, .brand-light .brand-word { color: #fff; }
.brand-light .brand-word small { color: #b9c0c4; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-small); font-weight: 500;
  padding: 9px 10px; border-radius: 2px;
}
.nav a:hover { color: var(--accent); background: rgba(193, 68, 28, .07); }
.nav a[aria-current="page"] { color: var(--accent-dark); box-shadow: inset 0 -2px 0 var(--accent); }
.nav .nav-cta { margin-left: 8px; }
.nav .nav-cta[aria-current="page"] { box-shadow: none; }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: var(--fs-body); font-weight: 700; line-height: 1.2;
  padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.cta-row.center { justify-content: center; }

.eyebrow {
  display: inline-block; font-size: var(--fs-small); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 62ch; }
.small { font-size: var(--fs-small); color: var(--muted); }
.muted { color: var(--muted); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff;
  display: flex; align-items: flex-end;
  min-height: clamp(430px, 74vh, 700px);
  padding: 74px 0 54px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(12, 16, 18, .9) 0%, rgba(12, 16, 18, .72) 46%, rgba(12, 16, 18, .3) 100%);
}
.hero .wrap { width: 100%; }
.hero-text { max-width: 720px; }
.hero h1 { color: #fff; text-wrap: balance; }
.hero .lead { color: #e2e2de; }
.hero .cta-row .btn-solid { padding-inline: 26px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: 42px; background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
}
.hero-facts div { background: rgba(15, 19, 21, .72); padding: 15px 16px; }
.hero-facts b { display: block; font-size: var(--fs-body); color: #fff; }
.hero-facts span { font-size: var(--fs-small); color: #c3c8ca; }

/* Inner page head */
.page-head {
  background: var(--ink); color: #fff;
  padding: 58px 0 46px;
}
.page-head h1 { color: #fff; max-width: 24ch; text-wrap: balance; }
.page-head p { color: #d5d8d8; max-width: 72ch; margin-bottom: 0; }
.page-head .eyebrow { color: #e79b7f; }

/* Sections */
.section { padding: 64px 0; }
.section.tight { padding: 44px 0; }
.section.tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.sand { background: var(--sand); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #d3d7d8; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p { margin-bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
}
.card-media { aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { font-size: var(--fs-body); color: var(--ink-2); }
.card-body .more { margin-top: auto; font-weight: 700; font-size: var(--fs-small); text-decoration: none; }
.card-body .more:hover { text-decoration: underline; }
.grid-4 .card-body > h3 { min-height: 2.5em; }

.card--guide .card-media { aspect-ratio: 16 / 9; }
.card--guide h3 a { color: inherit; text-decoration: none; }
.card--guide h3 a:hover { color: var(--accent); text-decoration: underline; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); }
.split-text p:last-child { margin-bottom: 0; }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.steps li {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 34px; padding-left: 52px; margin: 0; line-height: 1.55;
}
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: var(--fs-small);
}
.steps b { display: inline; }
.steps span { display: block; margin-top: .16em; }

.template {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-small); line-height: 1.75; white-space: pre-wrap; overflow-wrap: break-word;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  padding: 16px; margin: 0 0 4px;
}

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: var(--fs-body); }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sand); font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.table-caption { text-align: left; padding: 10px 15px 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 17px 34px 17px 0; position: relative;
  font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  color: var(--accent); font-size: 1.45rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; margin: 0; color: var(--ink-2); max-width: 78ch; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; padding: 46px 0; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #fff; max-width: 62ch; }
.cta-band .btn-solid { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cta-band .btn-solid:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band .btn-light { border-color: rgba(255, 255, 255, .8); }
.cta-band .btn-light:hover { background: #fff; color: var(--accent-dark); }

/* Form */
.form-card { background: var(--white); border: 1px solid var(--line); padding: 26px; max-width: var(--container-form); margin-inline: auto; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--fs-small); font-weight: 700; padding: 0; }
.req { color: var(--accent); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: var(--fs-body); color: var(--ink); width: 100%;
  padding: 11px 12px; border: 1px solid var(--control-border); border-radius: 3px; background: #fff;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 500 !important; font-size: var(--fs-body) !important; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-actions { gap: 10px; }
.form-actions .small { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; padding: 12px 14px; border-left: 4px solid var(--accent); background: #fdf0ea; font-size: var(--fs-body); }
.form-status.is-error { border-color: #a3231b; background: #fbeae8; }
.form-status:focus { outline: 2px solid var(--accent); }

/* Contact details */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 38px; align-items: start; }
.contact-grid .form-card { max-width: none; }
.contact-grid .form-card { padding: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 18px; }
.contact-list b { display: block; font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-size: var(--fs-body); }

/* Guides list */
.post-list { display: grid; gap: 22px; }
.post-card { display: grid; grid-template-columns: 300px 1fr; background: var(--white); border: 1px solid var(--line); }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 24px; }
.post-card h2 { font-size: var(--fs-card-title-lg); margin-bottom: .35em; }
.post-card h2 a { text-decoration: none; color: var(--ink); }
.post-card h2 a:hover { color: var(--accent); }
.post-card .more { font-weight: 700; text-decoration: none; }

/* Legal prose */
.prose { max-width: var(--container-reading); margin-inline: auto; }
.prose h2 { margin-top: 2em; font-size: var(--fs-prose-h2); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose .updated { color: var(--muted); font-size: var(--fs-small); }
.prose > img { margin-bottom: 28px; }

/* Docs */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.doc-grid figure { margin: 0; background: var(--white); border: 1px solid var(--line); padding: 12px; }
.doc-grid img { width: 100%; height: auto; border: 1px solid var(--line); }
.doc-grid figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: 10px; }

/* Inline-style replacement classes */
.cta-panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cta-panel > :last-child { margin-bottom: 0; }
.page-narrow { max-width: var(--container-reading); margin-inline: auto; }
.page-utility { padding-top: 84px; }
.lead--center { margin-inline: auto; }
.mb-0 { margin-bottom: 0 !important; }
.contact-address { font-style: normal; }

/* Specification tag group */
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.spec-tags li {
  margin: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink-2); font-size: var(--fs-small); line-height: 1.25;
}

/* Footer */
.site-footer { background: var(--ink); color: #cfd4d5; padding: 56px 0 26px; font-size: var(--fs-body); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
.site-footer h2 { font-size: var(--fs-small); letter-spacing: 0; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfd4d5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 14px; }
.footer-brand p { max-width: 40ch; }
.footer-note { color: #9aa2a6; }
.footer-bottom {
  border-top: 1px solid #333a3e; margin-top: 38px; padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: var(--fs-small); color: #939b9f;
}
.footer-bottom p { margin: 0; }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 34px; }

/* Responsive */
@media (max-width: 1040px) {
  .nav a { padding: 8px 7px; font-size: var(--fs-small); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --fs-h1: 2.75rem; --fs-h2: 2rem; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: transparent;
    border: 1px solid var(--line); border-radius: 3px; cursor: pointer;
  }
  .nav-toggle span {
    display: block; height: 2px; background: var(--ink);
    transform-origin: center; transition: transform .18s ease, opacity .18s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 74px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 18px 18px; gap: 2px;
    box-shadow: 0 14px 20px rgba(0, 0, 0, .08);
  }
  .nav.open {
    display: flex;
    max-height: calc(100vh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav a { padding: 12px 6px; font-size: var(--fs-body); border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .nav-cta { margin: 12px 0 0; border-bottom: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .split.reverse .split-media { order: 0; }
  .post-card { grid-template-columns: 1fr; }
  .post-card img { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 50px 0; }
  .page-head { padding: 46px 0 38px; }
}

@media (max-width: 620px) {
  :root { --fs-h1: 2.125rem; --fs-h2: 1.875rem; }
  body { font-size: var(--fs-body); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 .card-body > h3 { min-height: 0; }
  .form { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 38px; min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(12, 16, 18, .72) 0%, rgba(12, 16, 18, .86) 100%); }
  .hero-facts { margin-top: 30px; }
  .hero-facts div { padding: 12px; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .table-wrap table { display: block; min-width: 0; font-size: var(--fs-body); }
  .table-wrap caption { display: block; margin-bottom: 12px; }
  .table-wrap thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .table-wrap tbody { display: grid; gap: 8px; }
  .table-wrap tr {
    display: block; overflow: hidden; padding: 10px 12px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius);
  }
  .table-wrap td {
    display: block; padding: 0; border-bottom: 0;
  }
  .table-wrap td::before { content: none; }
  .table-wrap td:first-child {
    margin-bottom: 2px; color: var(--ink); font-size: var(--fs-body);
    font-weight: 700; line-height: 1.4;
  }
  .table-wrap td:last-child {
    color: var(--ink-2); font-size: var(--fs-body); line-height: 1.5;
  }
  .table-wrap table.table--labelled td:last-child::before {
    content: attr(data-label) ": "; color: var(--muted); font-size: var(--fs-small);
    font-weight: 700; line-height: 1.45; margin-right: 2px;
  }
  .doc-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .doc-grid figure { width: 88%; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .form-card { padding: 20px 16px; }
  .section { padding: 42px 0; }
  .cta-band { padding: 36px 0; }
}

/* WordPress template additions */
.nav { list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav .current-menu-item > a,
.nav .current_page_item > a { color: var(--accent-dark); box-shadow: inset 0 -2px 0 var(--accent); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 900px) {
  .header-in > .nav-cta { display: none; }
  .nav .current-menu-item > a,
  .nav .current_page_item > a { box-shadow: none; }
}
