/* =====================================================================
   Ramani Urban Infra — tablet and mobile layer (all pages). Loads last.
   Breakpoints
     Desktop          1280px and up   (the 1920 design, fluid)
     Tablet landscape 1024 – 1279px
     Tablet portrait   761 – 1023px   (768 reference)
     Mobile           ≤ 760px         (360 / 390 / 430 references)
     Small mobile     ≤ 380px
   ===================================================================== */

/* ---------- Shared states (all sizes) ---------- */
@media (max-width:1279px){.fd .ql{min-width:44px}}
button:disabled,.ob[aria-disabled="true"],input:disabled,select:disabled{opacity:.45;cursor:not-allowed;pointer-events:none}
a,button,select,input{-webkit-tap-highlight-color:rgba(50,121,1,.12)}

/* =========================== TABLET (761 – 1279) =========================== */
@media (min-width:761px) and (max-width:1279px){
  /* Type floors: labels 12px, buttons 12px, footer 12/15px */
  .ob,.wb,.sq-b,.enq-btn,.cb-b,.cb-wb,.ab-wb,.tl,.cb-tl,.ab-tl{font-size:12px !important;letter-spacing:.2em !important}
  .ob,.wb,.sq-b,.enq-btn,.cb-b,.cb-wb,.ab-wb{min-height:48px !important;padding-left:30px !important;padding-right:30px !important}
  .tl,.cb-tl,.ab-tl{min-height:44px !important}
  .ptab,.sq-at,.sq-gfb{font-size:12px !important;min-height:44px !important;padding-bottom:12px !important;letter-spacing:.26em !important}
  .sq-facts dt{font-size:12px !important}
  .sq-lmt{font-size:12px}

  /* Header: 44px touch targets */
  #hdr-inner{height:88px !important}
  #site-header.is-solid #hdr-inner{height:72px !important}
  #hdr-logo,.logo-w{height:50px !important}
  #site-header.is-solid #hdr-logo,#site-header.is-solid .logo-w{height:42px !important}
  a.ob.hsm{min-height:44px !important;padding:0 24px !important}
  .hb{width:44px !important;height:44px !important;min-width:44px;gap:7px !important}
  .menu-bar{height:88px !important}
  .menu-logo{height:50px !important}
  /* Full-screen menu: larger links and 44px rows for touch */
  .menu-bar>button{min-height:44px !important;min-width:44px;font-size:12px !important}
  .mo .ml{font-size:clamp(36px, 5vw, 48px) !important;line-height:1.25 !important}
  .mo .mside{gap:40px !important;padding-top:10px}
  .mo .mside>div{gap:0 !important}
  .mo .mside p{font-size:12px !important;margin-bottom:6px !important}
  .mo .mside .ql{display:flex;align-items:center;min-height:44px;font-size:17px !important}

  /* Homepage hero: copy lines up with the header and page margins */
  .hx-in{padding:150px var(--pad) clamp(56px, 7vh, 88px) !important}
  .hx-copy{width:min(100%, 720px) !important;gap:18px !important}
  .hx-h{font-size:clamp(34px, 4.6vw, 48px) !important;line-height:1.08 !important}
  .hx-row{flex-direction:row !important;align-items:center !important;gap:16px 32px !important;padding-top:26px !important}

  /* Homepage NRI: the card sets the height, so nothing is clipped */
  .nx{aspect-ratio:auto !important;min-height:0 !important;display:block}
  .nx-img{position:absolute !important;height:100% !important;object-position:74% 50% !important}
  .nx-in{height:auto !important;padding:72px var(--pad) !important}
  .nx-card{width:min(100%, 460px) !important}

  /* Footer */
  .fd .fcols{gap:40px 56px !important}
  .fd .fcols p:first-child{font-size:12px !important}
  .fd .ql,.fd .fcols p{font-size:15px !important}
  .fd .ql{display:inline-flex;align-items:center;min-height:44px}
  .fd .fcols>*{gap:0 !important}
  .fd .fcols>div p:not(:first-child){padding:10px 0}
  .hx-cue{display:none !important}
  .fd .so{width:44px !important;height:44px !important}
  .fd p[style*="12.5"]{font-size:12px !important}

  /* Prestige Gardens gardens: three columns instead of expanding panels */
  .sq-gds{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));height:auto !important;gap:24px !important}
  .sq-gd,.sq-gd.is-on{flex:none !important;cursor:default}
  .sq-gdi{flex:none !important;height:clamp(240px, 30vw, 340px) !important}
  .sq-gdi img,.sq-gd .sq-gdi img{transform:none !important;filter:none !important}
  .sq-gdx{height:auto !important;min-height:0 !important}
  .sq-gdt{white-space:normal !important}
  .sq-gdd{width:auto !important;opacity:1 !important;transform:none !important}

  /* Forms */
  .enq-in,.sq-in{min-height:48px !important}
  .enq-form,.sq-form{padding:44px 40px 44px !important}

  /* Contact Us: map on top, address card overlapping it (pin stays in view) */
  .cb-v{display:inline-flex !important;align-items:center;min-height:44px}
  .cb-visit{height:auto !important;background:#F7F4EE !important;padding-bottom:80px}
  .cb-map{position:relative !important;height:clamp(380px, 46vw, 500px) !important}
  .cb-vin{height:auto !important;margin-top:-104px;padding:0 var(--pad) !important}
  .cb-card{width:min(100%, 640px) !important;box-shadow:0 24px 60px rgba(8,21,54,.1) !important}
}

