/* =====================================================================
   Senthur Glass House - Mobile / Tablet Responsive Fixes + Our Projects
   Loaded AFTER style.css on every page.
   ===================================================================== */

/* ---------- Global safety ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img  { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

/* ---------- Header / logo / menu (laptop range) ---------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .menus { margin-right: 0 !important; padding: 20px 0 !important; }
  #cssmenu > ul > li > a { padding: 18px 8px; font-size: 13px; letter-spacing: .5px; }
  .header-menubar2 { top: 0; }
  .top_menu { padding: 8px 30px; }
}
@media (min-width: 992px) {
  .header-menubar .navbar-brand img.logo { max-width: 100%; }
}

/* ---------- Tablet + Mobile (<= 991px): hamburger menu ---------- */
@media (max-width: 991px) {
  .header-menubar2 { top: 0; margin-top: 0; }
  .header-menubar .main-menu { background: #e9f5ff; }
  .header-menubar .navbar-brand {
    float: none; display: block; text-align: center;
    padding: 10px 15px; height: auto;
  }
  .header-menubar .navbar-brand img.logo {
    width: auto; max-width: 240px; max-height: 80px; margin: 0 auto;
  }
  .menus { float: none !important; margin: 0 !important; padding: 0 !important; }
  #cssmenu.small-screen #menu-button {
    font-size: 15px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; padding: 15px 20px; cursor: pointer;
    border-top: 1px solid rgba(0,84,150,.15);
  }
  #cssmenu.small-screen ul {
    position: relative; background: #e9f5ff;
    max-height: calc(100vh - 160px); overflow-y: auto;
  }
  #cssmenu.small-screen ul li { line-height: 1.2; }
  #cssmenu.small-screen > ul > li > a,
  #cssmenu.small-screen ul ul li a {
    padding: 15px 20px; font-size: 14px; line-height: 1.3; white-space: normal;
  }
  #cssmenu.small-screen ul ul li a { padding-left: 35px; }
  #cssmenu.small-screen .submenu-button { height: 50px; width: 50px; }
}

/* ---------- Page banners on inner pages ---------- */
@media (max-width: 767px) {
  .header-background { height: 200px; padding-top: 20px; }
  .page-info { padding-top: 20px; }
  .page-info .header-page-title { font-size: 30px; line-height: 1.3; letter-spacing: 1px; }
}

