/* Migrated from companies/templates/companies/company_page.html */

/* Migrated Company detail block 1 */
/*
     * Company profile summary card.
     * Public-facing company overview near the top of profile pages.
     */

    .syg-company-summary-card {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 22px;
        background:
            radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 32%),
            #ffffff;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
        overflow: hidden;
    }

    .syg-company-summary-logo {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 18px;
        background: #ffffff;
        min-height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .syg-company-summary-logo img {
        max-height: 130px;
        width: auto;
        object-fit: contain;
    }

    .syg-company-summary-placeholder {
        width: 100%;
        min-height: 150px;
        border-radius: 18px;
        background:
            radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 36%),
            linear-gradient(135deg, #f8fafc, #eef7ff);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #0b3a5b;
        font-weight: 800;
        text-align: center;
        padding: 1rem;
    }

    .syg-company-summary-facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .syg-company-summary-fact {
        border: 1px solid rgba(15, 23, 42, 0.06);
        border-radius: 14px;
        background: rgba(248, 250, 252, 0.72);
        padding: 0.75rem;
    }

    .syg-company-summary-fact dt {
        color: #64748b;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 0.25rem;
    }

    .syg-company-summary-fact dd {
        color: #172033;
        margin-bottom: 0;
        font-weight: 600;
    }

    .syg-company-summary-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    @media (max-width: 767.98px) {
        .syg-company-summary-facts {
            grid-template-columns: 1fr;
        }
    }

/* Migrated Company detail block 2 */
/*
     * Company profile listing status card.
     * Adds a clear trust/status panel without changing model data.
     */

    .syg-company-status-card {
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 20px;
        background:
            radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 32%),
            #ffffff;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.055);
    }

    .syg-company-status-card h2 {
        color: #0b3a5b;
    }

    .syg-company-status-list {
        margin: 0;
    }

    .syg-company-status-list div {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.55rem 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    .syg-company-status-list div:last-child {
        border-bottom: 0;
    }

    .syg-company-status-list dt {
        color: #64748b;
        font-size: 0.88rem;
        font-weight: 600;
    }

    .syg-company-status-list dd {
        color: #172033;
        font-size: 0.88rem;
        margin-bottom: 0;
        text-align: right;
        font-weight: 600;
    }

    .syg-company-status-note {
        color: #64748b;
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .syg-company-status-actions .btn {
        border-radius: 999px;
        font-weight: 600;
    }

/* Migrated Company detail block 3 */
/*
     * Company profile width alignment.
     * Matches company detail hero/content widths to homepage section widths.
     * Width only: no colours, buttons, text, cards or content changed.
     */

    .syg-detail-hero .container,
    .syg-listing-hero > .container,
    body .container.my-5 {
        max-width: none !important;
        width: 96% !important;
    }

/* Migrated Company detail block 4 */
.syg-company-commercial-cta .syg-company-commercial-panel {
            border: 1px solid rgba(16, 44, 70, 0.12);
            border-radius: 1.25rem;
            background: linear-gradient(135deg, #f2f8fc 0%, #ffffff 68%, #eef5f9 100%);
            box-shadow: 0 1rem 2.5rem rgba(10, 35, 55, 0.07);
            padding: clamp(1.25rem, 3vw, 2rem);
        }

        .syg-company-commercial-cta .syg-company-commercial-eyebrow {
            display: inline-flex;
            padding: 0.25rem 0.65rem;
            border-radius: 999px;
            background: #eaf7d8;
            color: #405f12;
            border: 1px solid rgba(64, 95, 18, 0.12);
            font-size: 0.78rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: 0.75rem;
        }

        .syg-company-commercial-cta .syg-company-commercial-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
            margin-top: 1rem;
        }

        .syg-company-commercial-cta .btn {
            font-weight: 800;
        }

/* ==========================================================
   SUPERYACHT GUIDE — COMPANY PROFILE COMPONENTS
   Clean design-system alignment
   ========================================================== */

.syg-company-profile-eyebrow {
    color: var(--syg-gold-dark) !important;
    font-size: .78rem !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

.syg-company-profile-title {
    margin-bottom: .75rem !important;
    color: var(--syg-navy) !important;
    font-size: clamp(2.2rem, 3vw, 3rem) !important;
    line-height: 1.16 !important;
    font-weight: 600 !important;
    letter-spacing: -.03em !important;
}

.syg-company-summary-card,
.syg-company-status-card,
.syg-company-commercial-panel {
    border: 1px solid var(--syg-border) !important;
    border-radius: var(--syg-radius) !important;
    background: var(--syg-white) !important;
    box-shadow: none !important;
}

.syg-company-summary-fact {
    border-color: var(--syg-border-soft);
}

.syg-company-summary-placeholder,
.syg-company-status-note {
    color: var(--syg-text-secondary);
}

.syg-company-commercial-panel {
    background: var(--syg-surface-subtle) !important;
}

.syg-company-summary-actions .btn,
.syg-company-status-actions .btn,
.syg-company-commercial-actions .btn {
    border-radius: var(--syg-radius-small);
}

/* Company profile: full-width content layout */
.syg-company-profile-support .syg-company-status-card,
.syg-company-profile-support .syg-company-contact-card {
    height: 100%;
    border: 1px solid var(--syg-border) !important;
    border-radius: var(--syg-radius) !important;
    background: var(--syg-white) !important;
    box-shadow: none !important;
}

.syg-company-related-card {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--syg-border);
    border-top: 3px solid var(--syg-gold);
    border-radius: var(--syg-radius);
    background: var(--syg-white);
}

.syg-company-related-card h3 {
    color: var(--syg-navy);
    margin-bottom: 1rem;
}

.syg-company-related-card ul {
    padding-left: 1.1rem;
}

.syg-company-related-card li + li {
    margin-top: .8rem;
}

.syg-company-profile-support .card-body {
    padding: 1.5rem;
}

@media (max-width: 767.98px) {
    .syg-company-profile-support .card-body,
    .syg-company-related-card {
        padding: 1.1rem;
    }
}

/* Company flexible editorial content */
.syg-company-flexible-content {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.syg-company-flexible-content .syg-layout-row {
    align-items: center;
}

.syg-company-editor-feature {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.syg-company-editor-copy {
    padding: .5rem clamp(.25rem, 2vw, 1.5rem);
}

.syg-company-editor-copy h2,
.syg-company-editor-panel h2 {
    color: var(--syg-navy);
    margin-bottom: 1rem;
}

.syg-company-editor-copy p,
.syg-company-editor-panel p {
    max-width: 68ch;
    line-height: 1.72;
}

.syg-company-editor-media .syg-editor-image {
    margin: 0;
}

.syg-company-editor-media .syg-editor-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--syg-radius);
    border: 1px solid var(--syg-border);
}

.syg-company-editor-media figcaption {
    padding-left: .15rem;
    padding-right: .15rem;
}

.syg-company-editor-panel {
    align-self: stretch;
    padding: clamp(1.25rem, 2.2vw, 1.75rem);
    border: 1px solid var(--syg-border);
    border-radius: var(--syg-radius);
    background: var(--syg-surface-subtle);
}

.syg-company-editor-panel > *:last-child {
    margin-bottom: 0;
}

.syg-company-editor-facts .syg-editor-card {
    height: 100%;
    margin-bottom: 0;
    border: 1px solid var(--syg-border);
    border-radius: var(--syg-radius);
    box-shadow: none;
}

.syg-company-editor-facts .card-body {
    padding: 1.5rem;
}

.syg-company-flexible-content .syg-editor-cta {
    border-color: var(--syg-border);
    border-radius: var(--syg-radius);
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .syg-company-editor-feature {
        margin-bottom: 2.25rem;
    }

    .syg-company-editor-copy {
        padding: 0;
    }

    .syg-company-editor-media {
        margin-top: 1rem;
    }

    .syg-company-editor-panel + .syg-company-editor-panel {
        margin-top: 1rem;
    }
}

/* Company profile flexible layout — explicit desktop columns */
@media (min-width: 768px) {
    .syg-company-flexible-content .syg-layout-row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .syg-company-flexible-content .syg-layout-row > .syg-layout-column {
        width: var(--syg-column-width) !important;
        flex: 0 0 var(--syg-column-width) !important;
        max-width: var(--syg-column-width) !important;
    }
}

.syg-company-flexible-content .syg-company-editor-media .syg-editor-image img {
    width: 100% !important;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
}

.syg-company-flexible-content .syg-company-editor-feature:nth-of-type(2) .syg-company-editor-media .syg-editor-image img {
    object-position: center center;
}

@media (max-width: 767.98px) {
    .syg-company-flexible-content .syg-layout-row > .syg-layout-column {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .syg-company-flexible-content .syg-company-editor-media .syg-editor-image img {
        max-height: none;
        object-fit: contain;
    }
}

/* Company overview profile photograph */
.syg-company-summary-photo {
    min-height: 220px;
    padding: 0;
    overflow: hidden;
}

.syg-company-summary-photo img {
    display: block;
    width: 100%;
    height: 220px;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 992px) {
    .syg-company-summary-photo {
        min-height: 250px;
    }

    .syg-company-summary-photo img {
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .syg-company-summary-photo,
    .syg-company-summary-photo img {
        min-height: 0;
        height: auto;
    }
}

/* Company overview: larger photographic profile image */
.syg-company-summary-photo {
    min-height: 240px;
    padding: 0;
    overflow: hidden;
}

.syg-company-summary-photo img {
    width: 100% !important;
    height: 240px !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
}

@media (min-width: 992px) {
    .syg-company-summary-photo,
    .syg-company-summary-photo img {
        min-height: 270px;
        height: 270px !important;
    }
}

@media (max-width: 767.98px) {
    .syg-company-summary-photo,
    .syg-company-summary-photo img {
        min-height: 220px;
        height: 220px !important;
    }
}

/* Company detail hero: keep title readable over dark image overlay */
.syg-detail-hero .syg-company-profile-title {
    color: #ffffff !important;
}

/* Company detail locations map */
.syg-company-location-map-wrap {
    border: 1px solid var(--syg-border);
    border-radius: var(--syg-radius);
    background: var(--syg-white);
    overflow: hidden;
}

.syg-company-location-map {
    width: 100%;
    height: 420px;
}

.syg-company-location-map-wrap > p {
    padding: 0 .85rem .8rem;
}

.syg-company-location-map .leaflet-popup-content {
    min-width: 220px;
    line-height: 1.45;
}

.syg-company-location-map .leaflet-popup-content strong {
    color: var(--syg-navy);
}

@media (max-width: 767.98px) {
    .syg-company-location-map {
        height: 320px;
    }
}


/* Keep the supplied wide-format logos legible at a modest size. */
.syg-company-summary-logo--wide {
    min-height: 125px;
    padding: 10px;
}
.syg-company-summary-logo.syg-company-summary-logo--wide img {
    display: block;
    width: auto;
    max-width: min(100%, 235px);
    height: auto;
    max-height: 110px;
    object-fit: contain;
}
@media (max-width: 767.98px) {
    .syg-company-summary-logo--wide {
        min-height: 105px;
        padding: 8px;
    }
}


/* Live service-category links in company profile, same visual tag design. */
a.syg-mini-tag { text-decoration: none; }
a.syg-mini-tag:hover,
a.syg-mini-tag:focus-visible {
    color: #513b15;
    background: rgba(200, 164, 93, 0.27);
    text-decoration: underline;
}
/* Readable company-profile type, shared across editorial and structured sections. */
.syg-company-summary-card,
.syg-company-key-facts-card,
.syg-company-profile-support,
.syg-company-flexible-content,
.syg-company-legacy-body,
.syg-company-operating-card {
    font-size: 1.08rem;
    line-height: 1.65;
}

.syg-company-profile-eyebrow,
.syg-company-summary-card .syg-eyebrow {
    font-size: .97rem !important;
}

.syg-company-summary-fact dt,
.syg-company-key-fact dt,
.syg-company-profile-support dt,
.syg-company-operating-card dt,
.syg-company-status-list dt,
.syg-company-status-list dd,
.syg-company-status-note {
    font-size: 1rem;
    line-height: 1.48;
}

.syg-company-summary-fact dd,
.syg-company-key-fact dd {
    font-size: 1.075rem;
    line-height: 1.55;
}

.syg-company-flexible-content p,
.syg-company-legacy-body p,
.syg-company-prose-card p {
    font-size: 1.12rem;
    line-height: 1.7;
}

.syg-company-flexible-content .syg-mini-tag,
.syg-company-summary-card .syg-mini-tag {
    font-size: .98rem;
}

.syg-company-flexible-content figcaption {
    font-size: .98rem;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .syg-company-flexible-content p,
    .syg-company-legacy-body p,
    .syg-company-prose-card p {
        font-size: 1.065rem;
    }
}

/* Company-page editorial modules: reusable across business profiles. */
.syg-company-key-facts-card,
.syg-company-certifications-card {
    box-shadow: none;
}

.syg-company-key-facts-card > .card-body,
.syg-company-certifications-card > .card-body {
    display: grid;
    grid-template-columns: minmax(0, 27%) minmax(0, 1fr);
    gap: clamp(1rem, 2.3vw, 2.25rem);
    align-items: start;
    padding: clamp(1.3rem, 2.3vw, 2rem);
}

.syg-company-key-facts-card > .card-body > h2,
.syg-company-certifications-card > .card-body > h2 {
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    line-height: 1.2;
    margin: .15rem 0 .75rem !important;
}

.syg-company-key-facts-card .syg-company-key-facts-grid {
    gap: .3rem 1.5rem;
}

.syg-company-key-facts-card .syg-company-key-fact {
    border: 0;
    border-top: 1px solid #d7e2e9;
    border-radius: 0;
    background: transparent;
    padding: .85rem .05rem;
}

.syg-company-operating-card {
    background: #e8f5fa !important;
    border: 1px solid #cee5ed !important;
    box-shadow: none !important;
}

.syg-company-operating-card > .card-body {
    display: grid;
    grid-template-columns: minmax(0, 27%) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2.3vw, 2.25rem);
    padding: clamp(1.3rem, 2.3vw, 2rem);
}

.syg-company-operating-card > .card-body > h2 {
    font-size: clamp(1.5rem, 2.3vw, 2.1rem);
    line-height: 1.2;
    margin: .15rem 0 0 !important;
}

.syg-company-operating-card .syg-company-operating-grid {
    gap: .25rem 1.35rem;
}

.syg-company-operating-card .syg-company-operating-item {
    border: 0;
    border-top: 1px solid #c4dce5;
    border-radius: 0;
    background: transparent;
    padding: .85rem .1rem;
}

.syg-company-operating-card .syg-company-operating-item dt {
    font-size: .99rem;
    color: #225873;
    line-height: 1.4;
    letter-spacing: .02em;
    margin-bottom: .35rem;
}

.syg-company-operating-card .syg-company-operating-item dd {
    font-size: 1.06rem;
    line-height: 1.6;
}

/* Optional six-fact strip, assembled with existing Wagtail row and column blocks. */
.syg-company-flexible-content .syg-layout-row.syg-company-editor-stat-strip {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #c8d8e1;
    border-bottom: 1px solid #c8d8e1;
    margin: 1.5rem 0 2.25rem;
}

.syg-company-flexible-content .syg-layout-row.syg-company-editor-stat-strip > .syg-layout-column {
    min-width: 0;
    width: 100% !important;
    flex: none !important;
    max-width: none !important;
    border-right: 1px solid #d7e3e9;
    border-bottom: 1px solid #edf1f3;
    padding: 1.15rem 1.3rem;
}

.syg-company-flexible-content .syg-layout-row.syg-company-editor-stat-strip > .syg-layout-column:nth-child(3n) {
    border-right: 0;
}

.syg-company-flexible-content .syg-company-editor-stat-strip .syg-editor-heading,
.syg-company-flexible-content .syg-company-editor-stat-strip h2,
.syg-company-flexible-content .syg-company-editor-stat-strip h3 {
    font-size: clamp(1.85rem, 3.5vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-bottom: .2rem;
}

/* Asymmetric three-photo layout is available only on eligible enhanced profiles. */
@media (min-width: 992px) {
    .syg-company-flexible-content--gallery-enabled .syg-layout-row.syg-company-editor-photo-mosaic {
        display: grid !important;
        grid-template-columns: 1.25fr 1fr;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 1rem 1.25rem;
        align-items: stretch;
    }

    .syg-company-flexible-content--gallery-enabled .syg-layout-row.syg-company-editor-photo-mosaic > .syg-layout-column {
        min-width: 0;
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }

    .syg-company-flexible-content--gallery-enabled .syg-layout-row.syg-company-editor-photo-mosaic > .syg-layout-column:first-child {
        grid-row: 1 / 3;
    }
}

.syg-company-flexible-content--gallery-enabled .syg-company-editor-photo-mosaic .syg-editor-image img {
    display: block;
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .syg-company-key-facts-card > .card-body,
    .syg-company-certifications-card > .card-body,
    .syg-company-operating-card > .card-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .syg-company-flexible-content .syg-layout-row.syg-company-editor-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .syg-company-flexible-content .syg-layout-row.syg-company-editor-stat-strip > .syg-layout-column:nth-child(3n) {
        border-right: 1px solid #d7e3e9;
    }

    .syg-company-flexible-content .syg-layout-row.syg-company-editor-stat-strip > .syg-layout-column:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 575.98px) {
    .syg-company-flexible-content .syg-layout-row.syg-company-editor-stat-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .syg-company-flexible-content .syg-layout-row.syg-company-editor-stat-strip > .syg-layout-column {
        border-right: 0 !important;
    }
}

/* Company editorial layout: full-width 96% canvas with readable grouped content. */
.syg-company-legacy-body .syg-company-prose-intro {
    margin-bottom: 1.25rem;
    max-width: 90ch;
    line-height: 1.7;
}

.syg-company-prose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.5rem);
    align-items: stretch;
    margin-bottom: 1.75rem;
}

.syg-company-prose-card {
    min-width: 0;
    padding: clamp(1.15rem, 1.7vw, 1.7rem);
    border: 1px solid var(--syg-border);
    border-top: 3px solid var(--syg-gold);
    border-radius: var(--syg-radius);
    background: var(--syg-white);
    overflow-wrap: anywhere;
}

.syg-company-prose-card h2 {
    font-size: clamp(1.18rem, 1.45vw, 1.5rem);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--syg-navy);
}

.syg-company-prose-card p {
    line-height: 1.68;
}

.syg-company-prose-card img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: var(--syg-radius-small);
}

.syg-company-prose-card > :last-child {
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    .syg-company-prose-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* A reusable three-column row for the Wagtail company-page editor. */
@media (min-width: 768px) {
    .syg-company-flexible-content .syg-layout-row.syg-company-editor-three-up {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1rem, 1.8vw, 1.5rem);
        margin-left: 0;
        margin-right: 0;
        align-items: stretch;
    }
    .syg-company-flexible-content .syg-layout-row.syg-company-editor-three-up > .syg-layout-column {
        min-width: 0;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: clamp(1rem, 1.45vw, 1.5rem);
    }
}

@media (min-width: 1200px) {
    .syg-company-flexible-content .syg-layout-row.syg-company-editor-three-up {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .syg-company-flexible-content .syg-layout-row.syg-company-editor-three-up > .syg-layout-column:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .syg-company-prose-grid,
    .syg-company-flexible-content .syg-layout-row.syg-company-editor-three-up {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        margin-left: 0;
        margin-right: 0;
    }
    .syg-company-flexible-content .syg-layout-row.syg-company-editor-three-up > .syg-layout-column {
        min-width: 0;
        padding: 1rem;
    }
}
