/* ==========================================================================
   pages.css
   Inner page parts: About (photos with badge, split block, values, team),
   Services (service cards, page numbers), Service details (article,
   accordion, more services) and Contact (cards, map, form box).
   ========================================================================== */

/* ---------- About: two offset photos + stat badge ---------- */
.oc-about-photos {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.oc-about-photos img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--oc-radius);
}

.oc-about-photos__one { height: 396px; }

.oc-about-photos__two { height: 520px; margin-top: 60px; }

.oc-about-photos__badge {
    position: absolute;
    top: 358px;
    left: 162px;
    width: 236px;
    padding: 24px 28px;
    background: var(--oc-blue);
    border: 4px solid var(--oc-white);
    border-radius: var(--oc-radius);
    color: var(--oc-white);
}

.oc-about-photos__num {
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 575px) {
    .oc-about-photos { gap: 12px; }

    .oc-about-photos__one { height: 240px; }

    .oc-about-photos__two { height: 320px; margin-top: 40px; }

    .oc-about-photos__badge { top: auto; bottom: -20px; left: 50%; width: 200px; padding: 16px 20px; transform: translateX(-50%); }
}

/* ---------- About: text + large photo with inset ---------- */
.oc-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 636px);
    gap: 72px;
    align-items: center;
}

.oc-split__title {
    margin-top: 20px;
    font-size: var(--oc-fs-h2);
}

.oc-split__text > p,
.oc-values__text > p {
    margin-top: 24px;
    line-height: 1.65;
}

.oc-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}

.oc-feature {
    padding: 16px 20px;
    background: var(--oc-white);
    border-left: 4px solid var(--oc-blue);
    border-radius: 4px;
}

.oc-feature__title {
    margin-bottom: 14px;
    font-size: var(--oc-fs-h3);
    font-weight: 500;
}

.oc-split__media {
    position: relative;
    margin-right: 46px;
}

.oc-split__main {
    width: 100%;
    height: 762px;
    object-fit: cover;
    border-radius: var(--oc-radius);
}

.oc-split__inset {
    position: absolute;
    right: -46px;
    bottom: -46px;
    width: 272px;
    height: 272px;
    object-fit: cover;
    border: 4px solid var(--oc-white);
    border-radius: var(--oc-radius);
}

@media (max-width: 1199px) {
    .oc-split { grid-template-columns: 1fr 1fr; gap: 48px; }

    .oc-split__main { height: 600px; }

    .oc-split__inset { width: 200px; height: 200px; }
}

@media (max-width: 991px) {
    .oc-split { grid-template-columns: 1fr; }

    .oc-split__media { margin: 0 24px 24px 0; }
}

@media (max-width: 575px) {
    .oc-feature-row { grid-template-columns: 1fr; }

    .oc-split__main { height: 420px; }

    .oc-split__inset { width: 140px; height: 140px; right: -24px; bottom: -24px; }
}

/* ---------- About: values with counters ---------- */
.oc-values {
    display: grid;
    grid-template-columns: minmax(0, 586px) minmax(0, 1fr);
    gap: 74px;
    align-items: center;
}

.oc-values__img {
    width: 100%;
    height: 100%;
    max-height: 640px;
    object-fit: cover;
    border-radius: var(--oc-radius);
}

.oc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}

.oc-stat {
    padding: 28px 20px;
    background: var(--oc-white);
    box-shadow: var(--oc-shadow);
    border-radius: 4px;
    text-align: center;
}

.oc-stat__num {
    margin-bottom: 8px;
    color: var(--oc-dark);
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.2;
}

@media (max-width: 1199px) {
    .oc-values { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 991px) {
    .oc-values { grid-template-columns: 1fr; }

    .oc-values__img { max-height: 480px; }
}

@media (max-width: 575px) {
    .oc-stats { gap: 12px; }

    .oc-stat { padding: 20px 12px; }

    .oc-stat__num { font-size: 1.75rem; }
}

/* ---------- About: team members ---------- */
.oc-team-section {
    padding-top: 0;
}

.oc-team {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.oc-member__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--oc-radius);
}

.oc-member__info {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -44px 20px 0;
    padding: 16px 20px;
    background: var(--oc-white);
    box-shadow: var(--oc-shadow);
    border-radius: 4px;
}

.oc-member__name {
    font-size: 1.125rem;
    font-weight: 500;
}

.oc-member__role {
    margin-top: 4px;
}

.oc-member__share {
    position: relative;
}

.oc-member__share-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--oc-dark);
    color: var(--oc-white);
    cursor: pointer;
    transition: background var(--oc-ease);
}

.oc-member__links {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    display: grid;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--oc-ease);
}

.oc-member__links a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--oc-blue);
    color: var(--oc-white);
}

.oc-member__share:hover .oc-member__share-btn,
.oc-member__share:focus-within .oc-member__share-btn {
    background: var(--oc-blue);
}

.oc-member__share:hover .oc-member__links,
.oc-member__share:focus-within .oc-member__links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 1199px) {
    .oc-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}

@media (max-width: 575px) {
    .oc-team { grid-template-columns: 1fr; }
}

/* ---------- Products: card grid ---------- */
.oc-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.oc-product-card {
    padding: 32px;
    background: var(--oc-light);
    border-radius: 4px;
    transition: background var(--oc-ease), box-shadow var(--oc-ease), transform var(--oc-ease);
}

.oc-product-card:hover {
    background: var(--oc-white);
    box-shadow: var(--oc-shadow);
    transform: translateY(-4px);
}

