/*
 * Additional Styles for Child Theme
 * This file is automatically enqueued if it exists
 */

 /* ========================================
   OUTFIT FONT FACES
======================================== */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url('../fonts/Outfit-Thin.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url('../fonts/Outfit-ExtraLight.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Outfit-Light.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Outfit-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Outfit-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Outfit-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Outfit-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/Outfit-ExtraBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/Outfit-Black.ttf') format('truetype');
}

:root {
    --font-size--h1: clamp(50px, 6vw, 52px);;
    --font-size--h2: 26px;
    --font-size--h3: 24px;
    --font-size--h4: 22px;
    --font-size--h5: 20px;
    --font-size--h6: 18px;

    /* --colour--body--background: var(--wp--preset--color--black); */
    --colour--text: var(--wp--preset--color--black);
    --colour--link: var(--wp--preset--color--orange);

    /* Header */
    --header--background-colour: var(--wp--preset--color--white);
    --header--bottom-border--width: 1px;
    --header--bottom-border: var(--header--bottom-border--width) solid var(--wp--preset--color--black);
    --header--height: 100px;

    /* Navbar */
    --navbar--item--colour: var(--wp--preset--color--black);
    --navbar--item--font-family: var(--wp--preset--font-family--default);
    --navbar--dropdown--menu--border--colour: var(--wp--preset--color--orange);
    --navbar--dropdown--menu--border--width: var(--header--bottom-border--width);
    --navbar--dropdown-item--colour: var(--navbar--item--colour);

    /* Footer */
    --footer--background-colour: var(--wp--preset--color--black);
    --footer--colour: var(--wp--preset--color--white);
    --footer--link--colour: var(--wp--preset--color--white);
}

/* ========================================
   Style overrides for Homepage
======================================== */
body.home {
    --header--background-colour: var(--wp--preset--color--black);
    --navbar--item--colour: var(--wp--preset--color--white);
} 

::selection {
    background-color: var(--wp--custom--color--selection);
    color: var(--wp--preset--color--white);
}

/* ========================================
   HEADER + FOOTER
======================================== */

/* Sticky footer layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:nt(.home) .site-main {
    flex: 1;
    margin-bottom: var(--spacing-xxl);
}
.mobile-menu-toggle {
    display: flex !important;
}
.mobile-menu-toggle__line {
    background-color: var(--navbar--item--colour);
}

.mobile-navigation.fade-in {
    align-items: flex-start;
}
.mobile-navigation.fade-in > * {
    display: flex;
    min-height: calc(100vh - var(--header--height));
    padding-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
}
.mobile-nav-menu {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
    align-content: start;
}

/* Portrait orientation: 2 columns × 3 rows */
@media (orientation: portrait) {
    .mobile-nav-menu {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, min-content);
    }
}

/* Landscape orientation: 3 columns × 2 rows */
@media (orientation: landscape) {
    .mobile-nav-menu {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, min-content);
    }
}
.mobile-nav-item {
    align-items: center;
    aspect-ratio: 1 / 1;
    background: #333;
    border-bottom: none;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    min-width: 0;
    box-sizing: border-box;
}

/* Make links fill the square */
.mobile-nav-link {
    box-sizing: border-box;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 1rem;
    text-decoration: none;
    width: 100%;
}
.mobile-nav-link > *:first-child {
    font-weight: var(--font-weight--bold);
    font-size: clamp(0.75rem, 2vw + 0.75rem, 2rem);
}
.mobile-nav-link > *:last-child {
    font-weight: var(--font-weight--light);
    font-size: clamp(0.5rem, 1vw + 1rem, 1.5rem);
}

footer {
    padding-bottom: 3rem;
    padding-top: 3rem;
}
body:not(.home) footer {
    margin-top: 3rem;
}
footer a {
    text-decoration: none;
}
footer .is-layout-constrained > * {
    flex: 1;
    margin-top: 0;
}
footer .is-layout-constrained > *:last-child > *:not(:last-child) {
    margin-right: 1rem;
}
.footer-logo {
    display: inline-block;
    margin-bottom: var(--spacing-md);
}
footer ul {
    list-style: none;
    margin-top: 0;
    padding-left: 0;
}
.footer-menu li:not(:last-child) {
    margin-bottom: var(--spacing-sm);
}
.footer-social {
    display: flex;
}
.footer-social > *:not(:last-child) {
    margin-right: 1.5rem;
}
.footer-social a:not(:has(i)) {
    align-items: center;
    background-color: var(--wp--preset--color--white);
    border-radius: 100px;
    color: var(--wp--preset--color--black);
    display: inline-flex;
    height: 35px;
    justify-content: center;
    padding: 0 30px;
}
.footer-social a:has(i) {
    align-items: center;
    background-color: white;
    border-radius: 100px;
    color: black;
    display: inline-flex;
    height: 35px;
    justify-content: center;
    width: 35px;
}

