Initial commit: Negin Dental Clinic website
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>
This commit is contained in:
+360
@@ -0,0 +1,360 @@
|
||||
/* ==========================================================================
|
||||
Negin Dental Clinic — global styles
|
||||
Palette extracted from the original site (negindentalclinic.ir)
|
||||
========================================================================== */
|
||||
|
||||
:root {
|
||||
--brand: #3b559a; /* primary blue (site accent) */
|
||||
--brand-dark: #2c4380;
|
||||
--cyan: #29abe2; /* logo cyan (accents/borders) */
|
||||
--cyan-soft: #6ec9ef;
|
||||
--cyan-deep: #1c7ba6; /* darker blue — used for the light-blue buttons */
|
||||
--en-accent: #22356b; /* darker blue for Latin/English captions & titles */
|
||||
|
||||
--text: #5c6873; /* body copy */
|
||||
--muted: #818695; /* secondary copy */
|
||||
--heading: #333232; /* dark headings */
|
||||
|
||||
--bg: #ffffff;
|
||||
--bg-tint: #eff6fa; /* pale blue section background */
|
||||
--bg-tint-2: #f7fcff;
|
||||
--bg-grey: #f7f7f7;
|
||||
--border: #e6ebf1;
|
||||
|
||||
--radius: 14px;
|
||||
--radius-lg: 28px;
|
||||
--shadow-sm: 0 6px 18px rgba(43, 67, 128, 0.08);
|
||||
--shadow-md: 0 18px 45px rgba(43, 67, 128, 0.12);
|
||||
|
||||
--container: 1180px;
|
||||
--header-h: 92px;
|
||||
|
||||
--font-fa: var(--font-vazirmatn), "Vazirmatn", Tahoma, sans-serif;
|
||||
--font-en: var(--font-cinzel), "Cinzel", "Times New Roman", serif;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--font-fa);
|
||||
font-size: 16px;
|
||||
line-height: 2;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: var(--heading);
|
||||
line-height: 1.6;
|
||||
margin: 0 0 0.6em;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 1.2em;
|
||||
text-align: justify;
|
||||
text-align-last: right;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--brand);
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/* form controls don't inherit the page font by default in most browsers */
|
||||
button,
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
/* Latin type — the site brand language for English captions/titles */
|
||||
.en,
|
||||
.en-title {
|
||||
font-family: var(--font-en);
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* ---------- layout helpers ---------- */
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: var(--container);
|
||||
margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: 90px 0;
|
||||
}
|
||||
|
||||
.section--tint {
|
||||
background: var(--bg-tint);
|
||||
}
|
||||
|
||||
.section--grey {
|
||||
background: var(--bg-grey);
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 30px;
|
||||
}
|
||||
|
||||
@media (min-width: 720px) {
|
||||
.grid--2 {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
.grid--3 {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- section heading (bilingual, like the original) ---------- */
|
||||
.sec-head {
|
||||
text-align: center;
|
||||
max-width: 760px;
|
||||
margin: 0 auto 54px;
|
||||
}
|
||||
|
||||
.sec-head__en {
|
||||
display: block;
|
||||
font-family: var(--font-en);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.14em;
|
||||
color: var(--en-accent);
|
||||
font-size: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.sec-head__fa {
|
||||
font-size: 30px;
|
||||
color: var(--heading);
|
||||
margin: 0 0 14px;
|
||||
}
|
||||
|
||||
.sec-head__lead {
|
||||
color: var(--muted);
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
text-align-last: center;
|
||||
}
|
||||
|
||||
.sec-head::after {
|
||||
content: "";
|
||||
display: block;
|
||||
width: 64px;
|
||||
height: 3px;
|
||||
border-radius: 3px;
|
||||
background: var(--brand);
|
||||
margin: 20px auto 0;
|
||||
}
|
||||
|
||||
/* ---------- buttons ---------- */
|
||||
.btn {
|
||||
--_bg: var(--brand);
|
||||
--_fg: #fff;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 13px 30px;
|
||||
border-radius: 999px;
|
||||
background: var(--_bg);
|
||||
color: var(--_fg);
|
||||
font-weight: 700;
|
||||
font-size: 15px;
|
||||
border: 2px solid var(--_bg);
|
||||
cursor: pointer;
|
||||
transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
color: var(--_fg);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.btn--cyan {
|
||||
--_bg: var(--cyan-deep);
|
||||
}
|
||||
|
||||
.btn--ghost {
|
||||
--_bg: transparent;
|
||||
--_fg: var(--brand);
|
||||
border-color: var(--brand);
|
||||
}
|
||||
|
||||
.btn--ghost:hover {
|
||||
--_fg: #fff;
|
||||
background: var(--brand);
|
||||
}
|
||||
|
||||
/* ---------- cards ---------- */
|
||||
.card {
|
||||
background: #fff;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 34px 28px;
|
||||
text-align: center;
|
||||
height: 100%;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
transform: translateY(-6px);
|
||||
box-shadow: var(--shadow-md);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.card__icon {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
margin: 0 auto 14px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
background: var(--bg-tint);
|
||||
}
|
||||
|
||||
.card__icon img {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.card__en {
|
||||
display: block;
|
||||
font-family: var(--font-en);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
color: var(--en-accent);
|
||||
font-size: 13px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.card__title {
|
||||
font-size: 20px;
|
||||
margin: 2px 0 12px;
|
||||
}
|
||||
|
||||
.card__text {
|
||||
color: var(--muted);
|
||||
font-size: 15px;
|
||||
margin: 0;
|
||||
text-align: justify;
|
||||
text-align-last: right;
|
||||
}
|
||||
|
||||
/* ---------- utilities ---------- */
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* keep numeric strings (phone numbers, etc.) in left-to-right order inside RTL text */
|
||||
.ltr,
|
||||
[dir="ltr"] {
|
||||
unicode-bidi: isolate;
|
||||
}
|
||||
|
||||
.mt-0 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.lead {
|
||||
font-size: 18px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.visually-hidden {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.section {
|
||||
padding: 60px 0;
|
||||
}
|
||||
.sec-head__fa {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- scroll-in sequence animation (see components/Reveal.js) ---------- */
|
||||
.reveal {
|
||||
opacity: 0;
|
||||
transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1) var(--reveal-delay, 0ms),
|
||||
transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1) var(--reveal-delay, 0ms);
|
||||
}
|
||||
|
||||
.reveal--up {
|
||||
transform: translateY(30px);
|
||||
}
|
||||
|
||||
.reveal--down {
|
||||
transform: translateY(-30px);
|
||||
}
|
||||
|
||||
.reveal--left {
|
||||
transform: translateX(-36px);
|
||||
}
|
||||
|
||||
.reveal--right {
|
||||
transform: translateX(36px);
|
||||
}
|
||||
|
||||
.reveal--scale {
|
||||
transform: scale(0.92);
|
||||
}
|
||||
|
||||
.reveal--in {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.reveal {
|
||||
transition: none;
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user