.oc-product-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.oc-product-card__icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--oc-blue-soft);
    color: var(--oc-blue);
    font-size: 1.75rem;
}

.oc-product-card__num {
    color: #e2e4e7;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.oc-product-card__title {
    margin-top: 28px;
    font-size: 1.375rem;
    font-weight: 500;
}

.oc-product-card__text {
    margin: 16px 0 8px;
    line-height: 1.6;
}

@media (max-width: 1199px) {
    .oc-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .oc-product-grid { grid-template-columns: 1fr; }

    .oc-product-card { padding: 28px 24px; }
}

/* Products page: one block per product group, with a small heading row */
.oc-product-group + .oc-product-group {
    margin-top: 80px;
}

.oc-product-group {
    /* Keeps the group heading clear of the fixed header when opened from the menu (products.php#nuts). */
    scroll-margin-top: 140px;
}

.oc-product-group__title {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--oc-line);
    font-size: 1.75rem;
    font-weight: 600;
}

/* Page numbers */
.oc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 48px;
}

.oc-pagination__item {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: var(--oc-blue-soft);
    color: var(--oc-dark);
}

.oc-pagination__item.is-current {
    background: var(--oc-blue);
    color: var(--oc-white);
}

/* ---------- Service details: article ---------- */
.oc-article {
    max-width: 856px;
    margin-inline: auto;
}

.oc-article__img {
    width: 100%;
    border-radius: var(--oc-radius);
}

.oc-article h2 {
    margin-top: 30px;
    font-size: 2.25rem;
    font-weight: 500;
}

.oc-article h3 {
    margin-top: 40px;
    font-size: 1.75rem;
    font-weight: 500;
}

.oc-article p {
    margin-top: 16px;
    line-height: 1.65;
}

.oc-article .oc-article__list-title {
    margin: 32px 0 18px;
    font-size: 1.125rem;
    font-weight: 500;
}

.oc-check-list--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767px) {
    .oc-check-list--three { grid-template-columns: 1fr 1fr; }

    .oc-article h2 { font-size: 1.75rem; }

    .oc-article h3 { font-size: 1.5rem; }
}

@media (max-width: 575px) {
    .oc-check-list--three { grid-template-columns: 1fr; }
}

/* Accordion (FAQ) */
.oc-accordion {
    display: grid;
    gap: 24px;
    margin-top: 40px;
}

.oc-accordion__item {
    background: var(--oc-light);
    border-radius: 4px;
    transition: background var(--oc-ease);
}

.oc-accordion__item.is-open {
    background: var(--oc-blue);
}

.oc-accordion__heading {
    font-size: 1.125rem;
    font-weight: 500;
}

.oc-accordion__btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 60px;
    padding: 16px 20px;
    border: 0;
    background: none;
    color: var(--oc-dark);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.oc-accordion__btn i {
    transition: transform var(--oc-ease);
}

.oc-accordion__item.is-open .oc-accordion__btn {
    color: var(--oc-white);
}

.oc-accordion__item.is-open .oc-accordion__btn i {
    transform: rotate(180deg);
}

.oc-accordion__panel {
    padding: 0 20px 20px;
}

.oc-article .oc-accordion__panel p {
    margin-top: 0;
    max-width: 600px;
    color: var(--oc-white);
}

/* More services */
.oc-more-products {
    padding-bottom: var(--oc-section-space);
}

.oc-more-products__title {
    margin-bottom: 50px;
    text-align: center;
    font-size: var(--oc-fs-h2);
}

/* ---------- Contact page ---------- */
.oc-contact-cards {
    padding-bottom: 100px;
}

.oc-contact-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.oc-info-card--small {
    gap: 24px;
    padding: 30px;
}

.oc-info-card--small .oc-info-card__title {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.oc-info-card--small p {
    font-size: 0.95rem;
}

@media (max-width: 1199px) {
    .oc-contact-cards__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .oc-contact-cards__grid { grid-template-columns: 1fr; }
}

/* Map placeholder: light map-like grid with the address pin */
.oc-map {
    display: grid;
    place-items: start center;
    height: 700px;
    padding-top: 140px;
    background-color: #dbe6f3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.6) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.6) 2px, transparent 2px);
    background-size: 80px 80px;
}

.oc-map__pin {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 20px 28px;
    background: var(--oc-white);
    border-radius: var(--oc-radius);
    box-shadow: var(--oc-shadow);
    text-align: center;
    color: var(--oc-dark);
}

.oc-map__pin > i {
    color: var(--oc-blue);
    font-size: 2rem;
}

.oc-map__pin .oc-link-arrow {
    color: var(--oc-blue);
}

/* Form box overlapping the bottom of the map */
.oc-contact-main {
    padding-bottom: var(--oc-section-space);
}

.oc-contact-form {
    position: relative;
    margin-top: -200px;
    padding: 60px 108px;
    background: var(--oc-light);
}

.oc-contact-form__title {
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
}

.oc-contact-form__note {
    margin: 14px 0 32px;
    text-align: center;
    color: var(--oc-dark);
}

@media (max-width: 991px) {
    .oc-contact-form { padding: 48px 32px; }

    .oc-map { height: 520px; padding-top: 100px; }
}

@media (max-width: 575px) {
    .oc-contact-form { padding: 36px 18px; margin-top: -160px; }

    .oc-contact-form__title { font-size: 1.6rem; }

    .oc-map { height: 440px; padding-top: 60px; }
}
