﻿
/* BASE ROOT VARIABLES STYLES
===================================================================== */
:root {

/* BASE GRID VARIABLES ------------------------------------ */
--container-padding: 2rem;
--max-width: 1024px;
--gap: 2rem;

/* BASE COLOR VARIABLES ------------------------------------ */
/* Cream */
--cream-hue: 254, 248, 234;
--cream: #FEF8EA;

/* TM Blue */
--blue-hue: 0, 51, 74;
--blue: #00334A;

/* TM Orange */
--orange-hue: 231, 106, 36;
--orange: #E76A24;

/* RMG Tan */
--tan-hue: 147, 124, 88;
--tan: #937C58;

/* RMG Maroon */
--maroon-hue: 135, 32, 49;
--maroon: #872031;


/* Body Text */
--basetext-hue: 51, 51, 51;
--basetext: #333333;
}


 /* code snippets -------------------------
     
rgba(var(--blue-hue), 0.3);
var(--blue);




 /* GSAP VARIABLES ------------------------------------ */
.gsaphidden {
    visibility: hidden;
    opacity: 0;
}

.gsapopacity0 {
    opacity: 0;
}

.gsap-wrap {
    position: relative; /* Container must be relative */
    overflow: hidden;   /* Keeps pasta from bleeding into other sections */
}

.parallax-pasta {
    position: absolute;
    z-index: 5;
    pointer-events: none; /* So they don't interfere with clicks/links */
    width: 150px; /* Adjust size as needed */
    opacity: 0.8;
}

/* Position them specifically for each brand section */
.rmg-wrap .p-1 { right: 5%; top: 10%; width: 80px; transform: rotate(-15deg); }
.rmg-wrap .p-2 { right: 10%; top: 100%; width: 120px; transform: rotate(90deg); }

.tm-wrap .p-1 { right: 10%; top: 100%; width: 100px; transform: rotate(-25deg); }
.tm-wrap .p-2 { right: 10%; top: 10%; width: 60px; transform: rotate(90deg); }

/* 3. Positioning the 4 pieces (2 RMG on Left, 2 TM on Right) */
.mission-wrap .p-1 { left: -5%; top: 10%; width: 80px; transform: rotate(15deg); }
.mission-wrap .p-2 { left: -10%; top: 100%; width: 120px; transform: rotate(-25deg); }
.mission-wrap .p-3 { right: -8%; top: 15%; width: 50px; transform: rotate(45deg); }
.mission-wrap .p-4 { right: -6%; top: 102%; width: 90px; transform: rotate(-10deg); }

.partner-wrap .p-1 { right: 12%; top: 10%; width: 120px; transform: rotate(15deg); }
.partner-wrap .p-2 { right: 0; top: 100%; width: 90px; transform: rotate(95deg); }


/* CSS STYLES
===================================================================== */


/* =====================================================================
	WRAPPER / NON-RESPONSIVE ELEMENTS
===================================================================== */

.l-franchise {
    font-family: brandon-grotesque, sans-serif;
    color: var(--basetext);
    font-size: 18px;
    line-height: 1.4em;
    background-color: #ffffff;
}

.basesectionwidth {
    clear: both; 
    position: relative; 
    z-index: 2;
    }

.basegridwidth {
    position: relative;
    margin: 0 auto;
    }
    
.contentwidth {
    position: relative;
    margin: 0 auto;
    }

@media only screen and (min-width: 1023px) {
    .basesectionwidth {
        clear: both; 
        width: 100%;
        min-width: 984px;
        }

    .basegridwidth {
        width: 95%;
        min-width: 984px; 
        max-width: 1260px; 
        }
    
    .contentwidth {
        width: 95%;
        min-width: 924px;
        margin: 0 auto;
        }
}

/* =====================================================================
	DEFAULT GRID WRAPS / NON-RESPONSIVE ELEMENTS
===================================================================== */

/* GLOBAL GRID CONTENT STYLES ------------------------------------ */

.content-part {
  padding: var(--container-padding);
}

