/* =========================================
   1. GLOBAL & RTL FIXES (Keep these)
   ========================================= */
html, body { overflow-x: hidden !important; }
.no-click > a { pointer-events: none !important; cursor: default !important; }

/* Force RTL headers to LTR */
html[dir="rtl"] header, html[dir="rtl"] .header-builder { direction: ltr !important; text-align: left !important; }
html[dir="rtl"] .header-contact-info, html[dir="rtl"] div.box-content { direction: ltr !important; display: inline-flex !important; flex-direction: row !important; }
html[dir="rtl"] .header-contact-info { margin-right: auto !important; margin-left: 0 !important; }

/* Remove Blue Backgrounds in RTL */
html[dir="rtl"] div.box-content, html[dir="rtl"] div.box-content *, html[dir="rtl"] .header-contact-info * {
    background: transparent !important; box-shadow: none !important; border: none !important;
}
html[dir="rtl"] div.box-content i { color: #ffffff !important; }

/* =========================================
   2. I-HURT PHONE STACK (The "Direct Hit")
   ========================================= */

/* A. Inject number into ANY content box */
div.box-content .content span::after {
    content: "713-98 I-HURT" !important;
    display: block !important;
    white-space: pre !important;
    font-size: 14px !important;
    color: inherit !important;
    margin-top: 3px !important;
    visibility: visible !important;
}

/* B. HIDE IT from the Email (First Item) */
/* We target the first .box-content on the page or in the list */
div.solace-contacts-item:first-child div.box-content .content span::after,
li:first-child div.box-content .content span::after {
    display: none !important;
    content: "" !important;
}

/* C. Force the box to allow stacking */
div.box-content .content,
div.box-content .content span {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    line-height: 1.3 !important;
    overflow: visible !important;
}

/* =========================================
   3. I-HURT NUMBER STACKING (Safari/iOS Fix)
   ========================================= */

/* A. Target the content container and force it to be a BLOCK */
.solace-contacts-item .content,
.solace-contacts-item .content span,
div.box-content .content,
div.box-content .content span {
    display: block !important; /* Changed from flex to block for Safari safety */
    height: auto !important;
    overflow: visible !important;
    line-height: 1.3 !important;
    width: 100% !important;
}

/* B. Inject the number */
.solace-contacts-item .content span::after,
div.box-content .content span::after {
    content: "713-98 I-HURT" !important;
    display: block !important;
    padding-top: 2px !important; /* Use padding instead of margin for Safari */
    font-size: 14px !important;
    color: inherit !important;
    visibility: visible !important;
    white-space: pre !important;
    clear: both !important; /* Forces a new line */
}

/* C. REMOVE it specifically from the EMAIL */
/* Using the "filter" method again to keep email clean */
a[href*="@"] .content span::after,
a[href*="mailto"] .content span::after,
.solace-contacts-item a[href*="@"] .content span::after {
    display: none !important;
    content: "" !important;
}

/* D. SAFARI SPECIFIC TWEAK */
/* Fixes an issue where Safari clips text inside flex containers */
.solace-contacts-item, 
.header-contact-info {
    flex-shrink: 0 !important; /* Tells Safari: "Do not shrink this box!" */
}

/* SAFARI IPHONE FIX: Prevent text squishing */
@media only screen and (max-width: 480px) {
    /* 1. Force the contact item to have a minimum width */
    .solace-contacts-item,
    .header-contact-info .phone,
    .header-contact-info .email {
        min-width: 220px !important; /* Forces the box to be wide enough */
        width: auto !important;
        flex-shrink: 0 !important; /* TELL SAFARI: DO NOT SHRINK ME! */
    }
    
    /* 2. Ensure the text inside doesn't wrap weirdly */
    .solace-contacts-item .content,
    .solace-contacts-item .content span {
        white-space: normal !important; /* Allow normal wrapping if needed */
        width: 100% !important;
    }

    /* 3. OPTIONAL: If it's still cut off, make the font slightly smaller on iPhone */
    .solace-contacts-item .content span,
    .solace-contacts-item .content span::after {
        font-size: 13px !important; 
    }
}
/* SAFARI IPHONE EMERGENCY FIX */
@media only screen and (max-width: 480px) {
    /* 1. Kill Flexbox on the container so it stops squishing */
    .header-contact-info,
    .solace-contacts-item {
        display: block !important; /* Forces it to act like a normal paragraph */
        width: 100% !important;
        margin-bottom: 5px !important;
    }

    /* 2. Force the inner content to fill the screen width */
    .solace-contacts-item .content,
    .solace-contacts-item .content span {
        display: block !important;
        width: 100% !important;
        white-space: normal !important; /* Allow wrapping */
        text-align: left !important;
    }

    /* 3. Ensure the icon doesn't mess up the block layout */
    .solace-contacts-item i,
    .solace-contacts-item .icon {
        float: left !important; /* Float icon to the left */
        margin-right: 8px !important;
        margin-top: 3px !important;
    }
    
    /* 4. Fix the injected number to sit properly */
    .solace-contacts-item .content span::after {
        display: block !important;
        clear: both !important; /* Force new line */
        margin-left: 25px !important; /* Indent slightly to align with text */
    }
}

/* Hide Site Title on Mobile Only */
@media (max-width: 700px) {
  .site-title, .site-description, .site-identity-text {
    display: none !important;
  }
}

/* --- 1. STICK THE DESKTOP MENU (The one you found) --- */
.header {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Adds a nice shadow */
}

/* --- 2. STICK THE MOBILE HEADER (The hidden one) --- */
/* Mobile headers usually live in the 'header-main' or 'header-mobile' row */
.header-main, .header-mobile {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 1. DESKTOP PADDING (The shorter one) */
body {
    padding-top: 110px; /* Change this number until the Desktop gap disappears */
}

/* 2. MOBILE PADDING (The tall one) */
@media (max-width: 700px) {
    body {
        padding-top: 200px; /* Keep this at 200px since you said it looked good */
    }
}