
/* =====================================================
   IFROCARE COMPLETE COMPONENT STYLES
   Brand: Burgundy / Cream / Warm White
   Responsive: Desktop / Tablet / Mobile
===================================================== */

/* =====================================================
   01. GLOBAL
===================================================== */

.if-container {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#if-home {
    width: 100%;
    overflow: hidden;
}

#if-home *,
.if-site-header *,
.if-footer * {
    box-sizing: border-box;
}

#if-home img {
    max-width: 100%;
}

#if-home a {
    transition: all .25s ease;
}


/* =====================================================
   02. HEADER & LOGO
===================================================== */

.if-site-header {
    width: 100%;
    background: #fff8f4;
    border-bottom: 1px solid #eadbd4;
    position: relative;
    z-index: 999;
}

.if-header-inner {
    width: calc(100% - 48px);
    max-width: 1440px;
    min-height: 100px;
    margin: 0 auto;
    padding: 15px 2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.if-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    color: #891735;
    text-decoration: none;
}

.if-brand-uk {
    font-family: Arial, sans-serif;
    font-size: 39px;
    font-weight: 400;
    letter-spacing: -2px;
}

.if-brand-flag {
    width: 37px;
    height: 24px;
    display: block;
    flex-shrink: 0;
    border-radius: 2px;
}

.if-brand-name {
    position: relative;
    display: inline-block;
    color: #891735;
    font-family: Georgia, serif;
    font-size: 39px;
    font-weight: 400;
    white-space: nowrap;
}

.if-brand-name sup {
    position: absolute;
    top: -0.08em;
    right: -0.55em;
    font-family: Arial, sans-serif;
    font-size: .28em;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.if-main-navigation {
    display: flex;
    align-items: center;
}

.if-nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.if-nav-list li {
    list-style: none;
    margin: 0;
}

.if-nav-list a {
    color: #292020;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.if-nav-list a:hover {
    color: #891735;
}

.if-nav-list .if-nav-contact a {
    display: inline-block;
    background: #891735;
    color: #fff;
    padding: 14px 25px;
    border-radius: 40px;
}

.if-nav-list .if-nav-contact a:hover {
    background: #681126;
}

.if-mobile-toggle,
.if-mobile-button {
    display: none;
}


/* =====================================================
   03. HERO SECTION
===================================================== */

.if-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff8f4;
    padding: 45px 0 90px;
}