.content-part h3 {
    text-transform: uppercase;
    font-size: 26px;
    margin: 0 0 5px 0;
}

.content-part h4 {
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.1em;
    margin: 0 0 10px 0;
}

.content-part h5 {
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.1em;
    margin: 14px 0 10px 0;
}

.content-part ul {margin: 16px 0 22px 0; padding: 0 0 0 0; display: block; position: relative;}
.content-part ul li  {margin: 9px 0 9px 25px; padding: 0 100px 0 25px; line-height: 26px; list-style-type:none; position: relative;}

.content-part ul li:before {   
    position: absolute;
    top: 11px;
    left: 0;
    background-color: #00334A;
    content: "";
    height: 6px;
    width: 6px;
    border-radius: 50%;
    -webkit-transition: all .2s;
    -moz-transition: all .2s;
    -ms-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s;
}

/* BASE CENTERED FULL GRID ------------------------------------ */
.center-wrap {
  display: grid;
  grid-template-columns: 
    [full-start] minmax(var(--container-padding), 1fr) 
    [content-start] min(var(--max-width), 100% - (var(--container-padding) * 2)) [content-end]
    minmax(var(--container-padding), 1fr) [full-end];
  text-align: center;
  align-items: center;
  padding: 2rem 0;
}

.center-wrap > * {
  grid-column: content;
}

/* BASE SPLIT BLEED GRID ------------------------------------ */
.split-bleed-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
  width: 100%;
}

.split-bleed-wrap .image-part {
  flex: 1 1 40%;
  height: 700px; /* Adjust as needed */
  overflow: hidden; /* CRITICAL: Creates the window effect */
  position: relative; /* Allows absolute positioning if needed later */

}

.split-bleed-wrap .image-part img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
}

.split-bleed-wrap .content-part {
  flex: 1 1 50%;
}

/* Direction Modifiers ------------------------------------ */
.row-reverse { flex-direction: row-reverse;}

/* BASE CARD GRID ------------------------------------ */
.card-wrap {
  display: grid;
  /* Syncs with your main grid tracks */
  grid-template-columns: 
    [full-start] minmax(var(--container-padding), 1fr) 
    [content-start] min(var(--max-width), 100% - (var(--container-padding) * 2)) [content-end] 
    minmax(var(--container-padding), 1fr) [full-end];
  padding: 1rem 0;
}

