/*
 * Website polish (owner, 1 Dec 2026; plan docs/seo_geo_website/plan.md §10): responsive and layout fixes for the public
 * pages WITHOUT changing the design. Loaded last on Home, About Us, Services, Contact Us and Careers, so every fix is
 * in one place and the older stylesheets are not edited. Each rule names its plan item (W2.x).
 */

/* ==========================================================================
   HOME (body.home-page)
   ========================================================================== */

/* W2.1 phones: "Online Truck Booking & Transport Services" was forced onto one line (.section-title nowrap from
   tooplate-barista.css), ~500px wide, so the page scrolled sideways and the words were cut on both sides. */
@media (max-width: 767.98px) {
  .home-page .offerings-section .section-title {
    white-space: normal;
    text-wrap: balance;
  }

  /* the 368px side lines give way to the words (they had no room before either) */
  .home-page .offerings-section .section-title::before,
  .home-page .offerings-section .section-title::after {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: 368px;
  }
}

/* W2.2 tablets + browser zoom: the tagline line 1 was nowrap down to 576px, so it ran off the screen at 683-1024. */
@media (max-width: 1199.98px) {
  .home-page .home-stats-tagline-line1,
  .home-page .home-stats-tagline-line2 {
    white-space: normal;
    text-wrap: balance;
  }
}

/* W2.3 + W2.10: "WHY DROPTRUCK?" side lines were a fixed 368px each, so the heading block was 956px wide on every
   screen under 992px and "Drop Truck: The WIN-WIN Bridge" was cut on both sides. Lines now shrink to fit. */
@media (max-width: 991.98px) {
  .home-page .dt-container .dt-header {
    width: 100%;
    max-width: 100%;
  }

  .home-page .dt-container .dt-title-sub::before,
  .home-page .dt-container .dt-title-sub::after {
    width: auto;
    flex: 1 1 0;
    max-width: 368px;
    min-width: 24px;
  }

  .home-page .dt-container .dt-bridge-text {
    text-wrap: balance;
  }
}

@media (max-width: 575.98px) {
  .home-page .dt-container .dt-bridge-text {
    font-size: clamp(28px, 9vw, 40px);
  }
}

/* W2.5 stats cards: a fixed 400px height left them half empty on phones and tablets; and a global ".row
   { flex-direction: column }" (tooplate-barista.css, max 768px) made one narrow column at 576-768. */
