@charset "UTF-8";
/**
 * CYN sub-page shell.
 *
 * Loaded after style.css so it can lean on the brand tokens the landing page
 * already defines (--brand-primary, --brand-accent) instead of restating
 * colours, and so a sub-page reads as the same site as home: Phudu uppercase
 * section titles, a gold rule above each one, navy bands between white ones.
 *
 *  1. Shared page hero
 *  2. Section scaffolding
 *  3. Cards: service, value, news, person
 *  4. Timeline, steps, stats, FAQ
 *  5. Detail layouts (service, post)
 *  6. Contact
 *  7. Pagination, filters, small parts
 *  8. Responsive
 */

:root {
  --cyn-ink: #102129;
  --cyn-muted: #6d7e84;
  --cyn-line: rgba(16, 33, 41, 0.12);
  --cyn-surface: #f4f6f8;
  --cyn-display: "Phudu", "Manrope", sans-serif;
  --cyn-ui: "Manrope", sans-serif;
  --cyn-hero-min: 420px;
}

/* ------------------------------------------------------------------ 1. Hero */

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--cyn-hero-min);
  padding: 90px 0;
  background-color: var(--brand-primary);
  isolation: isolate;
}

.page-hero--compact {
  --cyn-hero-min: 320px;
  padding: 64px 0;
}

/* Only the photo clips. The text block stays unclipped: an admin can empty a
   region, and the reveal control then needs room to give it a box back. */
.page-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navy at the text edge, fading out so the photo still reads on the right. */
.page-hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(16, 33, 41, 0.94) 0%,
    rgba(18, 38, 58, 0.86) 34%,
    rgba(28, 53, 82, 0.5) 68%,
    rgba(28, 53, 82, 0.2) 100%
  );
}

.page-hero__inner {
  position: relative;
  width: 100%;
}

.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 14px;
  color: var(--brand-accent);
  font-family: var(--cyn-ui);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero__eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

