/* Pryce Corporation — modern brand system
   Colors extracted from pryce.com.ph via Playwright:
   logo red #EF4036, UI orange #F3690D, soft #FF8F4A, slate #344767
*/

:root {
  --brand: #ef4036;
  --brand-orange: #f3690d;
  --brand-soft: #ff8f4a;
  --brand-deep: #c6281f;
  --ink: #121417;
  --ink-soft: #2a3038;
  --slate: #344767;
  --mist: #e8ecef;
  --paper: #f5f7f9;
  --white: #ffffff;
  --line: rgba(18, 20, 23, 0.1);
  --glow: rgba(243, 105, 13, 0.35);

  --font-display: "Roboto", "Segoe UI", sans-serif;
  --font-sans: "Roboto", "Segoe UI", sans-serif;

  --space: clamp(1rem, 2vw, 1.5rem);
  --wide: 1180px;
  --page-inline: 1.25rem;
  --radius: 2px;
  --header-h: 4.25rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - (var(--page-inline) * 2), var(--wide));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled,
.site-header.theme-light {
  background: rgba(245, 247, 249, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: min(100% - (var(--page-inline) * 2), var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: clamp(26px, 2.8vw, 34px);
  width: auto;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.05rem;
  min-width: 0;
  padding-top: 0;
  border-top: 0;
}

.nav-link {
  position: relative;
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-soft);
}

.site-header.theme-light .nav-link,
.site-header.is-scrolled .nav-link {
  color: var(--ink-soft);
}

.site-header.theme-light .nav-link:hover,
.site-header.theme-light .nav-link.is-active,
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  color: var(--brand);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header.theme-light .menu-toggle span,
.site-header.is-scrolled .menu-toggle span {
  background: var(--ink);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #0c0d10;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.04);
  transition: opacity 1.2s var(--ease);
}

.hero-media img.is-active {
  opacity: 1;
  animation: heroZoom 22s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(10, 11, 14, 0.84) 0%,
      rgba(10, 11, 14, 0.48) 42%,
      rgba(243, 105, 13, 0.22) 72%,
      rgba(10, 11, 14, 0.4) 100%
    ),
    linear-gradient(to top, rgba(10, 11, 14, 0.78) 0%, transparent 42%),
    radial-gradient(ellipse at 70% 40%, rgba(239, 64, 54, 0.2), transparent 55%);
}

.page-hero .hero-media img {
  position: absolute;
  opacity: 1;
  animation: none;
  transform: scale(1.02);
}

.page-hero .hero-media::after {
  background:
    linear-gradient(
      100deg,
      rgba(10, 11, 14, 0.78) 0%,
      rgba(10, 11, 14, 0.4) 50%,
      rgba(10, 11, 14, 0.28) 100%
    ),
    linear-gradient(to top, rgba(10, 11, 14, 0.7) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--page-inline) * 2), var(--wide));
  margin: 0 auto;
  padding: calc(var(--header-h) + 0.5rem) 0 2.5rem;
}

.hero-nav {
  position: absolute;
  z-index: 2;
  right: max(var(--page-inline), calc((100% - var(--wide)) / 2));
  bottom: 1.75rem;
}

.hero-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(12, 13, 16, 0.42);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-arrow {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.28s var(--ease),
    color 0.28s var(--ease),
    transform 0.28s var(--ease);
}

.hero-arrow:hover {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand));
  transform: translateY(-1px);
}

.hero-arrow:active {
  transform: translateY(0) scale(0.96);
}

.hero-arrow:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 2px;
}

.hero-arrow svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.35rem;
}

.hero-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    width 0.35s var(--ease),
    background 0.28s var(--ease),
    opacity 0.28s var(--ease);
}

.hero-dot.is-active {
  width: 1.35rem;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-soft));
}

.hero-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 720px) {
  .hero-nav {
    right: var(--page-inline);
    left: var(--page-inline);
    bottom: 1.15rem;
    display: flex;
    justify-content: center;
  }

  .hero-controls {
    width: 100%;
    max-width: 18rem;
    justify-content: space-between;
    margin: 0 auto;
  }

  .hero-arrow {
    width: 2.2rem;
    height: 2.2rem;
  }
}

