/* Laboratoire Dentaire Atlantis: static rebuild of the former WordPress/Avada site.
   Sizes and spacing are measured from the live Avada site at 1280px wide. */

:root {
  --accent: #3bafbf;
  --accent-dark: #2e95a3;
  --ink: #333c4e;
  --text: #444;
  --muted: #666;
  --light: #f7f7f7;
  --rule: #e4e4e4;
  --copy-bg: #e0e0e0;
  --max: 1170px;
  --sans: "Source Sans 3", "Source Sans Pro", Arial, Helvetica, sans-serif;
  --display: Montserrat, Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 17px/2.25 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.25; font-weight: 300; }

.wrap { max-width: calc(var(--max) + 60px); margin: 0 auto; padding: 0 30px; }
.narrow { max-width: 824px; margin: 0 auto; padding: 0 30px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header menu (from the archived Avada header: 90px translucent white bar over the hero,
   pinned on desktop; navy bar with a teal menu button below 1125px) */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 90px;
  background: rgba(255,255,255,.7); padding: 0 30px; transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.menu { max-width: var(--max); height: 100%; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 41px; }
.menu a {
  display: block; line-height: 90px; color: #000; text-decoration: none;
  font: 600 14px/90px var(--display); letter-spacing: 1px; text-transform: uppercase;
  transition: color .2s;
}
.menu a:hover, .menu a:focus-visible { color: var(--accent); }
.menu-toggle { display: none; }
html { scroll-padding-top: 90px; }

/* Buttons (Avada: Montserrat 18px, 2px tracking, 17px/40px padding) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  background: var(--accent); color: #fff; text-decoration: none;
  font: 400 18px/21px var(--display); letter-spacing: 2px; text-transform: uppercase;
  padding: 17px 40px; border: 0; border-radius: 2px; cursor: pointer;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); color: #fff; }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn .sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.3); margin: -17px 22px -17px 22px; }

/* Hero */
.hero {
  position: relative; min-height: 502px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #333 url(../img/hero.jpg) center / cover no-repeat;
  padding: 120px 60px;
}
.hero h1 {
  color: #fff; font-size: clamp(52px, 6.25vw, 80px); line-height: 1;
  margin: 40px 0 32px;
}
.hero h1 span { color: var(--accent); }

/* Section titles: icon, 46px light title, short rule */
.section-head { text-align: center; }
.section-head img { margin: 0 auto 20px; width: 80px; }
.section-head h2 { text-transform: uppercase; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.25; color: var(--accent); margin-bottom: 23px; }
.rule { width: 240px; max-width: 60%; height: 1px; background: currentColor; opacity: .6; margin: 0 auto 20px; }

/* Lead text used in intro, about and contact (Avada h3: 22px/2.2, 1px tracking) */
.lead { font-size: 22px; line-height: 2.2; font-weight: 300; letter-spacing: 1px; margin: 16px 0 11px; }

/* Intro */
.intro { background: var(--light); padding: 100px 0 80px; text-align: center; }
.intro .rule { color: var(--accent); }
.intro .lead { color: var(--ink); margin-bottom: 40px; }

/* About (dark image background) */
.about {
  color: #fff; padding: 100px 0 80px;
  background: #2b2b2b url(../img/bg-about.jpg) center / cover no-repeat fixed;
}
.about .section-head h2 { color: #fff; }
.about .rule { color: #fff; }
.about .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 46px; }
.about .lead { margin: 0 0 0; }
.about .lead + .lead { margin-top: 16px; }
.about strong { font-weight: 700; color: #f5f5f5; }

/* Services band */
.band { background: var(--accent); min-height: 183px; padding: 40px 30px; display: flex; align-items: center; justify-content: center; text-align: center; }
.band h2 { color: #fff; text-transform: uppercase; font-size: clamp(32px, 3.6vw, 46px); margin: 0; }

/* Service rows: text beside an image slider, alternating sides; image sits at the top of its column */
.service { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.service .text { padding: 8% 13%; }
.service.flip .text { order: 2; }
.service h2 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; color: var(--accent); margin-bottom: 23px; }
.service p { margin: 0 0 20px; }
.service strong { font-weight: 700; }
.service strong.accent { color: var(--accent); }
.service ul { margin: 0 0 20px; padding-left: 1.1em; }

.slider { position: relative; background: #eee; overflow: hidden; aspect-ratio: 800 / 606; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.slider .track { display: flex; height: 100%; transition: transform .6s ease; }
.slider .track img { flex: 0 0 100%; }
.slider button {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; font-size: 18px; line-height: 30px; padding: 0;
}
.slider button:hover { background: rgba(0,0,0,.7); }
.slider .prev { left: 10px; }
.slider .next { right: 10px; }

/* Contact */
.contact {
  color: #fcfcfc; padding: 80px 0; text-align: center;
  background: #2f3b4f url(../img/bg-contact.jpg) center / cover no-repeat fixed;
}
.contact h2 { color: #fff; font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 23px; }
.contact .rule { color: #fff; }
.contact strong { font-weight: 700; }

.form { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: left; }
.form .full { grid-column: 1 / -1; }
.form label { position: absolute; left: -9999px; }
.form input, .form textarea {
  width: 100%; font: 400 13px Arial, Helvetica, sans-serif; color: #fff;
  background: transparent; border: 1px solid rgba(183,203,206,.77); border-radius: 0;
  height: 50px; padding: 0 15px;
}
.form textarea { height: 150px; padding: 12px 15px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #aaa9a9; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .hp { display: none; }
.form .actions { grid-column: 1 / -1; }
.form .actions .btn { width: 100%; }
.form-status { grid-column: 1 / -1; text-align: center; min-height: 1.5em; margin: 0; }
.form-status.ok { color: #bff0f6; }
.form-status.err { color: #ffd0d0; }

/* Footer */
.footer { background: #fff; color: var(--muted); padding: 60px 0 40px; }
.footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer h4 { font: 400 18px/1 var(--display); color: var(--ink); text-transform: uppercase; margin-bottom: 28px; }
.footer p { margin: 17px 0; }
.footer ul { list-style: none; margin: 0 0 20px; padding: 0; }
.footer li { display: flex; gap: 12px; align-items: flex-start; }
.footer li svg { width: 15px; height: 15px; fill: var(--accent); margin-top: 11px; flex: none; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.map { width: 100%; height: 250px; border: 0; display: block; }

.copyright { background: var(--copy-bg); color: var(--muted); font-size: 14px; line-height: 2.25; padding: 20px 0; }
.copyright .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.copyright a { color: var(--ink); font-family: var(--display); font-size: 13px; text-transform: uppercase; text-decoration: none; }
.copyright a:hover { color: var(--accent); }

.to-top {
  position: fixed; right: 20px; bottom: 0; width: 44px; height: 34px; z-index: 10;
  display: grid; place-items: center; border-radius: 4px 4px 0 0;
  background: #333; color: #fff; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.show { opacity: .85; pointer-events: auto; }
.to-top svg { width: 14px; height: 14px; fill: currentColor; }

/* Tablet and phone */
@media (max-width: 1125px) {
  html { scroll-padding-top: 0; }
  .site-header { position: relative; height: auto; background: #333c4e; padding: 0; box-shadow: none; }
  .site-header.scrolled { background: #333c4e; box-shadow: none; }
  .menu { display: block; max-width: none; }
  .menu-toggle {
    display: block; margin: 0 0 0 auto; padding: 26px 30px; background: none; border: 0; cursor: pointer;
    color: var(--accent); line-height: 0;
  }
  .menu-toggle svg { width: 24px; height: 24px; fill: currentColor; }
  .menu ul { display: none; flex-direction: column; gap: 0; }
  .menu.open ul { display: flex; }
  .menu li a {
    background: var(--accent); color: #fff; padding: 0 12px 0 30px;
    font: 400 14px/55px var(--sans); letter-spacing: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .menu li.menu-lang a { background: #333c4e; }
  .menu li a:hover, .menu li a:focus-visible { background: var(--accent-dark); color: #fff; }
  .menu li.menu-lang a:hover { background: #283040; }
}

@media (max-width: 1080px) {
  .about .cols { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 900px) {
  .about, .contact { background-attachment: scroll; }
}

@media (max-width: 600px) {
  .hero { min-height: 436px; padding: 80px 30px; }
  .form { grid-template-columns: 1fr; gap: 20px; }
  .btn { font-size: 14px; letter-spacing: 1px; padding: 14px 20px; }
  .btn .sep { margin: -14px 14px; }
  .copyright .wrap { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider .track { transition: none; }
}

.form .captcha { min-height: 65px; }