.page-hero__title {
  margin: 0;
  max-width: 900px;
  color: #fff;
  font-family: var(--text-font-family);
  font-size: clamp(2.2rem, 4.6vw, 4.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.page-hero__desc {
  margin: 20px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.page-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-hero__crumbs a { color: rgba(255, 255, 255, 0.82); }
.page-hero__crumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero__crumbs i { font-size: 0.7em; opacity: 0.6; }
.page-hero__crumbs span[aria-current] { color: var(--brand-accent); }

/* -------------------------------------------------------- 2. Section shell */

.cyn-page-section {
  padding: 78px 0;
  background: #fff;
}

.cyn-page-section--tint { background: var(--cyn-surface); }

.cyn-page-section--navy {
  background: var(--brand-primary);
  color: rgba(255, 255, 255, 0.78);
}

.cyn-page-section--navy h2,
.cyn-page-section--navy h3,
.cyn-page-section--navy h4 { color: #fff; }

.cyn-page-head {
  max-width: 780px;
  margin-bottom: 46px;
}

.cyn-page-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cyn-page-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  max-width: none;
}

.cyn-page-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--brand-accent);
  font-family: var(--cyn-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cyn-page-head--center .cyn-page-eyebrow { justify-content: center; }

.cyn-page-eyebrow::before {
  content: "";
  /* Animatable: cyn-motion.js grows this from 0 when the eyebrow scrolls in.
     A pseudo-element cannot be tweened directly, a custom property can. */
  width: var(--cyn-rule-w, 1.7rem);
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}

/* Letter boxes built by cyn-motion.js. The word is the clipping frame; the
   padding/margin pair keeps Vietnamese descenders and marks (ệ, ạ, ữ) from
   being cropped by that clip. */
.cyn-word {
  display: inline-block;
  overflow: hidden;
  padding: 0.14em 0 0.2em;
  margin: -0.14em 0 -0.2em;
  vertical-align: top;
}

.cyn-char {
  display: inline-block;
  will-change: transform;
}

/*
 * The theme spaces the label inside a bold section title with
 * `.section-title.section-title-bold span { padding: 0 20px 0 0 }`. That rule
 * matches *any* span in there, so once a title is split into per-letter spans
 * every letter got 20px of padding — which is what pushed "HÌNH ẢNH CÔNG TY"
 * apart and wrapped it onto two lines. Same selector weight plus the class, so
 * this wins; the word keeps its vertical padding for Vietnamese descenders.
 */
.section-title.section-title-bold span.cyn-word {
  padding: 0.14em 0 0.2em;
}

.section-title.section-title-bold span.cyn-char {
  padding: 0;
}

.cyn-page-title {
  margin: 0;
  color: var(--brand-primary);
  font-family: var(--cyn-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cyn-page-title .cyn-title-accent {
  color: var(--brand-accent);
}

.cyn-page-section--navy .cyn-page-title { color: #fff; }
.cyn-page-section--navy .cyn-page-title .cyn-title-accent { color: var(--brand-accent); }

.cyn-page-lead {
  margin: 16px 0 0;
  font-size: 1.0625rem;
  line-height: 1.8;
}

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

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

.cyn-media-frame {
  position: relative;
  border-radius: 0 0 48px 0;
  overflow: hidden;
}

.cyn-media-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ------------------------------------------------------------- 2.1 About Showcase */

.cyn-about-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
  align-items: center;
}

.cyn-about-visual {
  position: relative;
  width: 100%;
  padding-left: 28px;
  padding-bottom: 35px;
}

.cyn-about-photo-frame {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 33, 41, 0.09);
  background: #e2e8ea;
}

.cyn-about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.cyn-about-visual:hover .cyn-about-photo-frame img {
  transform: scale(1.03);
}

/* Trapezoid badge: slanted parallelogram in website primary color */
.cyn-about-trapezoid-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 560px;
  filter: drop-shadow(0 14px 28px rgba(16, 33, 41, 0.24));
  z-index: 3;
}

.cyn-about-trapezoid {
  background: var(--brand-primary);
  /* Slanted parallelogram matching reference image */
  clip-path: polygon(42px 0%, 100% 0%, calc(100% - 42px) 100%, 0% 100%);
  padding: 24px 50px 24px 55px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
}

.cyn-about-badge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  position: relative;
  padding: 0 8px;
}

.cyn-about-badge:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.cyn-about-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1;
  transition: transform 0.25s ease, color 0.2s ease;
}

.cyn-about-badge:hover .cyn-about-badge__icon {
  transform: translateY(-3px);
  color: var(--brand-accent);
}

.cyn-about-badge__title {
  display: block;
  font-family: var(--cyn-ui);
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.cyn-about-badge__sub {
  display: block;
  font-family: var(--cyn-ui);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1.2;
}

.cyn-about-content {
  display: flex;
  flex-direction: column;
}

.cyn-about-content .cyn-page-eyebrow {
  margin-bottom: 0.8rem;
}

.cyn-about-content .cyn-page-title {
  margin-bottom: 1.35rem;
}

.cyn-about-content p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.cyn-about-content .cyn-checklist {
  margin: 0.8rem 0 1.6rem;
}

.cyn-about-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Buttons: disable uppercase and align icons */
.button,
button.button,
a.button,
.cyn-about-btn {
  text-transform: none !important;
}

.cyn-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: normal;
}

.cyn-about-btn i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.cyn-about-btn:hover i {
  transform: translateX(4px);
}

.cyn-about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-primary);
  font-family: var(--cyn-ui);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cyn-about-link i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.cyn-about-link:hover {
  color: var(--brand-accent);
}

.cyn-about-link:hover i {
  transform: translateX(4px);
}

/* ------------------------------------------------------------- 3. Cards */

[data-project-grid] {
  gap: 10px !important;
}

@media (max-width: 768px) {
  [data-project-grid] {
    gap: 20px !important;
  }
}

