/* 
Theme Name:		 dipstore
Theme URI:		 http://childtheme-generator.com/
Description:	 dipstore is a child theme of WP media Twentyfive
Author:			 Dylan Ross
Author URI:		 http://childtheme-generator.com/
Template:		 twentytwentyfive
Version:		 1.0.0
Text Domain:	 dipstore
*/

/* ------------------------------
   Global: background + fade-in
------------------------------ */
html,
body.page-template-page-holding {
    height: 100%;
    overscroll-behavior-y: none;  /* reduce rubber-band scroll a bit */
}

body.page-template-page-holding {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background-image: url('https://dipstore.co.uk/wp-content/uploads/2025/11/iStock-2162121163.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0;
    animation: holding-fade-in 0.8s ease-out forwards;
}

/* Make sure theme wrappers don't interfere */
.page-template-page-holding #page,
.page-template-page-holding #wrapper,
.page-template-page-holding .site,
.page-template-page-holding .site-main.holding-page {
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
}

/* Hide theme header/footer + random hrs */
.page-template-page-holding #header,
.page-template-page-holding #footer,
.page-template-page-holding hr {
    display: none !important;
}

/* Typography (Adobe Rooney) */
@import url("https://use.typekit.net/nqq5iov.css");

.holdingfont {
    font-family: "rooney-web", serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
    letter-spacing: 0.02em;
}

.page-template-page-holding body {
    font-family: "rooney-web", serif;
}

/* Shared icon style (desktop defaults) */
.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 0;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.icon-link img {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: contain;
}

.icon-link:hover,
.icon-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.icon-link:hover img,
.icon-link:focus-visible img {
    filter: brightness(1.1);
}

/* Fade-in animation */
@keyframes holding-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------
   DESKTOP LAYOUT
------------------------------ */

/* Desktop only needs the full height globally */
.holding-desktop {
    min-height: 100vh;
    box-sizing: border-box;
}

.holding-desktop {
    display: flex;
    flex-direction: row;
    padding: 2.5rem 3rem;
    color: #0E2958; /* deep navy / adjust if needed */
}

/* Logo top-left */
.hd-logo img {
    width: 220px;
    height: auto;
    display: block;
}

/* Main centre block */
.hd-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.75rem;
    margin-right: 4em;
}

/* Desktop heading */
.hd-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 3rem);
}

.hd-sub {
    font-size: inherit;
}

/* Icons centred under text */
.hd-icons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* By default: show desktop, hide mobile */
.holding-mobile {
    display: none;
}

/* ------------------------------
   MOBILE LAYOUT (matches mock 2)
------------------------------ */

@media only screen and (max-width: 999px) and (orientation: portrait) {

    /* Allow normal scroll and sane heights on mobile */
    html,
    body.page-template-page-holding {
        height: auto !important;
        min-height: 100vh !important;
        overscroll-behavior-y: auto !important;
    }

    /* Ensure no theme wrapper creates phantom space */
    #page,
    #wrapper,
    .site,
    .site-main.holding-page {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .holding-desktop {
        display: none;
    }

    /* Mobile overlay wrapper */
    .holding-mobile {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;                  /* full viewport */
        z-index: 10;

        height: 100vh;             /* fallback */
        height: 100dvh;            /* correct behaviour on mobile browsers */

        padding: 1.25rem 1rem 1.25rem;
        box-sizing: border-box;
        color: #0E2958;
        justify-content: space-between; /* top block + bottom block */
        overflow-y: auto;              /* small scroll if really needed */
    }

    .hm-top {
        text-align: center;
    }

    .hm-logo {
        width: min(80vw, 500px);
        height: auto;
        display: block;
        margin: 0 auto 0.6rem;
    }

    .hm-title {
        margin: 0;
        font-size: clamp(2rem, 6vw, 3rem);
        line-height: 1.2;
    }

    .hm-spacer {
        display: none; /* no longer needed */
    }

    .hm-bottom {
        text-align: center;
    }

    .hm-sub {
        margin: 0 0 0.75rem 0;
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hm-icons {
        display: flex;
        justify-content: center;
        gap: 1.25rem;
    }

    /* Flat SVG icons on mobile */
    .icon-link {
        width: clamp(64px, 20vw, 96px);
        height: clamp(64px, 20vw, 96px);
        border-radius: 999px;  /* keep circles */
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .icon-link img {
        width: 100%;
        height: auto;
        display: block;
    }
}

