1+ .header-nav ul {
2+ list-style : none;
3+ padding : 0 ;
4+ margin : 0 ;
5+ }
6+
7+ .header-nav a {
8+ text-decoration : none;
9+ color : # 222 ;
10+ font-weight : 500 ;
11+ display : block;
12+ }
13+
14+ .header-nav a .active {
15+ border-bottom : 2px solid # 222 ;
16+ }
17+
18+ .nav-toggle {
19+ display : none;
20+ }
21+
22+ @media (min-width : 769px ) {
23+
24+ /* desktop layout stays intact */
25+ .hamburger {
26+ display : none !important ;
27+ }
28+
29+ .header-nav ul {
30+ position : static !important ;
31+ display : flex !important ;
32+ flex-direction : row !important ;
33+ align-items : center;
34+ gap : 1.5rem ;
35+ background : none !important ;
36+ padding : 0 !important ;
37+ transform : none !important ;
38+ opacity : 1 !important ;
39+ pointer-events : auto !important ;
40+ height : auto !important ;
41+ box-shadow : none !important ;
42+ }
43+ }
44+
45+ @media (max-width : 768px ) {
46+
47+ .mobile-nav-wrapper {
48+ position : relative;
49+ z-index : 999 ;
50+ }
51+
52+ /* position hamburger & cross */
53+ .hamburger {
54+ display : flex;
55+ width : 30px ;
56+ height : 22px ;
57+ flex-direction : column;
58+ justify-content : space-between;
59+ cursor : pointer;
60+
61+ position : fixed;
62+ /* always visible */
63+ top : 16px ;
64+ right : 16px ;
65+ /* 🔹 fully right aligned */
66+ z-index : 1002 ;
67+ /* above overlay */
68+ }
69+
70+ .hamburger span {
71+ height : 3px ;
72+ width : 100% ;
73+ background : # 222 ;
74+ border-radius : 3px ;
75+ transition : 0.3s ease;
76+ }
77+
78+ /* FULLSCREEN OVERLAY */
79+ .header-nav ul {
80+ position : fixed;
81+ inset : 0 ;
82+ background : # ffffffee ;
83+ backdrop-filter : blur (4px );
84+ display : flex;
85+ flex-direction : column;
86+ padding-top : 100px ;
87+ padding-left : 24px ;
88+ padding-right : 24px ;
89+ gap : 1.2rem ;
90+ transform : translateY (-100% );
91+ opacity : 0 ;
92+ pointer-events : none;
93+ transition : 0.35s ease;
94+ }
95+
96+ /* SHOW MENU */
97+ .nav-toggle : checked ~ .header-nav ul {
98+ transform : translateY (0 );
99+ opacity : 1 ;
100+ pointer-events : auto;
101+ }
102+
103+ /* ANIMATE BUTTON INTO X */
104+ .nav-toggle : checked + .hamburger span : nth-child (1 ) {
105+ transform : translateY (9px ) rotate (45deg );
106+ }
107+
108+ .nav-toggle : checked + .hamburger span : nth-child (2 ) {
109+ opacity : 0 ;
110+ }
111+
112+ .nav-toggle : checked + .hamburger span : nth-child (3 ) {
113+ transform : translateY (-9px ) rotate (-45deg );
114+ }
115+
116+ /* MOBILE ITEM STYLE */
117+ .header-nav a {
118+ padding : 14px 10px ;
119+ font-size : 18px ;
120+ border-radius : 6px ;
121+ }
122+
123+ .header-nav a .active {
124+ background : rgba (0 , 0 , 0 , 0.1 );
125+ }
126+ }
0 commit comments