Skip to content

Commit bd4cfba

Browse files
author
ghost
committed
made home page more mobile friendly
1 parent 89df043 commit bd4cfba

1 file changed

Lines changed: 160 additions & 1 deletion

File tree

index.html

Lines changed: 160 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,166 @@
491491
line-height: 1.5;
492492
color: #5f6b7a;
493493
}
494-
</style>
494+
495+
/* Mobile-friendly enhancements */
496+
html, body {
497+
overflow-x: hidden;
498+
}
499+
body {
500+
width: 100%;
501+
}
502+
img, svg, video, iframe {
503+
max-width: 100%;
504+
height: auto;
505+
}
506+
.container,
507+
.wrapper,
508+
.section-inner,
509+
.hero-inner,
510+
.content-wrap,
511+
.grid,
512+
.cards,
513+
.card-grid,
514+
.pricing-grid,
515+
.services-grid,
516+
.results-grid,
517+
.case-grid,
518+
.footer-grid {
519+
min-width: 0;
520+
}
521+
@media (max-width: 1024px) {
522+
.grid,
523+
.cards,
524+
.card-grid,
525+
.pricing-grid,
526+
.services-grid,
527+
.results-grid,
528+
.case-grid,
529+
.footer-grid,
530+
.hero-grid,
531+
.two-column,
532+
.three-column {
533+
grid-template-columns: 1fr !important;
534+
}
535+
}
536+
@media (max-width: 768px) {
537+
html {
538+
font-size: 15px;
539+
}
540+
body {
541+
overflow-x: hidden;
542+
}
543+
section {
544+
scroll-margin-top: 88px;
545+
}
546+
.container,
547+
.wrapper,
548+
.section-inner,
549+
.hero-inner,
550+
.content-wrap {
551+
width: min(100% - 1.5rem, 1200px) !important;
552+
margin-inline: auto;
553+
}
554+
.hero,
555+
.section,
556+
.services,
557+
.results,
558+
.pricing,
559+
.faq,
560+
.contact,
561+
.footer {
562+
padding-inline: 0 !important;
563+
}
564+
.hero {
565+
padding-top: clamp(5.5rem, 10vw, 7rem) !important;
566+
}
567+
h1 {
568+
font-size: clamp(2rem, 8vw, 3rem) !important;
569+
line-height: 1.08 !important;
570+
}
571+
h2 {
572+
font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
573+
}
574+
h3 {
575+
font-size: clamp(1.15rem, 4.8vw, 1.4rem) !important;
576+
}
577+
p, li, a, button, input, textarea {
578+
font-size: max(1rem, 16px);
579+
}
580+
.hero-copy,
581+
.hero-content,
582+
.hero-text,
583+
.section-copy,
584+
.lead,
585+
.subtitle {
586+
max-width: 100% !important;
587+
}
588+
.cta-group,
589+
.button-row,
590+
.hero-actions,
591+
.nav-actions,
592+
.chip-row,
593+
.stat-row {
594+
display: flex !important;
595+
flex-direction: column !important;
596+
align-items: stretch !important;
597+
gap: 0.75rem !important;
598+
}
599+
.cta-group > *,
600+
.button-row > *,
601+
.hero-actions > *,
602+
.nav-actions > * {
603+
width: 100%;
604+
}
605+
.btn,
606+
button,
607+
[type="button"],
608+
[type="submit"],
609+
.button,
610+
.cta {
611+
min-height: 44px;
612+
width: 100%;
613+
}
614+
table {
615+
display: block;
616+
width: 100%;
617+
overflow-x: auto;
618+
-webkit-overflow-scrolling: touch;
619+
}
620+
pre, code {
621+
white-space: pre-wrap;
622+
word-break: break-word;
623+
}
624+
[class*="grid"],
625+
[class*="columns"],
626+
[class*="split"] {
627+
gap: 1rem !important;
628+
}
629+
}
630+
@media (max-width: 480px) {
631+
.container,
632+
.wrapper,
633+
.section-inner,
634+
.hero-inner,
635+
.content-wrap {
636+
width: min(100% - 1rem, 1200px) !important;
637+
}
638+
.card,
639+
.service-card,
640+
.result-card,
641+
.pricing-card,
642+
.faq-item,
643+
.panel {
644+
padding: 1rem !important;
645+
}
646+
.badge,
647+
.pill,
648+
.tag {
649+
white-space: normal !important;
650+
}
651+
}
652+
653+
</style>
495654

496655
<script src="book-call.js" defer></script>
497656

0 commit comments

Comments
 (0)