/* Clínica Dental Mallol — static site, styled after the original Drupal "Spark" theme */
:root {
  --bg: #e9e9e9;
  --panel: #f4f4f4;
  --text: #525151;
  --heading: #2b2b2b;
  --nav: #2f2f2f;
  --nav-hover: #444;
  --accent: #b5552b;
  --link: #247eb0;
  --footer: #2b2b2b;
  --footer-text: #b5b5b5;
  --line: #d6d6d6;
  --max: 980px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .slidertitle, .top-nav a, .nav-toggle { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 400; }
h1, h2, h3 { color: var(--heading); line-height: 1.25; }
h1 { font-size: 26px; margin: 0 0 .6em; }
h2 { font-size: 20px; }
h3 { font-size: 16px; margin: 1.4em 0 .3em; color: var(--link); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { background: #fff; }
.header-top { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.logo img { display: block; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.social img { display: block; }
.lang-switch a { font-size: 12px; margin-left: 8px; color: var(--text); }
.nav-bar { background: var(--nav); border-bottom: 3px solid #1f1f1f; }
.top-nav { position: relative; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu a { display: block; color: #fff; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; padding: 14px 15px; }
.menu a:hover, .menu a.active, .menu li:hover > a { background: var(--nav-hover); text-decoration: none; }
.menu > li > a.active { background: var(--accent); }
.menu ul { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--nav); z-index: 20; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.menu ul ul { top: 0; left: 100%; }
.menu ul a { text-transform: none; font-size: 14px; padding: 10px 15px; border-top: 1px solid #3c3c3c; }
.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 16px; padding: 12px 0; cursor: pointer; }

/* main */
.wrapper { background: var(--panel); margin-top: 18px; margin-bottom: 24px; padding-top: 18px; padding-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.breadcrumb { font-size: 12px; margin-bottom: 12px; }
.body p { margin: 0 0 .8em; }
.body ul { padding-left: 1.3em; }
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 1.2em 0; }
.gallery img { border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); background: #fff; }
.before-after { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 1.4em 0; }
.before-after figure { margin: 0; text-align: center; }
.before-after img { border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.before-after figcaption { font-family: "Oswald", sans-serif; font-size: 16px; margin-top: 4px; }
.person { display: flex; gap: 24px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); max-width: 760px; margin: 0 auto; }
.person img { order: 2; flex: 0 0 auto; width: 180px; border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.person > div { flex: 1; }
.person strong, .person h3 { margin: 0 0 .4em; display: block; font-family: "Oswald", sans-serif; font-weight: 400; font-size: 17px; color: var(--heading); }
.person p { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.two-col h2 { margin-top: 0; }
.narrow { max-width: 560px; }
.map { width: 100%; height: 380px; border: 0; display: block; }

/* forms */
.mail-form label { display: block; font-weight: bold; margin-bottom: 12px; font-size: 13px; }
.mail-form label.check { font-weight: normal; display: flex; align-items: center; gap: 6px; }
.mail-form input[type=text], .mail-form input[type=email], .mail-form input[type=tel], .mail-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 7px 8px; border: 1px solid #c4c4c4; border-radius: 2px; font: inherit; font-weight: normal; background: #fff; color: #333;
}
.mail-form small { display: block; font-weight: normal; font-size: 12px; color: #777; margin-top: 3px; }
.mail-form button { background: var(--accent); color: #fff; border: 0; padding: 8px 18px; font: 15px "Oswald", sans-serif; cursor: pointer; border-radius: 2px; }
.mail-form button:hover { background: #9a4522; }
.req { color: var(--accent); }
.form-note { font-size: 12px; color: #777; }

/* home */
.slider { position: relative; overflow: hidden; aspect-ratio: 940 / 320; background: #ddd; box-shadow: 0 6px 12px -6px rgba(0,0,0,.35); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.caption { position: absolute; left: 0; bottom: 10%; }
.slidertitle { display: inline-block; background: var(--accent); color: #fff; font-size: 22px; padding: 4px 12px; }
.slidertext { background: rgba(181,85,43,.85); color: #fff; font-weight: bold; padding: 4px 12px; margin-top: 2px; }
.paging { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 6px; }
.paging button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.paging button.active { background: var(--accent); }
.section-title { position: relative; text-align: left; font-size: 22px; margin: 28px 0 18px; }
.section-title::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px double var(--line); }
.section-title span { position: relative; background: var(--panel); padding: 0 12px 0 24px; }
.homeboxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.homebox h2 { font-size: 18px; margin: 0 0 6px; }
.homebox h2 a { color: var(--heading); }
.homebox img { display: block; width: 100%; border: 4px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.2); }
.homebox p { text-align: justify; font-size: 13px; }

/* listing pages */
.cards { display: grid; gap: 20px; }
.card { display: flex; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.card .thumb { flex: 0 0 160px; }
.card .thumb img { width: 160px; height: 120px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.card h2 { margin: 0 0 6px; font-size: 19px; }
.card h2 a { color: var(--heading); }
.card p { margin: 0 0 6px; }
.more { font-size: 13px; }

/* footer */
.site-footer { background: var(--footer); color: var(--footer-text); font-size: 13px; padding-top: 24px; }
.site-footer h2 { color: #fff; font-size: 18px; margin: 0 0 12px; }
.site-footer a { color: #ddd; }
.footer-grid { display: grid; grid-template-columns: 1fr .7fr 1.2fr 1.4fr; gap: 28px; }
.lang-list { list-style: none; padding: 0; margin: 0; }
.lang-list li { padding: 4px 0; border-bottom: 1px solid #3a3a3a; }
.lang-list a.active { color: #fff; font-weight: bold; }
.site-footer .mail-form label { color: #ddd; }
.site-footer .mail-form input, .site-footer .mail-form textarea { background: #f4f4f4; }
.members { list-style: none; padding: 0; margin: 0; }
.members li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.members img { display: block; background: #fff; }
.copyright { border-top: 1px solid #3a3a3a; margin-top: 18px; padding-top: 12px; padding-bottom: 16px; font-size: 12px; }

/* responsive */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .menu { display: none; flex-direction: column; padding-bottom: 8px; }
  .menu.open { display: flex; }
  .menu ul, .menu ul ul { display: block; position: static; box-shadow: none; min-width: 0; }
  .menu ul a { padding-left: 32px; }
  .menu ul ul a { padding-left: 48px; }
  .homeboxes, .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .person { flex-direction: column; align-items: center; text-align: left; }
  .person img { order: 0; }
  .card { flex-direction: column; }
  .card .thumb img { width: 100%; height: 180px; }
  .slidertitle { font-size: 17px; }
  .slidertext { font-size: 12px; }
  .logo img { width: 130px; height: auto; }
}
.person br { display: none; }
