/* Site header, footer aur chhote helpers. Rang theme.css ke variables se aate hain.

   Fonts: tailwind.css mein har weight ki alag family hai (LatoRegular, LatoBold, GilroySemibold...).
   Weight 600 par LatoRegular lagane se browser faux-bold banata hai (blur/pixelated text),
   isliye bold text ke liye GilroySemibold (--font-heading) use karein. */
:root {
  --font-body: LatoRegular, Arial, sans-serif;
  --font-heading: GilroySemibold, Arial, sans-serif;
}

/* Site sirf light theme ke liye bani hai: browser ke auto/forced dark mode mein page kaala na ho */
html { color-scheme: light; }
body { background: #fff; color: #262626; }

.ft-container { width: min(1200px, 92%); margin-inline: auto; }

/* Buttons */
.ft-btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px; font-family: var(--font-heading); font-weight: 600;
  font-size: 15px; transition: background .2s; white-space: nowrap;
}
.ft-btn--primary { background: var(--color-primary); color: #fff; }
.ft-btn--primary:hover { background: var(--color-navy); color: #fff; }

/* Header */
.ft-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid #e2e4e9; }
.ft-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.ft-logo img { height: 48px; width: auto; display: block; }
.ft-nav { display: flex; align-items: center; gap: 6px; }
.ft-nav__item { position: relative; }
.ft-nav__link {
  background: none; border: 0; cursor: pointer; font-family: var(--font-heading); font-weight: 600;
  color: var(--color-navy); padding: 26px 12px; display: block; font-size: 15px; white-space: nowrap;
}
button.ft-nav__link { display: inline-flex; align-items: center; gap: 6px; }
.ft-nav__chevron { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s ease; }
.ft-nav__item:hover .ft-nav__chevron, .ft-nav__item:focus-within .ft-nav__chevron { transform: rotate(180deg); }
.ft-nav__item:hover .ft-nav__link, .ft-nav__item:focus-within .ft-nav__link { color: var(--color-primary); }
.ft-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
  border: 1px solid #e2e4e9; border-radius: 12px; box-shadow: 0 12px 28px rgba(0, 8, 77, .12);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.ft-nav__item:hover .ft-dropdown, .ft-nav__item:focus-within .ft-dropdown { opacity: 1; visibility: visible; transform: none; }
.ft-dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 15px; color: #262626; }
.ft-dropdown a:hover { background: var(--color-primary-bg); color: var(--color-primary); }
/* 2-column dropdown (Services: Editing & Writing + Journal Publication) */
.ft-dropdown--cols { display: grid; grid-template-columns: repeat(2, minmax(270px, 1fr)); gap: 4px 14px; min-width: 580px; padding: 14px; }
.ft-dropdown__title { padding: 4px 14px 8px; margin: 0 0 4px; border-bottom: 1px solid #e2e4e9; font-family: var(--font-heading); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); }
.ft-nav__cta { margin-left: 10px; }
/* Header phone number (Contact Us se pehle) */
.ft-nav__phone { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 8px 4px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-navy); white-space: nowrap; transition: color .15s; }
.ft-nav__phone:hover { color: var(--color-primary); }
.ft-nav__phone-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary-bg); color: var(--color-primary); transition: background .15s, color .15s; }
.ft-nav__phone:hover .ft-nav__phone-ico { background: var(--color-primary); color: #fff; }
.ft-nav__phone-ico .ft-ico { width: 16px; height: 16px; }
@media (max-width: 1240px) and (min-width: 961px) { .ft-nav__phone-num { display: none; } .ft-nav__phone { margin-left: 4px; } }
@media (max-width: 1080px) and (min-width: 961px) { .ft-nav__link { padding-left: 8px; padding-right: 8px; font-size: 14px; } }
.ft-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.ft-burger span { display: block; width: 24px; height: 2px; background: var(--color-navy); margin: 5px 0; }

/* Footer */
/* Footer: dark background, light text. Rang theme.css ke variables se aate hain. */
.ft-footer {
  background: var(--color-navy); color: var(--color-primary-tint); margin-top: 40px;
  font-family: var(--font-body);
}
.ft-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; padding: 56px 0 40px; font-size: 15px; }
.ft-footer__brand img { height: 48px; width: auto; margin-bottom: 14px; }
.ft-footer__brand p { max-width: 320px; color: var(--color-primary-soft); }
.ft-footer__contact { margin-top: 18px; display: grid; gap: 12px; font-style: normal; }
.ft-footer__contact-item { display: flex; align-items: flex-start; gap: 10px; color: var(--color-primary-tint); font-family: var(--font-body); font-size: 15px; line-height: 1.5; overflow-wrap: break-word; }
a.ft-footer__contact-item:hover { color: #fff; text-decoration: none; }
a.ft-footer__contact-item:hover > span:last-child { text-decoration: underline; }
.ft-footer__contact-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; margin-top: -3px; border-radius: 50%; background: rgb(255 255 255 / .1); color: #7fd1ff; transition: background .15s; }
a.ft-footer__contact-item:hover .ft-footer__contact-ico { background: var(--color-primary-light); color: #fff; }
.ft-footer__contact-ico .ft-ico { width: 15px; height: 15px; }
.ft-footer h4 { color: #fff; font-family: var(--font-heading); font-weight: 600; margin-bottom: 14px; font-size: 16px; }
.ft-footer li { margin-bottom: 9px; }
.ft-footer a { color: var(--color-primary-tint); transition: color .15s; font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.5; }
.ft-footer a:hover { color: #fff; text-decoration: underline; }
.ft-footer__logo { display: inline-block; }
.ft-footer__logo:hover { text-decoration: none; opacity: .85; }
.ft-footer__bottom { background: rgba(0, 0, 0, .28); color: var(--color-primary-soft); font-size: 14px; padding: 16px 0; }
.ft-footer__bottom .ft-container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ft-footer__bottom a { color: #fff; }
.ft-footer__bottom a:hover { color: var(--color-primary-soft); }

/* Responsive */
@media (max-width: 960px) {
  .ft-burger { display: block; }
  .ft-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 10px 4% 20px; border-bottom: 1px solid #e2e4e9; display: none; gap: 0;
  }
  .ft-nav.is-open { display: flex; }
  /* Lamba menu header ke neeche scroll ho (header sticky hai, warna neeche ke links tak pahunch nahi hoti) */
  .ft-nav { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .ft-nav__link { padding: 14px 4px; width: 100%; text-align: left; }
  button.ft-nav__link { justify-content: space-between; }
  .ft-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .ft-dropdown--cols { display: block; min-width: 0; padding: 0 0 8px 12px; }
  .ft-dropdown__title { padding: 10px 14px 6px; border-bottom: 0; }
  .ft-nav__cta { margin: 10px 0 0; text-align: center; }
  .ft-nav__phone { margin: 6px 0 0; padding: 12px 4px; border-top: 1px solid #e2e4e9; }
  .ft-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ft-footer__grid { grid-template-columns: 1fr; }
}

/* Floating WhatsApp button - bottom-left, fixed. Standard WhatsApp green (#25d366). */
:root { --whatsapp-bg: #25d366; --whatsapp-bg-hover: #1ebe5a; }
.ft-whatsapp {
  position: fixed; left: 20px; bottom: 20px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--whatsapp-bg); color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .4);
  transition: transform .2s, background .2s;
}
.ft-whatsapp:hover { transform: scale(1.08); background: var(--whatsapp-bg-hover); color: #fff; }
.ft-whatsapp:focus-visible { outline: 3px solid #b6f0cd; outline-offset: 3px; }
@media (max-width: 560px) { .ft-whatsapp { left: 14px; bottom: 14px; width: 52px; height: 52px; } }

/* Home carousels: main.js ke banaye arrows (right/left:-18px) phone par screen se bahar na jayein */
@media (max-width: 640px) {
  section.relative > div.right-\[-30px\] { right: 4px !important; }
  section.relative > div.left-\[-30px\] { left: 4px !important; }
}

/* Home FAQ: plus icon (band hone par +, khulne par -). main.js li par .is-open lagata hai. */
.ft-faq-icon { width: 14px; height: 14px; }
.ft-faq-icon::before, .ft-faq-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--color-primary); transition: transform .2s ease; }
.ft-faq-icon::after { transform: rotate(90deg); }
li.is-open > .ft-faq-icon::after { transform: rotate(0deg); }
@media (prefers-reduced-motion: reduce) { .ft-faq-icon::before, .ft-faq-icon::after { transition: none; } }

/* Inline SVG icons (sv_icon('name', 'ft-ico ...')) - home page par image files ki jagah. Rang currentColor se. */
.ft-ico { display: inline-block; flex-shrink: 0; width: 1em; height: 1em; vertical-align: middle; }
.ft-ico--feature { width: 14px; height: 14px; margin: 4px 10px 0 0; color: var(--color-primary); stroke-width: 2.4; }
.ft-ico--btn { width: 16px; height: 16px; margin-left: 8px; color: var(--color-primary); stroke-width: 2.2; }
.ft-ico--link { width: 16px; height: 16px; margin-left: 6px; color: var(--color-primary); stroke-width: 2.2; transition: transform .2s; align-self: center; }
a:hover > span > .ft-ico--link, a:hover .ft-ico--btn { transform: translateX(3px); }
.ft-ico--card { width: 30px; height: 30px; margin-right: 8px; color: var(--color-primary); }
.ft-ico--hero { width: 18px; height: 18px; margin-right: 4px; color: #fff; align-self: center; }
.ft-ico--wa { width: 22px; height: 22px; margin-right: 6px; color: #25d366; stroke-width: 2; }
@media (prefers-reduced-motion: reduce) { .ft-ico--link { transition: none; } }

/* ---------- Quick enquiry popup (components/enquiry-modal.php, assets/js/enquiry.js) ---------- */
.ft-modal { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 26px; background: transparent; color: #262626; overflow: visible; }
.ft-modal::backdrop { background: rgb(var(--color-navy-rgb) / .62); backdrop-filter: blur(4px); }
.ft-modal[open] { animation: ft-modal-in .25s ease; }
.ft-modal[open]::backdrop { animation: ft-fade-in .25s ease; }
@keyframes ft-modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ft-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ft-modal__card { max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
.ft-modal__head { position: relative; padding: 28px 30px 26px; color: #fff; border-radius: 26px 26px 0 0;
  background: radial-gradient(420px 200px at 100% 0%, rgb(var(--color-primary-light-rgb) / .55), transparent 70%), linear-gradient(135deg, var(--color-navy), var(--color-primary)); }
.ft-modal__badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .25); font-family: var(--font-heading); font-weight: 600; font-size: 13px; }
.ft-modal__badge .ft-ico { width: 15px; height: 15px; }
.ft-modal .ft-modal__head h2 { /* .ft-modal se specificity: service pages ka ".page-service h2" (navy) override na kare */ margin: 12px 0 6px; font-family: var(--font-heading); font-weight: 600; font-size: 26px; line-height: 1.2; color: #fff; }
.ft-modal__head p { margin: 0; color: var(--color-primary-tint); font-size: 15px; line-height: 1.55; max-width: 420px; }
.ft-modal__close { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.ft-modal__close:hover { background: rgb(255 255 255 / .28); transform: rotate(90deg); }
.ft-modal__close .ft-ico { width: 18px; height: 18px; stroke-width: 2.2; }
.ft-modal__close:focus-visible, .ft-modal__submit:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }

.ft-modal__form { padding: 24px 30px 26px; display: grid; gap: 16px; }
.ft-modal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
.ft-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.ft-field__box { min-width: 0; }
.ft-field__box select { width: 100%; text-overflow: ellipsis; }
.ft-field > span:first-child { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--color-navy); }
.ft-field__box { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 2px solid #dfe6ef; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ft-field__box .ft-ico { width: 18px; height: 18px; color: var(--color-primary-mid); }
.ft-field__box:focus-within { border-color: var(--color-primary-light); box-shadow: 0 0 0 4px rgb(var(--color-primary-light-rgb) / .15); }
.ft-field__box input, .ft-field__box select { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font: inherit; font-family: var(--font-body); font-size: 15px; color: #262626; }
.ft-field__box select { appearance: none; -webkit-appearance: none; padding-right: 22px; cursor: pointer; }
.ft-field__box--select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ft-field__box:has([aria-invalid="true"]) { border-color: #e08b80; }
.ft-field__err { font-size: 13px; color: #a5342a; }
.ft-field__err:empty { display: none; }

.ft-modal__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: #fff; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light)); box-shadow: 0 12px 26px rgb(var(--color-primary-rgb) / .3); transition: transform .15s, box-shadow .15s, filter .15s; }
.ft-modal__submit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgb(var(--color-primary-rgb) / .38); filter: brightness(1.05); }
.ft-modal__submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.ft-modal__submit .ft-ico { width: 18px; height: 18px; stroke-width: 2.2; }
.ft-modal__alt { margin: 0; text-align: center; font-size: 14px; color: #4b5563; }
.ft-modal__alt a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: 600; color: #128c4a; }
.ft-modal__alt a:hover { color: #0d6e3a; text-decoration: underline; }
.ft-modal__alt .ft-ico { width: 18px; height: 18px; color: #25d366; stroke-width: 2; }
.ft-modal__note { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #6b7280; }
.ft-modal__note .ft-ico { width: 13px; height: 13px; }
.ft-modal__status { padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.ft-modal__status.is-ok { background: rgb(18 128 79 / .1); color: #0f6b42; border: 1px solid rgb(18 128 79 / .25); }
.ft-modal__status.is-error { background: #fdecea; color: #a5342a; border: 1px solid #f3c4be; }
html.ft-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  /* Phone: dono taraf 12px gap, beech mein (full-width nahi) */
  .ft-modal { width: calc(100% - 24px); max-width: none; max-height: calc(100dvh - 24px); margin: auto; border-radius: 22px; }
  .ft-modal__card { max-height: calc(100dvh - 24px); border-radius: 22px; }
  .ft-modal__head { border-radius: 22px 22px 0 0; }
  .ft-modal__head { padding: 24px 20px 22px; }
  .ft-modal .ft-modal__head h2 { font-size: 22px; padding-right: 40px; }
  .ft-modal__form { padding: 20px 20px 24px; }
  .ft-modal__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ft-modal[open], .ft-modal[open]::backdrop { animation: none; }
  .ft-modal__close, .ft-modal__submit { transition: none; }
}

/* Home: .btn ke andar <button> (popup kholne wale buttons, link nahi) - <a> jaisa hi dikhe */
.btn > button { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1.2; cursor: pointer; }
.btn > button:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 3px; border-radius: 9999px; }
/* Hero slide 1: "Contact Us" ghost button (Get a Quote ke saath) */
.ft-hero-ghost { min-width: 11rem; margin-left: 14px; border-color: rgb(255 255 255 / .6); background: transparent; color: #fff; }
.ft-hero-ghost:hover { background: rgb(255 255 255 / .12); }
.ft-hero-ghost a, .ft-hero-ghost a:hover { color: #fff; }
@media (max-width: 949px) { .ft-hero-ghost { margin-left: 0; margin-top: 12px; } }

/* Mobile menu khula ho to WhatsApp float menu ke links ke upar na aaye (main.js body par .nav-open lagata hai) */
.nav-open .ft-whatsapp { opacity: 0; visibility: hidden; pointer-events: none; }

/* Home packages carousel: phone par arrows card ke text ke upar aate the. Arrows main.js inline style (left/right: -18px) se bante hain, is liye !important. */
@media (max-width: 640px) {
  #packages section.relative > div.absolute.cursor-pointer.rounded-full[aria-label="Previous"] { left: calc(-1 * min(40px, (100vw - 290px) / 2 - 2px)) !important; }
  #packages section.relative > div.absolute.cursor-pointer.rounded-full[aria-label="Next"] { right: calc(-1 * min(40px, (100vw - 290px) / 2 - 2px)) !important; }
}
