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>
282 lines
4.5 KiB
CSS
282 lines
4.5 KiB
CSS
/* ---------- hero ---------- */
|
|
.hero {
|
|
position: relative;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(60% 80% at 85% 20%, rgba(41, 171, 226, 0.12), transparent 70%),
|
|
linear-gradient(180deg, #f7fcff 0%, #eef6fb 100%);
|
|
}
|
|
|
|
.heroInner {
|
|
display: grid;
|
|
gap: 40px;
|
|
align-items: center;
|
|
padding: 70px 24px 80px;
|
|
}
|
|
|
|
@media (min-width: 900px) {
|
|
.heroInner {
|
|
grid-template-columns: 1.05fr 0.95fr;
|
|
padding: 90px 24px 100px;
|
|
}
|
|
}
|
|
|
|
.heroEn {
|
|
color: var(--en-accent);
|
|
font-size: 18px;
|
|
letter-spacing: 0.16em;
|
|
}
|
|
|
|
.heroTitle {
|
|
font-size: 44px;
|
|
line-height: 1.35;
|
|
margin: 12px 0 18px;
|
|
color: var(--heading);
|
|
}
|
|
|
|
.heroLead {
|
|
font-size: 18px;
|
|
color: var(--muted);
|
|
max-width: 480px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.heroActions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 14px;
|
|
}
|
|
|
|
.heroArt {
|
|
position: relative;
|
|
justify-self: center;
|
|
}
|
|
|
|
.heroArt img {
|
|
width: 100%;
|
|
max-width: 460px;
|
|
height: auto;
|
|
filter: drop-shadow(0 30px 50px rgba(43, 67, 128, 0.18));
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.heroTitle {
|
|
font-size: 32px;
|
|
}
|
|
}
|
|
|
|
/* ---------- feature cards ---------- */
|
|
.features {
|
|
margin-top: -50px;
|
|
padding-bottom: 20px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.cardLink {
|
|
display: inline-block;
|
|
margin-top: 16px;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
color: var(--brand);
|
|
}
|
|
|
|
.cardLink::after {
|
|
content: " ←";
|
|
}
|
|
|
|
/* ---------- schedule table ---------- */
|
|
.tableWrap {
|
|
overflow-x: auto;
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow-sm);
|
|
background: #fff;
|
|
}
|
|
|
|
.schedule {
|
|
width: 100%;
|
|
min-width: 720px;
|
|
border-collapse: collapse;
|
|
text-align: center;
|
|
}
|
|
|
|
.schedule th {
|
|
background: var(--brand);
|
|
color: #fff;
|
|
font-size: 15px;
|
|
padding: 16px 10px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.schedule td {
|
|
padding: 22px 10px;
|
|
border: 1px solid var(--border);
|
|
vertical-align: top;
|
|
}
|
|
|
|
.schedule td span {
|
|
display: block;
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.schedule td span + span {
|
|
border-top: 1px dashed var(--border);
|
|
}
|
|
|
|
/* ---------- split info sections ---------- */
|
|
.split {
|
|
display: grid;
|
|
gap: 40px;
|
|
align-items: center;
|
|
}
|
|
|
|
@media (min-width: 860px) {
|
|
.split {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
.splitReverse .splitArt {
|
|
order: 2;
|
|
}
|
|
}
|
|
|
|
.splitArt img {
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.splitCopy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.splitCopy h2 {
|
|
font-size: 28px;
|
|
margin: 6px 0 16px;
|
|
}
|
|
|
|
/* push the section CTA to the left edge of the text column */
|
|
.splitCopy :global(.btn) {
|
|
align-self: flex-end;
|
|
}
|
|
|
|
/* ---------- call CTA ---------- */
|
|
.cta {
|
|
background:
|
|
linear-gradient(180deg, rgba(44, 67, 128, 0.9), rgba(44, 67, 128, 0.9)),
|
|
url("/assets/img/info_items_2/bg_img.jpg") center / cover no-repeat fixed;
|
|
color: #fff;
|
|
padding: 80px 0;
|
|
}
|
|
|
|
.ctaInner {
|
|
display: grid;
|
|
gap: 30px;
|
|
align-items: center;
|
|
}
|
|
|
|
@media (min-width: 860px) {
|
|
.ctaInner {
|
|
grid-template-columns: 1.6fr 1fr;
|
|
}
|
|
}
|
|
|
|
.ctaTitle {
|
|
color: #fff;
|
|
font-size: 30px;
|
|
margin: 8px 0 14px;
|
|
}
|
|
|
|
.ctaText {
|
|
color: rgba(255, 255, 255, 0.86);
|
|
margin: 0;
|
|
max-width: 560px;
|
|
}
|
|
|
|
.ctaPhone {
|
|
justify-self: start;
|
|
font-family: var(--font-en);
|
|
font-size: 30px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
color: #fff;
|
|
padding: 18px 34px;
|
|
border: 2px solid rgba(255, 255, 255, 0.5);
|
|
border-radius: 999px;
|
|
transition: background 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
@media (min-width: 860px) {
|
|
.ctaPhone {
|
|
justify-self: end;
|
|
}
|
|
}
|
|
|
|
.ctaPhone:hover {
|
|
background: #fff;
|
|
color: var(--brand);
|
|
}
|
|
|
|
/* ---------- latest blog cards ---------- */
|
|
.blogCard {
|
|
background: #fff;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.blogCard:hover {
|
|
transform: translateY(-6px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.blogCardArt {
|
|
display: block;
|
|
aspect-ratio: 16 / 10;
|
|
background: var(--bg-tint);
|
|
}
|
|
|
|
.blogCardArt img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.blogCardArtFallback {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(135deg, var(--brand), var(--cyan));
|
|
opacity: 0.16;
|
|
}
|
|
|
|
.blogCardBody {
|
|
padding: 22px 24px 26px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.blogCardDate {
|
|
font-size: 12px;
|
|
color: var(--cyan-deep);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.blogCardBody h3 {
|
|
font-size: 18px;
|
|
margin: 0;
|
|
}
|
|
|
|
.blogCardBody p {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
margin: 0;
|
|
}
|