.project-showcase-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-showcase-card:hover .project-showcase-card__location i.fa-arrow-right {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}

.cyn-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
  border-radius: 12px;
  overflow: visible;
  position: relative;
  transition: transform 0.25s ease;
}

.cyn-card__media {
  margin: 0;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8ea;
}

.cyn-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.cyn-card:hover .cyn-card__media img {
  transform: scale(1.05);
}

.cyn-card__body {
  position: relative;
  z-index: 2;
  margin-top: -55px;
  margin-right: 18px;
  background: #ffffff;
  border-radius: 10px;
  padding: 1.4rem 1.25rem 1.25rem;
  box-shadow: 0 4px 20px rgba(16, 33, 41, 0.05);
  display: flex;
  flex-direction: column;
  flex: 1;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cyn-card:hover .cyn-card__body {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(16, 33, 41, 0.09);
}

@media (max-width: 768px) {
  .cyn-card__body {
    margin-right: 12px;
    margin-top: -45px;
  }
}

.cyn-card__title {
  margin: 0 0 0.55rem;
  color: #111827;
  font-family: var(--cyn-ui);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.7em;
}

.cyn-card__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cyn-card:hover .cyn-card__title a {
  color: var(--brand-primary);
}

.cyn-card__meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.cyn-card__meta {
  color: var(--brand-accent);
  font-family: var(--cyn-ui);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: normal;
  text-transform: none;
}

.cyn-card__meta::before {
  display: none;
}

.cyn-card__meta-line {
  flex: 1;
  height: 1px;
  background: rgba(163, 131, 84, 0.35);
}

.cyn-card__text {
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.65em;
}

.cyn-card__foot {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.25rem;
  border-top: none;
}

.cyn-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #111827;
  font-family: var(--cyn-ui);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: none;
  transition: color 0.2s ease;
}

.cyn-card__more i {
  font-size: 1.1rem;
  color: #111827;
  transition: transform 0.25s ease, color 0.2s ease;
}

.cyn-card:hover .cyn-card__more {
  color: var(--brand-primary);
}

.cyn-card:hover .cyn-card__more i {
  transform: translateX(4px);
  color: var(--brand-primary);
}

.cyn-value {
  height: 100%;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--cyn-line);
  border-radius: 0 0 36px 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.cyn-value:hover { border-color: var(--brand-accent); transform: translateY(-4px); }

.cyn-value__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: rgba(163, 131, 84, 0.14);
  color: var(--brand-accent);
  font-size: 1.25rem;
}

.cyn-value h3 {
  margin: 0 0 0.6rem;
  color: var(--cyn-ink);
  font-family: var(--cyn-ui);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.cyn-value p { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--cyn-muted); }

/* A card that is itself a link (phone, e-mail) must not inherit the theme's
   blue link colour for the value it prints. */
a.cyn-value p { color: var(--brand-accent); font-weight: 700; }
a.cyn-value:hover p { color: var(--brand-primary); }

.cyn-person { height: 100%; }

.cyn-person__photo {
  margin: 0 0 1.1rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0 0 36px 0;
  background: #e2e8ea;
}

