:root {
  --ink: #122923;
  --ink-soft: #26352f;
  --sage: #73877b;
  --sage-deep: #64796d;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --soft-surface: #f4f3ef;
  --soft-green: #edf0ec;
  --line: #e3e5df;
  --muted: #66716b;
  --shadow: 0 12px 30px rgba(33, 48, 41, .07);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { width: 100%; min-width: 320px; margin: 0; overflow-x: hidden; background: #eeede9; color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; }
img { display: block; max-width: 100%; }

/* Page shell and header */
.page-shell { width: 100%; min-height: 100vh; overflow: hidden; background: var(--paper); }
.topbar { min-height: 95px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 235px; align-items: center; gap: 24px; padding: 0 max(28px, 6vw); background: rgba(255, 255, 255, .78); }
.brand { display: block; width: max-content; }
.brand img { width: 150px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: clamp(18px, 2.5vw, 36px); color: var(--ink); font-size: 14px; }
.main-nav a { position: relative; padding: 34px 0 10px; }
.main-nav a.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--sage-deep); content: ""; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sage-deep); color: #fff; box-shadow: 0 7px 16px rgba(60, 78, 67, .14); }
.btn-primary:hover { background: #53685c; }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink-soft); box-shadow: 0 4px 14px rgba(28, 40, 34, .03); }
.btn-outline:hover { background: var(--soft-green); }
.btn-top { justify-self: end; min-width: 190px; }
.calendar-icon { font-size: 16px; font-weight: 400; line-height: 1; }

/* Hero */
.hero { min-height: 515px; display: grid; grid-template-columns: 48.6% 51.4%; overflow: hidden; background: var(--paper); }
.hero-copy { position: relative; padding: 50px 34px 24px max(31px, 7vw); background: var(--paper); }
.eyebrow { margin-bottom: 19px; color: var(--sage-deep); font-size: 11px; letter-spacing: .02em; }
.hero h1 { max-width: 650px; margin-bottom: 0; color: var(--ink); font-size: clamp(48px, 4.15vw, 62px); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 em, .section-heading em, .cta h2 em { color: var(--sage); font-style: italic; font-weight: 400; }
.hero-mark { display: flex; align-items: center; gap: 8px; margin: 28px 0 23px; }
.hero-mark span { width: 39px; height: 1.5px; background: var(--sage-deep); }
.hero-mark i { width: 4px; height: 4px; border-radius: 50%; background: var(--sage-deep); }
.hero-copy > p { max-width: 420px; margin-bottom: 27px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 13px; margin-bottom: 43px; }
.hero-actions .btn-primary { min-width: 181px; }
.hero-actions .btn-outline { min-width: 186px; }
.hero-actions .btn-outline i { margin-left: 8px; font-size: 14px; }
.hero-mini-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: calc(100% + 50px); margin-left: -57px; }
.mini-service { min-height: 78px; display: flex; flex-direction: column; align-items: center; gap: 9px; border-right: 1px solid #eceae5; text-align: center; }
.mini-service:last-child { border-right: 0; }
.mini-service b { color: #253630; font-size: 11px; font-weight: 600; line-height: 1.15; }
.line-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--sage-deep);
  font-size: 26px;
  line-height: 1;
  visibility: visible;
}
.line-icon.fa-screwdriver-wrench { font-size: 23px; }
.hero-visual {
  position: relative;
  min-height: 515px;
  overflow: hidden;
  background: url("assets/hero-back.jpg") center / cover no-repeat;
}

/* A blurred translucent edge creates the soft transition from the copy into the photo. */
.hero-visual::before {
  position: absolute;
  z-index: 1;
  top: -8%;
  bottom: -8%;
  left: -45px;
  width: 105px;
  border-radius: 50%;
  background: rgba(251, 250, 247, .72);
  content: "";
  filter: blur(24px);
  pointer-events: none;
}

.hero-visual-panel {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 18px;
  width: min(250px, calc(100% - 44px));
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(37, 53, 47, .12);
  backdrop-filter: blur(12px);
}

.hero-panel-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #b7c7ba;
  border-radius: 50%;
  color: var(--sage-deep);
  font-size: 15px;
}

