/*
Theme Name:   Artefaktum Site
Theme URI:    https://artefaktum.fi
Description:  Artefaktum brand child theme for Kadence: colour palette, typography (Neue Frutiger World via Adobe Fonts, Saira for navigation) and brand assets.
Author:       Artefaktum
Template:     kadence
Version:      1.0.0
Requires at least: 6.5
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:  artefaktum-site
*/

/* ---------- Brand tokens ---------- */
:root {
	--af-anthrazit-1: #555555;
	--af-anthrazit-2: #58595b;
	--af-dark-grey:   #232020;
	--af-light-grey:  #a6a8ab;
	--af-gold:        #d4af37;
	--af-ivory:       #f5f0e1; /* proposed – confirm */
	--af-white:       #ffffff;

	/* Body + headings: Neue Frutiger World (Adobe Fonts), falls back to self-hosted Source Sans 3 */
	--af-font-text: "neue-frutiger-world", "Neue Frutiger World", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
	/* Navigation + accents: Saira (self-hosted), echoes the wordmark */
	--af-font-nav:  "Saira", "Eurostile", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Typography ---------- */
body {
	font-family: var(--af-font-text);
	font-weight: 400;
	color: var(--af-dark-grey);
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--af-font-text);
	font-weight: 300;
	letter-spacing: -0.005em;
	color: var(--af-dark-grey);
}
strong, b { font-weight: 700; }

/* Navigation in Saira Light, gold on hover / current page */
.header-navigation .menu > li > a, .header-menu-container a, .mobile-navigation a {
	font-family: var(--af-font-nav);
	font-weight: 300;
	letter-spacing: 0.04em;
	text-transform: lowercase;
}
.header-navigation .menu > li > a:hover, .header-menu-container a:hover, .mobile-navigation a:hover,
.header-navigation .menu > li > a[aria-current="page"], .header-menu-container a[aria-current="page"], .mobile-navigation a[aria-current="page"] {
	color: var(--af-gold);
}

/* Links */
a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--af-gold); }

/* Text selection in brand gold */
::selection { background: var(--af-gold); color: var(--af-dark-grey); }

/* Subline style, e.g. “advancing entrepreneurial practice” – add class “af-subline” to any block */
.af-subline {
	font-family: var(--af-font-nav);
	font-weight: 300;
	letter-spacing: 0.22em;
	text-transform: lowercase;
	color: var(--af-light-grey);
}
.af-subline strong { font-weight: 300; color: var(--af-dark-grey); }

/* Gold links in explicitly marked text elements */
.elementor .link-gold a,
.elementor .link-gold a:visited {
  color: #d4af37;
  text-decoration: none;
}

.elementor .link-gold a:hover {
  color: #d4af37;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Offering: label and description columns */
.elementor .offering-row {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) !important;
  column-gap: 1.5rem;
  align-items: baseline;
}

@media (max-width: 767px) {
  .elementor .offering-row {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 0.375rem;
  }
}

/* Cases: circular process steps */
.elementor .case-sequence {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.elementor .case-sequence li {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.elementor .case-sequence li:last-child {
  flex: 0 1 auto;
}

.elementor .case-sequence li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: clamp(88px, 10vw, 140px);
  aspect-ratio: 1;
  flex-shrink: 0;
  padding: 10px;
  border-radius: 50%;
  background: #f8f5ed;
  color: #30322e;
  font-size: clamp(14px, 1.5vw, 19px);
  text-align: center;
}

.elementor .case-sequence li:nth-child(2) > span {
  background: #f3eee2;
}

.elementor .case-sequence li:nth-child(3) > span {
  background: #fbf9f3;
}

.elementor .case-sequence li:nth-child(4) > span {
  background: #eee7d7;
}

.elementor .case-sequence li:not(:last-child)::after {
  content: "";
  width: 0;
  height: 0;
  margin: auto;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #887333;
}

@media (max-width: 760px) {
  .elementor .case-sequence {
    flex-direction: column;
  }

  .elementor .case-sequence li,
  .elementor .case-sequence li:last-child {
    flex: none;
    flex-direction: column;
  }

  .elementor .case-sequence li > span {
    width: 120px;
    font-size: 17px;
  }

  .elementor .case-sequence li:not(:last-child)::after {
    margin: 14px 0;
    border: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #887333;
  }
}

/* Accordion: replace the plus with a minus when open */
.elementor details[open] > summary .e-accordion-item-icon-base {
  position: relative;
  transform: none !important;
}

.elementor details[open] > summary .e-accordion-item-icon-base > * {
  visibility: hidden !important;
}

.elementor details[open] > summary .e-accordion-item-icon-base::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  background: #887333;
  transform: translate(-50%, -50%);
}

/* Enquiry button: normal and interactive states */
.elementor .enquiry-submit,
.elementor .enquiry-submit:hover,
.elementor .enquiry-submit:focus-visible {
  background: transparent !important;
  color: #887333 !important;
  box-shadow: none !important;
  border: 0;
  border-bottom: 1px solid #887333;
  border-radius: 0;
}

/* Larger enquiry arrow */
.elementor .enquiry-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.elementor .enquiry-submit::after {
  content: "↗";
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  transform: translateY(-6px);
  line-height: 1;
}


/* Keep enquiry fields within the available width. */
.elementor .enquiry-form {
  min-width: 0;
  max-width: 700px;
}

.elementor .enquiry-form > * {
  min-width: 0;
}

.elementor .enquiry-form :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.elementor .enquiry-form label {
  white-space: normal;
  overflow-wrap: anywhere;
}

