/* =============================================================================
   SOCIAL AVIATOR - UI/UX REFINEMENT LAYER
   Created : 2026-08-13
   Purpose : one consistent typography scale, balanced logo sizing, aligned
             partner logos and calmer section rhythm.
   Scope   : visual only. No markup, colour, content, heading-level, URL or
             functionality changes. Brand accent (--accent) is untouched.
   Loading : linked in resources/views/frontend.blade.php AFTER globals.css and
             AFTER the inline admin "Custom CSS" block, so ordinary
             (non-!important) declarations are enough to win the cascade.
             The single !important below is documented where it appears.
   Tuning  : every size comes from the tokens in the :root blocks, so the whole
             scale can be re-tuned in one place.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. TYPE / SIZE TOKENS
   Desktop base (1400px and wider)
   -------------------------------------------------------------------------- */
:root {
    --sa-hero-title: 60px;
    --sa-page-title: 50px;
    --sa-section-title: 44px;
    --sa-statement: 34px;
    --sa-cta-title: 38px;
    --sa-card-title: 28px;
    --sa-post-title: 30px;
    --sa-widget-title: 22px;
    --sa-h1: 46px;
    --sa-h2: 34px;
    --sa-h3: 28px;
    --sa-h4: 21px;
    --sa-h5: 18px;
    --sa-body: 17px;
    --sa-body-lh: 1.7;
    --sa-small: 14px;
    --sa-logo-w: 152px;
    --sa-hero-pad-top: 280px;
    --sa-partner-box: 96px;
    --sa-partner-max-w: 158px;
    --sa-partner-max-h: 64px;
}

/* Small desktop / large laptop */
@media screen and (max-width: 1399px) {
    :root {
        --sa-hero-title: 56px;
        --sa-page-title: 46px;
        --sa-section-title: 42px;
        --sa-statement: 32px;
        --sa-cta-title: 36px;
        --sa-card-title: 26px;
        --sa-post-title: 28px;
        --sa-h1: 42px;
        --sa-h2: 32px;
        --sa-h3: 27px;
        --sa-logo-w: 150px;
        --sa-hero-pad-top: 250px;
        --sa-partner-box: 92px;
        --sa-partner-max-w: 150px;
        --sa-partner-max-h: 60px;
    }
}

/* Laptop / large tablet */
@media screen and (max-width: 1199px) {
    :root {
        --sa-hero-title: 50px;
        --sa-page-title: 42px;
        --sa-section-title: 38px;
        --sa-statement: 30px;
        --sa-cta-title: 33px;
        --sa-card-title: 25px;
        --sa-post-title: 26px;
        --sa-widget-title: 21px;
        --sa-h1: 38px;
        --sa-h2: 30px;
        --sa-h3: 26px;
        --sa-h4: 20px;
        --sa-logo-w: 132px;
        --sa-hero-pad-top: 220px;
        --sa-partner-box: 88px;
        --sa-partner-max-w: 142px;
        --sa-partner-max-h: 56px;
    }
}

/* Tablet */
@media screen and (max-width: 991px) {
    :root {
        --sa-hero-title: 42px;
        --sa-page-title: 38px;
        --sa-section-title: 34px;
        --sa-statement: 28px;
        --sa-cta-title: 30px;
        --sa-card-title: 23px;
        --sa-post-title: 25px;
        --sa-widget-title: 20px;
        --sa-h1: 34px;
        --sa-h2: 28px;
        --sa-h3: 24px;
        --sa-h4: 19px;
        --sa-body: 16px;
        --sa-logo-w: 130px;
        --sa-partner-box: 78px;
        --sa-partner-max-w: 135px;
        --sa-partner-max-h: 50px;
    }
}

/* Large phone */
@media screen and (max-width: 767px) {
    :root {
        --sa-hero-title: 38px;
        --sa-page-title: 34px;
        --sa-section-title: 31px;
        --sa-statement: 26px;
        --sa-cta-title: 28px;
        --sa-card-title: 22px;
        --sa-post-title: 23px;
        --sa-h1: 31px;
        --sa-h2: 26px;
        --sa-h3: 23px;
        --sa-logo-w: 126px;
        --sa-partner-box: 74px;
        --sa-partner-max-w: 128px;
        --sa-partner-max-h: 46px;
    }
}

/* Small phone */
@media screen and (max-width: 575px) {
    :root {
        --sa-hero-title: 34px;
        --sa-page-title: 30px;
        --sa-section-title: 28px;
        --sa-statement: 24px;
        --sa-cta-title: 26px;
        --sa-card-title: 21px;
        --sa-post-title: 22px;
        --sa-widget-title: 19px;
        --sa-h1: 28px;
        --sa-h2: 24px;
        --sa-h3: 22px;
        --sa-h4: 18px;
        --sa-small: 13px;
        --sa-logo-w: 122px;
        --sa-partner-box: 70px;
        --sa-partner-max-w: 118px;
        --sa-partner-max-h: 40px;
    }
}

