@@ -513,7 +513,7 @@ ul li {
513513
514514.services-grid {
515515 display : grid;
516- grid-template-columns : repeat (auto-fit, minmax (250 px , 1fr ));
516+ grid-template-columns : repeat (auto-fit, minmax (280 px , 1fr ));
517517 gap : 28px ;
518518 margin-top : 26px ;
519519}
@@ -581,64 +581,35 @@ footer {
581581}
582582
583583/* =========================================================
584- TABLET
584+ TABLET (769px - 1200px)
585585========================================================= */
586-
587- @media (max-width : 1200px ) and (min-width : 769px ) {
588-
586+ @media (min-width : 769px ) and (max-width : 1200px ) {
587+ /* Desktop nav stays horizontal - NO HAMBURGER */
589588 .hamburger {
590- display : block;
591- position : absolute;
592- top : 18px ;
593- right : 18px ;
594- cursor : pointer;
595- z-index : 1200 ;
596- }
597-
598- .nav-links {
599- position : fixed;
600- top : 0 ;
601- right : 0 ;
602- width : 85vw ;
603- max-width : 320px ;
604- height : 100vh ;
605- flex-direction : column;
606- padding-top : 88px ;
607- background : rgba (15 , 23 , 42 , 0.92 );
608- backdrop-filter : blur (16px );
609- transform : translate3d (100% , 0 , 0 );
610- transition : transform 0.35s ease;
611- z-index : 1000 ;
612- }
613-
614- .nav-links .open {
615- transform : translate3d (0 , 0 , 0 );
589+ display : none; /* Keep hidden on tablet */
616590 }
617-
618- body .menu-open ::before {
619- content : "" ;
620- position : fixed;
621- inset : 0 ;
622- background : rgba (2 , 8 , 23 , 0.65 );
623- backdrop-filter : blur (8px );
624- z-index : 900 ;
625- }
626-
627- section {
628- width : auto;
629- margin : 72px 35% ;
630- padding : 40px 5% ;
631- /* % scales perfectly */
632- border-radius : 12px ;
633- overflow : visible;
634- box-sizing : border-box;
591+
592+ /* Slightly smaller sections */
593+ section ,
594+ .site-header {
595+ max-width : 100% ;
596+ margin : 60px auto;
597+ padding : 32px 6% ;
635598 }
636-
599+
600+ /* 2-3 column services grid */
637601 .services-grid {
638- display : grid;
639- grid-template-columns : repeat (auto-fit, minmax (250px , 1fr ));
640- gap : 28px ;
641- margin-top : 26px ;
602+ grid-template-columns : repeat (auto-fit, minmax (300px , 1fr ));
603+ gap : 24px ;
604+ }
605+
606+ /* Scale down fonts slightly */
607+ .hero-heading { font-size : 32px ; }
608+ h2 { font-size : 26px ; }
609+ .brand-name { font-size : 18px ; }
610+
611+ .navbar {
612+ padding : 0 6% ;
642613 }
643614}
644615
@@ -647,12 +618,8 @@ footer {
647618========================================================= */
648619
649620
621+ /* NEW: ONLY TRUE MOBILE */
650622@media (max-width : 768px ) {
651-
652- .navbar {
653- padding : 0 10px ;
654- }
655-
656623 .hamburger {
657624 display : block;
658625 position : absolute;
@@ -662,86 +629,60 @@ footer {
662629 z-index : 1200 ;
663630 }
664631
632+ /* Hide nav links by default on mobile */
665633 .nav-links {
634+ display : none;
635+ /* CRITICAL LINE */
636+ }
637+
638+ .nav-links .open {
639+ display : flex;
640+ /* Show only when clicked */
666641 position : fixed;
667642 top : 0 ;
668643 right : 0 ;
669- width : 35vw ;
670- max-width : 300px ;
644+ width : 70vw ;
671645 height : 100vh ;
672646 flex-direction : column;
673647 padding-top : 88px ;
674- background : rgba (15 , 23 , 42 , 0.92 );
675- backdrop-filter : blur (16px );
676- transform : translate3d (100% , 0 , 0 );
677- transition : transform 0.35s ease;
648+ background : rgba (15 , 23 , 42 , 0.95 );
649+ transform : translateX (100% );
650+ transition : transform 0.3s ease;
678651 z-index : 1000 ;
679652 }
680653
681654 .nav-links .open {
682- transform : translate3d ( 0 , 0 , 0 );
655+ transform : translateX ( 0 );
683656 }
684657
685- body .menu-open ::before {
686- content : "" ;
687- position : fixed;
688- inset : 0 ;
689- background : rgba (2 , 8 , 23 , 0.65 );
690- backdrop-filter : blur (8px );
691- z-index : 900 ;
692- }
693-
694- section {
695- width : auto;
696- margin : 72px 35px ;
697- padding : 40px 5% ;
698- /* % scales perfectly */
699- border-radius : 12px ;
700- overflow : visible;
701- box-sizing : border-box;
702- }
703-
704- .site-header {
705- padding-left : 16px ;
706- padding-right : 16px ;
658+ section {
659+ margin : 48px auto;
660+ padding : 28px 6% ;
707661 }
708662}
709663
710- @media (max-width : 640px ) {
711- .services-grid {
712- grid-template-columns : repeat (auto-fit, minmax (250px , 1fr ));
713- }
714- }
715664
716665@media (max-width : 480px ) {
717-
718- /* NEW: Extra small screens */
719666 section {
720667 margin : 32px auto;
721668 padding : 24px 4% ;
722669 }
723-
724- .hero-heading {
725- font-size : 24px ;
726- }
727-
728- h2 {
729- font-size : 24px ;
730- }
731-
670+
671+ .hero-heading { font-size : 26px ; }
672+ h2 { font-size : 22px ; }
673+
732674 .services-grid {
733- grid-template-columns : repeat (auto-fit, minmax (250px , 1fr ));
734- /* 2-col before 1 */
675+ grid-template-columns : 1fr ; /* Always 1 column mobile */
735676 gap : 20px ;
677+ minmax (280px, 1fr); /* DELETE - conflicts */
736678 }
737679}
738680
739681@media (max-width : 360px ) {
740-
741- section ,
742- .site-header {
682+ section {
743683 padding : 20px 3% ;
684+ margin : 24px auto;
744685 }
745- }
746-
747-
686+
687+ . services-grid { gap : 16 px ; }
688+ }
0 commit comments