/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ─── */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-graphite);
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2;
}

h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-graphite);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1em;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-copper);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-copper-hover);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ─── Section headings ─── */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  margin-bottom: 16px;
}

.section-heading .divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-copper);
  margin: 0 auto 16px;
}

.section-heading p {
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Language Switcher (Polylang) ─── */
.lang-switcher {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lang-switcher .lang-item {
  list-style: none;
  display: inline-block;
}

.lang-switcher .lang-item a {
  display: flex;
  align-items: center;
  padding: 6px 4px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.lang-switcher .lang-item a:hover {
  background: rgba(139, 111, 71, 0.1);
  transform: scale(1.1);
}

.lang-switcher .lang-item a img {
  width: 24px !important;
  height: 16px !important;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.lang-switcher .lang-item.current-lang a {
  opacity: 0.5;
  pointer-events: none;
}

/* Mobile language switcher */
.mobile-nav .lang-switcher {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.mobile-nav .lang-switcher .lang-item a {
  padding: 8px 12px;
  gap: 8px;
}

.mobile-nav .lang-switcher .lang-item a img {
  width: 28px !important;
  height: 20px !important;
}

.mobile-nav .lang-switcher .lang-item a span {
  color: var(--color-cream);
  font-size: 14px;
}

/* ─── Header nav links ─── */
.nav-desktop ul li a,
.nav-desktop .menu-item a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-graphite);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-desktop ul li a:hover,
.nav-desktop .menu-item a:hover {
  color: var(--color-copper);
}

/* Footer menu links */
.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.site-footer ul li a {
  color: var(--color-sand);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer ul li a:hover {
  color: var(--color-cream);
}

/* ─── WP Admin bar fix for fixed header ─── */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ─── Selection color ─── */
::selection {
  background-color: var(--color-copper);
  color: #fff;
}
