/* Dr. Melina Xhelilaj Dental Clinic — shared styles */

:root {
  --teal: #3bb0a5;        /* brand teal, from the logo */
  --teal-dark: #17756c;   /* buttons and links (readable on white) */
  --teal-deep: #0e3f3b;   /* headings, footer */
  --mist: #a9b4c4;        /* brand grey, from the logo */
  --ink: #1f2d33;
  --muted: #5b6b73;
  --bg: #fbfdfc;
  --tint: #eef7f5;
  --line: #dce7e5;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 18px 40px -22px rgba(14, 63, 59, 0.35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 6.2vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.55rem; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tint { background: var(--tint); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p:last-child { color: var(--muted); margin-top: 16px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--teal-dark); color: var(--white); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--teal-deep); background: var(--white); }
.btn--ghost:hover { border-color: var(--teal); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 253, 252, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 46px; height: 46px; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.05;
  color: var(--teal-deep);
}
.brand-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.nav a:hover { color: var(--teal-dark); }
.nav a.btn--primary, .nav a.btn--primary:hover { color: var(--white); }

/* Language dropdown: to add a language, add one <li> to the list in each page */
.lang { position: relative; }
.lang summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-deep);
  cursor: pointer;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--teal); }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang summary .chev { width: 12px; height: 12px; transition: transform 0.2s; }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.lang li a, .lang li span {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.lang li a:hover { background: var(--tint); }
.lang li span { background: var(--tint); color: var(--teal-dark); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--teal-deep); }

/* Hero */

.hero { padding: 72px 0 96px; overflow: hidden; }

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 30em;
  margin: 24px 0 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.hero-facts svg { width: 18px; height: 18px; stroke: var(--teal); flex: none; }

.hero-visual { position: relative; max-width: 440px; justify-self: end; width: 100%; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 34px -26px -26px 34px;
  border-radius: 220px 220px 28px 28px;
  background: linear-gradient(160deg, rgba(59, 176, 165, 0.28), rgba(169, 180, 196, 0.28));
}
.hero-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% center;
  border-radius: 220px 220px 28px 28px;
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute;
  left: -28px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.35;
}
.hero-badge img { width: 40px; height: 40px; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.hero-badge strong { display: block; color: var(--teal-deep); }
.hero-badge span { color: var(--muted); }

/* Services */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin-top: 10px; font-size: 0.98rem; }

.icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tint);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.icon svg { width: 26px; height: 26px; stroke: var(--teal-dark); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Featured service (orthodontics): full-width dark card above the others */
.card--feature {
  grid-column: 1 / -1;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 36px 34px;
  background: var(--teal-deep);
  border-color: transparent;
}
.card--feature .icon { flex: none; margin: 0; background: rgba(255, 255, 255, 0.12); }
.card--feature .icon { width: 64px; height: 64px; border-radius: 18px; }
.card--feature .icon svg { width: 36px; height: 36px; stroke: var(--white); }
.card--feature .eyebrow { margin: 0 0 8px; font-size: 0.8rem; color: #8fd9d1; }
.card--feature h3 { font-size: 2rem; color: var(--white); }
.card--feature p:not(.eyebrow) { max-width: 46em; font-size: 1.02rem; color: rgba(255, 255, 255, 0.84); }

.card-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card-list li { position: relative; padding-left: 22px; font-size: 0.95rem; color: var(--ink, inherit); }
.card-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-dark); }
.card--feature .card-list li { color: rgba(255, 255, 255, 0.9); }
.card--feature .card-list li::before { background: #8fd9d1; }
@media (min-width: 761px) { .card--feature .card-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; } }

.section-cta { margin-top: 44px; }

/* About */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { color: var(--muted); margin-top: 18px; }
.about-text .lead {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--teal-dark);
  margin-top: 20px;
}

.pillars { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.pillars li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: baseline;
}
.pillars .num { font-family: var(--serif); font-size: 1.5rem; color: var(--teal); grid-row: span 2; }
.pillars p { color: var(--muted); font-size: 0.98rem; }

/* Team */

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--tint);
}
.member .photo-melina { object-position: center 38%; }
.member h3 { margin-top: 20px; }
.member p { color: var(--teal-dark); font-weight: 500; margin-top: 4px; }

/* Contact */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.details { margin: 0; display: grid; gap: 22px; }
.details div { display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; align-items: start; }
.details .icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; background: var(--white); }
.details .icon svg { width: 22px; height: 22px; }
.details dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.details dd { margin: 2px 0 0; grid-column: 2; }
.details dt { grid-column: 2; }
.details .icon { grid-row: span 2; }
.details a { text-decoration: none; font-weight: 500; }
.details a:hover { text-decoration: underline; }
.details small { display: block; color: var(--muted); font-size: 0.92rem; }

.map {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.map iframe { display: block; width: 100%; height: 280px; border: 0; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.9rem; }
.form-card > p { color: var(--muted); margin: 8px 0 26px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  min-height: 50px;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.field textarea { resize: vertical; }
.field input, .field select { height: 52px; }
.field textarea { min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.form-card .btn { width: 100%; }
.form-status { margin-top: 16px; font-weight: 500; color: var(--teal-dark); min-height: 1.6em; }
.form-status.is-error { color: #b3261e; }
.form-alt { margin-top: 8px; text-align: center; }
.form-alt > p { font-size: 0.92rem; color: var(--muted); }
.form-alt-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.form-alt-buttons .btn { padding: 0 10px; }
.btn--wa svg { stroke: #1f9d55; }
.form-card .form-alt-buttons .btn { width: 100%; }
.form-alt-call { margin-top: 14px; }
.form-alt-call a { color: var(--teal-dark); font-weight: 600; }
.form-note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* Footer */

.site-footer { background: var(--teal-deep); color: rgba(255, 255, 255, 0.78); padding: 44px 0; font-size: 0.93rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Responsive */

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
  .lang { padding-top: 16px; }
  .lang ul { position: static; box-shadow: none; margin-top: 8px; }
  .nav .lang li a { padding: 9px 12px; border-bottom: 0; }
  .hero .container, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 72px; }
  .hero-visual { justify-self: center; max-width: 380px; }
  .hero-badge { left: -8px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav { padding: 8px 16px 20px; }
  .brand-name { font-size: 1.2rem; }
  .brand img { width: 40px; height: 40px; }
  .cards, .team, .form-row { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; }
  .hero-visual::before { inset: 22px -14px -14px 22px; }
  .hero-badge { left: -4px; bottom: 20px; padding: 10px 14px; }
  .hero-actions .btn { width: 100%; }
  .form-card { padding: 28px 20px; }
  .card--feature { flex-direction: column; gap: 20px; padding: 30px 28px; }
  .form-row { gap: 0; }
  .section-head { margin-bottom: 36px; }
}

/* Hero "book an appointment" button: soft pulse, 4 times (~7s), then rests */
.hero-actions .btn--primary { animation: pulse 1.8s ease-out 1s 4; }
@keyframes pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(23, 117, 108, 0.55); }
  35%  { transform: scale(1.04); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 18px rgba(23, 117, 108, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(23, 117, 108, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn--primary { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
