/* ================================================
   Bubamara Savjetovanje — main.css
   Breakpoints: 600px (tablet) | 960px (desktop) | 1400px (wide)
   ================================================ */

@font-face {
  font-family: "MufanPFS";
  src: url("../webfonts/mufanpfs.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Candara";
  src: url("../webfonts/candara.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
img,
video {
  max-width: 100%;
  display: block;
}
input,
textarea,
select,
button {
  font: inherit;
}

/* === CUSTOM PROPERTIES === */
:root {
  --c-bg: #f4fbe8;
  --c-surface: #ffffff;
  --c-green: #3d6b30;
  --c-green-light: #4a8038;
  --c-accent: #c4897f;
  --c-text: #0a400c;
  --c-muted: color-mix(in srgb, var(--c-text) 65%, transparent);

  --header-h: 4rem;
  --pad-x: 1.25rem;
  --pad-y: 3.5rem;
  --max-w: 980px;
  --max-w-wide: 1240px;
  --radius: 6px;
  --transition: 0.2s ease;
}

@media (min-width: 600px) {
  :root {
    --pad-x: 2rem;
    --pad-y: 5rem;
  }
}
@media (min-width: 960px) {
  :root {
    --pad-x: 2.5rem;
    --pad-y: 6.5rem;
  }
}
@media (min-width: 1400px) {
  :root {
    --pad-x: 3rem;
    --pad-y: 7.5rem;
    --max-w: 1100px;
  }
}

/* === BASE === */
body {
  font-family: "Candara", "Source Sans Pro", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
}

h1,
h2,
h3,
h4 {
  font-family: "MufanPFS", Helvetica, sans-serif;
  font-weight: 300;
  line-height: 1.2;
  color: var(--c-text);
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
}
h2 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
}
h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
}

p {
  margin-bottom: 1em;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--c-accent);
  transition: color var(--transition);
  text-decoration: none;
}
a:hover {
  color: #c47a62;
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn--primary {
  background: var(--c-green);
  color: #fff;
  border-color: var(--c-green);
}
.btn--primary:hover {
  background: var(--c-green-light);
  border-color: var(--c-green-light);
  color: #fff;
  text-decoration: none;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* === SITE HEADER (Light DOM web component) === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--pad-x);
  max-width: var(--max-w-wide);
  margin-inline: auto;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__logo img {
  height: 3.5rem;
  width: auto;
}
.site-header__logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-text);
  white-space: nowrap;
}

/* Desktop nav */
.site-nav {
  display: none;
}
@media (min-width: 600px) {
  .site-nav {
    display: block;
  }
}

.site-nav__list {
  display: flex;
  gap: 0;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 0 1.1rem;
  color: var(--c-muted);
  font-family: "MufanPFS", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: var(--header-h);
  border-bottom: 3px solid transparent;
  transition:
    color var(--transition),
    border-color var(--transition);
}
.site-nav__link:hover {
  color: var(--c-text);
  text-decoration: none;
}
.site-nav__link[aria-current="page"] {
  color: var(--c-text);
  border-bottom-color: var(--c-accent);
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: -0.5rem;
}
@media (min-width: 600px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

/* Nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.nav-overlay.is-visible {
  display: block;
}

/* Nav drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  width: min(280px, 85vw);
  background: #fff;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.nav-drawer__logo {
  font-family: "MufanPFS", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-text);
  text-decoration: none;
}

.nav-drawer__close {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition:
    background var(--transition),
    color var(--transition);
}
.nav-drawer__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--c-text);
}

.nav-drawer__list {
  list-style: none;
}

.nav-drawer__link {
  display: block;
  padding: 1rem 0;
  color: var(--c-muted);
  font-family: "MufanPFS", sans-serif;
  font-weight: 600;
  font-size: 1.65rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition:
    color var(--transition),
    padding-left var(--transition);
}
.nav-drawer__link:hover,
.nav-drawer__link[aria-current="page"] {
  color: var(--c-accent);
  padding-left: 0.5rem;
  text-decoration: none;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
  background: var(--c-text) center / cover no-repeat;
  padding: calc(var(--header-h) + 2rem) var(--pad-x) 3rem;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 680px;
  width: 100%;
}

.hero__logo {
  height: 90px;
  width: auto;
  margin: 0 auto 2rem;
}
@media (min-width: 600px) {
  .hero__logo {
    height: 130px;
  }
}
@media (min-width: 960px) {
  .hero__logo {
    height: 155px;
  }
}

.hero__title {
  color: #fff;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

/* === SECTIONS === */
.section {
  padding: var(--pad-y) 0;
}
.section--alt {
  background: var(--c-surface);
}
.section--dark {
  background: var(--c-text);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--c-bg);
}
.section--dark p,
.section--dark li {
  color: var(--c-bg);
}

.section--light {
  background: var(--c-surface);
}

/* Light footer — form fields */
.section--light .form-field label {
  color: var(--c-text);
}
.section--light .form-field input,
.section--light .form-field textarea {
  background: var(--c-bg);
  border-color: rgba(61, 107, 48, 0.22);
  color: var(--c-text);
}
.section--light .form-field input:focus,
.section--light .form-field textarea:focus {
  border-color: var(--c-accent);
  background: var(--c-surface);
}
.section--light .form-field input::placeholder,
.section--light .form-field textarea::placeholder {
  color: var(--c-muted);
  opacity: 0.6;
}

