/* =========================================================
   OFFICE SINGLE PAGE
   File: office-single.css
   ========================================================= */

.one-container .site-content {
  padding-bottom: 0px;
}

.site-main.office-single > section {
  max-width: var(--content-width);
  margin: auto;
  padding-inline: 16px;
}

.site-main.office-single > .mosaic-gallery-cmplx,
.site-main.office-single > .office-iframe-section {
  padding-inline: 0px;
}

.site-main.office-single > section.office-contact-form-section {
  max-width: 100%;
  padding-inline: 0;
}

/* ---------- HERO ---------- */
.site-main.office-single > .office-hero {
  max-width: none;
  position: relative;
  min-height: 80vh; /* adjust to taste (60–80vh) */
  background-size: auto;
  background-position: center 60%; /* map on the right */
  background-repeat: no-repeat;
  background-color: #000;

  display: flex;
  align-items: center; /* vertical center */
  justify-content: flex-start; /* content on the left */
  color: #fff;
}

.office-hero-overlay {
  width: 100%;
  padding: clamp(24px, 4vw, 64px);
}

.office-hero-inner {
  max-width: 70%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-align text */
}

.office-hero-title {
  font-size: 6rem;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
  font-weight: 700;
}

.office-hero-contacts {
  display: flex;
  flex-direction: column; /* stack like in your example */
  gap: 4px;
}

.office-hero-contacts a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
}

.office-hero-contacts a:hover {
  opacity: 1;
}

/* CTA button: same look and behaviour as single-product (opens contact modal) */
.office-hero-inner .btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 6px 18px;
  background: var(--global-color-blue);
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
}

.office-hero-inner .btn-orange:hover {
  color: #fff;
  background: var(--global-color-blue);
}

.office-hero-inner .btn-orange:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.office-hero-inner .btn-orange::after {
  content: "";
  width: 17px;
  height: 17px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(../images/chevron-right.svg);
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.office-hero-inner .btn-orange:hover::after {
  transform: translateX(3px);
}

.office-hero-flag img {
  max-width: 72px;
  margin-bottom: 12px;
}

/* ---------- BREADCRUMBS ---------- */
.office-breadcrumbs-wrapper {
  max-width: var(--content-width);
  margin: auto;
  padding-inline: 16px;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 10px;
}

/* ---------- TABS ---------- */
.office-text-tabs {
  padding: 0 24px;
}

.office-tabs-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.office-tabs-nav {
  position: relative;
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 3px;
}

.office-tab-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 8px 0;
  font-weight: 600;
  cursor: pointer;
  color: #666;
  position: relative;
  z-index: 2;
  min-width: 100px;
}

.office-tab-btn:hover {
  color: var(--global-color-blue);
}

.office-tab-btn.is-active {
  color: var(--global-color-blue);
}

.office-tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px; /* overlaps grey line */
  height: 2px;
  background: var(--global-color-blue);
  border-radius: 2px;
  z-index: 3; /* ensures it overlays the grey line */
}

.office-tabs-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0; /* sits exactly where the blue line is */
  height: 1px; /* slightly thinner than active line */
  background: #d5d7df; /* softer grey */
  z-index: 0;
}

.office-tab-panel {
  display: none;
  max-width: 70%;
}

.office-tab-panel.is-active {
  display: block;
}

.office-tab-title {
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--global-color-blue);
  font-weight: 600;
}

.office-tab-content {
  color: #000;
}

/* ---------- YOUTUBE SECTION ---------- */
.office-youtube-section {
  padding: clamp(48px, 6vw, 96px) 0;
}

.office-youtube-inner {
  max-width: var(--content-width, 1160px);
  margin: 0 auto;
  padding: 0 24px;
}

.office-youtube-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio for YouTube */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
}

.office-youtube-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- IFRAME SECTION ---------- */
.office-iframe-section {
  /*padding: 0 24px clamp(48px, 6vw, 96px); */
}

.office-iframe-wrapper {
  position: relative;
  padding-bottom: 40%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.office-iframe-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOLLOW US BAR */
.office-follow-section {
  padding: 0 24px clamp(40px, 4vw, 60px);
}
.site-main.office-single > section.office-follow-section {
  max-width: 100%;
  padding: 0 0px clamp(40px, 4vw, 60px);
  width: 100%;
}
.office-follow-inner {
  /* max-width: var(--content-width, 1160px); */
  margin: 0 auto;
  background: var(--global-color-blue);
  padding: 8px 24px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  font-weight: 600;
  font-size: 2rem;
}

.office-social-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  transition: opacity 0.2s ease;
}