.card-grid-inner {
  grid-column: content;
  display: grid;
  /* The "Magic" line: 3 columns if space allows, 300px min width per card */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.card-part {
  background: #fff;
  border: 1px solid #eee;
  padding: var(--container-padding);
  transition: transform 0.3s ease;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
/* =====================================================================
	HOMEPAGE WRAPS / NON-RESPONSIVE ELEMENTS
===================================================================== */

/* FRANCHISE WRAP | CENTERED ------------------------------------ */

.franchisetitle-wrap {
    position: relative;
    height: 100px;
    margin-top: 99px;
    background-color: var(--cream);
    border-bottom: 1px solid rgba(var(--blue-hue), 0.3);
    padding: 2rem 0 1em 0;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;

}

.franchisetitle-wrap h3 {
    color: var(--blue);
    text-transform: none !important;
    font-size: 24px;
    font-weight: 600;
    line-height: .4em;
    text-transform: uppercase !important;
}

.franchisetitle-wrap .content-item {
    font-family: "thirsty-script", Sans-serif;
    color: #E76A24;
    text-transform: none !important;
    font-size: 56px;
    font-weight: 600;
    margin-top: -20px;
}

/* HERO WRAP ------------------------------------ */

.hero-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;                 
    align-items: center;
    justify-content: space-between;
    background-image:url('/Themes/Default/Content/Images/twisted-mac-rmg-franchise.jpg');
    background-size: cover;
    background-position: center center;
    height: 600px;
    z-index: 1;
    border-bottom: 1px solid rgba(var(--blue-hue), 0.3);
}

.hero-logo-container {
    display: flex;
    justify-content: center;       
    align-items: center;
    height: 100%;
    width: 50%;
    margin: 0 auto;
}

.hero-logo {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Optional: Add a subtle divider between the two brands */
.hero-logo-container.border-left {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* MISSION WRAP CENTERED ------------------------------------ */

.mission-wrap {
    background-color: #FEF8EA;
    padding: 3rem 0 3em 0;
    border-bottom: 1px solid rgba(var(--blue-hue), 0.3);
}

.mission-wrap .content-item {
    color: var(--blue);
    font-size: 30px;
    line-height: 1.2em;
    margin: 0 0 5px 0;
}


/* INTRO WRAP | CENTERED ------------------------------------ */

.intro-wrap {
    color: var(--blue);
    padding: 3rem 0 1em 0;
}

.intro-wrap h3 {
    color: var(--blue);
    text-transform: none !important;
    font-size: 44px;
    font-weight: 600;
    line-height: .9em;
    margin-bottom: .5em;
}

.intro-wrap .content-item {
    color: var(--blue);
    text-transform: none !important;
    font-size: 24px;
    font-weight: 400;
}

/* PROVIDE WRAP | CARDS 3 ------------------------------------ */

.provide-wrap  {
    background-color: #ffffff;
    padding: 1rem 0 3em 0;
}

.provide-wrap h3 {
    color: var(--orange);
    text-transform: none !important;
    font-size: 24px;
    font-weight: 900;
    line-height: 1em !important;
    text-transform: uppercase !important;
    padding: 0 0 .5em 0;
    border-bottom: 1px solid rgba(var(--blue-hue), 0.4);
}

.card-part .content-item {
    padding: .5em 0 .5em 0;
    color: var(--blue);
    text-transform: none !important;
    font-size: 16px;
    line-height: -.75em;
    font-weight: 400;
}

/* RMG WRAP | SPLIT BLEED ------------------------------------ */
.rmg-wrap {
    position: relative;
    background-color: rgba(var(--cream-hue), 0.6);
    border-top: 1px solid rgba(var(--blue-hue), 0.3);
    border-bottom: 1px solid rgba(var(--blue-hue), 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.rmg-wrap .content-part h3 {
    color: var(--tan);
    padding: 0 0 .25em 0;
}

.rmg-wrap .content-part h4 {
    color: var(--maroon);
    width: 70%;
    padding: 0 0 .25em 0;
}

.rmg-wrap .content-part h5 {
    color: var(--maroon);
    padding: .25em 0;
    font-size: 1.2em;
    text-transform: none;
}

/* TWISTED WRAP | SPLIT BLEED ------------------------------------ */
 
.tm-wrap {
    background-color: #ffffff;    
    border-top: 1px solid rgba(var(--blue-hue), 0.3);
    border-bottom: 1px solid rgba(var(--blue-hue), 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tm-wrap .content-part h3 {
    color: var(--blue);
    font-weight: 900;
    padding: 0 0 .25em 0;
}

.tm-wrap .content-part h4 {
    font-family: "thirsty-script", Sans-serif;
    color: var(--orange);
    width: 65%;
    font-size: 1.3em;
    line-height: 1.4em;
    font-weight: 600;
    text-transform: none !important;
}

.tm-wrap .content-part h5 {
    color: var(--orange);
    padding: .25em 0;
    font-size: 1.2em;
    text-transform: none;
}

/* PARTNER WRAP | SPLIT BLEED ------------------------------------ */

.partner-wrap {
    position: relative;
    background-color: rgba(var(--cream-hue), 0.8);
}

.partner-wrap .content-part h3 {
    color: var(--blue);
    font-weight: 900;
    padding: 0 0 .25em 0;
}

.partner-wrap .content-part h4 {
    color: var(--blue);
    width: 70%;
    padding: 0 0 .25em 0;
}

.partner-wrap .content-part h5 {
    color: var(--blue);
    padding: .25em 0;
    font-size: 1.2em;
    text-transform: none;
}


/* CTA WRAP | CENTERED ------------------------------------ */
.cta-wrap {
    background-color: var(--blue);
    padding: 60px 0;
    color: #ffffff;
}

.cta-wrap h3 {
    font-size: 2em;
    font-weight: 900;
    padding: 0 0 .25em 0;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cta-wrap .content-part {
    color: var(--cream);
    font-weight: 400;
    padding: 0 0 .25em 0;
}

.cta-wrap .link-part a {
    clear: both;
    display: inline-block;
    background-color: var(--cream);
    color:  var(--blue);
    margin: 0 auto;
    padding: 18px 46px;
    text-align: center;
    font-size: 1.4em;
    line-height: 1em;
    letter-spacing: .04em;
    margin-top: 15px;
    font-weight: 600;
    transition: .3s ease-in-out;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.5);
    outline: 1px solid rgba(var(--blue-hue), 0.8);
    outline-offset: -6px;
}

.cta-wrap .link-part a:hover {
    transition: .4s ease-in-out;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
    outline: 1px solid rgba(var(--cream-hue), 0.8);
    outline-offset: 2px;
    padding: 18px 56px;
}


/* RESPONSIVE ELEMENTS ------------------------------------ */

@media (max-width: 1044px) {

    /* Force the cards into a single vertical column */
    .card-grid-inner {
        grid-template-columns: 1fr !important; 
        gap: 1.5rem;
    }

    .card-wrap {
        grid-template-columns: 1fr;
        width: 90%;
        margin: 0 auto;
    }

    .card-part {
        padding: 3rem 1rem;
        width: 80%;
        margin: 0 auto;
    }

    .card-part br {
        display: none;
    }
    .card-part .content-item {
        width: 70%;
        margin: 0 auto;
    }

}

@media (max-width: 1004px) {

    .franchisetitle-wrap {
        margin-top: 60px;
    }

    .hero-wrap {
        height: 350px;
    }

    .hero-logo-container {
        width: 75%;
        margin: 0 auto;
    }

    .hero-logo.rmg {
        padding-right: 45px;
    }

    .hero-logo.tm {
        padding-left: 45px;
    }

    .split-bleed-wrap {
        flex-direction: column !important;
    }

    .split-bleed-wrap .image-part {
        flex: 1 1 100%;
        width: 100%;
        height: 400px;
    }

    .split-bleed-wrap .content-part {
        flex: 1 1 100%;
        width: 80%;
        padding: 2rem 1em;
    }

    .rmg-wrap .content-part h4 {
        width: 100%;
    }

    .tm-wrap .content-part h4 {
        width: 100%;
        font-size: 1em;
    }

    .content-part ul li {
        margin: 9px 0 9px 5px;
        padding: 0 0 0 15px;
        line-height: 26px;
        list-style-type: none;
        position: relative;
    }

}

@media (max-width: 975px) {

    .mission-wrap .content-item {
        font-size: 24px;
        line-height: 1.1em;
    }

}

@media (max-width: 768px) {

    .franchisetitle-wrap {
        padding: 1rem 0 .75em 0;
    }

    .franchisetitle-wrap h3 {
        font-size: 19px;
    }

    .franchisetitle-wrap .content-item {
        font-size: 36px;
    }

    .hero-wrap {
        grid-template-columns: 1fr;
        height: auto;
        padding: 0 10px 30px 10px;
        background-image: none;
    }

    .hero-logo {
        max-height: 195px;
    }

    .hero-logo.rmg {
        padding-right: 0;
    }

    .hero-logo.tm {
        padding-left: 0;
    }
    
    .card-part {
        width: 90%;
    }

    .card-part .content-item {
        width: 90%;
    }

    .cta-wrap h3 {
        font-size: 1.5em;
        font-weight: 900;
        padding: 0 0 .25em 0;
        text-transform: uppercase;
        letter-spacing: .05em;
    }
}

@media (max-width: 480px) {

    .franchisetitle-wrap .content-item {
        font-size: 33px;
    }

    .intro-wrap h3 {
        color: var(--blue);
        text-transform: none !important;
        font-size: 26px;
        font-weight: 600;
        line-height: 1em;
        margin-bottom: .2em;
    }

    .cta-wrap .link-part a {
        display: block;
        font-size: 1em;
    }
}