/* ---------- General typography + spacing on phones ---------- */
@media (max-width: 767px) {
  h1 { font-size: 26px; line-height: 1.25; }
  h2 { font-size: 22px; }
  p  { font-size: 15px; line-height: 25px; margin-bottom: 20px; }
  .pt-85 { padding-top: 40px !important; }
  .pt-65 { padding-top: 35px !important; }
  .pt-50 { padding-top: 30px !important; }
  .pb-70, .pb-60, .pb-50 { padding-bottom: 30px !important; }
  .heading-text { letter-spacing: 1px; margin-bottom: 15px; }
  .service_img { margin: 10px 0 20px; }
  .welcome-section .row > [class*="col-"] { margin-bottom: 10px; }
  /* neutralise the big offset column used beside service images */
  .welcome-section .col-sm-offset-2 { margin-left: 0; width: 100%; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .welcome-section .col-sm-offset-2 { margin-left: 0; width: 100%; }
  .service_img { margin: 10px 0 25px; }
}

/* ---------- Home page ---------- */
@media (max-width: 991px) {
  .home-page .header-menubar2 { background: #e9f5ff; }
}
@media (max-width: 767px) {
  /* phones: menu bar sits ABOVE the slider (no overlay) */
  .home-page { display: flex; flex-direction: column; }
  .home-page .header-menubar2 { order: -1; position: relative !important; top: 0 !important; }
  .home-page .sticky-wrapper { order: -1; }
  .home-page .preloader { display: none; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .rev_slider .tp-caption[style*="60px"] { font-size: 34px !important; line-height: 44px !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .rev_slider .tp-caption[style*="60px"] { font-size: 46px !important; line-height: 60px !important; }
}
@media (max-width: 767px) {
  .rev_slider_wrapper .tp-thumbs,
  .rev_slider_wrapper .tp-thumbcontainer,
  .rev_slider_wrapper .uranus.tparrows,
  .rev_slider_wrapper .tp-bullets { display: none !important; }
  .rev_slider .tp-caption[style*="60px"] {
    font-size: 17px !important; line-height: 26px !important; letter-spacing: 0 !important;
  }
  .slider2-subtitle { font-size: 16px; line-height: 22px; }
  .slider-btn { padding: 8px 18px; font-size: 14px; }
  .aboutus-index-2-effect { width: 100% !important; height: auto !important; padding: 15px; }
  .aboutus-index-2-effect img { position: static !important; width: 100%; left: auto; top: auto; }
  .aboutus-index-2 .col-lg-offset-2, .aboutus-index-2 .col-lg-offset-1 { margin-left: 0; }
  .aboutus-index-2 h2.hidden-xs { display: none; }
  .aboutus-index-2 { padding-top: 20px; }
  .aboutus-index-2-content { padding-left: 15px; padding-right: 15px; }
  .cta-section-index-2 { padding: 30px 0; }
  .cta-section-index-2 .cta-2 { padding-top: 0; margin-bottom: 15px; }
  .cta-section-index-2 .btn { margin-bottom: 20px; }
  .text-left-horizontal .heading-content[data-after-text]:after { display: none; }
  .project-gallery .gallery-2 { display: block; margin-bottom: 15px; }
  .project-gallery .gallery-caption-2 h1 { font-size: 20px; line-height: 1.3; }
}

/* ---------- Contact page ---------- */
@media (max-width: 767px) {
  .contactus-heading { margin-left: 0 !important; font-size: 20px; }
  .contactus { margin-left: 0 !important; margin-bottom: 15px; padding: 15px; }
  .contactus h3 { font-size: 18px; letter-spacing: 1px; }
  .contactus span { word-break: break-word; overflow-wrap: anywhere; text-align: left; display: block; }
  .contactus i { font-size: 30px; }
  .contactus .text-right { text-align: center; }
  .contact_form { padding: 0 0 20px; }
  .contact_form iframe { height: 280px; margin-top: 20px; }
  .submit_btn .btn { width: 100%; padding: 12px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .contactus span { word-break: break-word; overflow-wrap: anywhere; }
  .contactus h3 { font-size: 20px; }
  .contact_form iframe { height: 320px; margin-top: 20px; }
}

/* ---------- Footer ---------- */
@media (max-width: 991px) {
  .footer-section .row > [class*="col-"] { margin-bottom: 25px; }
  .footer-section .footer-heading { font-size: 22px; }
  .footer_menus { margin-bottom: 10px; }
  .footer_menus li a { display: inline-block; padding: 5px 0; font-size: 16px; }
  .footer-section iframe { height: 220px; }
}
@media (max-width: 767px) {
  .footer-copyright p { font-size: 13px; line-height: 22px; padding: 0 10px; margin-bottom: 10px; }
}
.cd-top { z-index: 99; }

/* =====================================================================
   OUR PROJECTS PAGE
   ===================================================================== */
.projects-section { background: #f4f9fd; }
.projects-row { display: flex; flex-wrap: wrap; }
.projects-row:before, .projects-row:after { display: none; }
.project-col { display: flex; margin-bottom: 30px; }

.project-card {
  width: 100%; background: #fff; border: 1px solid #dbe8f3; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 84, 150, .08); padding: 22px;
  display: flex; flex-direction: column;
}
.project-title {
  display: flex; align-items: center; margin: 0 0 16px;
  font-size: 24px; line-height: 1.25; color: #005496;
  font-family: 'Oswald', sans-serif; font-weight: 600;
}
.project-gallery-box { margin-bottom: 16px; }
.project-main-link { display: block; line-height: 0; }
.project-main-img {
  display: block; width: 100%; height: auto; aspect-ratio: 880 / 509;
  object-fit: cover; border: 4px solid #005496; background: #e9f5ff;
}
.project-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.project-thumb {
  flex: 1 1 0; min-width: 0; padding: 0; background: none; cursor: pointer;
  border: 2px solid transparent; opacity: .65; line-height: 0;
  transition: opacity .2s, border-color .2s;
}
.project-thumb img { display: block; width: 100%; aspect-ratio: 880 / 509; object-fit: cover; }
.project-thumb:hover, .project-thumb:focus { opacity: 1; outline: none; }
.project-thumb.active { opacity: 1; border-color: #005496; }
.project-desc { margin: 0; font-size: 15px; line-height: 26px; color: #6b6b6b; flex: 1 1 auto; }

@media (max-width: 991px) {
  .project-col { margin-bottom: 25px; }
}
@media (max-width: 767px) {
  .projects-row { display: block; }
  .project-col { display: block; margin-bottom: 20px; }
  .project-card { padding: 16px; }
  .project-title { font-size: 20px; margin-bottom: 12px; }
    .project-main-img { border-width: 3px; }
  .project-desc { font-size: 14.5px; line-height: 24px; }
}

/* ---------- Project lightbox (popup) ---------- */
.project-main-link { cursor: zoom-in; position: relative; }
.project-main-link:after {
  content: "\f002"; font-family: FontAwesome; position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 50%;
  background: rgba(0,84,150,.85); color: #fff; font-size: 15px;
}
.lb-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100000;
  background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 56px 60px 60px; -webkit-tap-highlight-color: transparent;
}
.lb-overlay.open { display: flex; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 0 30px rgba(0,0,0,.6); user-select: none; }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-size: 15px; padding: 0 70px; }
.lb-count { position: absolute; left: 18px; top: 16px; color: #fff; font-size: 15px; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font-size: 22px; line-height: 46px; padding: 0;
  transition: background .2s;
}
.lb-btn:hover, .lb-btn:focus { background: #005496; outline: none; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 8px; top: 50%; margin-top: -23px; }
.lb-next { right: 8px; top: 50%; margin-top: -23px; }
@media (max-width: 767px) {
  .lb-overlay { padding: 56px 8px 60px; }
  .lb-btn { width: 40px; height: 40px; line-height: 40px; font-size: 18px; background: rgba(0,0,0,.55); }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-caption { font-size: 13px; padding: 0 12px; }
}

/* ---------- Floating Call (left) + WhatsApp (right) ---------- */
.float-btn {
  position: fixed; bottom: 20px; z-index: 9998; width: 56px; height: 56px; border-radius: 50%;
  color: #fff !important; text-align: center; font-size: 34px; line-height: 56px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: transform .2s;
}
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-call { left: 18px; background: #005496; font-size: 38px; }
.float-whatsapp { right: 18px; background: #25d366; }
.cd-top { bottom: 90px !important; right: 20px !important; }
@media (max-width: 767px) {
  .float-btn { width: 50px; height: 50px; line-height: 50px; bottom: 14px; font-size: 30px; }
  .float-call { left: 12px; font-size: 34px; } .float-whatsapp { right: 12px; }
  .cd-top { bottom: 76px !important; right: 12px !important; }
  body { padding-bottom: 0; }
}

/* ---------- Footer logo, description, social ---------- */
.footer-logo { display: inline-block; background: #fff; padding: 8px 12px; border-radius: 4px; margin-bottom: 15px; }
.footer-logo img { display: block; width: 190px; max-width: 100%; }
.footer-desc { color: #e9e9e9; font-size: 14px; line-height: 24px; margin-bottom: 15px; }
.footer-social { margin: 5px 0 20px; }
.footer-social a {
  display: inline-block; width: 42px; height: 42px; line-height: 42px; text-align: center;
  border-radius: 50%; background: #fff; font-size: 20px; margin-right: 10px; transition: transform .2s;
}
.footer-social a:hover { transform: translateY(-3px); }
.footer-social .social-fb { color: #1877f2; }
.footer-social .social-insta { color: #e1306c; }
@media (max-width: 767px) {
  .footer-about { text-align: center; }
  .footer-desc { text-align: center; }
  .footer-section .footer-heading { text-align: left; }
  .footer-copyright { padding-bottom: 70px; }
}
