/* ============================================================
   SARAVANA TRAVEL — Premium responsive UI overrides
   Layered on top of the Divi static export. Non-destructive:
   no markup/URL/SEO changes; only visual polish + responsiveness.
   ============================================================ */

:root{
  --sv-maxw: 1180px;
  --sv-radius: 16px;
  --sv-radius-sm: 12px;
  --sv-shadow: 0 14px 34px rgba(11,58,99,.14);
  --sv-shadow-sm: 0 8px 22px rgba(11,58,99,.12);
  --sv-navy: #0b3a63;
  --sv-ink: #1f2d3d;
}

/* Kill any accidental horizontal overflow everywhere */
html, body { overflow-x: hidden !important; max-width: 100%; }
img { max-width: 100%; }

/* Reliability + faster perceived load: keep all content visible immediately
   instead of relying on Divi's entrance-fade (which can leave sections blank
   on fast scroll or if a script hiccups). */
.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_module,
.et_pb_text, .et_pb_image, .et_pb_blurb, .et_pb_cta,
.et_pb_number_counter, .et_pb_button_module, .et_pb_contact_form_container{
  opacity: 1 !important;
}

/* ------------------------------------------------------------
   1) HEADER — compact, properly centered Theme Builder header.
   Divi vertically centers the menu row with a fixed
   `.et_pb_row_0_tb_header.et_pb_row{ margin-top:-59px }` that assumes
   the original ~101px section padding. Reducing that padding pulled
   the menu (logo/nav/hamburger) above the viewport. Fix: neutralise
   the negative offset FIRST, then use small symmetric padding so the
   header is compact and fully visible (no clipping, no big gap).
   ------------------------------------------------------------ */
.et-l--header .et_pb_row--with-menu,
.et-l--header .et_pb_row_0_tb_header.et_pb_row{ margin-top: 0 !important; }

