/*
Theme Name: Lumora
Theme URI: https://dental.auranetics.com
Author: Carlos Granados
Author URI: https://auranetics.com
Description: Modern, lightweight theme for dental and healthcare practices. Built to work with Elementor and Polylang (EN/ES).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lumora
*/

/* ---------- Design tokens ---------- */
:root {
  --lm-navy: #0B2545;
  --lm-teal: #13A89E;
  --lm-teal-dark: #0E8A82;
  --lm-coral: #FF7A59;
  --lm-bg: #F4F9F9;
  --lm-white: #FFFFFF;
  --lm-text: #1F2D3D;
  --lm-muted: #5B6B7B;
  --lm-line: #E3ECEE;
  --lm-radius: 14px;
  --lm-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --lm-font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --lm-font-body: "Inter", system-ui, sans-serif;
  --lm-max: 1200px;
  --lm-header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--lm-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--lm-text);
  background: var(--lm-white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--lm-font-head);
  color: var(--lm-navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
a { color: var(--lm-teal-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lm-navy); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--lm-coral); outline-offset: 3px; border-radius: 4px; }

.lm-container { width: 100%; max-width: var(--lm-max); margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 10000;
  top: 12px; left: 12px; padding: 10px 16px;
  background: var(--lm-navy); color: #fff; border-radius: 8px;
}

/* ---------- Buttons ---------- */
.lm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--lm-font-head); font-weight: 700; font-size: 15px;
  background: var(--lm-teal); color: #fff; border: 2px solid var(--lm-teal);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.lm-btn:hover { background: var(--lm-teal-dark); border-color: var(--lm-teal-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--lm-shadow); }
.lm-btn--coral { background: var(--lm-coral); border-color: var(--lm-coral); }
.lm-btn--coral:hover { background: #F2643F; border-color: #F2643F; }
.lm-btn--ghost { background: transparent; color: var(--lm-navy); border-color: var(--lm-line); }
.lm-btn--ghost:hover { background: var(--lm-bg); color: var(--lm-navy); }

/* ---------- Top bar ---------- */
.lm-topbar { background: var(--lm-navy); color: #CFE3E8; font-size: 14px; }
.lm-topbar .lm-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.lm-topbar a { color: #fff; }
.lm-topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.lm-topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.lm-langs { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.lm-langs li a { font-weight: 600; opacity: .75; }
.lm-langs li.current-lang a, .lm-langs li a:hover { opacity: 1; color: #fff; }

/* ---------- Header ---------- */
.lm-header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.lm-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 37, 69, .08); border-color: var(--lm-line); }
.admin-bar .lm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lm-header { top: 46px; } }
.lm-header .lm-container { display: flex; align-items: center; justify-content: space-between; height: var(--lm-header-h); gap: 20px; }

.lm-brand { display: flex; align-items: center; gap: 10px; color: var(--lm-navy); }
.lm-brand:hover { color: var(--lm-navy); }
.lm-brand .custom-logo { max-height: 46px; width: auto; }
.lm-brand__mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--lm-teal), var(--lm-navy));
  display: grid; place-items: center; color: #fff;
  font-family: var(--lm-font-head); font-weight: 800; font-size: 20px;
}
.lm-brand__name { font-family: var(--lm-font-head); font-weight: 800; font-size: 20px; line-height: 1.1; }
.lm-brand__name small { display: block; font-weight: 600; font-size: 12px; color: var(--lm-teal-dark); letter-spacing: .08em; text-transform: uppercase; }

.lm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.lm-nav a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-family: var(--lm-font-head); font-weight: 600; font-size: 15px; color: var(--lm-navy);
}
.lm-nav a:hover, .lm-nav .current-menu-item > a { background: var(--lm-bg); color: var(--lm-teal-dark); }
.lm-nav .sub-menu { display: none; }

.lm-header__actions { display: flex; align-items: center; gap: 12px; }
.lm-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--lm-line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.lm-toggle span { display: block; width: 20px; height: 2px; background: var(--lm-navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.lm-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lm-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lm-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .lm-toggle { display: inline-flex; }
  .lm-header__actions .lm-btn { display: none; }
  .lm-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--lm-line);
    box-shadow: 0 16px 30px rgba(11, 37, 69, .08);
    display: none; padding: 12px 24px 20px;
  }
  .lm-nav.is-open { display: block; }
  .lm-nav ul { flex-direction: column; }
  .lm-nav a { padding: 14px 10px; font-size: 17px; border-bottom: 1px solid var(--lm-line); border-radius: 0; }
  .lm-nav__cta { display: block !important; margin-top: 14px; }
  .lm-nav__cta .lm-btn { width: 100%; justify-content: center; }
  .lm-topbar__info span.lm-hide-sm { display: none; }
}
.lm-nav__cta { display: none; }

/* ---------- Content ---------- */
.lm-main { min-height: 50vh; }
.lm-page-hero { background: var(--lm-bg); padding: 64px 0 48px; border-bottom: 1px solid var(--lm-line); }
.lm-page-hero h1 { margin: 0; }
.lm-content { padding: 56px 0 80px; }
.lm-content--narrow { max-width: 820px; }
.lm-content .wp-block-image img, .lm-content figure img { border-radius: var(--lm-radius); }

.lm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.lm-card {
  background: #fff; border: 1px solid var(--lm-line); border-radius: var(--lm-radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.lm-card:hover { transform: translateY(-4px); box-shadow: var(--lm-shadow); }
.lm-card__img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.lm-card__body { padding: 22px 24px 26px; }
.lm-card__meta { font-size: 13px; color: var(--lm-muted); margin-bottom: 8px; }
.lm-card h2 { font-size: 1.25rem; margin-bottom: .5em; }
.lm-card h2 a { color: var(--lm-navy); }
.lm-card h2 a:hover { color: var(--lm-teal-dark); }

.lm-single__meta { color: var(--lm-muted); font-size: 15px; margin-top: 10px; }
.lm-single__thumb img { border-radius: var(--lm-radius); margin-bottom: 32px; }

.lm-pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.lm-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--lm-line); color: var(--lm-navy); font-weight: 600; }
.lm-pagination .current { background: var(--lm-teal); border-color: var(--lm-teal); color: #fff; }

/* ---------- Footer ---------- */
.lm-footer { background: var(--lm-navy); color: #B9CFD6; font-size: 15px; }
.lm-footer a { color: #E6F2F4; }
.lm-footer a:hover { color: var(--lm-teal); }
.lm-footer__cta { background: linear-gradient(120deg, var(--lm-teal), #0F7C93); color: #fff; }
.lm-footer__cta .lm-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.lm-footer__cta h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.lm-footer__cta p { margin: 6px 0 0; color: #E2F6F4; }
.lm-footer__cta .lm-btn { background: #fff; border-color: #fff; color: var(--lm-navy); }
.lm-footer__cta .lm-btn:hover { background: var(--lm-coral); border-color: var(--lm-coral); color: #fff; }
.lm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.lm-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.lm-footer ul { list-style: none; margin: 0; padding: 0; }
.lm-footer li { margin-bottom: 8px; }
.lm-footer .lm-brand { color: #fff; margin-bottom: 14px; }
.lm-footer .lm-brand__name small { color: var(--lm-teal); }
.lm-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 13px; color: #8FA9B3; }
.lm-footer__bottom .lm-container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) { .lm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lm-footer__grid { grid-template-columns: 1fr; } }

/* ---------- WordPress core ---------- */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--lm-muted); }
.sticky, .bypostauthor, .gallery-caption { }

/* Elementor full width pages: remove theme padding */
.lm-elementor-page .lm-content { padding: 0; }
