/*
 * main.css
 * Base styles for Gharpedia Theme.
 * Converted from: frontend-nextjs/src/assets/scss/_base.scss
 *                 frontend-nextjs/src/assets/scss/_gp_common.scss
 *                 frontend-nextjs/src/assets/scss/_title.scss
 *                 frontend-nextjs/src/assets/scss/_buttons.scss
 * Generated by Claude Code Phase 2B
 *
 * Load order (functions.php):
 *   1. bootstrap.min.css  (grid, utilities, components)
 *   2. main.css           (this file — brand tokens + resets on top of Bootstrap)
 *   3. header.css
 *   4. footer.css
 */

/* ── Google Fonts — Inter (body) + DM Serif Display (headings) ── */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap");

/* ── CSS Custom Properties (design tokens) ── */
:root {
  --gp-primary: #e78125;
  --gp-secondary: #19263a;
  --gp-body: #232528;
  --gp-gray: #838383;
  --gp-silver: #cdcdcd;
  --gp-light: #f4f4f4;
  --gp-fantasy: #f9f5f2;
  --gp-font-base:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gp-font-heading: "DM Serif Display", Georgia, serif;
}

/* ── Base / Reset ── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* overflow-x: hidden; -- REMOVED: breaks sticky positioning */
}

body ,html{
  font-family: var(--gp-font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gp-body);
  background: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  height: 100%;
  font-weight: 400;
  scrollbar-color: #19263a #e5e5e5;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px
}

::-webkit-scrollbar-track {
  background: rgba(123, 124, 126, .2);
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px
}

::-webkit-scrollbar-thumb {
  background: #19263a;
  min-height: 100px;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px
}

::-webkit-scrollbar-thumb:window-inactive {
  background: #19263a
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gp-primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--gp-font-heading);
  color: var(--gp-secondary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* ── Bootstrap colour overrides ── */

.text-primary {
  color: var(--gp-primary) !important;
}
.bg-primary {
  background-color: var(--gp-primary) !important;
}
.text-body-color {
  color: var(--gp-body) !important;
}

/* ── Buttons ── */

.btn-primary {
  background-color: var(--gp-primary);
  border-color: var(--gp-primary);
  color: #ffffff;
  padding: 13px 32px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0.25rem;
  transition:
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}
.btn-sm {
  padding: 9px 20px;
      line-height: 16px;
    height: 36px;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: rgb(234.6, 147.9, 69.7);
  border-color: rgb(233.4, 141.6, 58.8);
  color: #ffffff;
}

.btn-outline-primary {
  border-color: var(--gp-primary);
  color: var(--gp-primary);
  padding: 9px 27px;
  font-weight: 500;
  font-size: 14px;
  border-radius: 0.25rem;
  transition:
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
}
.btn-outline-primary.btn-outline-primary-lg {
  padding: 13px 32px;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--gp-primary);
  border-color: var(--gp-primary);
  color: #ffffff;
}

/* ── Page wrapper ── */

#gp-page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#gp-page-wrapper > main,
#gp-page-wrapper > .gp-main-content {
  flex: 1;
}

/* ── Section titles ── */

.section-title {
  font-size: 42px;
  font-weight: 500;
  color: var(--gp-secondary);
  padding-bottom: 40px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .section-title {
    font-size: 24px;
  }
}

/* ── Utility ── */

.gp-page-wrapper {
  /* overflow-x: hidden; -- REMOVED: breaks sticky positioning */
}

/* ── Button modifier classes (compiled from _buttons.scss) ── */

/* .btn overrides: border-radius, transition, focus ring */
.btn {
  border-radius: 48px;
  transition: all 0.3s ease-in-out;
}
.btn:focus,
.btn:active {
  box-shadow: none !important;
}
@media (max-width: 767px) {
  .btn {
    font-size: 12px;
  }
}

.btn.btn-lg {
  padding: 21px 30px;
  font-size: 18px;
}
@media (max-width: 767px) {
  .btn.btn-lg {
    padding: 16px 20px;
    font-size: 16px;
  }
}

.btn.btn-outline-light {
  color: #ffffff;
  border-color: #ffffff;
}
.btn.btn-outline-light:hover {
  background: #ffffff;
  color: #e78125;
}

/* Icon-flanked buttons */
.btn-right-icon {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px 10px 32px;
}
.btn-right-icon svg {
  margin-left: 4px;
  font-size: 20px;
}
.btn-right-icon svg path {
  transition: none;
}

@media (max-width: 767px) {
  .btn-right-icon svg {
    font-size: 18px;
  }
}

/* Link-style buttons */
.btn-link {
  text-decoration: none;
  padding: 0;
  color: #173055;
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
}
.btn-link:hover {
  color: #e78125;
}

@media (max-width: 767px) {
  .btn-link {
    font-size: 12px;
    line-height: 16px;
  }
}

.btn-link--white {
  color: #ffffff;
}
.btn-link--white:hover {
  color: #e78125;
}

.btn-link--gray {
  color: #7b7c7e;
}
.btn-link--gray:hover {
  color: #19263a;
}

