/* ===== SMART PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11,156,49,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

/* show only when needed */
#preloader.active {
  opacity: 1;
  visibility: visible;
}

/* icon animation */
.preloader-icon {
  width: 80px;
  height: auto;
  opacity: 0;
  animation: fadePulse 3s ease-in-out infinite;
}

/* breathing effect */
@keyframes fadePulse {
  0% { opacity: 0; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

/* fade out smoothly */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* ========================================
   BASE & THEME
======================================== */
* { box-sizing: border-box; }


:root {
  --bg0: #F1F2F2 ;
  --bg1: #e5e7eb;
  --bg2: #464a4f;
  --bg3: #e1f0e4;
  --bg4: #d3d5db;
  --bg5: #fff;
  --bg6: #223140;
  --bg7: #06260a;
  --bg8: #67a86f;
  --bg9: #2f487a;
  --bg10: #9d9ea8;
  --text: #24224C;
  --accent: #39B54A;
  --brand: #24224C;
  --list: #0a66c2;
  --muted: #6b7280;
  --card: #e1f0e4;
  --hr: #e1f0e4;
  --shadow: 0 14px 30px rgba(0,0,0,.08);
}
header {
   	background: rgba(240, 248, 255, 0);
    line-height: 1; 
    
}
body {
  min-width: 680px;
  max-width: none !important;
  color: var(--text);
  font-family: "Calibri", sans-serif;
  font-weight: bold;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  

}
html, body {
  width:100%;
  min-height: 100%;
  min-width: 97vw;
  overflow-x: hidden;
  background: rgba(240, 248, 255, 0);
  margin: 0;
  padding: 0;
}
main h1,h2 {
  text-align: center; 
  color: var(--brand);
}
  
  
footer {
	background: rgba(240, 248, 255, 0);
	
}

html, body{
background-image: url("../images/mainZ.webp");
background-size: cover;
background-attachment: fixed;  /* elegant parallax-like effect */


}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, li { font-family: "casablanca-urw", sans-serif; }
p {font-family: "calibri", sans-serif; }
h1 {
  font-size: 30px;
  color: var(--bg1);
  font-weight: bold;
  text-align: left;
  margin-left: 0rem;
  margin-bottom: 0.1rem;
  margin-top: 0.5rem;
  text-shadow:var(--shadow);

  
}
h2 {
  font-size: 27px;
  color: var(--accent);
  font-weight: medium;
  text-align: left;
  margin: 0rem;
  text-shadow:var(--shadow);
}
h3 {
  font-size: 23px;
  color: var(--brand);
  font-weight: medium;
  text-align: left;
  margin: 10px;
  text-shadow:var(--shadow);
}


p {
  font-size: 18px;
  color: var(--text);
  font-weight: 550;
  text-align: left;
  
  text-shadow:var(--shadow);
}

::selection {
  background: #24224C !important;     /* your green brand color */
  color: #F1F2F2 !important;          /* text color during selection */
}

::-moz-selection {
  background: #24224C !important;
  color: #F1F2F2 !important;
}

/* ============================
   UNIVERSAL INPUT RESET
   Autofill | Focus | Active
   For ALL browsers
============================ */

/* 1. Prevent Chrome/Safari autofill weird colors */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #e1f0e4 inset !important;
  box-shadow: 0 0 0 1000px #e1f0e4 inset !important;
  background-color: #e1f0e4 !important;
  color: var(--text) !important;
}

/* 2. Disable Firefox yellow autofill */
input:-moz-ui-invalid,
input:-moz-ui-valid {
  background-color: #e1f0e4 !important;
}

/* 3. Remove the blue outline from all browsers on focus */
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--brand) !important; /* your dark blue-purple */
  box-shadow: 0 0 0 2px rgba(36,34,76,0.3);
  background-color: #e1f0e4 !important;
}



/* ========================================
   HEADER
======================================== */
.header-image {
  position: relative;          /* ✅ scrolls with the page */
  width: 120px;                /* full width edge to edge */
  height: auto;    /* adjusts automatically to image proportions */
  max-height: 150px;
  display: block;
  object-position: center; 
  margin-left: 2rem;
  margin-top: 1rem;
  background-color: transparent;
  object-fit: contain;
  
}
  

header.site { margin: 0; padding: 0;  }