.hero-panel-copy {
  display: grid;
  gap: 5px;
  font-size: 13px;
  line-height: 1.45;
}

.hero-panel-copy strong {
  font-family: var(--sans);
  font-size: 14px;
}

.hero-panel-copy > span {
  color: var(--ink-soft);
}

/* About section */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  padding: 100px max(24px, 6vw) 54px;
  background: var(--paper);
}

.about-copy {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px);
  border: 1px solid #e4e5df;
  border-radius: 22px;
  background: #fcfbf8;
  box-shadow: 0 8px 24px rgba(40, 51, 45, .035);
}

.about-copy h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(44px, 4.5vw, 70px);
  line-height: 1.08;
}

.about-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 28px 0 27px;
}

.about-mark span {
  width: 42px;
  height: 2px;
  background: var(--sage-deep);
}

.about-mark i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage-deep);
}

.about-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 23px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.about-button {
  align-self: flex-start;
  min-width: 220px;
  margin-top: 12px;
}

.about-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
}

.about-image-wrap {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #e4e5df;
  border-radius: 22px;
  background: #eee9e1;
  box-shadow: 0 8px 24px rgba(40, 51, 45, .035);
}

.about-image {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e4e5df;
  border-radius: 22px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 8px 24px rgba(40, 51, 45, .035);
}

.about-value {
  min-height: 272px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.about-value:last-child {
  border-right: 0;
}

.about-value > i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6ebe6;
  color: var(--ink);
  font-size: 24px;
}

