/*
Theme Name: Gazatta
Theme URI: https://gazatta.com/
Author: Gazatta
Description: A lightweight editorial WordPress theme for Gazatta's corporate website.
Version: 2.7.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: gazatta
*/

:root {
  --ink: #111111;
  --muted: #626262;
  --paper: #ffffff;
  --soft: #f3f1eb;
  --line: #d7d2c8;
  --accent: #fdc327;
  --accent-light: #fdc327;
  --max: 1180px;
  --radius: 2px;
  --font-body: "Inter", Arial, sans-serif;
  --font-heading: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--accent); }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  align-items: center;
  gap: 28px;
}
.site-branding { display: flex; align-items: center; justify-self: start; min-width: 0; }
.site-branding a { display: inline-flex; align-items: center; text-decoration: none; }
.custom-logo-link { line-height: 0; }
.custom-logo { display: block; max-height: 54px; max-width: min(360px, 38vw); width: auto; }
.site-header nav { grid-column: 3; justify-self: end; }
.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
}
.wordmark::before {
  content: "";
  width: 38px;
  height: 38px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: -7px;
  border-radius: 50% 50% 0 50%;
  background: repeating-conic-gradient(var(--accent-light) 0 8deg, var(--accent) 8deg 18deg);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.08);
}

.primary-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-menu a { font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover { color: #7b4b00; }
.menu-toggle { display: none; grid-column: 3; justify-self: end; border: 1px solid var(--ink); background: transparent; padding: 10px 12px; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: .75rem;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 160px) 0 96px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(17,17,17,.025) 1px, transparent 1px),
    linear-gradient(rgba(17,17,17,.025) 1px, transparent 1px),
    linear-gradient(135deg, #fff 0%, #faf7ef 100%);
  background-size: 36px 36px, 36px 36px, auto;
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 360px;
  height: 360px;
  border-radius: 50% 50% 0 50%;
  background: repeating-conic-gradient(var(--accent-light) 0 6deg, var(--accent) 6deg 16deg);
  opacity: .25;
  transform: rotate(-8deg);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 70px; align-items: end; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: .98;
  letter-spacing: -.035em;
  margin-top: 0;
}
h1 { font-size: clamp(3.4rem, 8vw, 7.6rem); max-width: 900px; margin-bottom: 30px; }
h2 { font-size: clamp(2.4rem, 5vw, 4.7rem); margin-bottom: 28px; }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.1rem); margin-bottom: 14px; }
.hero-copy { max-width: 590px; color: #393939; font-size: clamp(1.08rem, 1.7vw, 1.35rem); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .02em;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hero-note { border-top: 4px solid var(--ink); padding-top: 18px; font-family: var(--font-body); font-size: 1.08rem; }

.section { padding: clamp(76px, 10vw, 130px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.soft { background: var(--soft); }
.section.dark { background: var(--ink); color: white; }
.section-heading { max-width: 820px; margin-bottom: 56px; }
.section-heading p { color: var(--muted); font-size: 1.12rem; }
.dark .section-heading p { color: #c7c7c7; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.card { padding: 28px 0 0; border-top: 4px solid var(--ink); }
.card-number { display: block; margin-bottom: 42px; color: var(--accent); font-weight: 900; font-size: .8rem; letter-spacing: .12em; }
.card p { color: var(--muted); }
.dark .card { border-color: white; }
.dark .card p { color: #c7c7c7; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 8vw, 110px); align-items: start; }
.pullquote { margin: 0; font-family: var(--font-body); font-size: clamp(1.5rem, 3vw, 2.55rem); line-height: 1.28; }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { padding: 20px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-weight: 700; }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }

.publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.publication-card { min-height: 290px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.publication-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.publication-card .status { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; color: #7b4b00; }
.publication-card p { color: var(--muted); }

.page-hero { padding: 86px 0 70px; border-bottom: 1px solid var(--line); background: var(--soft); }
.page-hero h1 { font-size: clamp(3.2rem, 7vw, 6.7rem); max-width: 940px; }
.entry-content { padding: 72px 0 100px; }
.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--max); }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content p, .entry-content li { color: #303030; }
.entry-content blockquote { border-left: 5px solid var(--accent); padding-left: 24px; font-family: var(--font-body); font-size: 1.35rem; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.contact-panel { padding: 30px; background: var(--soft); border-top: 4px solid var(--ink); }
.contact-panel a { font-weight: 800; }
input, textarea, select {
  width: 100%; padding: 13px 14px; border: 1px solid #bdb8ae; background: white; font: inherit;
}
label { display: block; margin-bottom: 7px; font-weight: 800; font-size: .9rem; }
.form-row { margin-bottom: 18px; }
textarea { min-height: 170px; resize: vertical; }

.site-footer { padding: 58px 0 26px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-title { font-size: 2.2rem; margin-bottom: 12px; }
.footer-copy { color: #bfbfbf; max-width: 430px; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin: 8px 0; }
.footer-menu a { color: #e2e2e2; text-decoration: none; }
.footer-bottom { margin-top: 54px; padding-top: 20px; border-top: 1px solid #383838; color: #a8a8a8; font-size: .78rem; display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 500px; }
  .grid-3, .publication-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header nav { grid-column: auto; justify-self: auto; }
  .menu-toggle { display: block; grid-column: 2; }
  .custom-logo { max-width: min(300px, 62vw); }
  .primary-menu { display: none; position: absolute; left: 20px; right: 20px; top: 72px; padding: 20px; flex-direction: column; align-items: flex-start; background: white; border: 1px solid var(--line); }
  .primary-menu.is-open { display: flex; }
}

@media (max-width: 560px) {
  .wrap, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 70px; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .hero { padding-top: 72px; }
  .hero::after { width: 230px; height: 230px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}


/* Gazatta 2.0 editable media */
.hero.has-image { color: #fff; background-image: linear-gradient(90deg, rgba(10,10,10,.88), rgba(10,10,10,.52)), var(--hero-image); background-size: cover; background-position: center; }
.hero.has-image::after { display:none; }
.hero.has-image .hero-copy { color:#ededed; }
.hero.has-image .hero-note { border-color:#fff; }
.hero.has-image .button.secondary { color:#fff; border-color:#fff; }
.hero.has-image .button.secondary:hover { background:var(--accent); border-color:var(--accent); color:var(--ink); }
.editorial-image { margin: 0 0 52px; max-height: 520px; overflow:hidden; border-top:4px solid var(--ink); }
.editorial-image img { width:100%; height:100%; max-height:520px; object-fit:cover; display:block; }
.editorial-image.compact { margin-top:34px; margin-bottom:0; max-height:360px; }
.publication-card.has-image { padding:0; overflow:hidden; }
.publication-card.has-image > .status, .publication-card.has-image > div:not(.publication-card-image) { margin-left:26px; margin-right:26px; }
.publication-card.has-image > .status { margin-top:22px; }
.publication-card.has-image > div:last-child { margin-bottom:22px; }
.publication-card-image { height:170px; background:var(--soft); overflow:hidden; }
.publication-card-image img { width:100%; height:100%; object-fit:cover; display:block; }
.network-grid .publication-card { min-height:390px; }
.network-grid .publication-card h2 { font-size:2.2rem; margin-bottom:8px; }
.publication-area { font-weight:800; color:var(--ink)!important; }
.empty-state { padding:40px; border:1px solid var(--line); background:var(--soft); }
.cta-section { position:relative; background-size:cover; background-position:center; }
.cta-section.has-image { background-image:linear-gradient(rgba(12,12,12,.82),rgba(12,12,12,.82)),var(--cta-image); }
.cta-section .wrap { position:relative; z-index:1; }
.cta-copy { font-size:1.2rem; color:#d0d0d0; }
.button.light { background:#fff; color:#111; border-color:#fff; }
.button.light:hover { background:var(--accent); border-color:var(--accent); }
.network-intro { padding-top:0; padding-bottom:56px; }

.company-details { margin: 18px 0 0; color: #bfbfbf; font-size: .84rem; line-height: 1.7; }
.company-details span { display: block; }
.contact-form { margin-top: 34px; }
.contact-form .button { cursor: pointer; }
.form-status { padding: 16px 18px; margin: 0 0 24px; border-left: 4px solid var(--accent); background: var(--soft); }
.form-status.error { border-color: #9b2c2c; }
.gazatta-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }


/* Gazatta 2.3 social and contact refinements */
.social-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.social-links a { width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #484848; color:#fff; text-decoration:none; transition:background .18s ease,border-color .18s ease,color .18s ease; }
.social-links a:hover, .social-links a:focus-visible { background:var(--accent); border-color:var(--accent); color:var(--ink); }
.social-links svg { width:19px; height:19px; fill:currentColor; }
.anchor-target { scroll-margin-top:110px; }
.contact-panel hr { border:0; border-top:1px solid var(--line); margin:28px 0; }
.company-details br { display:block; }


/* Gazatta 2.4 header and 404 refinements */
.error-404 { padding: clamp(80px, 12vw, 150px) 0; background: var(--soft); }
.error-404-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr); gap:clamp(44px,8vw,110px); align-items:start; }
.error-code { margin:0 0 18px; font-family:var(--font-heading); font-size:clamp(5rem,16vw,12rem); font-weight:900; line-height:.78; letter-spacing:-.07em; color:var(--accent); }
.error-404 h1 { max-width:760px; }
.error-links { padding:28px; border-top:4px solid var(--ink); background:#fff; }
.error-links h2 { font-size:1.8rem; margin-bottom:18px; }
.error-links ul { list-style:none; margin:0; padding:0; }
.error-links li { border-top:1px solid var(--line); }
.error-links li:last-child { border-bottom:1px solid var(--line); }
.error-links a { display:flex; justify-content:space-between; gap:18px; padding:14px 0; font-weight:800; text-decoration:none; }
.error-links a::after { content:"→"; }
.search-form { display:flex; gap:10px; margin-top:28px; }
.search-form label { flex:1; margin:0; }
.search-form .search-field { height:100%; }
@media (max-width:860px) { .error-404-grid { grid-template-columns:1fr; } }
@media (max-width:560px) { .custom-logo { max-width:62vw; max-height:46px; } .search-form { flex-direction:column; } }

/* Gazatta 2.5 desktop density, publication actions, privacy and 404 refinements */
@media (min-width: 861px) {
  .hero { min-height: calc(100vh - 76px); min-height: min(720px, calc(100vh - 76px)); padding: clamp(54px, 7vh, 78px) 0 clamp(48px, 6vh, 70px); display:flex; align-items:center; }
  .hero h1 { font-size: clamp(3.25rem, 6.2vw, 6.1rem); margin-bottom: 22px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero-copy { font-size: clamp(1rem, 1.35vw, 1.22rem); }
  .hero-actions { margin-top: 25px; }
  .section { padding: clamp(64px, 7vw, 92px) 0; }
  .section-heading { margin-bottom: 42px; }
  .card-number { margin-bottom: 20px; }
  .page-hero { padding: 66px 0 54px; }
}
.publication-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-top:22px; }
.button.small { min-height:40px; padding:9px 14px; font-size:.78rem; }
.text-link { font-weight:800; text-underline-offset:4px; }
.disabled { opacity:.42; pointer-events:none; }
.publication-card.has-image > div:last-child { margin-top:20px; }
.error-404 .search-form { display:grid; grid-template-columns:minmax(280px, 1fr) auto; width:min(100%, 680px); align-items:stretch; }
.error-404 .search-form label { min-width:0; }
.error-404 .search-form .search-field { min-height:52px; }
.error-404 .search-form .search-submit { width:auto; min-width:120px; min-height:52px; padding:10px 18px; }
.privacy-layout { display:grid; grid-template-columns:220px minmax(0, 820px); gap:clamp(44px,7vw,90px); align-items:start; }
.privacy-nav { position:sticky; top:110px; display:flex; flex-direction:column; gap:10px; padding-top:18px; border-top:4px solid var(--ink); font-size:.88rem; }
.privacy-nav a { text-decoration:none; color:var(--muted); }
.privacy-nav a:hover { color:var(--ink); }
.privacy-content h2 { margin-top:2.1em; padding-top:.2em; font-size:clamp(2rem,4vw,3.3rem); }
.privacy-content h2:first-of-type { margin-top:1.2em; }
.privacy-content h3 { margin-top:1.7em; font-size:1.45rem; }
.privacy-content li { margin-bottom:.55em; }
@media (max-width:860px) { .privacy-layout { grid-template-columns:1fr; } .privacy-nav { position:static; } }
@media (max-width:560px) { .error-404 .search-form { grid-template-columns:1fr; } .error-404 .search-form .search-submit { width:100%; } }


/* Gazatta 2.6 refinements */
.site-header { transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 5px 18px rgba(0,0,0,.07); }
.header-inner { min-height: 90px; grid-template-columns: 1fr auto 1fr; position: relative; transition: min-height .2s ease; }
.site-header.is-scrolled .header-inner { min-height: 72px; }
.site-branding { grid-column: 2; justify-self: center; }
.custom-logo { max-height: 64px; max-width: min(390px, 46vw); transition: max-height .2s ease; }
.site-header.is-scrolled .custom-logo { max-height: 50px; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; grid-column: 1; grid-row: 1; justify-self: start; border: 0; padding: 10px 0; cursor: pointer; }
.site-header nav { position: absolute; left: 0; right: 0; top: 100%; grid-column: auto; justify-self: stretch; }
.primary-menu { display: none; padding: 24px max(20px, calc((100vw - var(--max))/2)); background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 12px 25px rgba(0,0,0,.08); justify-content: center; flex-wrap: wrap; }
.primary-menu.is-open { display: flex; }
.section { padding: clamp(52px, 6vw, 78px) 0; }
.section-heading { margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.pullquote { font-family: var(--font-body); font-size: 1.12rem; line-height: 1.65; letter-spacing: 0; }
.footer-grid { grid-template-columns: 1.7fr 1fr; }
.page-featured-image { margin-top: 48px; margin-bottom: -30px; }
.page-featured-image img { width: 100%; max-height: 620px; object-fit: cover; display: block; }
.entry-content figure img { display: block; }
.entry-content .wp-block-image, .entry-content .wp-block-cover, .entry-content .wp-block-gallery { max-width: var(--max); }
.cookie-notice { position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px; background: #fff; border: 1px solid var(--ink); border-top: 5px solid var(--accent); box-shadow: 0 15px 45px rgba(0,0,0,.22); }
.cookie-notice-inner { width: min(100%, var(--max)); margin: auto; padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cookie-notice p { margin: 5px 0 0; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions .button { cursor: pointer; white-space: nowrap; }
@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .menu-toggle { grid-column: 1; }
  .custom-logo { max-width: min(300px, 58vw); }
  .primary-menu { position: static; align-items: center; }
  .site-header nav { position: absolute; }
  .cookie-notice-inner { grid-template-columns: 1fr; gap: 16px; }
  .cookie-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .header-inner { min-height: 78px; }
  .menu-toggle { font-size: 0; }
  .menu-toggle span { font-size: 1.2rem; }
  .custom-logo { max-height: 52px; max-width: 60vw; }
  .section { padding: 46px 0; }
  .section-heading { margin-bottom: 28px; }
  .cookie-notice { left: 10px; right: 10px; bottom: 10px; }
  .cookie-notice-inner { padding: 18px; }
  .cookie-actions { flex-direction: column-reverse; }
  .cookie-actions .button { width: 100%; }
}


/* Gazatta 2.7 tablet spacing, dropdown navigation and policy refinements */
.menu-toggle { position: relative; z-index: 12; }
.site-header nav { left: max(20px, calc((100vw - var(--max))/2)); right: auto; width: min(330px, calc(100vw - 40px)); z-index: 11; }
.primary-menu {
  width: 100%;
  padding: 10px;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  box-shadow: 0 16px 32px rgba(0,0,0,.14);
}
.primary-menu li { width: 100%; margin: 0; }
.primary-menu a {
  display: block;
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a { background: var(--accent); color: var(--ink); }

@media (min-width: 561px) and (max-width: 1024px) {
  .publication-card { min-height: 250px; justify-content: flex-start; }
  .publication-card .status { margin-bottom: 12px; }
  .publication-card > div h3 { margin-top: 0; }
  .publication-card.has-image > .status { margin-bottom: 12px; }
  .section.soft .split { gap: 28px; }
  .section.soft .split h2 { margin-bottom: 14px; }
  .section.soft .pullquote { margin-top: 0; }
}

@media (max-width: 860px) {
  .site-header nav { left: 20px; right: auto; width: min(330px, calc(100vw - 40px)); }
  .primary-menu { position: static; align-items: stretch; }
  .section.soft .split { gap: 22px; }
  .section.soft .split h2 { margin-bottom: 8px; }
  .section.soft .pullquote { margin-top: 0; }
}

@media (max-width: 560px) {
  .site-header nav { left: 10px; width: calc(100vw - 20px); }
  .publication-card { min-height: auto; }
  .publication-card .status { margin-bottom: 10px; }
}