.hero h1 {
  max-width: 14ch;
  color: #fff;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero .lede {
  max-width: 38ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand));
  color: #fff;
  box-shadow: 0 10px 30px var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px var(--glow);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

/* ——— Page hero (inner) ——— */
.page-hero {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #121417;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--page-inline) * 2), var(--wide));
  margin: 0 auto;
  padding: calc(var(--header-h) + 1rem) 0 2rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
}

.section-head p {
  color: var(--slate);
  margin: 0;
}

.section-muted {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(243, 105, 13, 0.08), transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(239, 64, 54, 0.06), transparent 40%),
    linear-gradient(180deg, #eef1f4, #f5f7f9);
}

.section-dark {
  background:
    linear-gradient(145deg, #171a20 0%, #101318 55%, #1a1210 100%);
  color: rgba(255, 255, 255, 0.82);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.mission-block {
  padding: 0;
  border: 0;
  background: transparent;
}

.mission-block .label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.mission-block h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 1rem;
}

.mission-block p:last-child {
  margin-bottom: 0;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--brand);
  opacity: 0.35;
  margin-bottom: 0.5rem;
}

/* Businesses — not card-heavy; editorial rows */
.biz-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.biz-item {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.biz-item:hover {
  background: rgba(243, 105, 13, 0.04);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.biz-item img {
  width: 100%;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.biz-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.biz-item p {
  margin: 0;
  color: var(--slate);
  max-width: 42ch;
}

.biz-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}

/* About visual */
.about-visual {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: #0e1116;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0.9;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(239, 64, 54, 0.25), transparent 55%);
  pointer-events: none;
}

.stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-left: 3px solid var(--brand-orange);
  background: rgba(243, 105, 13, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.news-item {
  display: grid;
  gap: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 3px solid var(--brand);
  padding-top: 1.25rem;
}

.news-date {
  display: flex;
  flex-direction: column;
  width: fit-content;
  padding: 0.55rem 0.7rem;
  background: var(--ink);
  color: #fff;
  text-align: center;
  line-height: 1.1;
}

.news-date .day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.news-date .mon {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.news-item h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.news-item p {
  color: var(--slate);
  font-size: 0.95rem;
}

.news-item a.more {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

/* News list page */
.news-feed {
  display: grid;
  gap: 2rem;
}

.news-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.news-row img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.news-row h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Investors / governance lists */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-list li {
  border-bottom: 1px solid var(--line);
}

.doc-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease), padding 0.2s var(--ease);
}

.doc-list a:hover {
  color: var(--brand);
  padding-left: 0.4rem;
}

.doc-list .meta {
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.ir-desk {
  display: grid;
  grid-template-columns: minmax(12rem, 15.5rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.ir-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.ir-nav-btn {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.ir-nav-btn:hover {
  color: var(--brand);
  background: rgba(243, 105, 13, 0.06);
}

.ir-nav-btn.is-active {
  color: var(--brand);
  border-left-color: var(--brand-orange);
  background: rgba(243, 105, 13, 0.08);
  font-weight: 500;
}

.ir-panel {
  min-height: 22rem;
}

.ir-panel h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0 0 0.35rem;
}

.ir-panel p {
  color: var(--slate);
  max-width: 62ch;
}

.ir-status {
  color: var(--slate);
}

.ir-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.ir-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.ir-asof {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--slate);
}

.ir-doc-title {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
}

.ir-viewer {
  background:
    linear-gradient(180deg, rgba(52, 71, 103, 0.04), transparent 28%),
    #eef0f3;
  border: 1px solid var(--line);
  overflow: hidden;
}

.ir-pdf {
  width: 100%;
  height: min(74vh, 54rem);
  border: 0;
  display: block;
  background: #eef0f3;
}

.ir-pdf-compact {
  height: min(68vh, 48rem);
}

.ir-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ir-table th,
.ir-table td {
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ir-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}

.ir-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

.ir-docs-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
}

.ir-doc-rail {
  max-height: min(68vh, 48rem);
  overflow: auto;
  padding-right: 0.25rem;
}

.ir-rail-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.ir-year-group + .ir-year-group {
  margin-top: 1.15rem;
}

.ir-year {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.ir-doc-picker {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ir-doc-btn {
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 0.7rem 0.15rem;
  font: inherit;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s var(--ease), padding 0.2s var(--ease);
}

.ir-doc-btn-text {
  font-size: 0.9rem;
  line-height: 1.35;
}

.ir-doc-btn-meta {
  flex-shrink: 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.ir-doc-btn:hover:not(:disabled) {
  color: var(--brand);
  padding-left: 0.25rem;
}

.ir-doc-btn:hover:not(:disabled) .ir-doc-btn-meta {
  opacity: 1;
}

.ir-doc-btn.is-active {
  color: var(--brand);
  font-weight: 500;
}

.ir-doc-btn.is-active .ir-doc-btn-meta {
  opacity: 1;
  color: var(--brand);
}

.ir-doc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ir-empty {
  margin: 0;
  padding: 2rem 0;
  color: var(--slate);
}

.ir-price-frame-wrap {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  min-height: 28rem;
}

.ir-price-frame {
  width: 100%;
  height: min(70vh, 40rem);
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .ir-desk {
    grid-template-columns: 1fr;
  }

  .ir-nav {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .ir-nav-btn {
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding: 0.65rem 0.8rem;
    font-size: 0.88rem;
  }

  .ir-nav-btn.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--brand-orange);
  }

  .ir-docs-layout {
    grid-template-columns: 1fr;
  }

  .ir-doc-rail {
    max-height: 14rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
  }
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

.policy-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.policy-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.policy-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  padding: 0.4rem 0.75rem;
  background: rgba(243, 105, 13, 0.1);
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.form {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(243, 105, 13, 0.15);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-item h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-item p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.map-frame {
  margin-top: 0.5rem;
  overflow: hidden;
  border: 0;
  min-height: 220px;
  background: #dfe3e8;
}

.map-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background:
    linear-gradient(120deg, #ef4036 0%, #f3690d 55%, #ff8f4a 100%);
  color: #fff;
  padding: 2.75rem 0 1.75rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.footer-brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.copyright {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sidebar layout for about */
.with-side {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 0.15rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.side-nav a {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: var(--slate);
  border-left: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--brand);
  border-left-color: var(--brand-orange);
  background: rgba(243, 105, 13, 0.06);
}

/* News list page */
.news-toolbar {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
}

.news-toolbar .field {
  margin: 0;
}

.news-toolbar select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.news-toolbar select:focus,
.news-toolbar input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(243, 105, 13, 0.15);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.news-meta p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.news-meta .btn {
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
}

.news-empty {
  padding: 2rem 0;
  color: var(--slate);
}

.news-row h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.article-section {
  padding-top: calc(var(--header-h) + 2rem);
}

.article-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}

.article-back:hover {
  text-decoration: underline;
}

.article-status {
  color: var(--slate);
}

.article-view {
  max-width: 760px;
}

.article-meta {
  margin-bottom: 0.75rem;
}

.article-date {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-view h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.article-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  background: #e8ecef;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1.15rem;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.page-status {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.page-btn {
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.page-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--brand-orange);
  color: var(--brand);
}

.page-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-nav {
  min-width: auto;
  padding-inline: 0.9rem;
}

.page-ellipsis {
  padding: 0 0.2rem;
  color: var(--slate);
}

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(18, 20, 23, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 0;
    gap: 0.15rem;
  }

  .nav.is-open {
    display: flex;
  }

  .site-header.is-scrolled .nav,
  .site-header.theme-light .nav {
    background: rgba(245, 247, 249, 0.98);
  }

  .nav-link {
    padding: 0.9rem 0.75rem;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.01em;
  }

  .nav-link::after {
    left: 0.75rem;
    right: auto;
    width: 1.25rem;
    bottom: 0.55rem;
  }

  .site-header.is-scrolled .nav-link,
  .site-header.theme-light .nav-link {
    color: var(--ink);
  }
}

@media (max-width: 960px) {
  .split,
  .mission-grid,
  .news-grid,
  .contact-grid,
  .policy-grid,
  .with-side {
    grid-template-columns: 1fr;
  }

  .biz-item {
    grid-template-columns: 120px 1fr;
  }

  .biz-link {
    grid-column: 2;
  }

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

  .news-row img {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 640px) {
  .biz-item {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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