.if-hero-grid {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.if-hero-content {
    padding: 20px 0 30px;
}

.if-eyebrow {
    color: #a21c3d;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.if-hero-content h1 {
    color: #781321;
    font-family: Georgia, serif;
    font-size: clamp(40px, 5vw, 65px);
    font-weight: 400;
    line-height: 1.08;
    margin: 20px 0;
}

.if-hero-content h1 sup {
    font-family: Arial, sans-serif;
    font-size: .25em;
    font-weight: 400;
    vertical-align: super;
    line-height: 0;
    position: relative;
    top: -.08em;
}

.if-hero-content p {
    max-width: 490px;
    color: #493b37;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 25px;
}

.if-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.if-button {
    display: inline-block;
    background: #981735;
    color: #fff !important;
    padding: 14px 27px;
    border: 1px solid #981735;
    border-radius: 40px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

.if-button:hover {
    background: #681126;
    border-color: #681126;
    transform: translateY(-2px);
}

.if-button-outline {
    background: transparent;
    color: #891735 !important;
}

.if-button-outline:hover {
    background: #891735;
    color: #fff !important;
}

.if-hero-visual {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.if-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Decorative background ribbons */

.if-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -3%;
    bottom: 10px;
    width: 65%;
    height: 100px;
    background: linear-gradient(
        170deg,
        rgba(238,190,187,.05),
        rgba(239,183,180,.55)
    );
    clip-path: polygon(
        0 75%,25% 68%,50% 48%,75% 18%,
        100% 0,80% 38%,55% 76%,28% 100%,0 100%
    );
}

.if-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -3%;
    bottom: 0;
    width: 66%;
    height: 82px;
    background: linear-gradient(
        165deg,
        #c95b70 0%,
        #a51b3d 48%,
        #790e2a 100%
    );
    clip-path: polygon(
        0 82%,24% 76%,47% 57%,70% 25%,
        100% 0,78% 39%,54% 76%,29% 100%,0 100%
    );
}


/* =====================================================
   04. BRAND ADVANTAGES
===================================================== */

.if-advantages {
    background: #fff8f4;
    border-bottom: 1px solid #eadbd4;
    padding: 25px 0;
}

.if-advantages-inner {
    max-width: 1300px;
    width: 92%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.if-adv-item {
    text-align: center;
    padding: 15px;
    border-right: 1px solid #dfbdb5;
}

.if-adv-item:last-child {
    border-right: none;
}

.if-adv-icon {
    color: #891735;
    font-size: 34px;
}

.if-adv-item h3 {
    color: #781321;
    font-family: Georgia, serif;
    font-size: 19px;
    margin: 8px 0 4px;
}

.if-adv-item p {
    color: #493b37;
    font-size: 14px;
    margin: 0;
}


/* =====================================================
   05. SHARED SECTION STYLES
===================================================== */

.if-featured,
.if-wellness {
    background: #fff8f4;
    padding: 30px 0;
}

.if-section-heading {
    text-align: center;
    margin-bottom: 25px;
}

.if-section-heading h2 {
    color: #781321;
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    margin: 0 0 8px;
}

.if-section-heading p {
    color: #695b55;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.if-featured-heading {
    margin-bottom: 18px;
}

.if-wellness-heading {
    margin-bottom: 25px;
}


/* =====================================================
   06. FEATURED PRODUCTS - TWO PRODUCTS
===================================================== */

.if-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.if-product-card {
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    min-width: 0;
    min-height: 225px;
    background: #fffdfb;
    border: 1px solid #f0e4de;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(94,43,35,.06);
}

.if-product-image {
    width: 100%;
    height: 215px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.if-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 195px;
    object-fit: contain;
}

.if-product-info {
    padding: 18px 16px;
    min-width: 0;
}

.if-product-number {
    color: #a21c3d;
    font-size: 10px;
    letter-spacing: 1.3px;
    font-weight: 600;
}

.if-product-info h3 {
    color: #781321;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    margin: 8px 0 12px;
}

.if-product-info p {
    color: #796a62;
    font-size: 13px;
    margin: 0 0 20px;
}

.if-product-info a {
    display: inline-block;
    padding: 10px 22px;
    background: #891735;
    color: #fff !important;
    border: 1px solid #891735;
    border-radius: 30px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
}

.if-product-info a:hover {
    background: #681126;
}


/* =====================================================
   07. WELLNESS RANGE - MAIN GRID
===================================================== */

.if-wellness-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.if-wellness-card {
    grid-column: span 4;
    min-width: 0;
    padding: 15px;
    background: #fffdfb;
    border: 1px solid #f0e4de;
    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(94,43,35,.055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.if-wellness-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(94,43,35,.09);
}

/* Second row proportions */

.if-cat-heart {
    grid-column: span 6;
}

.if-cat-omega,
.if-cat-antioxidant {
    grid-column: span 3;
}


/* =====================================================
   08. WELLNESS CATEGORY HEADINGS
===================================================== */

.if-wellness-card-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    margin-bottom: 10px;
}

.if-wellness-icon {
    color: #a31732;
    font-size: 25px;
    line-height: 1;
    flex-shrink: 0;
}

.if-wellness-card-heading h3 {
    color: #80152a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}


/* =====================================================
   09. WELLNESS PRODUCT COMMON
===================================================== */

.if-wellness-products {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
}

.if-wellness-product {
    display: grid;
    grid-template-columns: 52% 48%;
    align-items: center;
    min-width: 0;
    gap: 4px;
}

.if-wellness-product-image {
    width: 100%;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.if-wellness-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 140px;
    object-fit: contain;
}

.if-wellness-product-info {
    min-width: 0;
    padding: 6px;
}

.if-wellness-product-info h4 {
    color: #501018;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 15px;
    overflow-wrap: anywhere;
}

.if-wellness-product-info a {
    display: inline-block;
    padding: 9px 13px;
    background: #891735;
    color: #fff !important;
    border-radius: 30px;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.if-wellness-product-info a:hover {
    background: #681126;
}


/* =====================================================
   10. HEART & CIRCULATION - THREE PRODUCTS
===================================================== */

.if-cat-heart .if-wellness-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.if-cat-heart .if-wellness-product {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    min-width: 0;
    padding: 0 5px;
}

.if-cat-heart .if-wellness-product-image {
    height: 155px;
    width: 100%;
}

.if-cat-heart .if-wellness-product-image img {
    max-width: 125px;
    max-height: 145px;
}

.if-cat-heart .if-wellness-product-info {
    width: 100%;
    padding: 4px 0 0;
}

.if-cat-heart .if-wellness-product-info h4 {
    font-size: 13px;
    min-height: 38px;
    margin: 0 0 10px;
}

.if-cat-heart .if-wellness-product-info a {
    padding: 8px 10px;
    font-size: 10px;
}


/* =====================================================
   11. OMEGA-3 & ANTIOXIDANT
===================================================== */

.if-cat-omega .if-wellness-product,
.if-cat-antioxidant .if-wellness-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.if-cat-omega .if-wellness-product-image,
.if-cat-antioxidant .if-wellness-product-image {
    height: 155px;
    width: 100%;
}

.if-cat-omega .if-wellness-product-image img,
.if-cat-antioxidant .if-wellness-product-image img {
    max-width: 130px;
    max-height: 145px;
}

.if-cat-omega .if-wellness-product-info,
.if-cat-antioxidant .if-wellness-product-info {
    width: 100%;
    text-align: center;
    padding: 4px 0;
}

.if-cat-omega .if-wellness-product-info h4,
.if-cat-antioxidant .if-wellness-product-info h4 {
    font-size: 13px;
    min-height: 38px;
    margin: 0 0 10px;
}

.if-cat-omega .if-wellness-product-info a,
.if-cat-antioxidant .if-wellness-product-info a {
    padding: 8px 10px;
    font-size: 10px;
}


/* =====================================================
   12. BOTTOM PRODUCTS BUTTON
===================================================== */

.if-bottom-products {
    background: #fff8f4;
    padding: 12px 0 38px;
}

.if-bottom-products .if-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.if-bottom-products a {
    display: inline-block;
    padding: 12px 26px;
    background: #891735;
    color: #fff !important;
    border: 1px solid #891735;
    border-radius: 30px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
}

.if-bottom-products a:hover {
    background: #681126;
}


/* =====================================================
   13. FOOTER
===================================================== */

.if-footer {
    width: 100%;
    background: #74152b;
    color: #fff;
    padding: 55px 0 0;
}

.if-footer-inner {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 40px;
}

.if-footer-logo {
    display: inline-block;
    color: #fff !important;
    font-family: Georgia, serif;
    font-size: 27px;
    text-decoration: none;
    margin-bottom: 15px;
}

.if-footer-logo span {
    font-family: Georgia, serif;
}

.if-footer-logo sup {
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.if-footer-brand p {
    color: #f3dfe3;
    font-size: 13px;
    line-height: 1.8;
    margin: 6px 0;
}

.if-footer-column h3 {
    color: #fff;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 18px;
}

.if-footer-column a {
    display: block;
    color: #f3dfe3 !important;
    font-size: 13px;
    text-decoration: none;
    margin: 0 0 12px;
}

.if-footer-column a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.if-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.2);
    padding: 20px 24px;
    text-align: center;
}

.if-footer-bottom p {
    color: #f3dfe3;
    font-size: 12px;
    margin: 0;
}


/* =====================================================
   14. TABLET RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .if-header-inner {
        min-height: 82px;
    }

    .if-brand-uk,
    .if-brand-name {
        font-size: 30px;
    }

    .if-brand-flag {
        width: 31px;
        height: 19px;
    }

    .if-nav-list {
        gap: 15px;
    }

    .if-nav-list a {
        font-size: 13px;
    }

    .if-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .if-hero-content h1 {
        font-size: 43px;
    }

    .if-product-card {
        min-height: 190px;
    }

    .if-product-image {
        height: 185px;
    }

    .if-product-info h3 {
        font-size: 18px;
    }

    .if-wellness-layout {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 14px;
    }

    .if-wellness-card {
        grid-column: span 4;
    }

    .if-cat-heart {
        grid-column: span 6;
    }

    .if-cat-omega,
    .if-cat-antioxidant {
        grid-column: span 3;
    }

    .if-wellness-product-info h4 {
        font-size: 12px;
    }

    .if-cat-heart .if-wellness-product-image {
        height: 130px;
    }

    .if-footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =====================================================
   15. MOBILE RESPONSIVE
===================================================== */

@media (max-width: 600px) {

    .if-container {
        width: calc(100% - 28px);
    }

    /* Header */

    .if-header-inner {
        min-height: 76px;
        padding: 12px 5%;
    }

    .if-brand-uk,
    .if-brand-name {
        font-size: 25px;
    }

    .if-brand-flag {
        width: 27px;
        height: 17px;
    }

    .if-mobile-button {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .if-mobile-button span {
        width: 26px;
        height: 2px;
        background: #891735;
    }

    .if-main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        background: #fff8f4;
        border-top: 1px solid #eadbd4;
    }

    .if-mobile-toggle:checked ~ .if-main-navigation {
        display: block;
    }

    .if-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .if-nav-list a {
        display: block;
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Hero */

    .if-hero {
        padding: 30px 0 65px;
    }

    .if-hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .if-hero-content {
        padding: 15px 0;
    }

    .if-hero-content h1 {
        font-size: 42px;
    }

    .if-hero-content p {
        font-size: 14px;
    }

    .if-hero-visual {
        justify-content: center;
    }

    .if-hero::before {
        width: 95%;
        height: 65px;
    }

    .if-hero::after {
        width: 95%;
        height: 50px;
    }

    .if-button {
        padding: 12px 19px;
        font-size: 12px;
    }

    /* Advantages */

    .if-advantages-inner {
        grid-template-columns: 1fr;
    }

    .if-adv-item {
        border-right: none;
        border-bottom: 1px solid #dfbdb5;
    }

    .if-adv-item:last-child {
        border-bottom: none;
    }

    /* Sections */

    .if-featured,
    .if-wellness {
        padding: 22px 0;
    }

    .if-section-heading h2 {
        font-size: 25px;
    }

    /* Featured Products */

    .if-product-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .if-product-card {
        grid-template-columns: 43% 57%;
        min-height: 175px;
    }

    .if-product-image {
        height: 170px;
        padding: 8px;
    }

    .if-product-image img {
        max-height: 155px;
    }

    .if-product-info {
        padding: 12px;
    }

    .if-product-info h3 {
        font-size: 17px;
        margin: 7px 0;
    }

    .if-product-info p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .if-product-info a {
        padding: 9px 15px;
        font-size: 11px;
    }

    /* Wellness: 2 columns */

    .if-wellness-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .if-wellness-card,
    .if-cat-heart,
    .if-cat-omega,
    .if-cat-antioxidant {
        grid-column: span 1;
        padding: 10px;
        border-radius: 12px;
    }

    .if-wellness-card-heading {
        gap: 5px;
        min-height: 34px;
        margin-bottom: 7px;
        align-items: flex-start;
    }

    .if-wellness-icon {
        font-size: 19px;
    }

    .if-wellness-card-heading h3 {
        font-size: 12px;
        line-height: 1.35;
    }

    .if-wellness-product {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .if-wellness-product-image {
        height: 125px;
    }

    .if-wellness-product-image img {
        max-height: 120px;
        max-width: 115px;
    }

    .if-wellness-product-info {
        text-align: center;
        padding: 5px 0;
    }

    .if-wellness-product-info h4 {
        font-size: 12px;
        min-height: 32px;
        margin-bottom: 8px;
    }

    .if-wellness-product-info a {
        padding: 8px 9px;
        font-size: 9px;
    }

    /* Heart: three products in one row */

    .if-cat-heart {
        grid-column: span 2;
    }

    .if-cat-heart .if-wellness-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .if-cat-heart .if-wellness-product {
        padding: 0 2px;
    }

    .if-cat-heart .if-wellness-product-image {
        height: 120px;
    }

    .if-cat-heart .if-wellness-product-image img {
        max-height: 112px;
        max-width: 100%;
    }

    .if-cat-heart .if-wellness-product-info h4 {
        font-size: 10px;
        min-height: 34px;
        line-height: 1.3;
    }

    .if-cat-heart .if-wellness-product-info a {
        font-size: 8px;
        padding: 7px 6px;
    }

    /* Omega and Antioxidant */

    .if-cat-omega .if-wellness-product-image,
    .if-cat-antioxidant .if-wellness-product-image {
        height: 125px;
    }

    .if-cat-omega .if-wellness-product-image img,
    .if-cat-antioxidant .if-wellness-product-image img {
        max-height: 120px;
        max-width: 115px;
    }

    .if-cat-omega .if-wellness-product-info h4,
    .if-cat-antioxidant .if-wellness-product-info h4 {
        font-size: 11px;
        min-height: 32px;
    }

    /* Bottom button */

    .if-bottom-products {
        padding: 10px 0 28px;
    }

    .if-bottom-products .if-container {
        width: calc(100% - 28px);
    }

    .if-bottom-products a {
        padding: 11px 20px;
        font-size: 12px;
    }

    /* Footer */

    .if-footer {
        padding-top: 35px;
    }

    .if-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 25px 15px;
    }

    .if-footer-logo {
        font-size: 23px;
    }

    .if-footer-column h3 {
        font-size: 16px;
    }

    .if-footer-column a {
        font-size: 12px;
    }

}


/* =====================================================
   16. SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .if-brand-uk,
    .if-brand-name {
        font-size: 22px;
    }

    .if-brand {
        gap: 6px;
    }

    .if-brand-flag {
        width: 24px;
        height: 15px;
    }

    .if-hero-content h1 {
        font-size: 36px;
    }

    .if-product-info h3 {
        font-size: 15px;
    }

    .if-cat-heart .if-wellness-product-info h4 {
        font-size: 9px;
    }

}

/* =====================================================
   17. IFROCARE PREMIUM BRAND EDITORIAL
   Image-free brand introduction
===================================================== */

.if-brand-editorial {
    position: relative;
    overflow: hidden;
    padding: 100px 0 75px;
    background: #faf6f0;
    color: #292020;
}

.if-brand-editorial * { box-sizing: border-box; }

.if-brand-editorial .if-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.if-editorial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #dfd0c6;
}

.if-editorial-top > span {
    color: #891735;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.if-editorial-top-right {
    color: #99877d !important;
    font-size: 10px !important;
}

.if-editorial-main {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 75px;
    padding: 75px 0 85px;
    align-items: center;
}

.if-editorial-heading { position: relative; }

.if-editorial-small {
    display: block;
    margin-bottom: 25px;
    color: #891735;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.if-editorial-heading h2 {
    margin: 0;
    color: #671629;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(43px, 5vw, 66px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -2px;
}

.if-editorial-heading h2 span {
    display: block;
    color: #8c1938;
    font-style: italic;
}

.if-editorial-highlight {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    color: #a37d6e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 37px);
    font-style: italic;
    line-height: 1.2;
}

.if-editorial-decoration {
    display: flex;
    align-items: flex-start;
    margin-top: 35px;
    color: rgba(137, 23, 53, .10);
    font-family: Georgia, serif;
    font-size: 82px;
    font-weight: 700;
    line-height: 1;
}

.if-editorial-decoration-dot {
    color: #891735;
    font-size: 17px;
    margin-left: 4px;
    margin-top: 5px;
}

.if-editorial-content {
    position: relative;
    padding: 12px 0 12px 38px;
    border-left: 1px solid #d9c5b9;
}

.if-editorial-number {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.if-editorial-number span:first-child {
    color: #891735;
    font-family: Georgia, serif;
    font-size: 22px;
    font-style: italic;
}

.if-editorial-number span:last-child {
    color: #9b8074;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.if-editorial-content h3 {
    margin: 0 0 25px;
    color: #671629;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1.3;
}

.if-editorial-content p {
    margin: 0 0 16px;
    color: #685a52;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.95;
}

.if-editorial-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-width: 215px;
    margin-top: 17px;
    padding: 14px 20px;
    background: #891735;
    border: 1px solid #891735;
    border-radius: 40px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .3s ease;
}

.if-editorial-button span { font-size: 18px; }
.if-editorial-button:hover {
    background: #671126;
    border-color: #671126;
    color: #fff !important;
    transform: translateY(-2px);
}

.if-editorial-philosophy {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 40px;
    min-height: 245px;
    padding: 45px 55px;
    overflow: hidden;
    background: #75172f;
    border-radius: 3px;
}

.if-editorial-philosophy::before,
.if-editorial-philosophy::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    pointer-events: none;
}

.if-editorial-philosophy::before {
    width: 380px;
    height: 380px;
    top: -190px;
    right: -80px;
}

.if-editorial-philosophy::after {
    width: 270px;
    height: 270px;
    bottom: -190px;
    right: 80px;
}

.if-editorial-philosophy-left,
.if-editorial-philosophy-right {
    position: relative;
    z-index: 1;
}

.if-editorial-philosophy-left > span {
    display: block;
    margin-bottom: 20px;
    color: #e4b9b6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.if-editorial-philosophy-left h3 {
    margin: 0;
    color: #fff9f3;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 49px);
    font-weight: 400;
    line-height: 1.15;
}

.if-editorial-philosophy-left h3 span {
    display: block;
    color: #e9c9b9;
    font-style: italic;
}

.if-editorial-philosophy-right {
    padding-left: 30px;
    border-left: 1px solid rgba(255,255,255,.3);
}

.if-editorial-philosophy-right p {
    max-width: 260px;
    margin: 0 0 25px;
    color: #f2dfd9;
    font-size: 13px;
    line-height: 1.9;
}

.if-editorial-brand-name {
    color: #fff8f1;
    font-family: Georgia, serif;
    font-size: 27px;
    letter-spacing: .5px;
}

.if-editorial-brand-name sup {
    font-family: Arial, sans-serif;
    font-size: 10px;
    vertical-align: super;
}

.if-editorial-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 38px;
    border-top: 1px solid #ddcec4;
    border-bottom: 1px solid #ddcec4;
}

.if-editorial-value {
    display: flex;
    align-items: center;
    position: relative;
    gap: 17px;
    min-height: 100px;
    padding: 20px 25px;
    border-right: 1px solid #ddcec4;
}

.if-editorial-value:first-child { padding-left: 0; }
.if-editorial-value:last-child { border-right: none; }

.if-editorial-value-no {
    color: #b18a7b;
    font-family: Georgia, serif;
    font-size: 17px;
    font-style: italic;
}

.if-editorial-value h4 {
    margin: 0 0 7px;
    color: #75172f;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.if-editorial-value p {
    margin: 0;
    color: #8a7970;
    font-size: 11px;
}

.if-editorial-value-symbol {
    margin-left: auto;
    color: rgba(137,23,53,.3);
    font-size: 25px;
}

@media (max-width: 900px) {
    .if-brand-editorial { padding: 70px 0 55px; }
    .if-editorial-main { gap: 35px; padding: 55px 0 65px; }
    .if-editorial-heading h2 { font-size: 44px; }
    .if-editorial-highlight { font-size: 27px; }
    .if-editorial-content { padding-left: 25px; }
    .if-editorial-content h3 { font-size: 25px; }
    .if-editorial-philosophy { padding: 35px; gap: 25px; }
    .if-editorial-value { padding: 18px 12px; gap: 10px; }
    .if-editorial-value h4 { font-size: 16px; }
}

@media (max-width: 600px) {
    .if-brand-editorial { padding: 45px 0 40px; }
    .if-brand-editorial .if-container { padding-left: 20px; padding-right: 20px; }
    .if-editorial-top { padding-bottom: 15px; }
    .if-editorial-top > span { font-size: 9px; letter-spacing: 1px; }
    .if-editorial-top-right { font-size: 8px !important; }
    .if-editorial-main { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 45px; }
    .if-editorial-small { font-size: 9px; margin-bottom: 18px; }
    .if-editorial-heading h2 { font-size: 42px; line-height: 1.12; letter-spacing: -1px; }
    .if-editorial-highlight { margin-top: 14px; font-size: 27px; }
    .if-editorial-decoration { display: none; }
    .if-editorial-content { padding: 25px 0 0; border-left: none; border-top: 1px solid #d9c5b9; }
    .if-editorial-number { margin-bottom: 20px; }
    .if-editorial-content h3 { font-size: 27px; }
    .if-editorial-content p { font-size: 13px; }
    .if-editorial-button { min-width: 200px; }
    .if-editorial-philosophy { grid-template-columns: 1fr; gap: 25px; padding: 30px 23px; }
    .if-editorial-philosophy-left h3 { font-size: 36px; }
    .if-editorial-philosophy-right { padding: 20px 0 0; border-left: none; border-top: 1px solid rgba(255,255,255,.3); }
    .if-editorial-philosophy-right p { margin-bottom: 15px; }
    .if-editorial-values { grid-template-columns: 1fr; margin-top: 25px; }
    .if-editorial-value { min-height: 80px; padding: 15px 5px; border-right: none; border-bottom: 1px solid #ddcec4; }
    .if-editorial-value:first-child { padding-left: 5px; }
    .if-editorial-value:last-child { border-bottom: none; }
    .if-editorial-value h4 { font-size: 17px; }
}

/* =====================================================
   IFROCARE SPACING + FOOTER UPDATE
   Append this file to the END of assets/css/components.css
===================================================== */

/* Tighten the homepage transition into the footer. */
#if-home .if-bottom-products {
    padding-top: 4px !important;
    padding-bottom: 22px !important;
}

#if-home .if-featured,
#if-home .if-wellness {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

#if-home .if-section-heading {
    margin-bottom: 18px !important;
}

/* About page: reduce oversized vertical gaps between content blocks.
   These selectors cover the common WordPress page-builder wrappers
   without changing the header or product-card layouts. */
body.page .entry-content > section,
body.page .entry-content > .wp-block-group,
body.page .entry-content > .wp-block-cover {
    margin-block-start: 0 !important;
    margin-block-end: 26px !important;
}

body.page .entry-content > section:first-child,
body.page .entry-content > .wp-block-group:first-child,
body.page .entry-content > .wp-block-cover:first-child {
    margin-top: 0 !important;
}

/* iFrocare About page section spacing, including philosophy blocks. */
body.page .if-about-section,
body.page .if-about-intro,
body.page .if-about-philosophy,
body.page .if-philosophy-section,
body.page .if-philosophy-grid {
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

/* Compact philosophy row and its lower breathing room. */
body.page .if-philosophy-grid,
body.page .if-philosophy-items {
    row-gap: 16px !important;
}

/* Footer: shorter top and bottom whitespace, consistent with screenshot. */
.if-footer {
    padding-top: 36px !important;
}

.if-footer-inner {
    padding-bottom: 26px !important;
    gap: 28px !important;
}

.if-footer-column a {
    overflow-wrap: anywhere;
}

.if-footer-bottom {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* Legal page styling */
.if-legal-page {
    background: #fbf5f0;
    color: #493b37;
    padding: 64px 24px 76px;
}

.if-legal-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.if-legal-eyebrow {
    color: #981735;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 14px;
}

.if-legal-container h1 {
    color: #781321;
    font-family: Georgia, serif;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 400;
    line-height: 1.12;
    margin: 0 0 12px;
}

.if-legal-updated {
    color: #8b7b72;
    font-size: 13px;
    margin: 0 0 38px;
}

.if-legal-container section {
    border-top: 1px solid #e8d8cf;
    padding: 22px 0 8px;
    margin: 0;
}

.if-legal-container h2 {
    color: #781321;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 400;
    margin: 0 0 10px;
}

.if-legal-container p {
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 12px;
}

.if-legal-container a {
    color: #981735;
    text-decoration: underline;
}

@media (max-width: 600px) {
    #if-home .if-featured,
    #if-home .if-wellness {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    #if-home .if-bottom-products {
        padding-bottom: 18px !important;
    }

    .if-footer {
        padding-top: 28px !important;
    }

    .if-footer-inner {
        gap: 20px 14px !important;
        padding-bottom: 22px !important;
    }

    .if-legal-page {
        padding: 42px 18px 52px;
    }

    .if-legal-updated {
        margin-bottom: 26px;
    }
}