.office-social-icon img {
  width: 48px;
  height: 48px;
  display: block;
}

.office-social-icon:hover {
  opacity: 0.8;
}

/* Press list */

.office-press-section {
  padding: 30px 24px;
}

.office-press-inner {
  max-width: var(--content-width, 1160px);
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--global-color-blue);
  font-weight: 700;
}

.office-press-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.office-press-item {
  border-bottom: 1px solid #e5e7ef;
  padding: 16px 0;
}

.office-press-item.is-hidden-press {
  display: none;
}

.office-press-article {
  display: flex;
  gap: 16px;
}

.office-press-article > a.office-press-link,
.office-news-article a {
  display: flex;
  align-items: center;
  gap: 20px;
}

.office-press-thumb img,
.office-news-thumb img {
  display: block;
  width: 213px;
  height: auto;
  object-fit: cover;
}

.office-press-body {
  flex: 1;
}

.office-press-date,
.office-news-date {
  font-size: 1.2rem;
  color: #6b7280;
}

.office-press-title,
.office-news-title {
  font-size: 1.5rem;
  margin: 4px 0 0;
}

.office-press-load-more-wrap {
  text-align: center;
  margin-top: 16px;
}

.office-press-load-more {
  padding: 4px 23px;
  border-radius: 0px;
  border: 2px solid var(--global-color-blue);
  background: transparent;
  color: var(--global-color-blue);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.office-press-load-more::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 12px;
  margin-left: 6px;
  background-image: url(../images/chevron-down.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.office-press-load-more:hover {
  color: var(--global-color-blue);
}

/* Leading solutions grid */

.office-solutions-section {
  padding: clamp(48px, 6vw, 96px) 24px;
}

.office-solutions-inner {
  max-width: var(--content-width, 1160px);
  margin: 0 auto;
}

.office-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 16px;
}

.office-solution-card {
  background: #fff;
  overflow: hidden;
  list-style: none;
}

.office-solution-card.is-hidden-solution {
  display: none;
}

.office-solutions-load-more-wrap {
  text-align: center;
  margin-top: 32px;
}

.office-solutions-load-more {
  padding: 4px 23px;
  border-radius: 0px;
  border: 2px solid var(--global-color-blue);
  background: transparent;
  color: var(--global-color-blue);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.office-solutions-load-more::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 12px;
  margin-left: 6px;
  background-image: url(../images/chevron-down.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.office-solutions-load-more:hover {
  color: var(--global-color-blue);
}

/* Card link: match products-grid layout */
.office-solution-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 0;
  overflow: hidden;
}

/* Image part: match product-image */
.office-solution-thumb {
  position: relative;
  overflow: hidden;
}

.office-solution-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.35s ease-out;
}

.office-solution-card a:hover .office-solution-thumb img {
  transform: scale(1.05);
}

/* Text part: match product-info */
.office-solution-body {
  padding: 1.2rem 1.5rem 2rem 0;
}

.office-solution-title {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 600;
  color: #000000;
  line-height: 2.3rem;
}

/* Arrow + animation: match product-title ::after */
.office-solution-title::after {
  content: "";
  width: 20px;
  height: 18px;
  display: inline-block;
  background: url(../images/chevron-right-black.svg) no-repeat center / contain;
  margin-left: 1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.office-solution-card a:hover .office-solution-title::after {
  opacity: 1;
  transform: translateX(0);
}

.office-solution-excerpt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #1b2128;
}

/* Mobile: match products-grid responsive */
@media (max-width: 767.98px) {
  .office-solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .office-solution-body {
    padding: 12px 12px 16px;
  }
}

/* Contact Form Section */
.office-contact-form-section {
  padding: clamp(48px, 6vw, 96px) 24px;
  background: var(--global-color-blue);
}

.office-contact-form-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.office-contact-form-title {
  font-size: 3rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 32px;
  text-align: left;
}

.office-contact-form-wrapper {
  max-width: 100%;
  margin: 0;
}

/* Gravity Forms styling for contact form - Form ID 4 */
#gform_wrapper_4 {
  max-width: 100%;
  color: #fff;
}

#gform_wrapper_4 .gform_title {
  display: none;
}

#gform_wrapper_4 .gform_description {
  display: none;
}

/* Hide original labels - floating labels will be used instead */
#gform_wrapper_4 .gfield_label {
  display: none;
}

/* Floating label container */
#gform_wrapper_4 .ginput_container.has-floating-label {
  position: relative;
  padding-top: 18px; /* space above for the floating label */
}

/* The floating label created by JS */
#gform_wrapper_4 .floating-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: all 0.18s ease-out;
}