.cyn-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cyn-person h3 {
  margin: 0 0 0.25rem;
  color: var(--cyn-ink);
  font-family: var(--cyn-ui);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cyn-person__role {
  margin: 0 0 0.6rem;
  color: var(--brand-accent);
  font-family: var(--cyn-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cyn-person p { margin: 0; font-size: 0.9rem; line-height: 1.7; }

/* ------------------------------------- 4. Timeline, steps, stats, FAQ */

.cyn-timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  padding-left: 2rem;
}

.cyn-page-section:not(.cyn-page-section--navy) .cyn-timeline {
  border-left-color: var(--cyn-line);
}

.cyn-timeline__item { position: relative; padding: 0 0 2.2rem; }
.cyn-timeline__item:last-child { padding-bottom: 0; }

.cyn-timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.cyn-timeline__year {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--brand-accent);
  font-family: var(--cyn-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.cyn-timeline__item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--cyn-ui);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cyn-timeline__item p { margin: 0; font-size: 0.9375rem; line-height: 1.75; }

.cyn-steps { counter-reset: cyn-step; }

.cyn-step {
  position: relative;
  height: 100%;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--cyn-line);
  border-radius: 0 0 36px 0;
}

.cyn-page-section--navy .cyn-step {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.cyn-step__number {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--brand-accent);
  font-family: var(--cyn-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.cyn-step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--cyn-ui);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cyn-step p { margin: 0; font-size: 0.9375rem; line-height: 1.7; }

.cyn-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.cyn-stat { padding: 0.5rem 1.4rem; border-left: 2px solid rgba(255, 255, 255, 0.2); }

.cyn-page-section:not(.cyn-page-section--navy) .cyn-stat { border-left-color: var(--cyn-line); }

.cyn-stat__value {
  display: block;
  color: #fff;
  font-family: var(--cyn-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.cyn-page-section:not(.cyn-page-section--navy) .cyn-stat__value { color: var(--brand-primary); }

.cyn-stat__label { display: block; margin-top: 0.7rem; font-size: 0.9375rem; line-height: 1.6; }

.cyn-faq-list { border-top: 1px solid var(--cyn-line); }

.cyn-faq-list .accordion-item { border-bottom: 1px solid var(--cyn-line); }

.cyn-faq-list .accordion-title {
  position: relative;
  display: block;
  padding: 1.15rem 3rem 1.15rem 0;
  color: var(--cyn-ink);
  font-family: var(--cyn-ui);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.cyn-faq-list .accordion-title::after {
  content: "\f067";
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-accent);
  font-size: 0.85rem;
}

.cyn-faq-list .accordion-title.active::after { content: "\f068"; }

.cyn-faq-list .accordion-inner {
  padding: 0 3rem 1.3rem 0;
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* --------------------------------------------------- 5. Detail layouts */

.cyn-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 52px;
  align-items: start;
}

.cyn-detail__body { font-size: 1rem; line-height: 1.85; }

.cyn-detail__body h2 {
  margin: 2.4rem 0 1rem;
  color: var(--cyn-ink);
  font-family: var(--cyn-display);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.cyn-detail__body h2:first-child { margin-top: 0; }

.cyn-detail__body h3 {
  margin: 1.8rem 0 0.7rem;
  font-family: var(--cyn-ui);
  font-size: 1.15rem;
  font-weight: 800;
}

.cyn-detail__body img { max-width: 100%; height: auto; }
.cyn-detail__body ul { margin: 0 0 1.4rem 1.1rem; }
.cyn-detail__body ul li { margin-bottom: 0.55rem; }

.cyn-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.9375rem; }

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

.cyn-table th {
  background: var(--cyn-surface);
  color: var(--cyn-ink);
  font-family: var(--cyn-ui);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.cyn-aside { position: sticky; top: 24px; }

.cyn-aside__card {
  padding: 1.75rem 1.6rem;
  margin-bottom: 1.6rem;
  background: var(--cyn-surface);
  border-radius: 0 0 36px 0;
}

.cyn-aside__card--cta {
  background: var(--brand-primary);
  color: rgba(255, 255, 255, 0.82);
}

.cyn-aside__card h4 {
  margin: 0 0 1.1rem;
  color: var(--cyn-ink);
  font-family: var(--cyn-ui);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cyn-aside__card--cta h4 { color: var(--brand-accent); }
.cyn-aside__card--cta strong a { color: #fff; }
.cyn-aside__card--cta strong a:hover { color: var(--brand-accent); }

/* A navy button on a navy panel disappears; the gold accent carries the
   call to action instead. */
.cyn-aside__card--cta .button.primary,
.cyn-page-section--navy .button.primary {
  background-color: var(--brand-accent) !important;
  border-color: var(--brand-accent) !important;
  color: #fff !important;
}

.cyn-aside__card--cta .button.primary:hover,
.cyn-page-section--navy .button.primary:hover {
  background-color: #fff !important;
  border-color: #fff !important;
  color: var(--brand-primary) !important;
}

.cyn-aside__list { margin: 0; padding: 0; list-style: none; }
.cyn-aside__list li + li { margin-top: 8px; }

.cyn-aside__list a {
  display: block;
  padding: 0.8rem 1rem;
  background: #fff;
  color: var(--cyn-ink);
  font-family: var(--cyn-ui);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cyn-aside__list a:hover,
.cyn-aside__list li.is-current a { background: var(--brand-primary); color: #fff; }

.cyn-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--cyn-line);
  font-size: 0.875rem;
  color: var(--cyn-muted);
}

.cyn-post-meta i { color: var(--brand-accent); margin-right: 0.4rem; }

/* ------------------------------------------------------------ 6. Contact */

.cyn-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 52px;
  align-items: start;
}

.cyn-contact-line {
  display: flex;
  gap: 1.1rem;
  padding: 1.2rem 0;
  border-bottom: 1px dashed var(--cyn-line);
}

.cyn-contact-line i {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(163, 131, 84, 0.14);
  color: var(--brand-accent);
}

.cyn-contact-line__label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--cyn-ink);
  font-family: var(--cyn-ui);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cyn-form {
  padding: 2.4rem;
  background: var(--cyn-surface);
  border-radius: 0 0 48px 0;
}

.cyn-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.1rem;
}

.cyn-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cyn-ink);
  font-family: var(--cyn-ui);
  font-size: 0.82rem;
  font-weight: 700;
}

.cyn-form input,
.cyn-form textarea,
.cyn-form select {
  width: 100%;
  background: #fff;
  border-color: var(--cyn-line);
  box-shadow: none;
}

.cyn-form .field-error {
  display: none;
  margin: -0.9rem 0 0.9rem;
  color: var(--fs-color-alert);
  font-size: 0.8125rem;
}

.cyn-form .field-error.is-visible { display: block; }

.cyn-form__notice {
  display: none;
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border-left: 3px solid var(--brand-accent);
  font-size: 0.9375rem;
}

.cyn-form__notice.is-visible { display: block; }
.cyn-form__notice.is-error { border-left-color: var(--fs-color-alert); }

.cyn-map { line-height: 0; }
.cyn-map iframe { width: 100%; height: 440px; border: 0; }

/* --------------------------------------- 7. Pagination, filters, parts */

.cyn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}

.cyn-filter {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--cyn-line);
  background: #fff;
  color: var(--cyn-ink);
  font-family: var(--cyn-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cyn-filter:hover { border-color: var(--brand-accent); color: var(--brand-primary); }

.cyn-filter.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* Archive layout: card grid on the left, category rail on the right. */
.cyn-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  align-items: start;
}

.cyn-archive__main { min-width: 0; }

/* The rail stacks the same filter chips vertically, so the click handler
   and the .is-active state stay exactly as they were. */
.cyn-filters--stack {
  display: block;
  margin-bottom: 0;
}

.cyn-filters--stack .cyn-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  background: #fff;
  text-align: left;
  text-transform: none;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.cyn-filters--stack .cyn-filter + .cyn-filter { margin-top: 8px; }

.cyn-filters--stack .cyn-filter em {
  flex: none;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyn-muted);
}