/* -----------------------------------------------------------------------------
   2. GLOBAL HEADING SCALE
   Applies to rich-text / editorial headings that carry no component class.
   Component classes below always win, so this never changes a component.
   -------------------------------------------------------------------------- */
h1 { font-size: var(--sa-h1); line-height: 1.2; }
h2 { font-size: var(--sa-h2); line-height: 1.25; }
h3 { font-size: var(--sa-h3); line-height: 1.3; }
h4 { font-size: var(--sa-h4); line-height: 1.35; }
h5 { font-size: var(--sa-h5); line-height: 1.4; }
h6 { font-size: 16px; line-height: 1.45; }

h1, h2, h3, h4, h5, h6, p, li, blockquote {
    overflow-wrap: break-word;
}

/* -----------------------------------------------------------------------------
   3. HEADER LOGO
   Original asset kept, aspect ratio preserved (height auto), simply scaled to a
   size that sits comfortably inside the 90px header instead of overflowing it.
   -------------------------------------------------------------------------- */
.cs-site_branding {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.cs-site_branding img {
    width: var(--sa-logo-w);
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    display: block;
}

/* Footer / widget logo kept in step with the header logo */
.cs-text_widget img {
    width: var(--sa-logo-w);
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* -----------------------------------------------------------------------------
   4. HOMEPAGE HERO
   -------------------------------------------------------------------------- */
.cs-hero.cs-style1 .cs-hero_title {
    font-size: var(--sa-hero-title);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 30px;
    max-width: 940px;
}

/* The admin Custom CSS field still contains an older
   "@media (min-width:1200px){.cs-hero_title{font-size:80px !important}}" rule.
   It cannot be edited safely from here, so this one declaration has to match
   its weight. This is the only !important in this file. */
@media screen and (min-width: 1200px) {
    .cs-hero.cs-style1 .cs-hero_title {
        font-size: var(--sa-hero-title) !important;
    }
}

.cs-hero.cs-style1 .cs-hero_subtitle {
    font-size: var(--sa-body);
    line-height: 1.65;
    max-width: 700px;
}

/* Re-balance the vertical rhythm now that the headline is shorter.
   Only for the desktop/tablet-landscape layout - below 992px the theme already
   switches the hero to a centred flex layout with its own padding. */
@media screen and (min-width: 992px) {
    .cs-hero.cs-style1 {
        padding-top: var(--sa-hero-pad-top);
    }
}

/* -----------------------------------------------------------------------------
   5. INNER PAGE HEADINGS (about / services / blog / case studies / contact)
   -------------------------------------------------------------------------- */
.cs-font_50 { font-size: var(--sa-statement); line-height: 1.3; }
.cs-font_38 { font-size: var(--sa-cta-title); line-height: 1.3; }

.cs-page_heading .cs-page_title,
.cs-page_heading.cs-style1 .cs-page_title {
    font-size: var(--sa-page-title);
    line-height: 1.2;
}

.cs-page_heading.cs-center .cs-page_title,
.cs-page_heading.text-center .cs-page_title {
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
}

.breadcrumb-item,
.breadcrumb-item a {
    font-size: var(--sa-small);
}

/* -----------------------------------------------------------------------------
   6. SECTION HEADINGS - one pattern everywhere:
      small eyebrow  ->  section title  ->  supporting text
   -------------------------------------------------------------------------- */
.cs-section_title,
.cs-section_heading.cs-style1 .cs-section_title {
    font-size: var(--sa-section-title);
    line-height: 1.2;
}

.cs-section_subtitle,
.cs-section_heading.cs-style1 .cs-section_subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* -----------------------------------------------------------------------------
   7. CTA BLOCKS ("Let's discuss make something cool together")
   The italic / accent treatment on the inner span is left untouched.
   -------------------------------------------------------------------------- */
.cs-cta_title,
.cs-cta.cs-style1 .cs-cta_title {
    font-size: var(--sa-cta-title);
    line-height: 1.25;
}

.cs-cta_subtitle,
.cs-cta.cs-style1 .cs-cta_subtitle {
    font-size: var(--sa-body);
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   8. CARDS, LISTS AND SIDEBAR COMPONENTS
   -------------------------------------------------------------------------- */
.cs-iconbox.cs-style1 .cs-iconbox_title,
.cs-iconbox.cs-style2 .cs-iconbox_title,
.cs-iconbox.cs-style3 .cs-iconbox_title,
.cs-iconbox.cs-style4 .cs-iconbox_title {
    font-size: var(--sa-card-title);
    line-height: 1.3;
}

.cs-post.cs-style2 .cs-post_title {
    font-size: var(--sa-post-title);
    line-height: 1.3;
    margin-bottom: 18px;
}

.cs-post.cs-style3 .cs-post_title {
    font-size: var(--sa-card-title);
    line-height: 1.35;
}

.cs-sidebar_widget_title {
    font-size: var(--sa-widget-title);
    line-height: 1.35;
    margin-bottom: 20px;
}

.cs-side_header_heading {
    font-size: var(--sa-widget-title);
    line-height: 1.35;
}

.cs-accordian_title {
    font-size: 20px;
    line-height: 1.4;
}

.cs-testimonial_avatar_name {
    font-size: 18px;
    line-height: 1.4;
}

.cs-widget_title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.cs-post_meta,
.cs-post_date,
.cs-post_category,
.cs-copyright,
.cs-recent_post_date {
    font-size: var(--sa-small);
}

/* -----------------------------------------------------------------------------
   9. OUR PARTNERS - equal-height logo containers
   Every logo sits in an identical box and is centred both ways. object-fit
   keeps each original aspect ratio, so nothing is stretched, squashed or
   cropped. Widths and heights are capped instead of forced.
   -------------------------------------------------------------------------- */
/* Slick writes an inline "display:inline-block" onto each slide wrapper, so
   this one declaration has to be !important to turn the box into a centred
   flex container. Everything else below wins on normal cascade order. */
.cs-partner_logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: var(--sa-partner-box);
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}

.cs-partner_logo img {
    width: auto;
    height: auto;
    max-width: var(--sa-partner-max-w);
    max-height: var(--sa-partner-max-h);
    object-fit: contain;
    margin: 0 auto;
    align-self: center;
}

.cs_partners_slider .slick-slide {
    height: auto;
}

/* -----------------------------------------------------------------------------
   10. EDITORIAL / ARTICLE CONTENT (blog posts, case studies, service copy)
   Keeps H2 / H3 / H4 clearly distinguishable without oversized headings.
   -------------------------------------------------------------------------- */
.post-text {
    font-size: var(--sa-body);
    line-height: var(--sa-body-lh);
}

.post-text p,
.post-text li {
    font-size: var(--sa-body);
    line-height: var(--sa-body-lh);
}

.post-text h2,
.cs-post.cs-style2 .post-text h2 {
    font-size: var(--sa-h2);
    line-height: 1.25;
    margin-top: 46px;
    margin-bottom: 16px;
}

/* .cs-post.cs-style2 h3 in globals.css is more specific, so the article
   scope has to be spelled out here as well. */
.post-text h3,
.cs-post.cs-style2 .post-text h3 {
    font-size: var(--sa-h3);
    line-height: 1.3;
    margin-top: 34px;
    margin-bottom: 14px;
}

.post-text h4,
.cs-post.cs-style2 .post-text h4 {
    font-size: var(--sa-h4);
    line-height: 1.35;
    margin-top: 26px;
    margin-bottom: 12px;
}

.post-text h2:first-child,
.post-text h3:first-child,
.post-text h4:first-child {
    margin-top: 0;
}

.post-text blockquote {
    font-size: calc(var(--sa-body) + 2px);
    line-height: 1.6;
}

.post-text table {
    font-size: 16px;
    width: 100%;
}

.post-text th,
.post-text td {
    padding: 10px 14px;
    line-height: 1.55;
}

.post-text img {
    max-width: 100%;
    height: auto;
}

.post-text ul,
.post-text ol {
    margin-bottom: 22px;
}

/* -----------------------------------------------------------------------------
   11. BUTTONS AND FORM TEXT - one size, one weight, one rhythm
   -------------------------------------------------------------------------- */
.cs-btn.cs-style1 {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}

.cs-newsletter_btn {
    font-size: 15px;
    font-weight: 600;
}

.cs-form_field,
.cs-newsletter_input,
select.cs-form_field,
textarea.cs-form_field {
    font-size: 16px;
    line-height: 1.5;
}

.cs-form_label,
form label {
    font-size: 15px;
    line-height: 1.5;
}

/* -----------------------------------------------------------------------------
   12. SMALL-SCREEN SAFETY
   A little more breathing room at the edges, and nothing allowed to overflow.
   -------------------------------------------------------------------------- */
@media screen and (max-width: 575px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cs-btn.cs-style1 {
        font-size: 15px;
    }
}
