Next.js (App Router) clone of negindentalclinic.ir, wired to the Meshkee Website API (blog, contact form, favicon), with on-page SEO and a scroll-reveal animation sequence on the homepage. See context.md for full project context. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
268 lines
4.3 KiB
CSS
268 lines
4.3 KiB
CSS
.header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
background: rgba(255, 255, 255, 0.92);
|
|
backdrop-filter: blur(8px);
|
|
border-bottom: 1px solid transparent;
|
|
transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
|
|
}
|
|
|
|
.headerScrolled {
|
|
box-shadow: 0 8px 30px rgba(43, 67, 128, 0.08);
|
|
border-bottom-color: var(--border);
|
|
}
|
|
|
|
.inner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
min-height: var(--header-h);
|
|
gap: 20px;
|
|
}
|
|
|
|
.brand img {
|
|
width: auto;
|
|
height: 52px;
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.link {
|
|
position: relative;
|
|
padding: 10px 14px;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--heading);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.link:hover {
|
|
color: var(--brand);
|
|
}
|
|
|
|
.linkActive {
|
|
color: var(--brand);
|
|
}
|
|
|
|
.linkActive::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset-inline: 14px;
|
|
bottom: 2px;
|
|
height: 2px;
|
|
border-radius: 2px;
|
|
background: var(--brand);
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.phone {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 9px 16px;
|
|
border-radius: 999px;
|
|
background: var(--bg-tint);
|
|
color: var(--brand);
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.phone:hover {
|
|
background: var(--brand);
|
|
color: #fff;
|
|
}
|
|
|
|
.phone svg {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.userBtn {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--border);
|
|
color: var(--heading);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.userBtn:hover {
|
|
border-color: var(--brand);
|
|
color: var(--brand);
|
|
background: var(--bg-tint);
|
|
}
|
|
|
|
/* ---------- signed-in account menu ---------- */
|
|
.account {
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.accountBtn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 14px 6px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border);
|
|
background: #fff;
|
|
color: var(--heading);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.accountBtn:hover {
|
|
border-color: var(--brand);
|
|
}
|
|
|
|
.accountAvatar {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
background: var(--bg-tint);
|
|
color: var(--brand);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.accountName {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.accountMenu {
|
|
position: absolute;
|
|
inset-inline-end: 0;
|
|
top: calc(100% + 10px);
|
|
min-width: 190px;
|
|
background: #fff;
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
box-shadow: var(--shadow-md);
|
|
padding: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
z-index: 60;
|
|
}
|
|
|
|
.accountMenu a,
|
|
.accountMenu button {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: start;
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
font: inherit;
|
|
font-size: 14px;
|
|
color: var(--heading);
|
|
background: none;
|
|
border: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.accountMenu a:hover,
|
|
.accountMenu button:hover {
|
|
background: var(--bg-tint);
|
|
color: var(--brand);
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
.accountName {
|
|
display: none;
|
|
}
|
|
.accountBtn {
|
|
padding: 6px;
|
|
}
|
|
}
|
|
|
|
.userBtn:hover {
|
|
border-color: var(--brand);
|
|
color: var(--brand);
|
|
background: var(--bg-tint);
|
|
}
|
|
|
|
.burger {
|
|
display: none;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
width: 44px;
|
|
height: 44px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.burger span {
|
|
display: block;
|
|
width: 22px;
|
|
height: 2px;
|
|
border-radius: 2px;
|
|
background: var(--heading);
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.burger {
|
|
display: flex;
|
|
}
|
|
|
|
.nav {
|
|
position: absolute;
|
|
inset-inline: 0;
|
|
top: 100%;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 2px;
|
|
padding: 14px 24px 22px;
|
|
background: #fff;
|
|
border-bottom: 1px solid var(--border);
|
|
box-shadow: var(--shadow-md);
|
|
transform: translateY(-12px);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.navOpen {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.link {
|
|
padding: 13px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.linkActive::after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
.phoneNum {
|
|
display: none;
|
|
}
|
|
|
|
.phone {
|
|
padding: 10px;
|
|
}
|
|
}
|