/* Social media buttons - circular styling */
footer .wp-block-buttons .wp-block-button .wp-block-button__link {
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

/* ========================================
   HEADINGS
======================================== */
h1 {
    font-size: clamp(36px, 6vw, 66px);
}
h2 {
    font-size: clamp(34px, 4.5vw, 50px);
}
h3 {
    font-size: clamp(28px, 3.5vw, 56px);
}
h4 {
    font-size: clamp(22px, 2.5vw, 40px);
}
h5 {
    font-size: clamp(18px, 1.8vw, 28px);
}
h6 {
    font-size: clamp(16px, 1.2vw, 22px);
}

h2:not(.no-fullstop)::after,
h3:not(.no-fullstop)::after,
h4:not(.no-fullstop)::after,
h6:not(.no-fullstop)::after {
    content: '.';
    color: var(--wp--preset--color--purple);
}


/* ========================================
   SITE SPECIFIC STYLES
======================================== */
:root :where(.wp-block-button .wp-block-button__link) {
    border: none;
}
.round-corners {
    border-radius: 10px;
    overflow: hidden;
}
.wp-block-tiptip-hyperlink-group-block {
    text-decoration: none;
}
.page_children__child {
    text-decoration: none;
}

/* ========================================
   TESTIMONIALS SLIDER
======================================== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}
.testimonials-slider-container {
    overflow: hidden;
    margin: 0; /* Remove side margins on mobile */
}
.testimonials-slider-track {
    display: flex;
    gap: 0;
    transition: transform 0.3s ease;
    align-items: stretch;
}
.testimonials-slider-slide {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    display: flex;
}
.testimonial-single {
    padding: var(--spacing-lg);
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}
.testimonial-single > * {
    border-radius: 10px;
}
.testimonial-single--image--container {
    align-items: center;
    aspect-ratio: 1;
    background-color: var(--wp--preset--color--mint);
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    width: 100%;
}
.testimonial-single--image--container img {
    height: auto;
    width: 100%;
}
.testimonial-single--details {
    background-color: var(--wp--preset--color--green);
    padding: var(--spacing-md);
}
.testimonial-single--details--title {
    font-size: 20px;
    font-weight: var(--font-weight--bold);
}

/* Slider Navigation */
.testimonials-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: none; /* Hide on mobile */
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}
.testimonials-slider-btn {
    background: transparent;
    border: none;
    color: var(--wp--preset--color--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    pointer-events: auto;
}
.testimonials-slider-btn:hover {
    color: var(--wp--preset--color--orange);
    transform: scale(1.1);
}
.testimonials-slider-btn:disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}
.testimonials-slider-prev {
    left: 10px;
}
.testimonials-slider-next {
    right: 10px;
}
.testimonials-slider-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

/* Slider Dots */
.testimonials-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 2px;
}
.testimonials-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.testimonials-slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}
.testimonials-slider-dot.active {
    background: var(--wp--preset--color--white);
    transform: scale(1.2);
}

.page_children {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 1.5rem;
}
.page_children__child {
    display: block;
}
.page_children__child__featured_image img {
    height: auto;
    width: 100%;
}
.page_children__child__details {
    font-size: 20px;
    font-weight: var(--font-weight--bold);
    margin-top: 1rem;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    /* ========================================
    SITE SPECIFIC STYLES
    ======================================== */
    .half-height {
        height: calc(50% - 12px);
    }
    .image-align-right img {
        margin-left: auto;
    }
    .image-fill-height {
        height: 100%;
    }
    .image-fill-height img {
        height: 100%;
        width: auto;
    }
    .image-pop-left img {
        left: -65px;
        position: relative;
    }
    footer .is-layout-constrained > *:last-child {
        display: flex;
        justify-content: flex-end;
    }
    .testimonials-slider-container {
        margin: 0 60px; /* Restore side margins for arrows */
    }
    .testimonials-slider-nav {
        display: flex; /* Show arrows on desktop */
    }
    .testimonial-single {
        flex-direction: row;
    }
    .testimonial-single--image--container {
        flex: 1 0 33.333%;
        margin-bottom: 0;
        margin-right: var(--spacing-md);
        min-width: 0;
    }
    .testimonial-single--details {
        flex: 2 0 66.666%;
    }

    .page_children {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    :root {
        --font-size--h2: 42px;
        --font-size--h3: 38px;
        --font-size--h4: 32px;
        --font-size--h5: 24px;
        --font-size--h6: 18px;
    }
}

/* Extra xl large devices (large desktops, 1400px and up) */
@media (min-width: 1400px) {
    
}

/* Publishing Bureau xxl large devices (large desktops, 1600px and up) */
@media (min-width: 1600px) {

}

/* ========================================
   PRINT STYLES
======================================== */

/*
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
*/