/* WordPress-specific additions on top of site.css. */

[hidden] { display: none !important; }

/* Hero: one or more slides. */
.hero { display: block; }
.hero__slide {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  min-height: min(calc(100dvh - var(--gc-header) - 120px), 700px);
}
.hero__slide > * { min-width: 0; }
.hero--slider .hero__slide.is-active { animation: gc-fade 0.6s ease both; }
@keyframes gc-fade { from { opacity: 0; } to { opacity: 1; } }
.hero__media--photo {
  border-radius: var(--gc-radius); overflow: hidden; background: #dfe8f1;
  box-shadow: 0 30px 60px -36px rgba(15, 31, 46, 0.45);
}
.hero__media--photo::before { display: none; }
.hero__media--photo img { width: 100%; height: auto; max-height: min(68dvh, 620px); object-fit: cover; filter: none; }
.hero__controls { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.hero__dots { display: flex; gap: 6px; }
.hero__dot {
  width: 44px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; position: relative;
}
.hero__dot::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%;
  background: #b9c8d6; transition: width 0.25s ease, background-color 0.25s ease;
}
.hero__dot[aria-current="true"]::after { width: 26px; border-radius: 6px; background: var(--gc-blue); }

/* Header extras. */
.site-header__wa {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: #075e54; color: var(--gc-white) !important; flex: none;
}
.site-header__logo img { max-height: 40px; width: auto; }
.mobile-nav > a { display: flex; }

/* Service: WhatsApp button and centers with details. */
.cta-wa {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px;
  background: #075e54; color: var(--gc-white) !important; font-weight: 700;
}
.cities li { flex-direction: column; align-items: flex-start; gap: 4px; }
.cities__name { font-weight: 600; }
.cities__card .cities__name { color: var(--gc-ink); }
.cities__details { display: grid; gap: 2px; font-weight: 400; font-size: 0.95rem; color: var(--gc-slate); }
.cities__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.cities__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gc-blue); font-weight: 600; }

/* Brand names when a logo is missing. */
.brands__more span { pointer-events: none; }

/* Pages, posts and the block editor content. */
main.gc-page { max-width: var(--gc-wrap); margin-inline: auto; padding: clamp(40px, 5vw, 72px) var(--gc-pad) var(--gc-section); }
.gc-page__head { max-width: 860px; margin-bottom: 32px; }
.gc-page__title { margin: 0; font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
html[dir="rtl"] .gc-page__title { line-height: 1.3; font-weight: 700; }
.gc-page__lede { margin: 16px 0 0; color: var(--gc-slate); font-size: 1.12rem; max-width: 60ch; }
.gc-page__cover { margin: 0 0 40px; border-radius: var(--gc-radius); overflow: hidden; }
.gc-page__cover img { width: 100%; height: auto; display: block; }

.gc-prose { max-width: 760px; }
.gc-prose--tight { margin-top: 18px; }
.gc-prose > * + * { margin-top: 1.1em; }
.gc-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin-top: 1.8em; }
.gc-prose h3 { font-size: 1.35rem; margin-top: 1.5em; }
.gc-prose p, .gc-prose li { color: #2c3e50; }
.gc-prose a { color: var(--gc-blue); text-decoration: underline !important; text-underline-offset: 3px; }
.gc-prose img { border-radius: var(--gc-radius); height: auto; }
.gc-prose .alignwide { max-width: calc(var(--gc-wrap) - 2 * var(--gc-pad)); width: calc(100vw - 2 * var(--gc-pad)); margin-inline: calc(50% - min(50vw - var(--gc-pad), (var(--gc-wrap) - 2 * var(--gc-pad)) / 2)); }
.gc-prose .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.gc-prose .alignfull img { border-radius: 0; }
.gc-prose .wp-block-columns { gap: clamp(20px, 4vw, 48px); }
.gc-prose .wp-block-image figcaption { color: var(--gc-slate); font-size: 0.92rem; }
.gc-prose .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 12px;
  background: var(--gc-blue); color: var(--gc-white) !important; font-weight: 700; text-decoration: none !important;
}
.gc-prose .wp-block-button__link:hover { background: var(--gc-blue-deep); }
.gc-prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--gc-blue) !important; border: 1px solid var(--gc-blue); }
.gc-prose .is-style-gc-light .wp-block-button__link { background: var(--gc-white); color: var(--gc-blue) !important; }
.gc-prose .wp-block-details { border: 1px solid var(--gc-line); border-radius: 12px; background: var(--gc-white); padding: 0 18px; }
.gc-prose .wp-block-details summary { min-height: 52px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.gc-prose .wp-block-details[open] { padding-bottom: 14px; }
.gc-prose .wp-block-quote { border-inline-start: 3px solid var(--gc-blue); padding-inline-start: 18px; margin-inline: 0; }
.gc-prose table { width: 100%; border-collapse: collapse; background: var(--gc-white); }
.gc-prose th, .gc-prose td { border: 1px solid var(--gc-line); padding: 10px 12px; text-align: start; }

/* Block styles offered in the editor. */
.is-style-gc-band {
  background: var(--gc-blue); color: var(--gc-white); border-radius: var(--gc-radius); padding: clamp(28px, 4vw, 48px);
}
.is-style-gc-band h2, .is-style-gc-band h3, .is-style-gc-band p, .is-style-gc-band li { color: var(--gc-white); }
.is-style-gc-band a:not(.wp-block-button__link) { color: var(--gc-white); }
.is-style-gc-card {
  background: var(--gc-white); border: 1px solid var(--gc-line); border-radius: var(--gc-radius); padding: 24px;
}
.is-style-gc-card > *:first-child { margin-top: 0; }

/* News list. */
.gc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gc-card { background: var(--gc-white); border: 1px solid var(--gc-line); border-radius: var(--gc-radius); overflow: hidden; }
.gc-card__link { display: block; height: 100%; }
.gc-card__link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gc-card__body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.gc-card__date { color: var(--gc-slate); font-size: 0.9rem; }
.gc-card__title { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.gc-card__text { color: var(--gc-slate); }
.gc-card__link:hover .gc-card__title { color: var(--gc-blue); }
.gc-pagination { margin-top: 32px; }
.gc-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.gc-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--gc-line); background: var(--gc-white); }
.gc-pagination .current { background: var(--gc-blue); color: var(--gc-white); border-color: var(--gc-blue); }

