/* --------------------------------------------------
   GLOBAL VARIABLES
-------------------------------------------------- */
:root {
    --primary: #1A3E6D;
    --secondary: #D34C3F;
    --accent: #BBCDD9;

    --text-dark: #2C3E50;
    --text-light: #5A6A7A;

    --bg-light: #FBFBFB;
    --bg-mid: #F0F4F7;
    --white: #fff;

    --radius: 12px;
    --transition: 0.3s;

    --shadow-xs: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.07);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);

    --font-main: 'Inter', sans-serif;
}

/* Dark Mode Ready */
body.dark {
    --white: #101820;
    --bg-light: #0e1520;
    --bg-mid: #16202c;

    --text-dark: #e6e6e6;
    --text-light: #c5ccd5;

    --primary: #4d7bba;
    --secondary: #ff6b5c;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}


/* --------------------------------------------------
   RESET
-------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--white);
    color: var(--text-dark);
    font-family: var(--font-main);
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}


/* --------------------------------------------------
   UTILITY CLASSES
-------------------------------------------------- */
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.text-center { text-align: center; }

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}
.btn-primary {
    background: var(--secondary);
    color: #fff !important;
}
.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}


/* --------------------------------------------------
   SCROLL TO TOP
-------------------------------------------------- */
.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--secondary);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-sm);
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary); }

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
header {
    background: var(--white);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 900;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    width: 85px;
    height: 85px;
    margin-right: 10px;
}
.logo h4 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
}

.nav-links a {
    margin-left: 30px;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--secondary);
    transition: width var(--transition);
}
.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.hero {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-mid));
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 45px;
}

.hero-content {
    flex: 1;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 20px;
}
.hero-content h2 {
    font-size: 1.28rem;
    color: var(--text-light);
    margin-bottom: 25px;
}
.hero-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
}
.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    /* box-shadow: var(--shadow-sm); */
}

.cta-btn {
    background: var(--secondary);
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.cta-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}



/* --------------------------------------------------
   SECTION TITLE
-------------------------------------------------- */
section { padding: 80px 0; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: "";
    height: 4px;
    width: 65px;
    background: var(--secondary);
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 2px;
}


/* --------------------------------------------------
   ABOUT
-------------------------------------------------- */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 55px;
}

.about-content div { flex: 1; }

.about-content p {
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-content img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.vision-mission {
    /* display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;*/
    display: flex;
    gap: 25px;
} 

.vm-box {
    padding: 28px;
    background: var(--bg-mid);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}
.vm-box h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.vm-box p {
    color: var(--text-light);
}


/* --------------------------------------------------
   SERVICES
-------------------------------------------------- */
#services { background: var(--bg-mid); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* .service-img {
   width: 100%;
    height: 290px;
    overflow: hidden;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
} */

/* .service-img {
    width: 100%;
    aspect-ratio: 4 / 3;  
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;  
    overflow: hidden;
}

.service-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
} */

/* IMAGE CONTAINER – FIXED SIZE */
.service-img {
    width: 100%;
    height: 230px;          /* 🔒 FIXED HEIGHT */
    overflow: hidden;
    background: #000;
}

/* IMAGE – FORCE SAME FILL */
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* fills box completely */
    object-position: center;
    display: block;
}


.service-card:hover .service-img img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}


.service-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-content h3 {
    color: var(--primary);
    font-size: 1.45rem;
    margin-bottom: 10px;
    margin: 0 0 15px 0;
    padding: 0;
}
.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
    margin: 0 0 15px 0;
    padding: 0;
}
.service-content ul {
    /* padding-left: 20px; */
    /* list-style: disc; */
    margin: 0;
    padding-left: 20px;
    list-style-position: inside;
}
.service-content li {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.service-content ul li {
    margin-bottom: 8px;
}


/* --------------------------------------------------
   WHY-US
-------------------------------------------------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 25px;
}

.why-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-mid);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.why-item:hover {
    background: var(--accent);
    box-shadow: var(--shadow-md);
}

.why-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 12px;
}
.why-item h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.why-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}


/* --------------------------------------------------
   CONTACT
-------------------------------------------------- */
#contact { background: var(--bg-mid); }

.contact-grid {
    display: flex;
    gap: 45px;
}

.contact-info {
    flex: 1;
}
.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-item i {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-right: 12px;
}
.contact-item strong {
    color: var(--text-dark);
}

.contact-form {
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.contact-form .form-group {
    margin-bottom: 22px;
}

.contact-form label {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid #dcdcdc;
    background: #fafafa;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #0077ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.1);
    outline: none;
}

.contact-form textarea {
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}



/* --------------------------------------------------
   SOCIAL ICONS
-------------------------------------------------- */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    margin-right: 8px;
    font-size: 1.1rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
    background: var(--primary);
    color: #d8e2ee;
    padding: 50px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 35px;
}

.footer-logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary);
    /* margin-bottom: 15px; */
}