/* When focused or has value → move label up and shrink */
#gform_wrapper_4
  .ginput_container.has-floating-label.is-focused
  .floating-label,
#gform_wrapper_4
  .ginput_container.has-floating-label.has-value
  .floating-label {
  top: -4px;
  transform: none;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

/* Slight tweak so input text sits nicely under the label */
#gform_wrapper_4 .ginput_container.has-floating-label input,
#gform_wrapper_4 .ginput_container.has-floating-label textarea {
  padding-top: 6px;
}

/* Underline fields - no border, handled by ::after */
#gform_wrapper_4 input[type="text"],
#gform_wrapper_4 input[type="email"],
#gform_wrapper_4 input[type="tel"],
#gform_wrapper_4 textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: none; /* underline handled by ::after only */
  border-radius: 0;
  padding: 12px 0 8px;
  font-size: 1.5rem;
  color: #fff;
  outline: none;
}

/* Animated underline effect */
#gform_wrapper_4 .gfield {
  position: relative;
  margin-bottom: 24px;
}

#gform_wrapper_4 .gfield::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  transform-origin: left center;
  transform: scaleX(1);
  transition:
    height 140ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

#gform_wrapper_4 .gfield:focus-within::after {
  height: 2px;
  background: #fff;
  transform: scaleX(1);
}

/* Focus state */
#gform_wrapper_4 input[type="text"]:focus,
#gform_wrapper_4 input[type="email"]:focus,
#gform_wrapper_4 input[type="tel"]:focus,
#gform_wrapper_4 textarea:focus {
  outline: none;
}

/* White placeholders */
#gform_wrapper_4 input::placeholder,
#gform_wrapper_4 textarea::placeholder {
  color: #fff;
  opacity: 1;
  font-size: 1.5rem;
}

#gform_wrapper_4 input::-webkit-input-placeholder,
#gform_wrapper_4 textarea::-webkit-input-placeholder {
  color: #fff;
  opacity: 1;
  font-size: 1.5rem;
}

#gform_wrapper_4 input::-moz-placeholder,
#gform_wrapper_4 textarea::-moz-placeholder {
  color: #fff;
  opacity: 1;
  font-size: 1.5rem;
}

#gform_wrapper_4 input:-ms-input-placeholder,
#gform_wrapper_4 textarea:-ms-input-placeholder {
  color: #fff;
  font-size: 1.5rem;
}

/* Submit button */
#gform_wrapper_4 .gform_footer {
  margin-top: 8px;
}

#gform_wrapper_4 .gform_footer input[type="submit"],
#gform_wrapper_4 .gform_button {
  max-width: 337px;
  width: fit-content;
  background: #fff;
  color: var(--global-color-blue);
  border: none;
  padding: 16px 20px;
  border-radius: 0px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-size: 1.2rem;
  text-transform: uppercase;
  transition:
    background-color 150ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
  position: relative;
}

/* Hide validation container */
#gform_wrapper_4 .gform_validation_container {
  display: none !important;
}

/* Error states */
#gform_wrapper_4 .gfield_error input,
#gform_wrapper_4 .gfield_error textarea {
  border-bottom: none;
}

#gform_wrapper_4 .gfield_error::after {
  background: #ff6b6b;
}

#gform_wrapper_4 .validation_message {
  color: #ff6b6b;
  font-size: 1.2rem;
  margin-top: 4px;
}

#gform_wrapper_4 .gform_required_legend {
  display: none;
}

/* Privacy notice small tag */
.office-contact-form-section small {
  display: block;
  max-width: 1300px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  font-weight: 400;
}

.office-contact-form-section small a {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.office-contact-form-section small a:hover {
  opacity: 0.8;
}

/* From the Media Section */
.office-media-section {
  padding: clamp(48px, 6vw, 96px) 24px;
  background: #fff;
}

.office-media-inner {
  max-width: var(--content-width, 1160px);
  margin: 0 auto;
}

.office-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 16px;
}

.office-media-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.office-media-thumb {
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
}

.office-media-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.office-media-card:hover .office-media-thumb img {
  transform: scale(1.05);
}

.office-media-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.office-media-title {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  color: #1b2128;
}

.office-media-explore {
  display: inline-block;
  padding: 6px 32px;
  background: var(--global-color-blue);
  color: #fff;
  border: 2px solid var(--global-color-blue);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.05em;
  width: fit-content;
  min-width: 180px;
  transition: all 0.3s ease;
  position: relative;
}

.office-media-explore::after {
  content: "→";
  margin-left: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.3s ease;
  display: inline-block;
}

