/**
 * Artimed - Main stylesheet
 * @package Renowners_Artimed
 */

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-black);
  background-color: var(--color-hero-bg);
  overflow-x: hidden;
}

.site-main {
  background-color: var(--color-white);
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
}

button,
input,
select,
textarea,
[type="button"],
[type="submit"],
[type="reset"],
[role="button"],
.btn,
.btn-arrow,
.menu-toggle,
label[for],
summary {
  cursor: pointer;
}

a, .nav-menu a, .header-top-item, .header-phone, .share-link, .post-nav__link {
  cursor: pointer !important;
}

a:hover {
  color: var(--color-brand-light);
}

/* Text links — animated orange underline on hover */
.text-link-hover {
  position: relative;
  text-decoration: none;
}

.text-link-hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--color-action);
  transition: width 0.3s ease;
}

.text-link-hover:hover::after {
  width: 100%;
}

.text-link-hover:hover {
  color: var(--color-action);
}

.header-top-item,
.footer-bottom a,
.onas-visit__overlay a,
.kontakt-info-value a {
  position: relative;
  text-decoration: none;
}

.header-top-item::after,
.footer-bottom a::after,
.onas-visit__overlay a::after,
.kontakt-info-value a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--color-action);
  transition: width 0.3s ease;
}

.header-top-item:hover::after,
.footer-bottom a:hover::after,
.onas-visit__overlay a:hover::after,
.kontakt-info-value a:hover::after {
  width: 100%;
}

.header-top .header-top-item:hover,
.footer-bottom a:hover,
.onas-visit__overlay a:hover,
.kontakt-info-value a:hover {
  color: var(--color-action);
}

/* Footer contact card — icon turns orange on hover */
a.footer-contact-card__item:hover svg {
  color: var(--color-action);
}

/* Header phone — orange hover + animated underline */
.header-phone {
  position: relative;
  text-decoration: none;
}

.header-phone::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--color-action);
  transition: width 0.3s ease;
}

.header-phone:hover::after {
  width: 100%;
}

.header-phone:hover {
  color: var(--color-action) !important;
}

.header-phone:hover .icon-phone {
  color: var(--color-action);
}

/* Hero appointment — orange hover on everything */
.hero-appointment:hover .hero-appointment-label,
.hero-appointment:hover .hero-phone-link {
  color: var(--color-action);
}

.hero-appointment:hover .icon-phone {
  color: var(--color-action);
}

.hero-phone-link {
  position: relative;
}

.hero-phone-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--color-action);
  transition: width 0.3s ease;
}

.hero-appointment:hover .hero-phone-link::after {
  width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Buttons - układ Medpro */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.btn-primary {
  background-color: var(--color-action);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-action-hover);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
}

.btn-secondary:hover {
  background-color: var(--color-brand);
  color: var(--color-white);
}