.cyn-filters--stack .cyn-filter:hover {
  background: var(--cyn-surface);
  color: var(--brand-primary);
}

.cyn-filters--stack .cyn-filter.is-active,
.cyn-filters--stack .cyn-filter.is-active:hover {
  background: var(--brand-primary);
  color: #fff;
}

.cyn-filters--stack .cyn-filter.is-active em { color: var(--brand-accent); }

.cyn-pagination { margin-top: 3rem; }

.cyn-pagination .pagination,
.cyn-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cyn-pagination .page-link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--cyn-line);
  color: var(--cyn-ink);
  font-family: var(--cyn-ui);
  font-weight: 700;
}

.cyn-pagination .active .page-link,
.cyn-pagination .page-link:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.cyn-pagination .disabled .page-link,
.cyn-pagination .disabled .page-link:hover {
  background: transparent;
  border-color: var(--cyn-line);
  color: var(--cyn-muted);
  opacity: 0.55;
  cursor: default;
}

.cyn-empty { padding: 4rem 0; text-align: center; color: var(--cyn-muted); }

.cyn-cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
}

.cyn-cta-band__copy { max-width: 640px; }

.cyn-checklist { margin: 0; padding: 0; list-style: none; }

.cyn-checklist li {
  position: relative;
  padding: 0 0 0.85rem 1.85rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.cyn-checklist li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--brand-accent);
  font-size: 0.8rem;
}