.et-l--header .et_pb_section,
.et-l--header .et_pb_section_0_tb_header{
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
.et-l--header .et_pb_row{ padding-top: 0 !important; padding-bottom: 0 !important; }

/* Align header content with the homepage content/hero grid (logo left lines up
   with the hero text start; nav aligns to the content right edge). */
.et-l--header .et_pb_row_0_tb_header.et_pb_row{
  width: 90% !important; max-width: 1180px !important;
  margin-left: auto !important; margin-right: auto !important;
}

/* Larger logo, scaled proportionally (never cropped). Header height stays 80px
   (padding reduced to 6px to compensate for the taller logo). */
.et-l--header .et_pb_menu__logo-wrap img,
.et-l--header .et_pb_menu__logo img{ max-height: 68px !important; width: auto !important; }

/* Nav to the right, vertically centered — a real navigation bar */
.et-l--header .et_pb_menu__wrap{ justify-content: flex-end !important; }
.et-l--header .et_pb_menu__menu{ justify-content: flex-end !important; }
.et-l--header ul.et-menu{ justify-content: flex-end !important; align-items: center !important; }

/* Individual menu items: subtle dividers + hover + active states */
.et-l--header ul.et-menu > li:not(:last-child){ border-right: 1px solid rgba(11,58,99,.16); }
.et-l--header ul.et-menu > li > a{
  padding: 6px 18px !important;
  color: #33475b !important;
  font-weight: 600 !important;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.et-l--header ul.et-menu > li > a:hover{ color: #0b3a63 !important; border-bottom-color: #7ebec5; }
.et-l--header ul.et-menu > li.current-menu-item > a,
.et-l--header ul.et-menu > li.current_page_item > a{ color: #0b3a63 !important; border-bottom-color: #0b3a63; }

/* Stronger contrast for the mobile hamburger glyph (keep ETmodules icon) */
.et-l--header .mobile_menu_bar:before{ color: #0b3a63 !important; }

@media (max-width: 980px){
  .et-l--header .et_pb_section,
  .et-l--header .et_pb_section_0_tb_header{
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  /* larger mobile logo, same compact header height */
  .et-l--header .et_pb_menu__logo-wrap img,
  .et-l--header .et_pb_menu__logo img{ max-height: 50px !important; }
}

/* ------------------------------------------------------------
   2) SECTION RHYTHM — consistent, premium vertical spacing.
   Divi ships ~101–120px padding on every section; generous on
   desktop, far too much on mobile. Tighten sensibly.
   ------------------------------------------------------------ */
body .et-l--post .et_pb_section{
  padding-top: 68px !important;
  padding-bottom: 68px !important;
}
@media (max-width: 980px){
  body .et-l--post .et_pb_section{
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }
}
@media (max-width: 767px){
  body .et-l--post .et_pb_section{
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }
  /* guarantee comfortable side gutters on phones */
  .et-l--post .et_pb_row,
  .et-l--footer .et_pb_row{
    width: auto !important;
    margin-left: auto !important; margin-right: auto !important;
    padding-left: 18px !important; padding-right: 18px !important;
  }
}

/* Footer: tame the oversized top padding + prevent copyright overflow */
.et-l--footer .et_pb_section{ padding-top: 54px !important; padding-bottom: 26px !important; }
.et-l--footer .et_pb_text, .et-l--footer .et_pb_text_inner,
.et-l--footer .et_pb_column, .et-l--footer p{ max-width: 100% !important; overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 767px){
  .et-l--footer .et_pb_section{ padding-top: 40px !important; padding-bottom: 20px !important; }
  .et-l--footer .et_pb_text_inner{ font-size: 14px !important; }
}

/* ------------------------------------------------------------
   3) HERO (homepage) — premium wide landscape, controlled height,
   readable text over a real travel image (red sedan, on-brand).
   ------------------------------------------------------------ */
body.home .et-l--post .et_pb_section_0{
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 540px !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  background-image:
    linear-gradient(90deg, rgba(6,32,58,.82) 0%, rgba(6,32,58,.55) 45%, rgba(6,32,58,.30) 100%),
    url(/wp-content/uploads/2022/06/Car-Rental-Image-21.jpg) !important;
  background-size: cover !important;
  background-position: center 60% !important;
  background-repeat: no-repeat !important;
}
body.home .et-l--post .et_pb_section_0 .et_pb_row{ width: 90% !important; max-width: var(--sv-maxw) !important; z-index: 2; }
/* force hero content visible (defeat entrance-animation opacity:0) + white, premium type */
body.home .et-l--post .et_pb_section_0 .et_pb_module,
body.home .et-l--post .et_pb_section_0 .et_pb_text{ opacity: 1 !important; animation: none !important; }
body.home .et-l--post .et_pb_section_0 .et_pb_text,
body.home .et-l--post .et_pb_section_0 .et_pb_text *{ color: #fff !important; }
body.home .et-l--post .et_pb_section_0 h1{
  font-size: clamp(30px, 5vw, 52px) !important;
  line-height: 1.1 !important; font-weight: 800 !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
  margin: 0 0 10px !important;
}
body.home .et-l--post .et_pb_section_0 h2,
body.home .et-l--post .et_pb_section_0 h3{
  font-size: clamp(16px, 2.4vw, 22px) !important; font-weight: 500 !important;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

@media (max-width: 980px){
  body.home .et-l--post .et_pb_section_0{ min-height: 460px !important; background-position: center 55% !important; }
}
@media (max-width: 767px){
  body.home .et-l--post .et_pb_section_0{
    min-height: 400px !important;
    padding-top: 30px !important; padding-bottom: 30px !important;
    background-image:
      linear-gradient(180deg, rgba(6,32,58,.62) 0%, rgba(6,32,58,.55) 55%, rgba(6,32,58,.70) 100%),
      url(/wp-content/uploads/2022/06/Car-Rental-Image-21.jpg) !important;
    background-position: center 50% !important;
    text-align: center;
  }
  body.home .et-l--post .et_pb_section_0 .et_pb_row{ width: 88% !important; }
}

/* ------------------------------------------------------------
   4) PREMIUM IMAGE CARDS — shared, reusable treatment for the
   content image modules (tourist places, sightseeing, etc.).
   Applied to body content only (never the header logo/icons).
   ------------------------------------------------------------ */
.et-l--post .et_pb_image{ margin-left: auto; margin-right: auto; }

/* Tourist Places grid: uniform landscape cards */
body.home .et-l--post .et_pb_section_2 .et_pb_image{ width: 100% !important; }
body.home .et-l--post .et_pb_section_2 .et_pb_image .et_pb_image_wrap{ width: 100%; display: block; overflow: hidden; border-radius: var(--sv-radius); }
body.home .et-l--post .et_pb_section_2 .et_pb_image img{
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: var(--sv-radius) !important;
  box-shadow: var(--sv-shadow-sm) !important;
  transition: transform .35s ease, box-shadow .35s ease;
  display: block;
}
body.home .et-l--post .et_pb_section_2 .et_pb_image:hover img{ transform: translateY(-4px); box-shadow: var(--sv-shadow) !important; }
@media (max-width: 980px){ body.home .et-l--post .et_pb_section_2 .et_pb_image img{ height: 200px !important; } }
@media (max-width: 767px){
  body.home .et-l--post .et_pb_section_2 .et_pb_image img{ height: 200px !important; }
  /* comfortable spacing between stacked cards */
  body.home .et-l--post .et_pb_section_2 .et_pb_column{ margin-bottom: 22px !important; }
}

/* ------------------------------------------------------------
   5) OUTSTATION TAXI — heading card + full-car fleet cards.
   The four fleet photos are only 239x239 (square). Never crop or
   upscale them: show the FULL car (object-fit:contain, capped near
   native size) centered inside a wider premium card, in a 2x2 grid
   on tablet/desktop and 1-up on mobile.
   ------------------------------------------------------------ */
/* Heading rendered as a premium section-heading card (self-centering,
   independent of the module's text-align). */
body.home .et-l--post .et_pb_section_3 h2{
  display: table;
  margin: 0 auto !important;
  text-align: center;
  background: #eef2f7;
  border: 1px solid #dce4f0;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(11,58,99,.08);
  padding: 14px 32px !important;
  max-width: 92%;
  font-weight: 700 !important;
  color: var(--sv-navy) !important;
  line-height: 1.25 !important;
}

/* Tighten spacing within THIS section only (heading ↔ grid ↔ rows) */
body.home .et-l--post .et_pb_section_3 .et_pb_row{
  padding-top: 16px !important; padding-bottom: 16px !important;
}

/* Fleet card: clean light frame; image centered and fully visible */
body.home .et-l--post .et_pb_section_3 .et_pb_image{
  width: 100% !important; text-align: center !important; margin: 0 auto !important;
}
body.home .et-l--post .et_pb_section_3 .et_pb_image .et_pb_image_wrap{
  display: block !important; margin: 0 auto !important;
  width: 100%; max-width: 400px;
  background: #f4f7fb;
  border: 1px solid #e5ecf6;
  border-radius: var(--sv-radius);
  box-shadow: var(--sv-shadow-sm);
  padding: 16px;
  overflow: hidden;
}
body.home .et-l--post .et_pb_section_3 .et_pb_image img{
  display: block !important; margin: 0 auto !important;
  width: auto !important; height: auto !important;
  max-width: 280px !important; max-height: 260px !important;
  object-fit: contain !important;      /* full roof + wheels, no crop */
  border-radius: 8px !important;
  box-shadow: none !important;
}

/* Tablet + desktop: 2 columns (2x2 for the four fleet photos) */
@media (min-width: 768px){
  body.home .et-l--post .et_pb_section_3 .et_pb_row{
    display: flex !important; flex-wrap: wrap !important;
    justify-content: center !important; align-items: stretch !important;
    gap: 26px 24px !important;
    max-width: 960px; margin-left: auto !important; margin-right: auto !important;
  }
  body.home .et-l--post .et_pb_section_3 .et_pb_column{ float: none !important; margin: 0 !important; }
  body.home .et-l--post .et_pb_section_3 .et_pb_column_1_4{ width: calc(50% - 12px) !important; }
  body.home .et-l--post .et_pb_section_3 .et_pb_column_4_4{ width: 100% !important; }
}

/* Mobile: 1 card per row */
@media (max-width: 767px){
  body.home .et-l--post .et_pb_section_3 .et_pb_image .et_pb_image_wrap{ max-width: 320px; }
  body.home .et-l--post .et_pb_section_3 .et_pb_column{ margin-bottom: 18px !important; }
  body.home .et-l--post .et_pb_section_3 h2{ padding: 12px 22px !important; max-width: 100%; }
}

/* ------------------------------------------------------------
   6) TYPOGRAPHY — tame oversized mobile headings, comfortable text
   ------------------------------------------------------------ */
@media (max-width: 767px){
  .et-l--post h1{ font-size: 30px !important; line-height: 1.15 !important; }
  .et-l--post h2{ font-size: 25px !important; line-height: 1.2 !important; }
  .et-l--post h3{ font-size: 20px !important; line-height: 1.25 !important; }
  .et-l--post p, .et-l--post li{ font-size: 16px !important; line-height: 1.6 !important; }
}

/* Buttons: consistent premium sizing */
.et-l--post .et_pb_button{
  border-radius: 10px !important;
  padding: 12px 26px !important;
  font-weight: 600 !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.et-l--post .et_pb_button:hover{ transform: translateY(-2px); box-shadow: var(--sv-shadow-sm); }

/* ------------------------------------------------------------
   7) WHATSAPP FLOATING ACTION BUTTON + remove dead reCAPTCHA badge
   ------------------------------------------------------------ */
/* reCAPTCHA badge is non-functional on the static site and only adds
   clutter overlapping the WhatsApp button — hide it. */
.grecaptcha-badge{ display: none !important; visibility: hidden !important; }

#ht-ctc-chat.ht-ctc{
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  right: 22px !important;
  z-index: 2147483000 !important;
}
#ht-ctc-chat .ht_ctc_style, #ht-ctc-chat .ctc-analytics{ margin: 0 !important; }
#ht-ctc-chat .ht-ctc-cta{ display: none !important; } /* the text label bubble */
#ht-ctc-chat svg{
  height: 60px !important; width: 60px !important;
  border-radius: 50%;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.28));
  transition: transform .2s ease;
}
#ht-ctc-chat:hover svg{ transform: scale(1.06); }
@media (max-width: 767px){
  #ht-ctc-chat.ht-ctc{
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
  }
  #ht-ctc-chat svg{ height: 54px !important; width: 54px !important; }
}

/* ------------------------------------------------------------
   8) CONTACT FORM polish (design only; handler untouched)
   ------------------------------------------------------------ */
.et-l--post .et_pb_contact_form .input,
.et-l--post .et_pb_contact_form textarea{
  border-radius: 10px !important;
}

/* ============================================================
   9) TARGETED POLISH — section separation + Tourist Places
      heading/caption cards. Palette: white / #eef3f9 / #eef2f7,
      navy #0b3a63. Restrained, consistent premium system.
   ============================================================ */

/* --- Home section separation (section_1 left as-is: it owns a divider) --- */
body.home .et-l--post .et_pb_section_2{ background-color: #ffffff !important; }
body.home .et-l--post .et_pb_section_3{ background-color: #ffffff !important; }
body.home .et-l--post .et_pb_section_4{ background-color: #eef3f9 !important; }
body.home .et-l--post .et_pb_section_2,
body.home .et-l--post .et_pb_section_3,
body.home .et-l--post .et_pb_section_4{ border-top: 1px solid rgba(11,58,99,.07); }

/* Separate the stacked feature blocks (Lowest Price / Enquire / Call Now) on mobile */
@media (max-width: 767px){
  body.home .et-l--post .et_pb_section_1 .et_pb_row .et_pb_column:not(:last-child){
    border-bottom: 1px solid rgba(11,58,99,.10);
    padding-bottom: 24px !important; margin-bottom: 24px !important;
  }
}

/* --- Tourist Places: main heading as a premium heading card (matches Outstation) --- */
body.home .et-l--post .et_pb_section_2 .et_pb_column_4_4 h2{
  display: table;
  margin: 0 auto !important;
  text-align: center;
  background: #eef2f7;
  border: 1px solid #dce4f0;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(11,58,99,.08);
  padding: 14px 32px !important;
  max-width: 92%;
  font-weight: 700 !important;
  color: var(--sv-navy) !important;
  line-height: 1.25 !important;
}
@media (max-width: 767px){
  body.home .et-l--post .et_pb_section_2 .et_pb_column_4_4 h2{ padding: 12px 22px !important; max-width: 100%; }
}

/* --- Tourist Places: image + caption read as ONE unit --- */
body.home .et-l--post .et_pb_section_2 .et_pb_column_1_3 .et_pb_image{ margin-bottom: 10px !important; }
body.home .et-l--post .et_pb_section_2 .et_pb_column_1_3 .et_pb_text{
  margin-top: 0 !important; margin-bottom: 0 !important; text-align: center !important;
}
/* caption title plate — centered below its own image (captions are <p>) */
body.home .et-l--post .et_pb_section_2 .et_pb_column_1_3 .et_pb_text_inner{ text-align: center !important; }
body.home .et-l--post .et_pb_section_2 .et_pb_column_1_3 .et_pb_text_inner p{
  display: inline-block !important;
  font-size: 16px !important; font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--sv-navy) !important;
  background: #ffffff;
  border: 1px solid #e5ecf6;
  border-radius: 10px;
  box-shadow: var(--sv-shadow-sm);
  padding: 8px 20px !important;
  margin: 0 auto !important;
  text-align: center !important;
}
@media (max-width: 767px){
  /* Tighten Tourist Places rhythm on mobile (heading↔image, card↔card).
     Divi rows also carry a 30px margin-bottom — reduce it here. */
  body.home .et-l--post .et_pb_section_2 .et_pb_row{ padding-top: 6px !important; padding-bottom: 6px !important; margin-bottom: 10px !important; }
  body.home .et-l--post .et_pb_section_2 .et_pb_column_4_4{ margin-bottom: 4px !important; }
  body.home .et-l--post .et_pb_section_2 .et_pb_column_4_4 h2{ margin-bottom: 16px !important; }
  body.home .et-l--post .et_pb_section_2 .et_pb_column_1_3{ margin-bottom: 20px !important; }
  body.home .et-l--post .et_pb_section_2 .et_pb_column_1_3 .et_pb_image{ margin-bottom: 8px !important; }
  body.home .et-l--post .et_pb_section_2 .et_pb_row:last-of-type{ margin-bottom: 6px !important; }
  body.home .et-l--post .et_pb_section_2 .et_pb_row:last-of-type .et_pb_column_1_3:last-child{ margin-bottom: 0 !important; }
  /* Reduce the large gap between the last Tourist card and the Outstation section */
  body.home .et-l--post .et_pb_section_2{ padding-bottom: 6px !important; }
  body.home .et-l--post .et_pb_section_3{ padding-top: 8px !important; }
  body.home .et-l--post .et_pb_section_3 .et_pb_row:first-of-type{ padding-top: 6px !important; padding-bottom: 6px !important; margin-bottom: 10px !important; }
}