footer h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}
footer a{
    color: #c5ccd5;
}
footer a:hover {
    color: var(--accent);
}


/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 992px) {

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-grid {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        top: 75px;
        width: 100%;
        background: var(--white);
        text-align: center;
        flex-direction: column;
        padding: 15px 0;
        box-shadow: var(--shadow-md);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        padding: 12px 0;
        margin: 0;
        border-bottom: 1px solid var(--accent);
    }

    .mobile-menu { display: block; }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 2.2rem; }
    .section-title h2 { font-size: 2rem; }
    .services-grid, .why-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-image img {
        margin-bottom: 15px !important;
        border-radius: 15px !important;
        height: 200px;
    }
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.about-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 25px;
    /* object-fit: cover; */
}

/* Custom SweetAlert Styling */
.themed-popup {
    border-radius: 18px !important;
    padding: 30px !important;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15) !important;
}

.themed-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 10px !important;
}

.themed-text {
    font-size: 1rem !important;
    color: #4a5568 !important;
}

.themed-button {
    background: linear-gradient(135deg, #ff6b5a, #e04a3f) !important;
    color: white !important;
    padding: 10px 30px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 15px rgba(224, 74, 63, 0.4) !important;
    transition: 0.2s ease-in-out !important;
}

.themed-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(224, 74, 63, 0.5) !important;
}

@media (max-width: 564px){
    .vision-mission{
        display: flex;
        flex-direction: column;
    }
    .logo img{
        width: 100px;
        height: 90px;
    }
    .logo h4{
        font-size: 1.65rem;
        font-weight: 700;
    }
}
  /* ===== FIX HEADER DISAPPEARING ON MENU CLICK ===== */
/* ===== FIX HEADER BEHAVIOUR ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 9999;
}

/* Correct space for header height */
body {
  padding-top: 90px;
}
/* FINAL FIX: prevent headings from hiding under fixed header */
h1, h2 {
  margin-top: 0;
  padding-top: 40px;
}
.pill-contact-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: 92%;
  max-width: 420px;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  overflow: hidden;
}

.pill {
  flex: 1;
  padding: 12px 10px;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
}

.pill span {
  display: block;
  font-weight: 600;
  font-size: 12px;
}

.pill small {
  font-size: 11px;
  opacity: 0.8;
}

.pill.whatsapp {
  color: #1f7a4d;
}

.pill.call {
  background: #1f2f4f;
  color: #fff;
}

/* Mobile only */
@media (min-width: 769px) {
  .pill-contact-bar {
    display: none;
  }
}
/* Safe full-width sticky bar */
.safe-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 50%;
  display: none;
  z-index: 9999;
  background: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.safe-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  text-decoration: none;
  font-family: inherit;
}

.safe-btn img {
  width: 22px;
  height: 22px;
}

.safe-btn.whatsapp {
  background: #f3fbf6;
  color: #1f7a4d;
}

.safe-btn.call {
  background: #1f2f4f;
  color: #ffffff;
}

.safe-btn strong {
  display: block;
  font-size: 12px;
}

.safe-btn small {
  font-size: 11px;
  opacity: 0.85;
  white-space: nowrap;
}

/* Show ONLY on mobile */
@media (max-width: 767px) {
  .safe-sticky-bar {
    display: flex;
  }
}

/* Prevent overlap */
body {
  padding-bottom: 60px;
}
/* Fine-tune spacing without cutting text */
.safe-btn {
  padding: 11px 11px;
}

.safe-btn img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}