/* ------------------------------------------------------------ 8. Responsive */

@media (max-width: 1024px) {
  .cyn-detail,
  .cyn-archive,
  .cyn-contact-layout,
  .cyn-split,
  .cyn-page-head--split { grid-template-columns: minmax(0, 1fr); }
  .cyn-page-head--split { align-items: start; }
  .cyn-aside { position: static; }

  /* Stacked: the category rail goes back to a chip row above the cards. */
  .cyn-archive__side { order: -1; }
  .cyn-archive__side .cyn-aside__card--cta { display: none; }
  .cyn-filters--stack { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .cyn-filters--stack .cyn-filter { width: auto; }
  .cyn-filters--stack .cyn-filter + .cyn-filter { margin-top: 0; }

  .cyn-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cyn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { --cyn-hero-min: 340px; padding: 70px 0; }
  .cyn-page-title { font-size: 36px; }

  .cyn-about-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }
  .cyn-about-visual {
    padding-left: 20px;
    padding-bottom: 30px;
    max-width: 680px;
    margin: 0 auto;
  }
  .cyn-about-photo-frame {
    height: 440px;
  }
  .cyn-about-trapezoid {
    clip-path: polygon(32px 0%, 100% 0%, calc(100% - 32px) 100%, 0% 100%);
    padding: 20px 36px;
  }
}