.about-value h3 {
  margin: 20px 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.about-value p {
  max-width: 160px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.about-value > span {
  width: 30px;
  height: 2px;
  margin-top: auto;
  background: var(--sage-deep);
}

/* Services */
.services-section { padding: 70px max(24px, 6vw) 70px; background: var(--paper); }
.section-heading { margin: 0 auto 60px; text-align: center; }
.section-heading > span { color: var(--sage-deep); font-size: 12px; letter-spacing: .1em; }
.section-heading h2 { margin: 10px 0 0; color: var(--ink); font-size: clamp(42px, 4vw, 56px); line-height: 1.08; }
.small-mark { position: relative; width: 31px; height: 1.5px; margin: 15px auto 0; background: var(--sage-deep); }
.small-mark::after { position: absolute; top: -1px; right: -9px; width: 4px; height: 4px; border-radius: 50%; background: var(--sage-deep); content: ""; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.service-card { min-height: 388px; position: relative; display: flex; flex-direction: column; overflow: visible; padding-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 7px 18px rgba(40, 51, 45, .035); }
.service-image { height: 190px; overflow: hidden; border-radius: 12px 12px 9px 9px; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.service-badge { position: absolute; top: -32px; left: 8px; width: 65px; height: 65px; display: inline-grid; place-items: center; border: 1px solid #e5e1da; border-radius: 50%; background: var(--surface); color: var(--sage-deep); box-shadow: 0 4px 10px rgba(40, 50, 44, .06); }
.service-badge i { font-size: 23px; }
.service-badge .fa-screwdriver-wrench { font-size: 21px; }
.service-badge .fa-wand-magic-sparkles { font-size: 20px; }
.service-card h3 { margin: 20px 15px 0; color: var(--ink); font-size: 20px; line-height: 1.2; }
.service-card p { margin: 11px 15px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.service-card > a { margin: auto 15px 0; padding-top: 18px; color: var(--sage-deep); font-size: 18px; }

/* Statistics */
.stats { min-height: 111px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; padding: 12px max(24px, 6vw); background: var(--soft-green); }
.stat { min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 14px; border-right: 1px solid #d8ded8; }
.stat:last-child { border-right: 0; }
.stat-icon { width: 65px; height: 65px; display: inline-grid; place-items: center; border-radius: 50%; background: #e2e9e3; color: var(--sage-deep); }
.stat-icon i { font-size: 25px; }
.stat strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 43px; font-weight: 400; line-height: 1; }
.stat small { display: block; margin-top: 7px; color: #303b35; font-size: 13px; }

/* Testimonials: retained as requested */
.dentoral-testimonials { position: relative; overflow: hidden; padding: 66px max(24px, 6vw) 58px; background: var(--soft-surface); }
.testimonial-decor { position: absolute; top: 145px; width: 120px; height: 120px; opacity: .28; pointer-events: none; background-image: radial-gradient(#cfd6ce 1.2px, transparent 1.2px); background-size: 12px 12px; }
.decor-left { left: 38px; }
.decor-right { right: 38px; }
.tooth-watermark { position: absolute; top: 185px; left: 50%; width: 160px; height: 190px; border: 6px solid #b9c5b8; border-radius: 52% 52% 45% 45% / 38% 38% 60% 60%; opacity: .06; filter: blur(.3px); transform: translateX(-50%); }
.testimonial-head { position: relative; z-index: 1; margin-bottom: 34px; text-align: center; }
.testimonial-label { margin-bottom: 14px; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.testimonial-head h2 { margin-bottom: 0; color: var(--ink); font-size: clamp(40px, 4vw, 56px); line-height: 1.08; }
.testimonial-head h2 span { color: var(--sage); font-style: italic; }
.title-line { position: relative; width: 70px; height: 2px; margin: 18px auto 0; background: #c9d1c7; }
.title-line::after { position: absolute; top: -3px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #c9d1c7; content: ""; transform: translateX(-50%); }
.testimonial-slider-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; gap: 16px; }
.testimonial-nav { width: 48px; height: 48px; border: 1px solid #e2e6e0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--sage-deep); cursor: pointer; box-shadow: 0 8px 18px rgba(0, 0, 0, .04); transition: background-color .2s ease, transform .2s ease; }
.testimonial-nav:hover { background: #eef1eb; transform: translateY(-2px); }
.testimonial-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.testimonial-card { min-height: 255px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 25px 22px; border: 1px solid #ecefe9; border-radius: 14px; background: rgba(255, 255, 255, .78); box-shadow: var(--shadow); }
.quote-mark { margin-bottom: 12px; color: var(--ink); font-family: var(--serif); font-size: 42px; line-height: 1; }
.testimonial-text { max-width: 92%; margin: 0; color: #334039; font-size: 15px; line-height: 1.65; }
.stars { margin-top: 22px; color: var(--sage-deep); font-size: 18px; letter-spacing: 3px; }
.testimonial-user { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.testimonial-meta h4 { margin-bottom: 6px; color: var(--ink); font-size: 19px; font-weight: 600; }
.testimonial-meta span { color: var(--muted); font-size: 15px; }
.testimonial-user img { width: 72px; height: 72px; border: 4px solid #f3f5f0; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 14px rgba(0, 0, 0, .07); }

/* Appointment CTA */
.cta { min-height: 180px; display: grid; grid-template-columns: 1.2fr .8fr 1fr; align-items: center; padding: 28px max(28px, 8vw) 26px; background: #f4f1eb url("assets/cta-back.png") center / cover no-repeat; }
.cta h2 { margin-bottom: 0; color: var(--ink); font-size: 40px; line-height: 1.08; }
.cta p { margin: 14px 0 0; color: #313936; font-size: 14px; line-height: 1.55; }
.cta-btn { z-index: 1; justify-self: center; min-width: 194px; }
.cta-plant { display: none; }

/* Footer and contact */
.footer { position: relative; min-height: 285px; display: grid; grid-template-columns: 1.2fr .9fr 1fr 1.2fr .75fr; gap: 32px; padding: 54px max(28px, 6vw) 62px; border-top: 1px solid #f3f0eb; background: var(--paper); }
.footer-brand img { width: 125px; }
.footer-brand p { margin: 10px 0; color: #334039; font-size: 15px; line-height: 1.55; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #aeb6b0; border-radius: 50%; color: var(--sage-deep); font-size: 18px; }
.footer h4 { margin: 0 0 16px; color: var(--ink); font-family: var(--sans); font-size: 12px; letter-spacing: .04em; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col > a, .footer-col p { margin: 0; color: #334039; font-size: 14px; line-height: 1.55; }
.contact-col p { line-height: 1.65; }
.contact-col p span { display: inline-block; width: 24px; color: var(--sage-deep); }
.contact-col p span i { width: 18px; font-size: 17px; text-align: center; }
.contact-col small { font-size: 12px; }
.map-mark { position: relative; min-height: 95px; display: flex; align-items: center; justify-content: center; }
.map-dots { width: 92px; height: 92px; opacity: .55; background-image: radial-gradient(#c9c9c2 1.25px, transparent 1.25px); background-size: 6px 6px; clip-path: polygon(47% 1%, 96% 28%, 82% 85%, 48% 100%, 2% 69%, 12% 16%); }
.map-pin { position: absolute; top: 50px; right: 32px; color: var(--ink); font-size: 19px; }
.map-mark b { position: absolute; top: 50px; right: 2px; color: var(--ink); font-family: var(--sans); font-size: 12px; }
.copyright { position: absolute; right: max(28px, 6vw); bottom: 16px; left: max(28px, 6vw); padding-top: 10px; border-top: 1px solid #eeece7; color: #616661; font-size: 12px; text-align: center; }
.copyright .rakmana-credit{display:inline-flex;align-items:center;gap:7px;color:inherit;text-decoration:none;vertical-align:middle} 
.copyright .rakmana-credit img{width:74px;max-height:22px;height:auto;object-fit:contain;vertical-align:middle}
.copyright .rakmana-credit:hover img{opacity:.82}

/* Responsive layout */
@media (max-width: 1200px) {
  .topbar { grid-template-columns: 180px minmax(0, 1fr) 210px; }
  .main-nav { gap: 20px; }
  .hero-copy { padding-left: 5vw; }
  .service-grid, .testimonial-cards { gap: 16px; }
}

@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-right: 24px; }
  .hero h1 { font-size: 48px; }
  .about-section { grid-template-columns: 1fr; }
  .about-copy { min-height: 0; }
  .about-image-wrap, .about-image { min-height: 420px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-slider-wrap { grid-template-columns: 1fr; }
  .testimonial-nav { display: none; }
  .testimonial-cards { grid-template-columns: 1fr; }
  .testimonial-card { min-height: auto; }
  .decor-left, .decor-right, .tooth-watermark { display: none; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-mark { display: none; }
}

@media (max-width: 800px) {
  .topbar { min-height: 82px; grid-template-columns: 1fr auto; gap: 16px; padding-inline: 22px; }
  .brand img { width: 128px; }
  .main-nav { display: none; }
  .btn-top { min-width: 0; padding-inline: 14px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 52px 28px 38px; }
  .hero-visual { min-height: 420px; }
  .about-section { grid-template-columns: 1fr; padding: 30px 24px 42px; }
  .about-copy { padding: 42px 30px; }
  .about-copy h2 { font-size: clamp(43px, 8vw, 60px); }
  .about-image-wrap, .about-image { min-height: 360px; }
  .about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-value:nth-child(2) { border-right: 0; }
  .about-value:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .services-section, .dentoral-testimonials { padding-inline: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 18px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat { padding: 13px; border-bottom: 1px solid #d8ded8; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .cta { grid-template-columns: 1fr; padding: 52px 28px; }
  .cta-btn { justify-self: start; margin-top: 22px; }
  .footer { min-height: 0; padding: 52px 28px 88px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 42px; }
  .about-section { padding-inline: 14px; }
  .about-copy { padding: 36px 23px; border-radius: 16px; }
  .about-copy h2 { font-size: 43px; }
  .about-copy > p:not(.eyebrow) { font-size: 15px; }
  .about-image-wrap { min-height: 285px; border-radius: 16px; }
  .about-image { min-height: 285px; }
  .about-values { grid-template-columns: 1fr; border-radius: 16px; }
  .about-value { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-value:last-child { border-bottom: 0; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-mini-services { width: 100%; margin-left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .mini-service:nth-child(2) { border-right: 0; }
  .service-grid, .stats, .footer { grid-template-columns: 1fr; }
  .service-card { min-height: 340px; }
  .stat { border-right: 0; border-bottom: 1px solid #d8ded8 !important; }
  .stat:last-child { border-bottom: 0 !important; }
  .footer-col > a, .footer-col p, .contact-col p { font-size: 15px; }
  .contact-col small { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