/* Light footer — contact info list */
.section--light .contact-info-list li {
  color: var(--c-muted);
}
.section--light .contact-info-list a {
  color: var(--c-muted);
}
.section--light .contact-info-list a:hover {
  color: var(--c-text);
}

/* Light footer — copyright bar */
.section--light .footer-bar {
  border-top-color: rgba(61, 107, 48, 0.15);
  color: var(--c-muted);
}
.section--light .footer-bar a {
  color: var(--c-muted);
}
.section--light .footer-bar a:hover {
  color: var(--c-text);
}

/* Label / eyebrow above heading */
.eyebrow {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}

/* Divider line under headings in centered headers */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.section-heading h2 {
  display: inline-block;
  padding-bottom: 1rem;
  position: relative;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: calc(var(--header-h) + 3rem) var(--pad-x) 3.5rem;
  background: var(--c-bg);
  text-align: center;
}
.page-hero h1 {
  color: var(--c-text);
}
.page-hero p {
  /* color: rgba(255, 255, 255, 0.75); */
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  margin-top: 0.5rem;
}

/* === SPOTLIGHT (two-column image + text) === */
.spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 600px) and (max-width: 959px) {
  .spotlight__image {
    max-width: 450px;
    margin-inline: auto;
  }
}

@media (min-width: 960px) {
  .spotlight {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
  .spotlight--reverse .spotlight__image {
    order: 2;
  }
  .spotlight--reverse .spotlight__content {
    order: 1;
  }
}

.spotlight__image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.spotlight__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight__content h2 {
  margin-bottom: 1rem;
}

.spotlight__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-accent);
  text-decoration: none;
}
.spotlight__link::after {
  content: " →";
}
.spotlight__link:hover {
  color: #c47a62;
  text-decoration: none;
}

/* === SERVICE CARDS === */
.service-cards {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .service-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background: var(--c-bg);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  border-top: 4px solid var(--c-green);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}
.service-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}
.service-card h3 {
  color: var(--c-green);
  margin-bottom: 1rem;
}
.service-card ul {
  list-style: disc;
  padding-left: 1.4rem;
}
.service-card li {
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

/* === BIO (about page) === */
.bio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 600px) {
  .bio {
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}
@media (min-width: 960px) {
  .bio {
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
  }
}

.bio__image img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.bio__meta {
  font-style: italic;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* === CERTIFICATIONS LIST === */
.cert-list {
  list-style: none;
}
.cert-list li {
  padding: 0.8rem 0 0.8rem 1.75rem;
  border-bottom: 1px solid rgba(61, 107, 48, 0.18);
  position: relative;
  color: var(--c-text);
  font-size: 0.95rem;
}
.cert-list li:first-child {
  border-top: 1px solid rgba(61, 107, 48, 0.18);
}
.cert-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* === SERVICE CONTENT (services.html detail) === */
.service-detail {
  margin-bottom: 3rem;
}
.service-detail:last-child {
  margin-bottom: 0;
}
.service-detail h3 {
  color: var(--c-green);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(61, 107, 48, 0.15);
}
.service-detail ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.service-detail li {
  margin-bottom: 0.5rem;
}

/* === CONTACT SECTION (inside footer component) === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form__honeypot {
  display: none;
}

.form-status {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.form-status--success {
  color: #a8e6a0;
}

.form-status--error {
  color: #f5a8a8;
}

.section--light .form-status--success {
  color: var(--c-green);
}

.section--light .form-status--error {
  color: #b33a3a;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-bg);
}

.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition:
    border-color var(--transition),
    background var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: rgba(255, 255, 255, 0.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}
.contact-info-list i {
  color: var(--c-accent);
  width: 1rem;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.contact-info-list a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.contact-info-list a:hover {
  color: #fff;
  text-decoration: underline;
}

/* === FOOTER BAR === */
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  text-align: center;
}
.footer-bar a {
  color: rgba(255, 255, 255, 0.35);
}
.footer-bar a:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* === FAQ ACCORDION === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid rgba(61, 107, 48, 0.18);
}
.faq-item:first-child {
  border-top: 1px solid rgba(61, 107, 48, 0.18);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  font-family: "Candara", "Source Sans Pro", sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition);
}
.faq-item__question::-webkit-details-marker {
  display: none;
}
.faq-item__question::after {
  content: "\f067";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: var(--c-accent);
  transition: transform var(--transition);
}
.faq-item[open] > .faq-item__question {
  color: var(--c-green);
}
.faq-item[open] > .faq-item__question::after {
  content: "\f068";
}

.faq-item__answer {
  padding-bottom: 1.5rem;
  color: var(--c-text);
  line-height: 1.8;
}
.faq-item__answer p {
  margin-bottom: 0.9em;
}
.faq-item__answer p:last-child {
  margin-bottom: 0;
}
.faq-item__answer ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.25rem;
}
.faq-item__answer li {
  margin-bottom: 0.45rem;
}

.faq-cta {
  text-align: center;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.faq-cta p {
  font-size: 1.05rem;
  color: var(--c-muted);
  margin-bottom: 0;
}

/* === UTILITY === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
