/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

:root {
	--text-font: "AdelphiPEDisplayWeb-lt";
	--text-line-height: 1.3;
	--text-m: clamp(1.4rem, calc(0.3125vw + 2rem), 2.4rem);
	
	@media screen and (max-width: 425px) {
		--text-m: clamp(1.4rem, calc(0.3125vw + 1.4rem), 2.4rem);
	}
}

/* ===================================
   RESET BODY BACKGROUND & FONTS
   =================================== */
body {
    background: transparent;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===================================
   HERO SLIDESHOW
   =================================== */

.home-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.home-hero__slideshow {
    position: absolute !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1;
}

/* Base slide styling - all slides start hidden and zoomed in */
.home-hero__slide {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    top: 0 !important;
    left: 0 !important;
    
    /* Transitions: 4s for opacity, 10s for transform */
    transition-property: opacity, transform;
    transition-duration: 4s, 10s;
    transition-timing-function: ease-in-out;
    
    /* Start zoomed in */
    transform: scale(1.5);
    transform-origin: center center;
}

/* Images inside slides */
.home-hero__slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
}

/* When slide gets 'fx' class, it becomes visible and zooms out */
.home-hero__slide.fx {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Special animation for the FIRST slide - overrides transition */
.home-hero__slide.fx.start {
    animation: zoomout 10s ease-in-out;
}

@keyframes zoomout {
    from {
        transform: scale(1.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Keep previous slides below new ones */
.home-hero__slide.fx:first-child + .home-hero__slide ~ .home-hero__slide {
    z-index: 1;
}

/* Overlay */
.home-hero__overlay {
	    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
	background: #000;
	transition: background 3s ease-in-out;
	opacity: 0.4;
	z-index: 10;
}

body.bg-light .home-hero__overlay {
	background: #fff;
}

/* ===================================
   LOGO - PERFECT CENTERING
   =================================== */

.home-hero__logo {
    position: fixed !important; /* Changed from absolute to fixed */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 350px;
    max-width: 60%;
    z-index: 250;
    margin: 0 !important; /* Remove any default margins */
	transition: opacity 2s linear;
	padding: 10px;
    
}

.home-hero__logo svg,
.home-hero__logo img {
    width: 100%;
    height: auto;
    display: block; /* Remove any inline spacing */
    filter: brightness(0) invert(1);
    transition: filter 3s ease-in-out;
}

/* Panel logo */
.home-hero__logo--panels {
	opacity: 0;
	visibility: hidden;
}

body.show-panels .home-hero__logo {
	opacity: 0;
	visibility: hidden;
}

body.show-panels .home-hero__logo--panels {
	opacity: 1;
	visibility: visible;
}

/* Logo turns black on light backgrounds OR when panels are shown */
body.bg-light .home-hero__logo svg,
body.bg-light .home-hero__logo img,
body.show-panels .home-hero__logo svg,
body.show-panels .home-hero__logo img {
    filter: brightness(0) invert(0);
}

/* ===================================
   CONTACT BUTTON
   =================================== */

.contact-button {
    position: absolute !important;
    bottom: 40px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 30px !important;
    width: 80% !important;
    max-width: 400px !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    text-transform: capitalize !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: color 3s ease-in-out !important;
    z-index: 100 !important;
    font-size: var(--text-m) !important;
    font-family: var(--text-font);
    text-align: center !important;

	@media screen and (max-width: 426px) {
		bottom: 80px;
	}
}

.contact-button:hover {
    background: transparent !important;
}

/* Button text turns black on light backgrounds */
body.bg-light .contact-button {
    color: #2E2E2D !important;
}

/* ===================================
   CONTACT PANELS
   =================================== */

.contact-panels {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    pointer-events: none;
}

.contact-panel {
    position: absolute;
    left: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #2E2E2D;
    height: 0;
    opacity: 0;
    transition: height 1s ease-in-out, opacity 1s ease-in-out;
    transition-delay: 1s;
    pointer-events: none;
    
    /* Background image settings */
    background-position: center;
    background-size: cover;
    background-repeat: repeat;
}

.contact-panel * {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transition-delay: 0s;
}

.contact-panel--top {
    top: 40px;
    background-color: #f4ede5;
    background-image: url('/wp-content/uploads/4438-1.jpg'); /* Mosaic texture */
    font-size: var(--text-m);
    letter-spacing: 0.05em;
	font-family: var(--text-font);
}

.contact-panel--top a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.contact-panel--top a:hover {
    text-decoration: underline;
}

.contact-panel--bottom {
    bottom: 40px;
    background-color: #f9f6f3;
    background-image: url('/wp-content/uploads/129482-1.jpg'); /* Paper texture */
	font-size: var(--text-m);
	font-family: var(--text-font);
	line-height: var(--text-line-height);
	gap: 15px;
}

/* When panels are shown */
body.show-panels .contact-panel {
    height: calc(50% - 40px);
    opacity: 1;
    transition-delay: 0s;
    pointer-events: auto;
}

body.show-panels .contact-panel * {
    opacity: 1;
    transition-delay: 1s;
}

/* 
SOCIAL ICON
*/
.social-icon {
	width: 30px;
	height: 30px;
}

/* ===================================
   CLOSE BUTTON
   =================================== */

.close-button {
    position: absolute !important;
    bottom: 0px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 30px !important;
    width: 80% !important;
    max-width: 400px !important;
    background: transparent !important;
    border: none !important;
    color: #000 !important;
    text-transform: capitalize !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    font-size: var(--text-m) !important;
    text-align: center !important;
	font-family: var(--text-font);
}

.close-button:hover {
    text-decoration: underline !important;
    background: transparent !important;
}

/* Hide contact button when panels are shown */
body.show-panels .contact-button {
    opacity: 0;
    pointer-events: none;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media screen and (max-width: 768px) {
    .contact-button,
    .close-button {
        padding: 20px !important;
    }
    
    .contact-panel {
        left: 20px;
        right: 20px;
    }
    
    
    .home-hero__logo {
        width: 300px;
    }
}