/*
 * Walter Wood — consolidated stylesheet, 2026-11-15
 * Joomla 5 / Astroid; existing ww-* HTML classes.
 * Replaces the previous Walter Wood Custom CSS; do not load both.
 * Load after template styles. No external fonts or scripts.
 * Language column: existing ID retained for compatibility.
 * A reusable alternative is the column class ww-language-column.
 */

/* 1. Palette and typography */
:root {
  --ww-content-width: 1200px;
  --ww-gutter: 40px;
  --ww-green: #194d25;
  --ww-green-dark: #12391c;
  --ww-ink: #20271d;
  --ww-cream: #f7f3ea;
  --ww-border: #deded8;
  --bs-primary: #194d25;
  --bs-primary-rgb: 25, 77, 37;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #252724;
  background: #fff;
  font-size: 17px;
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(32px, 4vw, 52px); color: var(--ww-ink); }
h2 { font-size: clamp(27px, 2.4vw, 32px); }
h3 { font-size: 22px; }
a { color: var(--ww-green); text-underline-offset: .2em; }
a:hover { color: var(--ww-green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #96703d;
  outline-offset: 4px;
}
#ww-projects, #ww-workshop, #ww-beginners { scroll-margin-top: 110px; }

/* 2. Header */
.astroid-header { border-bottom: 1px solid #ecece7; }
.astroid-header-section header.astroid-header:not(.astroid-header-sticky) {
  padding-top: 0;
  padding-bottom: 0;
}
.astroid-logo img {
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 90px;
  object-fit: contain;
}
.astroid-nav .nav-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

/* 3. Buttons and forms */
.btn {
  border-radius: 4px;
  font-weight: 400;
  padding: .65rem 1.2rem;
  line-height: 1.4;
}
.btn-primary, .ww-button {
  --bs-btn-color: #fff;
  --bs-btn-bg: #194d25;
  --bs-btn-border-color: #194d25;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #12391c;
  --bs-btn-hover-border-color: #12391c;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #12391c;
  --bs-btn-active-border-color: #12391c;
  background: var(--ww-green);
  border: 1px solid var(--ww-green);
  color: #fff;
}
.ww-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
}
.ww-button:hover {
  background: var(--ww-green-dark);
  border-color: var(--ww-green-dark);
  color: #fff;
}
.btn-outline-primary, .ww-button--outline {
  --bs-btn-color: #194d25;
  --bs-btn-border-color: #194d25;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #194d25;
  --bs-btn-hover-border-color: #194d25;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #194d25;
  --bs-btn-active-border-color: #194d25;
  background: transparent;
  border: 1px solid var(--ww-green);
  color: var(--ww-green);
}
.ww-button--outline:hover { background: var(--ww-green); color: #fff; }
.form-control, .form-select { border-radius: 4px; border-color: #bfc3bb; }
.form-control:focus, .form-select:focus {
  border-color: var(--ww-green);
  box-shadow: 0 0 0 .2rem rgb(25 77 37 / 15%);
}
.page-link { color: var(--ww-green); }
.active > .page-link, .page-link.active {
  background: var(--ww-green);
  border-color: var(--ww-green);
  color: #fff;
}

/* 4. Shared layout */
.ww-section { padding-block: 32px; }
.ww-container, .ww-layout-container {
  box-sizing: border-box;
  width: min(var(--ww-content-width), calc(100% - var(--ww-gutter)));
  margin-inline: auto;
}
/* Assign ww-layout-container to the inner header/footer row, not the full-width section. */
.ww-layout-container { padding-inline: 0; }
.ww-layout-container > .ww-container { width: 100%; }
.ww-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
}
.ww-section-heading h2 { margin: 0; }
.ww-section-heading > a { font-weight: 400; }
.ww-section-heading h2, .ww-about h2 {
  font-size: clamp(27px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.015em;
}

/* 5. Hero */
.ww-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  box-sizing: border-box;
  width: min(var(--ww-content-width), calc(100% - var(--ww-gutter)));
  margin: 24px auto 0;
  background: var(--ww-cream);
}
.ww-hero__content {
  min-width: 0;
  padding: 32px;
  align-self: center;
}
.ww-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ww-ink);
}
.ww-hero p {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.ww-hero__image {
  display: block;
  width: 100%;
  height: 420px;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
.ww-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 6. Category shortcuts */
.ww-quicklinks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px 0;
  border-bottom: 1px solid var(--ww-border);
}
.ww-quicklinks a {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  gap: 12px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ww-ink);
}
.ww-quicklinks a:hover { color: var(--ww-green); }
.ww-quicklinks a + a { border-left: 1px solid #b9bcb6; }
.ww-quicklinks i, .ww-quicklinks svg {
  color: var(--ww-green);
  font-size: 27px;
  width: 30px;
  flex-shrink: 0;
}

/* 7. Project and article cards */
.ww-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ww-card {
  min-width: 0;
  border: 1px solid var(--ww-border);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.ww-card > a { display: block; }
.ww-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ww-card__body { padding: 16px 18px 18px; flex: 1; }
.ww-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.ww-card h3 a { color: var(--ww-ink); text-decoration: none; }
.ww-card h3 a:hover { color: var(--ww-green); text-decoration: underline; }
.ww-card p { margin: 0; font-size: 16px; line-height: 1.55; color: #50564d; }
.ww-card .ww-card__meta { color: #54584f; font-size: 14px; }

/* 8. Workshop introduction */
.ww-about {
  box-sizing: border-box;
  width: min(var(--ww-content-width), calc(100% - var(--ww-gutter)));
  margin-inline: auto;
  background: var(--ww-cream);
  padding: 28px;
}
.ww-about > .ww-container { width: 100%; max-width: none; }
.ww-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.ww-about img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 2px;
}
.ww-about h2 { color: var(--ww-ink); margin: 0 0 16px; }
.ww-about p { font-size: 17px; line-height: 1.65; }

/* 9. Advertising placeholder */
.ww-ad-slot {
  border: 1px dashed #a8aaa4;
  background: #fafafa;
  padding: 12px;
  text-align: center;
  color: #62665d;
}

/* 10. Footer */
.ww-footer { background: #252724; color: #fff; padding-block: 24px; }
.ww-footer a { color: #fff; }
.ww-footer a:hover { color: #e3c89d; }
.ww-footer h2, .ww-footer h3 { color: #fff; }
.ww-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  color: #fff;
}
.ww-footer-bar a { color: #fff; text-decoration: none; }
.ww-footer-bar a:hover { color: #e3c89d; }
.ww-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  line-height: 1.2;
}
.ww-footer-brand strong { font-size: 22px; font-weight: 700; }
.ww-footer-brand span { margin-top: 4px; font-size: 10px; letter-spacing: .16em; }
.ww-footer-brand img {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}
.ww-footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; }
.ww-footer-nav a { font-size: 15px; font-weight: 400; }
.ww-footer-domain { font-size: 16px; font-weight: 400; white-space: nowrap; }

/* 11. Falang language switcher (module suffix: " ww-language") */
.ww-language ul.lang-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ww-language ul.lang-inline > li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.ww-language ul.lang-inline > li + li::before {
  content: "/";
  margin-inline: 5px;
  color: #999;
}
.ww-language ul.lang-inline > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: #252724;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
}
.ww-language ul.lang-inline > li.lang-active > a,
.ww-language ul.lang-inline > li > a:hover {
  color: var(--ww-green);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.ww-language-column,
#ac-6604ddf3f78a3821727535 {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional single-link cards: put ww-card-link on the title link.
   Use only when the card has one destination and no other controls. */
.ww-card:has(.ww-card-link) { position: relative; }
.ww-card-link::after { content: ""; position: absolute; inset: 0; }
.ww-card:has(.ww-card-link):hover,
.ww-card:has(.ww-card-link):focus-within { border-color: #879780; }
.ww-card:has(.ww-card-link):hover h3 a { text-decoration: underline; }
.ww-section-heading > a { flex-shrink: 0; font-size: 16px; }
.ww-about .ww-button { margin-top: 8px; }

/* 12. Responsive adjustments — always after desktop rules */
@media (max-width: 991.98px) {
  .ww-grid { gap: 16px; }
  .ww-about__inner { gap: 24px; }
  .astroid-logo img { max-width: 160px; max-height: 72px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .ww-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ww-hero__content { padding: 28px; }
}
@media (max-width: 767.98px) {
  body { font-size: 16px; }
  :root { --ww-gutter: 32px; }
  .ww-hero { margin-top: 16px; }
  .ww-about { padding: 20px; }
  .ww-hero, .ww-about__inner { grid-template-columns: minmax(0, 1fr); }
  .ww-hero__content { padding: 28px 24px; }
  .ww-hero__image { height: auto; aspect-ratio: 2 / 1; }
  .ww-hero h1 { font-size: clamp(30px, 8vw, 36px); }
  .ww-hero p { font-size: 18px; }
  .ww-quicklinks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .ww-quicklinks a { justify-content: flex-start; gap: 10px; padding: 8px; font-size: 15px; }
  .ww-quicklinks a:nth-child(3) { border-left: 0; }
  .ww-grid { grid-template-columns: minmax(0, 1fr); }
  .ww-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .ww-section-heading h2, .ww-about h2 { font-size: 27px; }
  .ww-section { padding-block: 24px; }
  .astroid-logo img { max-width: 145px; max-height: 66px; }
  .ww-footer-bar { flex-direction: column; text-align: center; gap: 20px; }
  .ww-footer-nav { gap: 12px 20px; }
}