@media (max-width: 767px) {
  .cyn-page-section { padding: 52px 0; }
  .cyn-page-head { margin-bottom: 32px; }
  .cyn-grid--3,
  .cyn-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .cyn-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .cyn-grid--2 .cyn-card__body {
    padding: 1.1rem 0.9rem;
    margin-right: 8px;
    margin-top: -36px;
  }
  .cyn-grid--2 .cyn-card__title {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  .cyn-grid--2 .cyn-card__text {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    min-height: auto;
    margin-bottom: 0.75rem;
  }
  .cyn-grid--2 .cyn-card__more {
    font-size: 0.8rem;
  }
  .cyn-stats { grid-template-columns: minmax(0, 1fr); }
  .cyn-form { padding: 1.5rem; }
  .cyn-form__row { grid-template-columns: minmax(0, 1fr); }
  .page-hero { --cyn-hero-min: 260px; padding: 52px 0; }
  .page-hero__wash {
    background: linear-gradient(90deg, rgba(16, 33, 41, 0.93) 0%, rgba(28, 53, 82, 0.8) 100%);
  }
  .page-hero__desc { font-size: 1rem; }
  .cyn-page-title { font-size: 28px; }
  .cyn-map iframe { height: 300px; }


  .cyn-about-showcase {
    gap: 3rem;
  }
  .cyn-about-visual {
    padding-left: 0;
    padding-bottom: 0;
    max-width: 100%;
  }
  .cyn-about-photo-frame {
    height: 330px;
  }
  .cyn-about-trapezoid-wrap {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: -24px;
    width: 100%;
    max-width: 100%;
  }
  .cyn-about-trapezoid {
    clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
    padding: 14px 18px;
    gap: 8px;
  }
  .cyn-about-badge__icon {
    font-size: 1.35rem;
    margin-bottom: 4px;
  }
  .cyn-about-badge__title {
    font-size: 0.7rem;
  }
  .cyn-about-badge__sub {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .cyn-about-photo-frame {
    height: 270px;
  }
  .cyn-about-trapezoid {
    clip-path: none;
    border-radius: 8px;
    padding: 14px 10px;
    gap: 6px;
  }
  .cyn-about-badge:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 420px) {
  .cyn-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------- 9. Sticky navigation */

/*
 * Slides down once the visitor has scrolled past the real header, and slides
 * back out at the top of the page. Hidden state is a transform, not display:
 * none, so it can animate and so its links stay out of the tab order only
 * while it is inert (pointer-events + aria-hidden do that job).
 */
.cyn-sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--brand-primary);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cyn-sticky-nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cyn-sticky-nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.cyn-sticky-nav__logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.cyn-sticky-nav__logo img { height: 38px; width: auto; display: block; }

.cyn-sticky-nav__menu { flex: 1 1 auto; }

.cyn-sticky-nav__menu ul {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* No gap and no margins between the top-level items: the padding inside each
   link is the spacing, so the hover target of one row touches the next and a
   submenu never opens through a dead gap. */
.cyn-sticky-nav__menu > ul > li { margin: 0; }
.cyn-sticky-nav__menu > ul > li > a { padding: 0 0.85rem; }

.cyn-sticky-nav__menu > ul > li { position: relative; }

.cyn-sticky-nav__menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--cyn-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 64px;
  transition: color 0.2s ease;
}

.cyn-sticky-nav__menu a:hover,
.cyn-sticky-nav__menu li.is-current > a { color: var(--brand-accent); }

.cyn-sticky-nav__menu i { font-size: 0.7em; }

/* Hover-opened submenu: no script, so it cannot fall out of step with the
   main navigation's own dropdown behaviour. */
.cyn-sticky-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  width: fit-content;
  min-width: 100%;
  white-space: nowrap;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.4rem 0;
  background: var(--brand-primary);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.cyn-sticky-nav__menu li.has-children:hover > .cyn-sticky-nav__sub,
.cyn-sticky-nav__menu li.has-children:focus-within > .cyn-sticky-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cyn-sticky-nav__sub a {
  display: block;
  padding: 0.55rem 1.1rem;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

/* margin-left:auto, not justify-content on the row: the menu between the logo
   and these actions is display:none on a phone, and with it gone the row's own
   spacing rule left the burger stranded in the middle of the bar. */
.cyn-sticky-nav__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
}

.cyn-sticky-nav__cta.button.primary {
  margin: 0;
  background-color: var(--brand-accent) !important;
  border-color: var(--brand-accent) !important;
  color: #fff !important;
  font-size: 0.8rem;
}

.cyn-sticky-nav__cta.button.primary:hover {
  background-color: #fff !important;
  border-color: #fff !important;
  color: var(--brand-primary) !important;
}

.cyn-sticky-nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 900px) {
  .cyn-sticky-nav__menu { display: none; }
  .cyn-sticky-nav__burger { display: inline-flex; }
  .cyn-sticky-nav__cta { display: none; }
  .cyn-sticky-nav__inner { justify-content: space-between; min-height: 56px; }
  .cyn-sticky-nav__logo img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .cyn-sticky-nav { transition: none; }
}

/* ------------------------------------------- 10. Navigation dropdowns */

/*
 * The theme ships a dropdown that inherits the menu's own centred, widely
 * spaced link styling, which reads as a list of banners rather than a menu.
 * These rules give it the shape people expect from a navigation panel: a
 * compact left-aligned list, one clear hover target per row, and a gold marker
 * showing which row the pointer is on.
 *
 * Scoped to the header so nothing else that uses .nav inherits it.
 */
/* `header#header .nav-dropdown` in matbaows-style.css sets a 20px block
   padding, and it outranks a plain `#header` selector — hence the same shape
   of selector here. */
header#header .nav-dropdown {
  width: 280px;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 18px 0;
  background: var(--brand-primary);
  box-shadow: 0 24px 44px -26px rgba(0, 0, 0, 0.85);
}