.office-media-explore:hover {
  background: var(--global-color-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 76, 229, 0.3);
}

.office-media-explore:hover::after {
  transform: translateX(3px);
}

/* News & Articles */

.office-news-section {
  padding: clamp(40px, 5vw, 64px) 24px 64px;
  background: #f7f9fc;
}

.office-news-inner {
  max-width: var(--content-width, 1160px);
  margin: 0 auto;
}

.office-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.office-news-item {
  border-bottom: 1px solid #e5e7ef;
  padding: 12px 0;
}

.office-news-article {
  display: flex;
  gap: 16px;
}

.office-news-thumb img {
  height: auto;
  object-fit: cover;
}

.office-news-body {
  flex: 1;
}

.office-tab-panel {
  display: none;
}
.office-tab-panel.is-active {
  display: block;
}

.office-tab-btn.is-active {
  /* add underline / bg / whatever */
}

@media (min-width: 1280px) and (max-width: 1600px) and (min-resolution: 140dpi) and (min-aspect-ratio: 16 / 10) {
  .office-solution-excerpt {
    font-size: 1rem;
  }

  .office-solution-title {
    font-size: 1.7rem;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .office-solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .office-media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .office-solutions-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .office-media-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .office-youtube-wrapper {
    padding-bottom: 56.25%; /* Keep 16:9 on tablets */
  }

  .office-iframe-wrapper {
    padding-bottom: 60%;
  }
}

@media (max-width: 768px) {
  .site-main.office-single > .office-hero {
    min-height: 70vh;
  }

  .office-press-article,
  .office-news-article {
    flex-direction: column;
  }

  .office-press-thumb img,
  .office-news-thumb img {
    width: 100%;
  }

  .office-hero-title {
    font-size: 3rem;
  }

  .office-hero-inner,
  .office-tab-panel {
    max-width: 100%;
  }

  .section-title {
    font-size: 2rem;
    padding: 1rem 0px;
  }

  .office-solutions-grid {
    gap: 24px;
  }

  .office-solution-title {
    font-size: 1.6rem;
    margin: 25px 1px 6px;
  }

  .office-solution-excerpt {
    font-size: 1.1rem;
    line-height: 1.5rem;
    margin-bottom: 0px;
  }

  .office-press-article > a.office-press-link,
  .office-news-article a {
    flex-direction: column;
  }

  .office-press-thumb,
  .office-news-thumb {
    width: 100%;
  }

  .office-follow-inner {
    padding: 8px 24px;
    border-radius: 2px;
    font-size: 1.5rem;
    line-height: 1.8rem;
  }

  .office-social-icon {
    width: auto;
    height: 44px;
  }

  .office-press-section {
    padding: 24px 24px 64px 24px;
  }

  .office-news-item {
    padding: 30px 0;
  }

  .office-youtube-section {
    padding: clamp(32px, 4vw, 64px) 0;
  }

  .office-youtube-inner {
    padding: 0 16px;
  }

  .office-youtube-wrapper {
    padding-bottom: 56.25%; /* Keep 16:9 on mobile */
  }

  .office-contact-form-section {
    padding: clamp(32px, 4vw, 64px) 16px;
  }

  .office-media-section {
    padding: clamp(32px, 4vw, 64px) 16px;
  }

  .office-media-title {
    font-size: 1.6rem;
  }

  .office-media-explore {
    font-size: 1.2rem;
    padding: 6px 16px;
  }

  .office-contact-form-inner {
    padding: 0 16px;
  }

  .office-contact-form-title {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  #gform_wrapper_4 .gform_footer input[type="submit"],
  #gform_wrapper_4 .gform_button {
    max-width: 100%;
  }

  .office-contact-form-section small {
    padding: 0 16px;
    font-size: 1rem;
    margin-top: 20px;
  }

  .office-contact-form-title {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .office-contact-form-wrapper {
    max-width: 100%;
  }

  #gform_wrapper_4 .gfield_label {
    font-size: 1.2rem;
  }

  #gform_wrapper_4 input[type="text"],
  #gform_wrapper_4 input[type="email"],
  #gform_wrapper_4 input[type="tel"],
  #gform_wrapper_4 textarea {
    font-size: 1.2rem;
  }

  #gform_wrapper_4 input::placeholder,
  #gform_wrapper_4 textarea::placeholder {
    font-size: 1.2rem;
  }

  #gform_wrapper_4 .gform_footer input[type="submit"],
  #gform_wrapper_4 .gform_button {
    font-size: 1.3rem;
    padding: 12px 20px;
  }
}
