/* =========================
   GLOBAL PAGE STYLE
========================= */

html {
    font-size: 16px; /* default desktop */
}


body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    color: #003300;
    font-size: 1rem;

    background-image: url("../images/placeholder.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background-color: #054C05;
    padding: 5px 20px;
    position: relative;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: white !important;
}

/* Hamburger icon */
.menu-icon {
  width: 30px;
  height: 30px;
}

/* =========================
   COLLAPSE MENU POSITION
========================= */

/* Position must exist BEFORE menu opens */
.navbar-collapse {
    position: absolute;
    right: 15px;
    top: 60px;
    width: 250px;
    background: #054C05;
    border-radius: 10px;
    text-align: center;
}

/* Only visibility controlled by Bootstrap */
.navbar-collapse:not(.show) {
    display: none;
}

/* =========================
   MENU ITEMS
========================= */

.navbar-nav {
    display: flex;
    flex-direction: column;
}

.navbar-nav .nav-item {
    margin: 8px 0;
}

.nav-link {
    color: white !important;
}

.nav-link:hover {
    color: #8cff8c !important;
}

/* =========================
   CENTER CONTENT
========================= */

.container-center {
    width: 70%;
    margin: 40px auto;
    text-align: center;
    padding: 0px;
    border-radius: 15px;
}

/* =========================
   IMAGE PLACEHOLDER
========================= */

img {
    max-width: 100%;
    border-radius: 10px;
}

/* =========================
   PHASE BLOCKS
========================= */

.phase-blocks {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.phase-block {
    width: 250px;
    height: 140px;
    background: linear-gradient(135deg, #2f8f2f, #6fcf6f); /* upgraded */
    color: white;
    border-radius: 12px;
	opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;

    cursor: pointer; /* ✅ KEY FIX */
    position: relative;
    overflow: hidden;

    transition: all 0.3s ease;
}

.phase-block:nth-child(1) { animation-delay: 0.1s; }
.phase-block:nth-child(2) { animation-delay: 0.2s; }
.phase-block:nth-child(3) { animation-delay: 0.3s; }
.phase-block:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phase-block:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

#phaseImage {
  max-width: 75%;
  border-radius: 10px;
  margin: 20px auto;

  opacity: 0;
  transform: translateY(10px);

  transition: opacity 0.4s ease, transform 0.4s ease;

  display: block;        /* ✅ always block */
  visibility: hidden;    /* hide instead of display:none */
}

#phaseImage.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
/* =========================
   COMING SOON
========================= */

.coming-soon {
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 40px;
}

/* =========================
   CONTACT FORM
========================= */

input.form-control,
textarea.form-control {
    border: 2px solid #2f8f2f !important;
}

input.form-control:focus,
textarea.form-control:focus {
    border-color: #145214 !important;
    box-shadow: 0 0 0 0.2rem rgba(20, 82, 20, 0.25) !important;
}

.contact-form {
    width: 400px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #3aa63a;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #1a8f1a;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    background: #146e14;
}

.form-control {
    border: 2px solid #054c05;
}

.form-control:focus {
    border-color: #054c05;
    box-shadow: 0 0 0 0.2rem rgba(26, 94, 26, 0.25);
}

/* CHECKBOX DEFAULT (THIS WAS MISSING) */
/* =========================
   FORM CHECK (FINAL FIX)
========================= */

.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* CHECKBOX DEFAULT */
.form-check-input {
    border: 2px solid #054c05;
    background-color: #fff;

    /* KEY FIXES */
    float: none;
    margin: 0;
    flex-shrink: 0;   /* prevents squishing */
    width: 16px;
    height: 16px;
}

/* LABEL */
.form-check-label {
    margin: 0;
}

/* CHECKED */
.form-check-input:checked {
    background-color: #2f8f2f;
    border-color: #2f8f2f;
}

/* FOCUS */
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(20, 82, 20, 0.25);
    border-color: #054c05;
}

/* =========================
   INFO BLOCKS
========================= */