/* Stacked layouts (tablet and mobile, ≤ 1100) */
@media (max-width:1100px){
  /* Prestige Gardens Location Advantages: heading, then the location map, then the landmark list and button */
  .sq-loc .sq-w{display:flex !important;flex-direction:column;align-items:stretch;gap:0 !important}
  .sq-loc .sq-lcol{display:contents}
  .sq-loc .sq-ebw{order:1}
  .sq-loc .sq-h2{order:2}
  .sq-loc .sq-lfig{order:3;width:100%;margin-top:40px}
  .sq-loc .sq-lm{order:4;margin-top:32px}
  .sq-loc .sq-b{order:5;align-self:flex-start}

  /* Prestige Gardens Master Plan: heading, plan, road widths, then the "Explore the Master Plan" button last */
  .sq-mp{display:flex !important;flex-direction:column;align-items:stretch;gap:0 !important}
  .sq-mp .sq-mpl{display:contents}
  .sq-mp .sq-ebw{order:1}
  .sq-mp .sq-h2{order:2}
  .sq-mp .sq-hint{order:3}
  .sq-mp .sq-mpf{order:4;align-self:flex-start;margin-top:32px !important}
  .sq-mp .sq-roadw{order:5;margin-top:40px !important}
  .sq-mp .sq-mpl>.sq-b{order:6;align-self:flex-start;margin-top:36px !important}

  /* Prestige Gardens Amenities: the photo first, then the tabs and the amenity list */
  .sq-amb .sq-amf{order:-1}
  .sq-amb{row-gap:36px !important}

  /* Prestige Gardens Architecture & Landscape: each element is a card (photo + number + name) in a swipeable row,
     so the photo and its name are always seen together. Counter and arrows under the row; no autoplay. */
  .sq-arch .sq-ar{display:flex !important;flex-direction:column;align-items:stretch;gap:0 !important}
  .sq-arch .sq-arl{display:contents}
  .sq-arch .sq-arl>div{order:1}
  .sq-arch .sq-elh{order:2;margin:40px 0 18px !important}
  .sq-arch .sq-els{order:3;position:relative;display:flex;gap:16px;margin:0 calc(-1 * var(--pad));padding:0 var(--pad) 4px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-left:var(--pad);scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .sq-arch .sq-els::-webkit-scrollbar{display:none}
  .sq-arch .sq-els>li{flex:0 0 min(58%, 440px);scroll-snap-align:start}
  .sq-arch .sq-el{display:grid !important;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"m m" "i t";align-items:baseline;gap:0 14px;padding:0 !important;min-height:0;color:#FFFFFF !important;cursor:pointer}
  .sq-arch .sq-elm{grid-area:m;position:relative;display:block;width:100%;aspect-ratio:4 / 3;margin-bottom:16px;overflow:hidden;background:#0A2A57}
  .sq-arch .sq-elm img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;display:block}
  .sq-arch .sq-eli{grid-area:i;opacity:1 !important}
  .sq-arch .sq-elt{grid-area:t;transform:none !important;font-size:18px !important;line-height:1.35}
  .sq-arch .sq-ela,.sq-arch .sq-elb,.sq-arch .sq-stage,.sq-arch .sq-arr .sq-badge{display:none !important}
  .sq-arch .sq-el:focus-visible{outline-offset:4px}
  .sq-arch .sq-arr{order:4;display:block !important;margin-top:24px !important}
  .sq-arch .sq-arnav{flex-direction:row !important;justify-content:flex-start !important;align-items:center !important;gap:12px !important;padding:16px 0 0;border-top:1px solid rgba(255,255,255,.14)}
  .sq-arch .sq-arc{flex-direction:row !important;align-items:baseline !important;gap:6px !important;margin:0 auto 0 0 !important;font-size:14px !important}
  .sq-arch .sq-arc b{font-size:24px !important;color:#FFFFFF !important;-webkit-text-stroke:0 !important;letter-spacing:.02em !important}
}
@media (max-width:760px){
  .sq-arch .sq-els{gap:12px}
  .sq-arch .sq-els>li{flex-basis:84%}
  .sq-arch .sq-elt{font-size:17px !important}
}

/* Tablet portrait (761 – 1023) */
@media (min-width:761px) and (max-width:1023px){
  /* Homepage: Why Coimbatore as a 2 x 2 grid (no orphan card) */
  #why .wc{min-width:0}
  #why article.wc{flex-basis:auto}
  #why div[style*="auto-fit"]{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:40px 28px !important}
  #why .zoom{aspect-ratio:16 / 10 !important}
  /* Homepage NRI: photo on top, card overlapping it */
  .nx{display:flex !important;flex-direction:column}
  .nx-img{position:relative !important;order:1;height:auto !important;aspect-ratio:16 / 10;object-position:72% 40% !important}
  .nx-in{order:2;padding:0 var(--pad) 72px !important;margin-top:-120px !important;position:relative;width:100%}
  .nx-card{width:min(100%, 600px) !important;box-shadow:0 24px 60px rgba(8,21,54,.1) !important}
  /* Upcoming project cards side by side */
  #panel-upcoming div[style*="grid"]{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  /* Footer: logo, then a 2 x 2 grid of link groups */
  .fd .fcols{grid-template-columns:repeat(2,minmax(0,1fr)) !important;justify-content:stretch !important;width:min(100%, 560px) !important;margin:0 auto}
  /* Contact Us: Phone and Email side by side, Follow Us below */
  .cb-cols{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .cb-col,.cb-col:first-child,.cb-col:last-child{padding:40px 32px 44px !important;border-left:0 !important;border-top:0 !important}
  .cb-col:nth-child(1){padding-left:0 !important}
  .cb-col:nth-child(2){border-left:1px solid rgba(8,21,54,.12) !important}
  .cb-col:nth-child(3){grid-column:1 / -1;border-top:1px solid rgba(8,21,54,.12) !important;padding-left:0 !important;padding-right:0 !important}
  .cb-col .cb-lb{margin-top:28px !important}
  .cb-act{padding-top:24px !important}
  .cb-himg{object-position:78% 50% !important}
  /* Prestige Gardens */
  .sq-ipanel{margin:-96px 0 0 10% !important}
}

/* =========================== MOBILE (≤ 760) =========================== */
@media (max-width:760px){
  :root{--pad:clamp(20px, 5.6vw, 24px)}

  /* Grids: one column, no column gaps (stops the 360px side scroll) */
  .enq-w,.cb-rh,.ct-grid{grid-template-columns:minmax(0,1fr) !important;column-gap:0 !important}
  .enq-l,.enq-form,.cb-rhl,.cb-rp{grid-column:1 / -1 !important}

  /* Type */
  .hx-h{font-size:clamp(28px, 8vw, 36px) !important;line-height:1.1 !important}
  /* Body copy: line height 1.5 on phones (paragraphs, addresses, garden notes, footer text; labels and headings unchanged) */
  body p:not([style*="uppercase"]):not(.sq-eb):not(.enq-eb):not(.cb-eb):not(.cb-lb):not(.ct-eb):not(.ct-lb):not(.wk-tt):not(.r1):not(.ab-eb):not(.ab-lb):not(.ab-num):not(.ab-yr),
  .fd p:not(:first-child),.fd p[style*="12.5"],.cb-addr,.sq-gdd{line-height:1.5 !important}
  .ob,.wb,.sq-b,.enq-btn,.cb-b,.cb-wb,.ab-wb,.tl,.cb-tl,.ab-tl{font-size:12px !important;letter-spacing:.2em !important}
  .ptab,.sq-at,.sq-gfb{font-size:12px !important;min-height:44px !important;letter-spacing:.24em !important}
  .sq-facts dt{font-size:12px !important}
  .sq-lmt{font-size:12px;padding:8px 12px}

  /* Buttons: full-width calls to action, 52px tall */
  .ob:not(.hsm):not(.so):not(.cb-sb):not(.sq-rb),.wb,.sq-b,.enq-btn,.cb-b{display:flex !important;width:100% !important;min-height:52px !important;padding:0 20px !important;justify-content:center !important;text-align:center;white-space:normal !important}
  .enq-wide{width:100%}
  .tl,.cb-tl,.ab-tl{min-height:44px !important}
  .hx-row{gap:8px !important}
  .hx-row .tl,.cb-hrow .cb-tl,.ab-hrow .ab-tl{align-self:flex-start}
  .cb-hrow,.ab-hrow{width:100%}

  /* Header + menu */
  .hb{width:44px !important;height:44px !important}
  .ml{display:inline-flex;align-items:center;min-height:48px}
  .menu-bar>button{min-height:44px !important;min-width:44px;justify-content:center}
  .mo .mside>div{gap:0 !important}
  .mo .mside p{font-size:12px !important;margin-bottom:6px !important}
  .mo .mside .ql{display:flex;align-items:center;min-height:44px;font-size:17px !important}

  /* Homepage */
  #projects [role="tablist"]{margin-left:0 !important}
  #why div[style*="auto-fit"]{gap:40px !important}
  #why .zoom{aspect-ratio:16 / 10 !important}
  .nx-img{order:1 !important;aspect-ratio:4 / 3 !important;object-position:72% 40% !important}
  .nx-in{order:2 !important;padding:0 var(--pad) 56px !important;margin-top:-56px !important;position:relative;width:100%}
  .nx-card{box-shadow:0 20px 50px rgba(8,21,54,.1) !important;padding:32px 22px 34px !important}
  .nx{background:#F7F4EE !important}

  /* Prestige Gardens */
  .wk-stage{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:28px 20px !important}
  /* Prestige Gardens Gallery: all six categories visible at once (2 x 3 grid of underline tabs), photos right below */
  .sq-gal .sq-gbar{margin-top:28px !important}
  .sq-gal .sq-gf{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px !important;width:100% !important;overflow:visible !important;box-shadow:none !important}
  .sq-gal .sq-gfb{justify-content:flex-start;min-height:46px !important;padding:0 0 10px !important;border-bottom:1px solid rgba(255,255,255,.16);white-space:normal;text-align:left;letter-spacing:.18em !important}
  .sq-gal .sq-gfb.is-on{border-bottom:2px solid #DFCBA8;padding-bottom:9px !important}
  .sq-gal .sq-gtw{margin-top:22px !important}

  /* Prestige Gardens Amenities as an accordion: one group open at a time, tap the open one to close it */
  .sq-aml .sq-amt{display:none !important}
  .sq-aml{border-bottom:1px solid rgba(8,21,54,.14)}
  .sq-aml .sq-acc{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:60px;padding:0;margin:0;border:0;border-top:1px solid rgba(8,21,54,.14);background:transparent;font-family:inherit;font-weight:500;font-size:14px;letter-spacing:.2em;text-transform:uppercase;color:#4B5568;text-align:left;cursor:pointer}
  .sq-aml .sq-acc[aria-expanded="true"]{color:#081536}
  .sq-acc-i{flex:0 0 auto;width:16px;height:16px;fill:none;stroke:#327901;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
  .sq-acc[aria-expanded="true"] .sq-acc-i{transform:rotate(180deg)}
  .sq-amp{margin-top:0 !important}
  .sq-amp.is-closed{display:none !important}
  .sq-amp ul{border-bottom:0 !important;padding:0 0 12px 20px}
  .sq-amp li{padding:12px 0 !important}
  .sq-gdi{height:240px !important}

  /* Forms: 48px fields, labels stay 14px */
  .enq-in,.sq-in{min-height:48px !important}

  /* Contact Us */
  .cb-v{display:inline-flex !important;align-items:center;min-height:44px}
  .cb-so{gap:10px !important}

  /* Footer: logo, two link groups side by side, contact full width */
  .fd .fcols{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:36px 20px !important;width:100% !important}
  .fd .fcols>*{gap:0 !important}
  .fd .fcols>div{grid-column:1 / -1}
  .fd .fcols p:first-child{font-size:12px !important;margin-bottom:8px !important}
  .fd .ql{display:flex;align-items:center;min-height:44px;font-size:15px !important}
  .fd .fcols>div p:not(:first-child){padding:8px 0;font-size:15px !important}
  .fd .so{width:44px !important;height:44px !important}
  .fd p[style*="12.5"]{font-size:12px !important;line-height:1.7}
}

/* Small mobile (≤ 380) */
@media (max-width:380px){
  .hx-h{font-size:27px !important}
  .wk-stage{gap:24px 14px !important}
  .enq-form,.sq-form{padding:28px 18px 32px !important}
  .cb-card{padding:28px 18px 30px !important}
}

/* =========================== TOUCH BUTTONS (tablets and phones) ===========================
   No hover on touch screens, so buttons carry their own affordance and give feedback on press:
   - text buttons: solid 1px navy outline + a trailing arrow; pressed = navy fill, white text, slight scale
   - white banner button: arrow; pressed = navy fill
   - square icon buttons: pressed = filled
   - hover-only effects (fill wipes, colour swaps, lifts) are switched off so nothing "sticks" after a tap */
@media (max-width:1279px), (hover:none){
  .ob:not(.hsm):not(.sq-rb):not(.cb-sb),.wb{display:inline-flex;align-items:center;justify-content:center;transition:background-color .15s ease,color .15s ease,border-color .15s ease,transform .15s ease !important}
  .ob:not(.hsm):not(.sq-rb):not(.cb-sb){border-color:rgba(8,21,54,.8) !important}
  /* arrow: shaft (::after) + head (::before, which on desktop is the hover fill) */
  .ob:not(.hsm):not(.sq-rb):not(.cb-sb)::after,.wb::after{content:"";order:2;flex:0 0 auto;width:18px;height:1.2px;margin-left:14px;background:currentColor;transition:transform .15s ease}
  .ob:not(.hsm):not(.sq-rb):not(.cb-sb)::before,.wb::before,
  .ob:not(.hsm):not(.sq-rb):not(.cb-sb):hover::before,.wb:hover::before{content:"";position:static !important;order:3;flex:0 0 auto;width:7px;height:7px;margin-left:-8px;border-top:1.2px solid currentColor;border-right:1.2px solid currentColor;background:transparent !important;transform:rotate(45deg) !important;transform-origin:center;z-index:auto;transition:none !important}
  .ob:not(.hsm):not(.sq-rb):not(.cb-sb):hover{color:#081536 !important;border-color:rgba(8,21,54,.8) !important}
  .wb:hover{color:#081536 !important}
  .ob:not(.hsm):not(.sq-rb):not(.cb-sb):active{background-color:#081536 !important;color:#FFFFFF !important;border-color:#081536 !important;transform:scale(.98)}
  .wb:active{background-color:#081536 !important;color:#FFFFFF !important;transform:scale(.98)}
  .ob:not(.hsm):not(.sq-rb):not(.cb-sb):active::after,.wb:active::after{transform:translateX(3px)}
  .ob:not(.hsm):not(.sq-rb):not(.cb-sb):active::before,.wb:active::before{margin-left:-5px}
  /* square icon buttons */
  .sq-rb::before,.cb-sb::before,.hsm::before{display:none !important}
  .sq-rb:hover,.cb-sb:hover{color:inherit !important}
  .sq-rb[data-dir]:hover svg{transform:none !important}
  .cb-sb:hover{color:#081536 !important;border-color:rgba(8,21,54,.45) !important}
  .cb-sb:active{background-color:#081536 !important;color:#FFFFFF !important;border-color:#081536 !important}
  .sq-dark .sq-rb.ob:hover{color:#FFFFFF !important;border-color:rgba(255,255,255,.45) !important}
  .sq-rb:active{background-color:#081536 !important;color:#FFFFFF !important}
  .sq-dark .sq-rb.ob:active{background-color:#DFCBA8 !important;color:#081536 !important;border-color:#DFCBA8 !important}
  .so:hover,.fd .so:hover{background-color:transparent;transform:none}
  .fd .so:active{background-color:#DFCBA8 !important;border-color:#DFCBA8 !important}
  .fd .so:active svg{stroke:#081536}
  /* text links and tabs: press feedback instead of hover */
  .tl:active::after,.cb-tl:active::after,.ab-tl:active::after{transform:scaleX(1);transform-origin:left center}
  /* About Us: timeline arrows and the hover lines / icon fills of the columns */
  .ab-rb:hover{background:transparent;border-color:rgba(255,255,255,.45);color:#FFFFFF}
  .ab-rb:active{background:#DFCBA8 !important;border-color:#DFCBA8 !important;color:#081536 !important}
  .ab-col:hover::after{transform:scaleX(0)}
  .ab-col:hover .ab-ic{background:transparent;border-color:rgba(8,21,54,.18)}
  .ab-col:hover .ab-ic svg{stroke:#081536}
  .ptab[aria-selected="false"]:hover{color:#7A8394 !important;border-bottom-color:transparent !important}
  .sq-at:not(.is-on):hover{color:#7A8394;border-bottom-color:transparent}
  .sq-dark .sq-gfb:not(.is-on):hover{color:rgba(255,255,255,.62)}
  .ptab:active,.sq-at:active,.sq-gfb:active,.sq-acc:active,.sq-el:active{opacity:.6}
  .hsm:active{transform:scale(.97)}
}
@media (max-width:760px){
  .fbr{flex-direction:column !important;justify-content:center !important;text-align:center}
}