#header .nav-dropdown li {
  border: 0;
  text-align: left;
}

#header .nav-dropdown li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#header .nav-dropdown li > a {
  position: relative;
  display: block;
  margin: 0;
  padding: 11px 18px 11px 22px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--cyn-ui);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
}

/* The marker is a pseudo-element that grows, so the row itself never shifts
   and the text moves by a predictable amount. */
#header .nav-dropdown li > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 18px;
  background: var(--brand-accent);
  transform: translateY(-50%);
  transition: width 0.18s ease;
}

#header .nav-dropdown li > a:hover,
#header .nav-dropdown li.current-menu-item > a,
#header .nav-dropdown li.active > a {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding-left: 26px;
}

#header .nav-dropdown li > a:hover::before,
#header .nav-dropdown li.current-menu-item > a::before,
#header .nav-dropdown li.active > a::before {
  width: 3px;
}

/* The caret on a row that opens a further level. */
#header .nav-dropdown li.menu-item-has-children::before {
  right: 16px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8em;
}

#header .nav-dropdown ul.sub-menu {
  width: 260px;
  border-radius: 0 0 18px 0;
  box-shadow: 0 24px 44px -26px rgba(0, 0, 0, 0.85);
}

/* The sticky bar's own panel, kept in step with the one above. */
.cyn-sticky-nav__sub {
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 18px 0;
  box-shadow: 0 24px 44px -26px rgba(0, 0, 0, 0.85);
}

.cyn-sticky-nav__sub li + li { border-top: 1px solid rgba(255, 255, 255, 0.06); }

.cyn-sticky-nav__sub a {
  position: relative;
  padding: 11px 18px 11px 22px;
  font-size: 0.875rem;
  line-height: 1.35;
  transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
}

.cyn-sticky-nav__sub a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 18px;
  background: var(--brand-accent);
  transform: translateY(-50%);
  transition: width 0.18s ease;
}

.cyn-sticky-nav__sub a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding-left: 26px;
}

.cyn-sticky-nav__sub a:hover::before { width: 3px; }

@media (prefers-reduced-motion: reduce) {
  #header .nav-dropdown li > a,
  #header .nav-dropdown li > a::before,
  .cyn-sticky-nav__sub a,
  .cyn-sticky-nav__sub a::before { transition: none; }
}

/* --------------------------------------------- 11. Landing hero slider */

/*
 * The slide height used to come from per-id rules style.css writes for each
 * banner (#banner-821499234 { padding-top: 400px }). The slider now renders
 * from a loop, so the height has to belong to a class or every slide collapses
 * to the height of its text — which is what happened on phones.
 */
/*
 * !important and the flickity context, both deliberately: once flickity moves
 * a cell into .flickity-slider the theme zeroes its padding with !important of
 * its own, which is why the slides collapsed to 30px on a phone. A plain class
 * rule loses that fight.
 */
.cyn-hero-slide,
.flickity-slider > .cyn-hero-slide {
  padding-top: 400px !important;
}

@media (min-width: 850px) {
  .cyn-hero-slide,
  .flickity-slider > .cyn-hero-slide { padding-top: 500px !important; }
}

@media (max-width: 549px) {
  .cyn-hero-slide,
  .flickity-slider > .cyn-hero-slide { padding-top: 340px !important; }
}

/* Same widths the text box had by id: full width on a phone, then a column. */
.cyn-hero-slide__text { width: 100%; }
.cyn-hero-slide__text .text-inner { padding: 0 15px; }

@media (min-width: 550px) {
  .cyn-hero-slide__text { width: 55%; }
  .cyn-hero-slide__text .text-inner { padding: 0; }
}

@media (min-width: 850px) {
  .cyn-hero-slide__text { width: 41%; }
}