.btn-link--primary {
  color: #e78125;
}
.btn-link--primary:hover {
  color: #19263a;
}

/* Block / full-width helpers */
.btn-mobile-full {
  /* mobile handled via breakpoint below */
}
@media (max-width: 767px) {
  .btn-mobile-full {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.btn-normal {
  border-radius: 8px;
}

.btn-block {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.container {
  max-width: 1282px;
  padding-left: 20px;
  padding-right: 20px;
}
.container-sm {
  max-width: 858px;
  padding-left: 20px;
  padding-right: 20px;
}
.container-md {
    max-width: 1030px;
      padding-left: 20px;
  padding-right: 20px;
}
.newly-launched-static-wrap,
.newly-launched-static-wrap .static-img-block,
.static-img-block.dark-block {
  background: #19263a;
}
.newly-launched-static-wrap img,
.static-img-block.dark-block img {
  margin: auto;
  display: block;
}

.subscribe-banner .subscribe-banner-box {
  background: #d0e9ee;
  padding: 21px 24px 21px 42px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  max-width: 990px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .subscribe-banner .subscribe-banner-box {
    padding: 40px 0;
  }
}

.subscribe-banner .subscribe-banner-box h3 {
  font-size: 22px;
  color: #19263a;
  font-family:
    "DM Serif Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  padding-bottom: 0;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .subscribe-banner .subscribe-banner-box h3 {
    font-size: 18px;
    line-height: 24px;
  }
}

.subscribe-banner .subscribe-banner-box p {
  font-size: 14px;
  line-height: 147%;
  color: #19263a;
  margin-bottom: 0;
}
.subscribe-banner .subscribe-banner-box .container {
  display: block !important;
}

@media (max-width: 767px) {
  .subscribe-banner .subscribe-banner-box p {
    font-size: 10px;
    line-height: 14px;
  }
}

/* =========================================
   SMALL SUBSCRIBE BANNER
========================================= */

.subscribe-banner--small {
  padding: 6px 0 26px;
}

@media (max-width: 991px) {
  .subscribe-banner--small {
    padding: 0;
  }
}

.subscribe-banner--small .subscribe-banner-box {
  padding: 21px 24px 21px 42px;
  border-radius: 4px;
  max-width: 990px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .subscribe-banner--small .subscribe-banner-box {
    padding: 40px 20px;
  }
}

.subscribe-banner--small .subscribe-banner-box h3 {
  font-size: 22px;
}

@media (max-width: 767px) {
  .subscribe-banner--small .subscribe-banner-box h3 {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .subscribe-banner--small .subscribe-form {
    margin-top: 16px;
  }
}

@media (min-width: 991px) {
  .subscribe-banner--small .subscribe-form .form-control {
    height: 44px;
  }
}

.subscribe-banner--small .subscribe-form .subscribe-submit {
  right: 20px;
}

.subscribe-banner--small .subscribe-form .subscribe-submit svg {
  margin-left: 6px;
  width: 11px;
  height: 10px;
}

/* =========================================
   FORM
========================================= */

.subscribe-form {
  position: relative;
}

@media (max-width: 991px) {
  .subscribe-form {
    margin-top: 24px;
  }
}

.subscribe-form .form-control {
  height: 72px;
  border: 0;
  box-shadow: none;
  background: #fff;
  color: #232528;
  font-size: 16px;
  line-height: 19px;
  padding: 0 100px 0 21px;
  border-radius: 4px;
}

.subscribe-form .form-control:focus {
  box-shadow: none;
}

@media (max-width: 767px) {
  .subscribe-form .form-control {
    height: 56px;
    padding-left: 15px;
    font-size: 14px;
    line-height: 14px;
    padding-right: 90px;
  }
}

.subscribe-form .subscribe-submit {
  position: absolute;
  right: 30px;
  top: 50%;
  margin-top: -20px;
  height: 40px;
  border: 0;
  display: flex;
  align-items: center;
  background: transparent;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: #e78125;
  transition: all 0.3s ease-in-out;
}

.subscribe-form .subscribe-submit:hover {
  color: #19263a;
}

@media (max-width: 767px) {
  .subscribe-form .subscribe-submit {
    font-size: 14px;
    line-height: 17px;
  }

  .subscribe-form .subscribe-submit svg {
    margin-left: 7px;
    width: 13px;
    height: 12px;
  }
}

/* =========================================
   GRAVITY FORM
========================================= */

.error-msg.gp-subscribe-error {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 8px;
  display: block;
}

/* Spinner inside subscribe button during loading — mirrors ClipLoader */
.gp-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: gp-spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes gp-spin {
  to { transform: rotate(360deg); }
}
.subscribe-form .gform_wrapper.gravity-theme .gfield_label {
  display: none;
}

.subscribe-form .gform_button {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #d07a2d !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 0 35px 0 0 !important;
  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg width='17' height='16' viewBox='0 0 17 16' fill='%23d07a2d' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.64109 7.58992C2.74921 7.85088 2.74921 8.14912 2.64109 8.41008L0.0840946 14.5813C-0.262097 15.4168 0.522837 16.276 1.30302 15.9155L16.4347 8.92416C17.1884 8.57594 17.1884 7.42406 16.4347 7.07584L1.30302 0.0844521C0.522837 -0.27602 -0.262097 0.583171 0.0840943 1.41869L2.64109 7.58992Z'/%3E%3C/svg%3E") !important;

  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: 17px 16px !important;

  position: absolute;
  right: 30px;
  top: 50%;
  margin-top: -20px;
  height: 40px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.subscribe-form .gform_button:hover {
  color: #19263a !important;

  background-image: url("data:image/svg+xml,%3Csvg width='17' height='16' viewBox='0 0 17 16' fill='%2319263a' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.64109 7.58992C2.74921 7.85088 2.74921 8.14912 2.64109 8.41008L0.0840946 14.5813C-0.262097 15.4168 0.522837 16.276 1.30302 15.9155L16.4347 8.92416C17.1884 8.57594 17.1884 7.42406 16.4347 7.07584L1.30302 0.0844521C0.522837 -0.27602 -0.262097 0.583171 0.0840943 1.41869L2.64109 7.58992Z'/%3E%3C/svg%3E") !important;
}

.subscribe-form .ginput_container.ginput_container_email input {
  height: 44px;
  border: 0;
  box-shadow: none;
  background: #fff;
  color: #232528;
  font-size: 16px;
  line-height: 19px;
  padding: 0 100px 0 21px !important;
  border-radius: 4px;
  display: block;
  width: 100%;
  font-weight: 400;
}

.subscribe-form .gform_wrapper.gravity-theme .gform_footer,
.subscribe-form .gform_wrapper.gravity-theme .gform_page_footer {
  margin: 0;
  padding: 0;
}
/* .gform_wrapper.gravity-theme .gform_fields{
    grid-row-gap:0 !important;
} */
.blog-cta-box__title h2.h1 {
  font-size: 42px;
  line-height: 115%;
  font-weight: 400;
  margin-bottom: 0;
}
.modal {
  z-index: 2000;
}
.form-control:focus {
  color: #232528;
  background-color: #fff;
  border-color: #f3c092;
  outline: 0;
  box-shadow: none;
}
.form-select:focus {
  color: #232528;
  background-color: #fff;
  border-color: #f3c092;
  outline: 0;
  box-shadow: none;
}
.dropdown-toggle::after {
  display: none;
}
@media (max-width: 767px) {
  .blog-cta-box__title h2.h1 {
    font-size: 28px;
  }
}

/* ── Custom Select Dropdown ────────────────────────────────────────────────── */
/* Base styles moved to main.css for global usage */
.need-help-banner .select-category.gp-row-open {
  position: relative;
  z-index: 10001;
}

.gp-custom-select {
  position: relative;
  width: auto;
  cursor: pointer;
  z-index: 100;
  max-width: 100%;
}

.gp-select-selected {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px 65px 16px 40px;
  font-size: 32px;
  line-height: 1.1;
  color: var(--gp-primary);
  font-family: var(--gp-font-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.1);
  font-weight: 400;
  transition: all 0.3s ease;
}

.gp-custom-select .gp-select-chevron {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gp-primary);
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.gp-custom-select.open .gp-select-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.gp-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.15);
  display: none;
  max-height: 350px;
  overflow-y: auto;
  z-index: 9999;
  padding: 12px 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.gp-custom-select.open .gp-select-options {
  display: block;
}

.gp-select-option {
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 20px;
  transition: all 0.2s ease-in-out;
  color: var(--gp-body);
  font-family: var(--gp-font-base);
}

.gp-select-option:hover {
  background: rgba(231, 129, 37, 0.1);
}

.gp-select-option.active {
  background-color: var(--gp-primary);
  color: #ffffff;
}

/* Scrollbar for Options */
.gp-select-options::-webkit-scrollbar {
  width: 6px;
}
.gp-select-options::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.gp-select-options::-webkit-scrollbar-thumb {
  background: #0e3043;
  border-radius: 10px;
}

/* Variant: Orange Background (Location selector) */
.gp-custom-select--orange .gp-select-selected {
  background-color: var(--gp-primary);
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 45px 8px 40px;
  font-size: 24px;
  font-weight: 500;
  font-family: var(--gp-font-base);
  box-shadow: none;
}

.gp-custom-select--orange .gp-select-chevron {
  color: #ffffff;
  right: 15px;
  width: 18px;
}

.gp-custom-select--orange .gp-select-pin {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  .gp-select-selected {
    font-size: 26px;
    padding: 10px 45px 10px 24px;
  }
  .gp-custom-select--orange .gp-select-selected {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .gp-select-selected {
    font-size: 16px;
    padding: 8px 40px 8px 16px;
  }
  .gp-custom-select .gp-select-chevron {
    right: 12px;
    width: 18px;
  }
  .gp-custom-select--orange .gp-select-selected {
    font-size: 16px;
    padding: 8px 36px 8px 32px;
  }
  .gp-custom-select--orange .gp-select-pin {
    left: 10px;
    width: 16px;
  }
   .blog-cta-box__title h2.h1 {
        font-size: 28px;
    }
    .h1, h1{
      font-size: 28px !important;
    }
}