.info-blocks {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.info-card {
    width: 230px;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    font-size: 1.05rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* different green shades */
.info-card:nth-child(1){
    background: linear-gradient(135deg, #054C05, #2f8f2f);
}

.info-card:nth-child(2) {
    background: linear-gradient(135deg, #054C05, #6fcf6f);
}
.info-card:nth-child(3) {
    background: linear-gradient(135deg, #054C05, #8ce08c);
}
.info-card:nth-child(4) {
    background: linear-gradient(135deg, #054C05, #a0e3a0);
}

.info-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 20px #2f8f2f;
    background: linear-gradient(135deg, #4caf50, #81c784); /* slightly brighter on hover */
}

.info-card h3 {
    margin-bottom: 12px;
    font-size: 2.0rem;
}

@media (max-width: 1024px) {
    .info-blocks {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        width: 80%;
    }
}

.home-bg {
    position: relative; /* required for overlay positioning */
    background-image: url("../images/bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Overlay only affects background */
.home-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.5); /* 50% transparent white overlay */
    pointer-events: none; /* allows clicks on content */
    z-index: 1;
}

/* Ensure content sits above the overlay */
.home-bg > * {
    position: relative;
    z-index: 2;
}

.footer {
    padding:40px 0;
    text-align:center;
    margin-top:60px;
}

.footer-block {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    background: #E6F1D1;
    padding: 5px; /* increased padding for nicer spacing */
    border-radius: 8px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center; /* center horizontally */
    flex-wrap: nowrap; /* keep everything on one line */
}

.footer-logo {
    width:120px;
    border-radius:10px;
}

.footer-text {
    text-align:left;
}

.footer-block h4 {
    color:#054C05;
    margin-top:10px;
    font-size: 16px;
}

.footer-bottom {
    margin-top:20px;
    font-size:14px;
    text-align: center;
}

.submit-btn {
    background-color:#4CAF50;
    color:white;
    border:none;
    padding:10px 25px;
    font-weight:600;
    border-radius:6px;
}

.submit-btn:hover {
    background-color:#3e8e41;
}

.enquire-btn {
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.enquire-btn:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.navbar .nav-link {
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border-radius: 8px;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

/* =========================
   HERO SECTION
========================= */

.hero-section {
    height: 85vh;
    background: url('../images/cover.jpeg') center/cover no-repeat;
    position: relative;
    color: white;
    z-index: 1;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
    pointer-events: none;
}

.hero-section > div,
.hero-section h3 {
    position: relative;
    z-index: 2;
}

/* Heading wrapper styling */
.hero-section h4 {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 12px;

    letter-spacing: 5px;
    text-transform: uppercase;

    color: #ffffff;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
    user-select: none;
}

.hero-img {
    display: block;
    max-width: 350px;   /* adjust this value */
    width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
	transform: rotate(-5deg); /* tilt left */
	box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}


/* =========================
   OPENING DATE CARDS INSIDE HERO
========================= */

.open-card {
    background-color: rgba(255, 255, 255, 0.9);
    color: #7b222b; /* Darker red text */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.open-card:hover {
    transform: translateY(-8px);
}

.open-card h5 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.open-card .date {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.open-card .btn {
    font-weight: 600;
    padding: 8px 20px;
    font-size: 1rem;
}

/* Flex container for cards (to add gap between them) */
.hero-section .d-flex.flex-wrap.justify-content-center.gap-3 {
    gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .open-card {
        min-width: 100%;
    }
    .hero-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

#pdfViewer {
    position: relative;
    z-index: 1; /* keeps PDF viewer under navbar in original state */
}

/* Force navbar above iframe/PDF */
.navbar {
    position: relative;
    z-index: 9999;
}

/* Ensure dropdown is even higher */
.navbar-collapse {
    z-index: 10000;
}

/* Fix iframe stacking issue */
iframe {
    position: relative;
    z-index: 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }


@media (max-width: 768px) {
    html {
        font-size: 18px; /* bigger text on mobile */
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }

    .container-center {
        width: 90%;
    }
    
    .navbar {
        flex-wrap: wrap;
    }

    .navbar-brand {
        font-size: 1.3rem;
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .footer-text {
        text-align: center;
    }

#phaseImage {
  max-width: 100%;
  border-radius: 10px;
  margin: 20px auto;

  opacity: 0;
  transform: translateY(10px);

  transition: opacity 0.4s ease, transform 0.4s ease;

  display: block;        /* ✅ always block */
  visibility: hidden;    /* hide instead of display:none */
}

#phaseImage.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}



}
.location-card{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;

    max-width:420px;
    margin:0 auto;

    padding:18px 22px;
    border-radius:18px;

    background:rgba(255,255,255,0.88);
    backdrop-filter:blur(10px);

    box-shadow:0 8px 25px rgba(0,0,0,0.08);

    transition:all 0.3s ease;

    color:#1f2937;
}

.location-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,0.12);
}

.location-icon{
    font-size:28px;
    color:#dc3545;
}

.location-title{
    font-size:1.1rem;
    font-weight:700;
}

.location-subtitle{
    font-size:0.9rem;
    color:#6b7280;
}