/* =========================================================
   RESPONSIVE PATCHES — Ledger Theme
   Only touches pages: Home, About, Contact.
   ========================================================= */

/* --- small phones (portrait) --- */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .site-header .container {
    flex-wrap: wrap;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .site-branding img {
    max-height: 60px;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .site-description {
    font-size: 0.55rem;
  }

  .hero {
    padding: 30px 0 40px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy h1 {
    font-size: 2.1rem !important;
    line-height: 1.1;
  }

  .hero-copy p.lede {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-ledger {
    flex-direction: column;
    gap: 12px;
  }

  .hero-ledger strong {
    font-size: 1.2rem;
  }

  .hero-visual .frame {
    padding: 8px;
  }

  .hero-visual .tag {
    bottom: -10px;
    left: -10px;
    padding: 8px 12px;
    font-size: 0.65rem;
  }

  .trust-strip {
    padding: 30px 0;
  }

  .trust-strip .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trust-item .num {
    padding-top: 0;
	  font-size: 30px !important;
  }

  .about-section {
    padding: 40px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-grid .col-3 {
    min-height: auto;
    padding: 20px;
  }

  .about-figure img {
    height: auto;
    max-height: 140px;
  }

  .stat-row {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .stat-row strong {
    font-size: 1.6rem;
  }

  .services-section {
    padding: 40px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 24px 18px;
  }

  .testimonial-section {
    padding: 40px 0;
  }

  .testimonial-track {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 20px 16px 20px 0;
    font-size: 1rem;
  }

  .testimonial-card .mark {
    font-size: 4rem;
    transform: translateY(-60%);
  }

  .cta-band {
    padding: 30px 0;
  }

  .cta-band .container {
    flex-direction: column;
    text-align: center;
  }

  .cta-band h2 {
    font-size: 1.4rem;
  }

  .contact-section {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .col-2.form-section {
    padding: 20px;
  }

  .contact-form {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info-list {
    gap: 14px;
  }

  .social-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-icon {
    width: 32px;
    margin-right: 6px;
  }

  .social-icon img {
    width: 28px;
  }

  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 30px;
    padding-top: 16px;
  }

  .single-post .entry-header {
    padding: 16px 0 20px;
    background-size: cover;
  }

  .single-post .entry-header h1 {
    font-size: 1.8rem;
  }

  .single-post .entry-content {
    font-size: 0.95rem;
    margin-top: 24px;
  }

  .page-id-3039 .entry-header h1 {
    transform: translateY(60px);
    font-size: 2rem;
  }

  .site-main.full-width {
    margin-top: -40px;
  }

  .spectra-overlay-color.spectra-overflow.spectra-box-shadow.about-tagline-p.wp-block-spectra-container {width: 100%; margin-left: 0; padding: 40px 0 0; }

  h2.about-tagline {
    margin-top: 40px !important;
    font-size:20px !important;
  }

  .about-tagline-p {
    margin-bottom: 40px !important;
  }

  .time-line,
  .associated-with,
  .client-testimonial {
    padding: 40px 0;
  }

  .time-line .ctl-wrapper {
    width: 100%;
  }

  .whatsapp-btn {
    padding: 8px 14px;
    font-size: 13px;
    bottom: 6px;
    left: 6px;
  }

  .whatsapp-btn svg {
    width: 18px;
    height: 18px;
  }

  .location-detail .address-ld,
  .location-detail .phone-ld,
  .location-detail .email-ld {
    padding-right: 0;
    background-position: 0 4px;
  }

  .single-post .entry-content .location-detail h3 {
    font-size: 1.1rem;
  }
}

/* --- tablets & small laptops (481px – 820px) --- */
@media (min-width: 481px) and (max-width: 820px) {
  :root {
    --gutter: 24px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy h1 {
    font-size: 2.8rem !important;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .trust-strip .container {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid .col-3 {
    min-height: 630px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-track {
    grid-template-columns: 1fr;
  }
  .hero-copy p.lede{width: 100%;max-width: 100%;}
	.trust-item p, .trust-item h3{text-align: center; display: block;}
	.trust-item.reveal.is-visible { justify-content: center;}
	h2.wp-block-heading.has-text-align-center { font-size: 40px !important;}
  .contact-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .site-main.full-width {
    margin-top: -50px;
  }

  .spectra-overlay-color.spectra-overflow.spectra-box-shadow.about-tagline-p.wp-block-spectra-container {
     width: 100%;
     margin-left: 0%;
     padding: 100px 13px 20px;
  }

  h2.about-tagline { margin-top: 70px !important; font-size: 30px !important; }
 .whatsapp-btn{right: 10px; width: 250px !important; left: auto;}
  .time-line .ctl-wrapper {width: 90%;}
.blog-section {padding: 80px 0; width: 100%;}
}

/* --- medium screens (821px – 1024px) --- */
@media (min-width: 821px) and (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-copy h1 {
    font-size: 2.3rem !important;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-section {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
    gap: 30px;
  }

  .spectra-overlay-color.spectra-overflow.spectra-box-shadow.about-tagline-p.wp-block-spectra-container {
    width: 100%;
    margin-left: 0%;
    padding: 80px 40px;
  }
	.trust-strip{padding: 40px 0;}
}

/* --- fix for very wide screens (optional polish) --- */
@media (min-width: 1400px) {
  .container {
    max-width: 1260px;
  }

  .hero-copy h1 {
    font-size: 4rem;
  }
}

/* --- touch-friendly tap targets --- */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .primary-nav a,
  .service-card a.more,
  .footer-grid a,
  .whatsapp-btn {
    padding: 12px 18px;
    min-height: 44px;
    min-width: 44px;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav a {
    border-bottom: 2px solid transparent;
    padding-bottom: 6px;
  }

  .primary-nav a:hover {
    border-bottom-color: var(--brass);
  }
}

/* --- prevent horizontal overflow --- */
img,
iframe,
video,
.wp-block-image,
.wp-block-embed,
.spectra-container,
.spectra-overflow {
  max-width: 100% !important;
  height: auto !important;
}

/* --- contact form responsiveness inside container --- */
.wpcf7-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wpcf7-form .form-field.full {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .wpcf7-form .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --- make sure the about tagline block doesn't overflow --- */
.about-tagline-p {
  overflow: hidden;
  word-break: break-word;
}

/* --- ensure the hero ledger strip wraps nicely --- */
.hero-ledger {
  flex-wrap: wrap;
}

/* --- fix for the floating WhatsApp button on mobile --- */
@media (max-width: 480px) {
  .whatsapp-btn {
    padding: 6px 12px;
    font-size: 15px;
    border-radius: 40px;
    left: auto;
	right: 10px;
  }
  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* --- single post hero / page header adjustments --- */
.single-post .entry-header {
  background-size: cover;
  background-position: center top;
}

/* --- ensure the contact section columns don't break --- */
.contact-section {
  display: grid;
}

@media (max-width: 820px) {
  .contact-section {
    grid-template-columns: 1fr;
  }

  .col-2.form-section {
    height: auto !important;
    min-height: 400px;
  }
  .header-cta a.btn.btn-solid {
    display: none;
  }
}

/* --- utility to keep images in check --- */
.about-figure img,
.post-card .thumb img,
.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- reveal animation on mobile: keep it subtle --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- ensure the "case file" tabs don't overflow --- */
.service-card {
  word-break: break-word;
}

/* --- footer bottom text alignment on small screens --- */
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* --- trust strip text color fix (was white on white) --- */
.trust-item p,
.trust-item h3 {
  color: var(--white);
}

/* --- make sure the about section stats are readable --- */
.stat-row span {
  font-size: 0.7rem;
}

/* --- small screen: center align the about tagline block --- */
@media (max-width: 600px) {
  .about-tagline-p {
    text-align: left;
  }
  .about-tagline-p h2 {
    text-align: left;
    line-height: 1.35;
  }
}

/* --- fix the location detail icons alignment --- */
.location-detail p {
  margin-bottom: 0.4em;
}

/* --- improve spacing for the client testimonial section --- */
.client-testimonial .testimonial-scroll {
  min-height: 200px;
}

/* --- ensure the spectra container on contact page is not cut off --- */
.spectra-overlay-color.spectra-overflow.col-2.form-section.wp-block-spectra-container {
  height: auto !important;
  min-height: 400px;
}

/* --- final safety: prevent overflow on any element --- */
* {
  max-width: 100%;
  box-sizing: border-box;
}
@media(max-width:1300px){
	.spectra-overlay-color.spectra-overflow.col-2.form-section.wp-block-spectra-container{height: 734px !important;}
	article.single-post { overflow-x: hidden;}
}
@media(max-width: 799px){
	.price-table-container { width: 100%;}
}
@media(max-width: 767px){
	.topbar a {flex: 0 0 21%;letter-spacing: -0.01em;}
	.topbar-contact{gap:5px;}
	 a.social-icon { padding: 4px !important; min-width: 34px !important;  min-height: 34px !important; }
	p.has-white-color.has-text-color.has-link-color.has-medium-font-size.wp-elements-e0bc6c742484a3b3e737f078f6e087c4.wp-container-content-9cfa9a5a.wp-block-paragraph {font-size: 17px !important;    text-align: left;}
	h2.wp-block-heading.has-text-align-center{font-size: 30px !important}
	body .wp-block-spectra-container:where([data-spectra-id='spectra-ms4mxsf9-sn6925']), .spectra-is-root-container.alignfull.spectra-overlay-color.spectra-overflow.wp-block-spectra-container{grid-template-columns: repeat(1, minmax(0, 1fr));}
	h2.wp-block-heading.has-x-large-font-size { font-size: 30px !important;}
	.spectra-overlay-color.spectra-overflow.col-2.form-section.wp-block-spectra-container {  height: auto !important;    }
	.hero{padding: 30px 0 10px;}
	.stat-row{height:0;}
	.ppt-plans-wrapper{margin:0;}
	.ppt-plan-card:nth-child(odd){margin-top:0;}
	.blog-section {padding: 20px 0;}
	.footer-grid h4{font-size: 1.25rem;}
	.section-head.center.reveal.is-visible { margin-bottom: 0; padding-bottom: 0;}
	.contact-section{padding-top:0;}
	.ppt-plan-card:nth-child(odd) {margin-top: 0;}
	 .single-post .entry-content .location-detail h3 { font-size: 1.5rem; }
	.contact-section h3{font-size: 1.5em;    font-weight: 500 !important;}	
	.hero-ledger{border-top: 0; margin-top: 0; padding-top: 0;}
}
@media(max-width:390px){
	 .topbar a {flex: 0 0 21%; letter-spacing: -0.01em; font-size: 0.68rem; }
	 .hero-copy h1 {font-size: 1.7rem !important;}
	 h2.wp-block-heading.has-x-large-font-size { font-size: 24px !important;margin-bottom: 10px; }
}