/* About Genetco page. */
.values__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.values__actions .values__cta { margin-top: 0; }
.about-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-intro .gc-page__title { margin-bottom: 8px; }
.about-intro__media { margin: 0; border-radius: var(--gc-radius); overflow: hidden; background: #dfe8f1; box-shadow: 0 30px 60px -36px rgba(15, 31, 46, 0.45); }
.about-intro__media img { width: 100%; height: auto; display: block; }
main.gc-about > section.about-facts { padding-block: 0; }
.facts--row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 24px 28px; background: var(--gc-white); border: 1px solid var(--gc-line); border-radius: var(--gc-radius); }
.facts--row div { margin: 0; }
.facts--row dt { font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--gc-blue); }
.facts--row dd { margin: 6px 0 0; color: var(--gc-slate); }
.commit__grid, .covers__grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.commit__grid li, .covers__grid li { background: var(--gc-white); border: 1px solid var(--gc-line); border-radius: var(--gc-radius); padding: 24px; }
.commit__grid h3, .covers__grid h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.25; }
.commit__grid p, .covers__grid p { margin: 0; color: var(--gc-slate); }
.commit__num { display: block; margin-bottom: 14px; font-family: var(--gc-label); font-size: 0.875rem; letter-spacing: 0.1em; color: var(--gc-blue); }
.people__head { max-width: 760px; margin-bottom: 28px; }
.people__lede { margin: 12px 0 0; color: var(--gc-slate); font-size: 1.08rem; }
.people__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.person { background: var(--gc-white); border: 1px solid var(--gc-line); border-radius: var(--gc-radius); padding: 18px 18px 22px; text-align: center; position: relative; }
.person__photo { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: #e4ecf4; display: grid; place-items: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { font-weight: 700; font-size: 2rem; color: var(--gc-blue); letter-spacing: 0.02em; }
.person__name { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.person__role { margin: 6px 0 0; color: var(--gc-slate); font-size: 0.95rem; line-height: 1.4; }
.person__bio { margin: 10px 0 0; color: var(--gc-slate); font-size: 0.92rem; }
.person__link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 6px; color: var(--gc-blue); }
.about-cta__band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(28px, 4vw, 48px); border-radius: var(--gc-radius); background: var(--gc-blue); color: var(--gc-white); }
.about-cta__band h2 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.15; }
.about-cta__band p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.85); max-width: 56ch; }
.cta-hero--light { background: var(--gc-white) !important; color: var(--gc-blue) !important; }
.cta-hero--light .cta-hero__star { color: var(--gc-blue); }

/* Vendor form anchor sits under the sticky header. */
#vendor-form { scroll-margin-top: calc(var(--gc-header) + 16px); }

@media (max-width: 1160px) {
  .site-header__wa { display: inline-flex; }
}
@media (max-width: 1100px) {
  .people__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__slide { grid-template-columns: 1fr; min-height: auto; }
  .about-intro { grid-template-columns: 1fr; }
  .about-intro__media { max-width: 560px; }
  .facts--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commit__grid, .covers__grid { grid-template-columns: 1fr 1fr; }
  .gc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gc-cards { grid-template-columns: 1fr; }
  .people__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person { padding: 14px 10px 18px; }
  .person__photo { width: 88px; height: 88px; }
  .facts--row { grid-template-columns: 1fr 1fr; padding: 18px; }
  .commit__grid, .covers__grid { grid-template-columns: 1fr; }
  .site-header__call span { display: none; }
  .site-header__call { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--slider .hero__slide.is-active { animation: none; }
}