/* ================================
   HEADER SPLIT LAYOUT
================================ */
.header-frame {
  position: relative;
  display: block;
  border-top: 7px solid var(--brand);
  border-bottom: 7px solid var(--brand);
  width: 100%;
  box-sizing: border-box;
  background-color:var(--bg5); /* or transparent if you prefer */
  padding: 0.3rem 1rem;
  height:100px;
  background-size: cover;          /* Stretch to fill screen */
  background-position: 75% 25%;     /* Keep centered */
  background-repeat: no-repeat;
  background-image: url("../images/LogoZ-background.webp"); 
}

.header-frame::before {
  content: "";
  position: absolute;
  inset: -3px 0;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  pointer-events: none;
}

/* inner content — split into two halves */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: 100%; /* allows wrapping on small screens */
}

/* left side — image + text inline */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}



.header-text h1 {
  font-family: "casablanca-urw", sans-serif;
  font-weight: bold;
  font-size: 53px;
  color: #24224C;
  margin: 0;
}

.header-text h2 {
  font-family: "casablanca-urw", sans-serif;
  font-weight: bold;
  font-size: 20.5px;
  color: #39B54A;
  margin: 0.3rem 0 0;
}

/* ========================================
   MAIN - TAK Boxes
======================================== */
main {
  margin: 0.5rem 0.5rem;   /* centers horizontally */
  padding:0;     /* safe side padding */
  max-width: auto;   /* or match your homepage width */
  margin-bottom: 0 !important;
  padding-bottom: 0.2rem !important; /* keeps footer from clipping */
  overflow-x: visible;
  display: block; 
  
  background-size: cover;        /* or "contain" if you prefer */
  background-repeat: no-repeat;
  background-position: center ; 
  background-attachment: fixed;  /* optional: elegant parallax-like effect */
  }
 
main h1 {
	color: var(--accent);
	line-height: 2rem; 
	text-align: left;
	}
main h2 {
	color: var(--brand); 
	font-size: 35px; 
	text-align: left;
	border-bottom: 3px solid var(--accent);
	}
main h3 {color:var(--accent);
}
.h3-image {width:1%;position:block;}


.slogan {text-align: left; padding-top: 4rem; 
margin-left: 4rem; line-height:2rem; }
.slogan h1 { font-size: 2.5vw !important; }
  .slogan h2 { font-size: 2.2vw !important; }


/* ========================================
   INFO BOXES — INTERACTIVE FEATURES SECTION
======================================== */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;

  max-width: 500px;
  width: 100%;            /* makes shrinking proportional */

  justify-items: center;  /* NEW — centers boxes in their columns */
  justify-content: center;/* NEW — keeps grid centered on shrink */

  margin:1rem auto;
  padding:1rem 0 1rem 0;
  text-align: left;
  margin-top:0;
}

.info-boxes .box {
  position: relative;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px); /* Required for Safari */
  background: rgba(11,156,49,0.3);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 1.2rem 0.8rem;
  height: 100px;
  width: 1380px;
  overflow: hidden;
  transition: all 0.35s ease, transform 0.25s ease;
  cursor: pointer;
  text-align: center;
  flex: 0 0 auto;
  
  
}


.info-boxes .box i {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 0;
  
}
.info-boxes .box h3 {
  color: var(--bg0);
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
  margin-top: 1rem;
  line-height: 2rem;
  
}


.info-boxes .box p {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Required for Safari */
  background:rgba(25, 25, 112, 0.3) ;
  position: absolute;
  inset:0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  padding:1rem;
  transition: opacity 0.2s ease;
  color: #F1F2F2;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-align: center;
  margin-top: 1rem;
  line-height: 2rem;
  border:none;
  
}


/* Hover expansion and reveal */
.info-boxes .box:hover {
  transform: scale(1.05);
  background:rgba(25, 25, 112, 0.3) 
  

}

.info-boxes .box:hover p {
  opacity: 1;
}
.info-boxes .box:hover h3{
   
    color: var(--brand);
}

.info.boxes .box i:hover {
  
  color: var(--bg3);
}

/* ========================================
   FOOTER/ only Main
======================================== */
.footer-scale {
    transform-origin: top center;
    transform: scale(1);
    width: 100%;
}

footer {
	width: 100%;
	text-align: center;
	font-size: 15px; 
	color: #F1F2F2 ;
	margin-top: 1rem !important;   /* gives breathing space above */
    padding-top: 0.5rem; 
	margin-bottom:0; 
	padding-bottom:0; 
	display: block;
	
    
	}

.site-credit {
    text-align: center;
    font-size: 0.6rem;
    color: var(--bg10); /* or white if dark footer */
    margin-top: 10px;
    line-height: 1.4;
}
	
.footer-image {
  position: relative;          /* ✅ scrolls with the page */
  object-position: center;
  width: 4%  ;
}