@media (max-width: 991.98px) {
  .home-page .stats-ditto .stats-card {
    height: auto;
    min-height: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  .home-page .stats-ditto .row.temp-mt {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }

  .home-page .stats-ditto .row.temp-mt > [class*="col-"] {
    width: 50%;
    max-width: 50%;
  }

  .home-page .stats-ditto .stats-card {
    width: 100%;
    max-width: 286px;
  }
}

/* W2.6: the WIN-WIN block kept min-height 82vh, an empty band of ~300px on tall tablets. */
@media (max-width: 1199.98px) {
  .home-page .dt-container {
    min-height: auto;
  }
}

/* W2.7 "How it works": cards of different heights and titles breaking into two lines at 992-1199px. */
@media (min-width: 992px) {
  .home-page .how-droptruck .work-row > [class*="col-"] {
    display: flex;
  }

  .home-page .how-droptruck .work-box {
    width: 100%;
  }

  .home-page .how-droptruck .work-content {
    flex: 1 1 auto;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .home-page .how-droptruck .work-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-page .how-droptruck .work-content h4 {
    font-size: 27px;
    white-space: nowrap;
  }
}

/* W2.8 testimonials: quote text was 10.5-11.5px. */
.home-page .home-lower-shade .testimonial-card .quote-text {
  font-size: 13px !important;
}

.home-page .home-lower-shade .card-lg .quote-text {
  font-size: 13px !important;
}

.home-page .home-lower-shade .card-side {
  height: auto !important;
  min-height: 136px;
}

.home-page .home-lower-shade .card-mid {
  height: auto !important;
  min-height: 166px;
}

.home-page .home-lower-shade .card-lg {
  height: auto !important;
  min-height: 224px;
}

@media (max-width: 991.98px) {
  .home-page .home-lower-shade .testimonials-container {
    scroll-snap-type: x proximity;
  }

  .home-page .home-lower-shade .testimonial-card {
    scroll-snap-align: center;
  }
}

/* W2.9 service cards: one text alignment (two cards were justified with big word gaps, one centred) and the
   same picture area, so "Dedicated Fleet" lines up with the other two titles. */
.home-page .offerings-section .offer-card p {
  text-align: center !important;
}

.home-page .offerings-section .offer-card .truck-grid {
  height: 160px;
  margin-bottom: 0;
  align-content: center;
}

.home-page .offerings-section .offer-card .truck-grid img {
  max-height: 70px;
}

/* W2.1 follow-up: with the sideways scroll gone, phones lay the page out at their real width (before, the
   overflow made a 320px phone render at 412px), so "Our Presence" no longer fit on one line at 320px. */
@media (max-width: 575.98px) {
  .home-page .op-section-header .op-header-title {
    font-size: min(36px, 9.6vw);
    white-space: nowrap;
  }
}

/* W2.11 booking form: the Submit button sat tight inside the bottom of the Message box. */
.home-page .op-glass-card {
  padding-bottom: 24px;
}

/* W2.12: the two feature boxes covered the ends of the WIN-WIN bridge picture on laptops. */
@media (min-width: 993px) {
  .home-page .dt-container .dt-glass-card {
    margin-top: 24px;
  }
}

/* ==========================================================================
   FOOTER (all five pages)
   ========================================================================== */

/* W2.44: at 992-1199px the phone line broke inside a number ("+91 / 7305063050"). Keep the line whole; the small
   gap to the social icons gives it the 5px it needed. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .dt-footer .footer-right-top {
    gap: 14px;
  }

  .dt-footer .footer-right-top > div:first-child {
    flex-shrink: 0;
  }

  .dt-footer .footer-right-top > div:first-child > .contact-item:nth-of-type(2) span {
    white-space: nowrap;
  }
}

/* W2.45: tablets (576-991px) showed one half-empty column (and at 769-991px no space between the stacked
   blocks). Now: about text + linked pages side by side, contact below, same 30px spacing as phones. */
@media (min-width: 576px) and (max-width: 991.98px) {
  .dt-footer .footer-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 30px;
    column-gap: 0;
  }

  .dt-footer .footer-row > .footer-left {
    width: 58%;
    max-width: 58%;
  }

  .dt-footer .footer-row > .footer-middle {
    width: 42%;
    max-width: 42%;
    padding-left: 32px;
  }

  .dt-footer .footer-row > .footer-right {
    width: 100%;
    max-width: 100%;
  }

  .dt-footer .footer-right-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   W1.2 yellow flash: the hero sections were transparent on the yellow page background until the big banner
   image arrived. A dark background in the banner's own dark tone (sampled from each image) paints first.
   ========================================================================== */
.about-page .banner-containers {
  background-color: #241919;
}

.services-page .hero-banner .banner-container {
  background-color: #241c19;
}

.contact-page .banner-containers {
  background-color: #442a1d;
}

.careers-page .banner-containers {
  background-color: #2a2122;
}

/* ==========================================================================
   ABOUT US (body.about-page)
   ========================================================================== */

/* W2.13: the dot pattern beside "The Impact So Far" sat at right:-8px, so the page was 8px wider than the screen
   from 769px up to 3840px. */
.about-page .impact-wrap .impact-dot-right {
  right: 0;
}

/* W2.18 phones: the hero label "Chennai, South India" was cut ("South Ind"). */
@media (max-width: 767.98px) {
  .about-page .banner-containers .banner-img {
    object-position: 65% center;
  }
}

/* W2.15: at 576-768px the two "Why Droptruck?" lists were squeezed into the left half of the card. */
@media (max-width: 768px) {
  .about-page .bridge-section .bridge-card .row > .col-md-6 {
    width: 100%;
    max-width: 100%;
  }
}

/* W2.14 phones + 768: the icons sat on top of the card titles (Reliability, Transparency): the icons are up to
   150px tall but the cards only had 42px of room above the title. */
@media (max-width: 768px) {
  .about-page .drive-section .drive-card.highlight {
    padding-top: 84px;
    margin-top: 84px;
  }
}

/* W2.19: "The Impact So Far" was one narrow column at 576-768px; now 2 x 2. */
@media (min-width: 576px) and (max-width: 768px) {
  .about-page .impact-wrap .row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
  }

  .about-page .impact-wrap .row > [class*="col-"] {
    width: 50%;
    max-width: 50%;
  }
}

/* W2.16: a dot pattern (placed 1110px below "What Drives Droptruck?") landed on "Manager" / "Vision".
   It now stays behind the text. */
.about-page .drive-section .about-top-rights {
  z-index: -1;
}

/* W2.17 team: role text was 35px (bigger than the 28px name) on laptops and broke "Supply Chain - Manager" at the
   hyphen; names/roles were white on light olive; photo heights differed (309/304/301px). */
.about-page .team-section .team-card h3,
.about-page .team-section .team-card p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.about-page .team-section .team-img {
  aspect-ratio: 260 / 309;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 769px) {
  .about-page .team-section .team-card p {
    font-size: 24px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   SERVICES (body.services-page)
   ========================================================================== */

/* W2.20 phones: the banner picture is only ~170-210px tall there, so "Truck Booking Services" sat behind the menu
   bar and the FTL truck ("Servic" was all that showed). On phones the heading now sits above the picture, below
   the menu, on the banner's own dark tone. */
@media (max-width: 767.98px) {
  .services-page .hero-banner .banner-container {
    display: flex;
    flex-direction: column;
    padding-top: 77px;
  }

  .services-page .hero-banner .banner-container .banner-text {
    position: relative;
    order: -1;
    top: auto;
    left: auto;
    transform: none;
    padding: 4px 18px 14px;
  }

  .services-page .hero-banner .banner-container .banner-text h1 {
    font-size: clamp(34px, 10.5vw, 52px);
    line-height: 1.08;
    text-wrap: balance;
  }
}

/* W2.23 at 992-1199px: the picture's own badges (Live GPS / Verified Driver / On-Time SLA) sat behind the menu. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-page .hero-banner .banner-container {
    padding-top: 24px;
  }
}

/* W2.21 up to 900px (one card per row): each truck picture was lifted 78-90px above its card, over the text of
   the card above ("Share the ride, slash co..."). The pictures now stay inside their own card. */
@media (max-width: 900px) {
  .services-page .hero-banner .floating-boxes {
    gap: 16px;
  }

  .services-page .hero-banner .s-box {
    min-height: 132px;
  }

  .services-page .hero-banner .s-img-wrap,
  .services-page .hero-banner .s-box:nth-child(3) .s-img-wrap {
    top: 6px;
    right: 8px;
    height: 120px;
    width: 52%;
  }

  .services-page .hero-banner .s-info {
    max-width: 46%;
  }
}

/* W2.24 "Services which moves India": white and yellow words on the yellow page were almost invisible; the two
   stat rows did not line up on narrow screens. */
.services-page .stats-banner .main-title,
.services-page .stats-banner .main-title .highlight,
.services-page .stats-banner .stat-number {
  text-shadow: 0 1px 2px rgba(77, 77, 73, 0.7), 0 0 14px rgba(77, 77, 73, 0.45) !important;
}

.services-page .stats-banner .main-title .highlight {
  text-shadow: 0 0 1px #4d4d49, 0 1px 3px rgba(77, 77, 73, 0.95), 0 0 12px rgba(77, 77, 73, 0.7) !important;
}

@media (max-width: 900px) {
  .services-page .stats-banner .stats-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .services-page .stats-banner .stat-item {
    width: min(300px, 100%);
    justify-content: flex-start;
    text-align: left;
  }

  .services-page .stats-banner .stat-number {
    flex: 0 0 76px;
    text-align: right;
  }
}

/* W2.25: "Our Process" and "Industries We Serve" broke into two lines between fixed 368px side lines; the lines
   now shrink instead. Process pills: equal height. */
.services-page .process-title-wrap .process-title,
.services-page .service-industries-section .industries-title {
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .services-page .process-title-wrap .line,
  .services-page .service-industries-section .industries-title::before,
  .services-page .service-industries-section .industries-title::after {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: 368px;
  }

  .services-page .service-industries-section .industries-title {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .services-page .process-title-wrap,
  .services-page .service-industries-section .industries-title {
    gap: 12px;
  }

  .services-page .service-industries-section .industries-title {
    font-size: min(32px, 8.4vw);
  }

  .services-page .process-title-wrap .process-title {
    font-size: min(42px, 9.4vw) !important;
  }
}

@media (min-width: 769px) {
  .services-page .process-section .row > .col-md {
    display: flex;
  }

  .services-page .process-section .process-pill {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* W2.26 "Why Droptruck?": 308px minimum card width overflowed small phones and left the cards off-centre;
   at 992-1199px the 95px gaps forced 2 + 1. */
@media (max-width: 575.98px) {
  .services-page .why-droptruck-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .services-page .why-droptruck-section .features-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .services-page .why-droptruck-section .feature-box {
    min-width: 0;
    width: 100%;
    max-width: 350px;
    flex: 0 0 auto;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .services-page .why-droptruck-section .features-grid {
    gap: 32px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-page .why-droptruck-section .features-grid {
    flex-wrap: nowrap;
    gap: 32px;
  }

  .services-page .why-droptruck-section .feature-box {
    min-width: 0;
  }
}

/* W2.22: "Industries We Serve" cards were cut off at the right at 992-1199px (and 1 column overflowed 320px):
   the grid columns could not shrink below the 220px picture. */
.services-page .service-industries-section .industries-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-page .service-industries-section .industry-image {
  max-width: 100%;
}

@media (max-width: 992px) {
  .services-page .service-industries-section .industries-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services-page .service-industries-section .industries-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* W2.28: the fleet dot patterns ran into the "Small / Heavy Commercial Vehicle" labels. */
@media (min-width: 769px) {
  .services-page .truck-fleet-section .Fleet-left,
  .services-page .truck-fleet-section .Fleet-right {
    bottom: -84px !important;
  }
}

/* ==========================================================================
   CONTACT US (body.contact-page)
   ========================================================================== */

/* W2.31: on tablets the hero was a full 100vh (1,180-1,366px) and the 688px-tall banner was blown up and soft.
   Same height as on laptops now. */
@media (min-width: 769px) and (max-width: 1199.98px) {
  .contact-page .banner-containers {
    height: min(100vh, 800px);
    min-height: 0;
  }

}

/* W2.29 + W2.30: "Contact Us" and its two lines are drawn into the banner photo (5-43% of its width), so below 1200px
   the centred crop cut them ("ct Us" on phones, "ntact Us" on tablets) and BOOK NOW landed on the words.
   Below 1200px the photo is pinned to its left edge and the frame is kept at least ~1.05 wide per 1 tall, so the
   whole heading always shows; BOOK NOW is placed from the photo's height (--contact-hero-h), just under the words,
   where it sits on laptops. Wide screens (1.69 wide per 1 tall or wider) keep the laptop layout; narrower laptop
   screens such as 1280x800 and 1440x900 cut the "C" too, so they use the same pinned layout. */
@media (max-width: 1199.98px), (max-aspect-ratio: 169/100) {
  .contact-page .banner-containers {
    --contact-hero-top: 0px;
    --contact-hero-h: min(100vh, 800px);
  }

  .contact-page .banner-containers .banner-img {
    object-fit: cover;
    object-position: 0% 50%;
  }

  .contact-page .banner-containers .banner-content {
    top: calc(var(--contact-hero-top) + var(--contact-hero-h) * 0.615);
    left: calc(var(--contact-hero-h) * 0.12);
    transform: none;
    max-width: none;
  }

  .contact-page .banner-containers .banner-content .book-btn {
    position: static;
    font-size: clamp(15px, calc(var(--contact-hero-h) * 0.045), 40px);
    padding: 0.32em 2.1em;
    border-radius: 999px;
  }
}

@media (min-width: 1200px) and (max-aspect-ratio: 169/100) {
  .contact-page .banner-containers {
    --contact-hero-h: 100vh;
  }
}

/* phones: a frame 1.05 wide per 1 tall under the menu bar, so the photo's words are large enough to read */
@media (max-width: 768px) {
  .contact-page .banner-containers {
    --contact-hero-top: 72px;
    --contact-hero-h: calc(100vw / 1.05);
    height: auto;
    min-height: 0;
    padding-top: var(--contact-hero-top);
  }

  .contact-page .banner-containers .banner-img {
    height: auto;
    aspect-ratio: 1.05 / 1;
  }
}

/* W2.32 + W2.33: the map picture was letterboxed (grey bars) and squashed at 576-900px, and tiny on phones. */
@media (max-width: 900px) {
  .contact-page .contact-touch-wrapper .map-box {
    height: auto;
  }

  .contact-page .contact-touch-wrapper .map-inner,
  .contact-page .contact-touch-wrapper .map-view {
    height: auto;
  }

  .contact-page .contact-touch-wrapper .map-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 575.98px) {
  .contact-page .contact-touch-wrapper .map-box {
    padding: 12px;
    border-radius: 28px;
  }

  .contact-page .contact-touch-wrapper .map-inner {
    border-radius: 20px;
  }
}

/* W2.34: FAQs / Feedback / Support labels were dark grey on dark olive; the office/email/call details were white
   on mustard; form placeholders were pale. */
.contact-page .support-glass-card .support-label {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.contact-page .contact-grid .contact-card p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.contact-page .input-glass::placeholder {
  color: rgba(240, 230, 140, 0.85);
}

/* W2.35: the FAQs row was 60px wider than the cards above it on laptops; "Get In Touch" broke into 2-3 lines
   between fixed 368px side lines; the dot patterns crowded the subtitle on tablets. */
.contact-page .support-wrapper {
  max-width: 1140px;
}

.contact-page .contact-touch-wrapper .contact-heading {
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .contact-page .contact-touch-wrapper .contact-heading::before,
  .contact-page .contact-touch-wrapper .contact-heading::after {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: 368px;
  }
}

@media (max-width: 575.98px) {
  .contact-page .contact-touch-wrapper .contact-heading {
    gap: 12px;
  }
}

@media (max-width: 991.98px) {
  .contact-page .contact-info-section .with-left,
  .contact-page .contact-info-section .with-rights,
  .contact-page .contact-info-section .with-bottom {
    display: none;
  }
}

/* ==========================================================================
   CAREERS (body.careers-page)
   ========================================================================== */

/* W2.36: "Join Our Transport Team" runs across the people in the photo. Same place, with a soft dark glow behind
   the words so they read clearly. */
.careers-page .banner-containers .banner-text h1 {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 12px 26px rgba(0, 0, 0, 0.6);
}

.careers-page .banner-containers .banner-text::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 96%);
  height: 180%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  z-index: -1;
  pointer-events: none;
}

/* W2.37: the hero was a full 100vh (1,024-1,366px) on tablets with a blown-up, soft photo. Laptop height now. */
@media (min-width: 577px) and (max-width: 1199.98px) {
  .careers-page .banner-containers {
    height: min(100vh, 800px);
    min-height: 0;
  }
}

/* W2.39: these headings asked for 'Inter', which the page never loads, so they fell back to Arial. They now use the
   site font (Darker Grotesque, as every other heading). */
.careers-page .whywork-card-title,
.careers-page .job-text,
.careers-page .cta-heading {
  font-family: 'Darker Grotesque', sans-serif;
}

.careers-page .whywork-card-title,
.careers-page .job-text,
.careers-page .cta-heading {
  font-weight: 800;
}

/* W2.38 "Why Work With Us": a lone third card at 769-1000px, cards narrower than the job list below, headings
   not lined up with the cards, and ~11px card text. */
.careers-page .why-work-section .whywork-wrapper {
  max-width: 1055px;
}

.careers-page .why-work-section .whywork-card-desc {
  font-size: 18px;
  line-height: 1.45;
}

.careers-page .why-work-section .whywork-card {
  height: auto;
  min-height: 332px;
}

@media (min-width: 769px) {
  .careers-page .why-work-section .whywork-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
  }

  .careers-page .why-work-section .whywork-card {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* W2.41: "Career Growth" was forced onto two lines by a <br> on wide screens. */
@media (min-width: 992px) {
  .careers-page .whywork-card-title br {
    display: none;
  }
}

/* ==========================================================================
   ALL FIVE PAGES
   ========================================================================== */

/* W2.48: single-word last lines in headings on phones ("...Must / WIN."). */
@media (max-width: 575.98px) {
  :is(.home-page, .about-page, .services-page, .contact-page, .careers-page) main :is(h1, h2, h3, .bridge-title) {
    text-wrap: balance;
  }
}
