/*
Theme Name: Avittom
Theme URI: https://avittom.com/
Author: Codex
Description: Custom WordPress theme for the Avittom landing page.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: avittom
*/

:root {
  --bg: #f6f0e6;
  --bg-deep: #efe4d3;
  --ink: #152237;
  --muted: #5f6670;
  --line: rgba(21, 34, 55, 0.12);
  --brand: #9b7444;
  --navy: #0b1930;
  --navy-soft: #163050;
  --white: #ffffff;
  --shadow-soft: 0 22px 55px rgba(26, 35, 49, 0.08);
  --shadow-deep: 0 24px 80px rgba(7, 17, 33, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 185, 138, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(15, 48, 82, 0.09), transparent 24%),
    linear-gradient(180deg, #f9f3eb 0%, var(--bg) 42%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.avittom-page {
  overflow-x: hidden;
}

.shell {
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 10px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(248, 240, 227, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 38px rgba(13, 21, 35, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mark {
  width: 38px;
  height: 50px;
  color: var(--brand);
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-logo {
  width: auto;
  max-width: 180px;
  max-height: 56px;
  object-fit: contain;
}

.brand-copy .name {
  font-size: 0.9rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--navy);
}

.brand-copy .sub {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--white);
  box-shadow: 0 16px 35px rgba(11, 25, 48, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.45);
  color: var(--navy);
  border-color: rgba(21, 34, 55, 0.14);
}

.hero-wrap {
  padding: 44px 0 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 34px;
  align-items: stretch;
  min-height: calc(100vh - 130px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 0 58px;
}

.eyebrow,
.section-label,
.mini-label,
.panel-kicker,
.stat .kicker,
.metric .m-label,
.contact-item .label {
  font-size: 0.76rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(155, 116, 68, 0.72);
}

h1,
h2,
.panel-title {
  margin: 0;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
  color: var(--navy);
}

h1 {
  max-width: 760px;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.93;
}

h2 {
  max-width: 720px;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: 0.95;
}

.lead,
.section-intro,
.card p,
.card li,
.panel-copy,
.contact-panel p,
.signature p,
.stat .caption {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat .kicker,
.section-label,
.mini-label {
  color: var(--brand);
  margin-bottom: 10px;
}

.stat .value {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-panel {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  border-radius: 34px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(4, 10, 22, 0.1), rgba(4, 10, 22, 0.36)),
    linear-gradient(145deg, #11233e 0%, #173255 45%, #234975 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-deep);
  isolation: isolate;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  z-index: 0;
  opacity: 0.7;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(214, 185, 138, 0.2);
  z-index: 0;
}

.pulse-ring-a {
  width: 24rem;
  height: 24rem;
  right: -10rem;
  top: -8rem;
}

.pulse-ring-b {
  width: 18rem;
  height: 18rem;
  left: -7rem;
  bottom: 2rem;
}

.hero-panel-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-chip-soft {
  color: rgba(214, 185, 138, 0.92);
}

.panel-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(4, 12, 25, 0.24);
}

.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(214, 185, 138, 0.92);
  margin-bottom: 16px;
}

.panel-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.panel-title {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.98;
  max-width: 12ch;
}

.panel-copy {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.metric .m-label {
  color: rgba(214, 185, 138, 0.8);
  margin-bottom: 10px;
}

.metric .m-value {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.03rem;
  line-height: 1.6;
  font-weight: 600;
}

section {
  position: relative;
  padding: 96px 0;
}

.section-band::before,
.connect-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
  border-top: 1px solid rgba(21, 34, 55, 0.05);
  border-bottom: 1px solid rgba(21, 34, 55, 0.04);
  z-index: -1;
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 38px;
}

.section-intro {
  max-width: 670px;
}

.insight-grid,
.approach-grid,
.criteria-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

.insight-grid,
.approach-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.criteria-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: 1.02fr 0.98fr;
  align-items: start;
}

.card,
.contact-panel,
.signature {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
}

.card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.8), rgba(255, 249, 242, 0.58));
  box-shadow: var(--shadow-soft);
}

.card h3,
.contact-panel h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.card li + li {
  margin-top: 8px;
}

.signature {
  padding: 36px;
  background:
    radial-gradient(circle at top right, rgba(214, 185, 138, 0.16), transparent 22%),
    linear-gradient(140deg, rgba(11, 25, 48, 0.98), rgba(19, 48, 81, 0.98));
  box-shadow: var(--shadow-deep);
}

.quote-mark {
  color: rgba(214, 185, 138, 0.86);
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 5.2rem;
  line-height: 0.7;
  margin-bottom: 10px;
}

.signature p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
}

.attribution {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-panel {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.9), rgba(255, 249, 242, 0.72));
  box-shadow: var(--shadow-soft);
}

.contact-panel p {
  margin: 10px 0 0;
}

.contact-form-panel {
  display: grid;
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(21, 34, 55, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(11, 25, 48, 0.16);
  outline-offset: 1px;
}

.form-status {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status-success {
  background: rgba(56, 132, 82, 0.12);
  color: #215332;
  border: 1px solid rgba(56, 132, 82, 0.2);
}

.form-status-error {
  background: rgba(170, 73, 73, 0.12);
  color: #7a2f2f;
  border: 1px solid rgba(170, 73, 73, 0.2);
}

.contact-glance-list {
  margin-top: 10px;
}

.glance-summary h3 {
  margin-bottom: 10px;
}

.list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.contact-item .value {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.intro-spaced {
  margin-top: 18px;
}

.site-footer {
  padding: 24px 0 52px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(21, 34, 55, 0.18);
}

.site-footer-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer-links a:hover {
  color: var(--navy);
}

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

.news-card,
.page-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.84), rgba(255, 249, 242, 0.62));
  box-shadow: var(--shadow-soft);
}

.news-meta {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-card h2,
.news-card h3,
.page-card h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.52rem;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.news-card p,
.page-body,
.page-body p,
.page-body li {
  color: var(--muted);
  line-height: 1.85;
}

.news-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--navy);
  font-weight: 700;
}

.page-main {
  min-height: 100vh;
}

.page-wrap {
  padding: 54px 0 84px;
}

.page-shell {
  display: grid;
  gap: 24px;
}

.page-header {
  margin-bottom: 24px;
}

.page-body > :first-child {
  margin-top: 0;
}

.page-body > :last-child {
  margin-bottom: 0;
}

.page-body h2,
.page-body h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.page-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.post-card {
  max-width: 920px;
}

.nav-links a:hover,
.nav-links .btn:hover,
.btn:hover {
  filter: brightness(1.02);
}

.pagination,
.nav-links .page-numbers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--navy);
}

.page-numbers.current {
  background: var(--navy);
  color: var(--white);
}

.empty-state {
  grid-column: 1 / -1;
}

@media (max-width: 1120px) {
  .hero,
  .section-head,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 580px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    border-radius: 30px;
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links,
  .insight-grid,
  .approach-grid,
  .criteria-grid,
  .hero-note,
  .panel-metrics,
  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: grid;
    gap: 12px;
    justify-content: stretch;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), 1240px);
  }

  .brand-copy .sub {
    display: none;
  }

  .hero-wrap {
    padding-top: 28px;
  }

  .hero-copy {
    padding: 30px 0 10px;
  }

  section {
    padding: 76px 0;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .site-footer-meta {
    justify-content: flex-start;
  }

  .hero-panel,
  .contact-panel,
  .signature,
  .card,
  .panel-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-panel {
    min-height: 520px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-item .value {
    text-align: left;
  }

  .news-card,
  .page-card {
    padding: 22px;
  }
}
