/* =========================================================================
   Educanthis — main.css
   Hand-rolled, modern, no vendor prefixes, no IE.
   Sections:
     1. Reset
     2. Tokens
     3. Base typography
     4. Layout
     5. Header & navigation
     6. Footer
     7. Components (page title, columns, service-box, testimonials, etc.)
     8. Posts & entry content
     9. FAQ (su-spoiler accordion)
    10. Contacts (su-tabs, su-gmap)
    11. Slideshow
    12. Forms
    13. Utilities
    14. Skip link
    15. Media queries
   ========================================================================= */


/* 1. Reset
   ----------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd, form, fieldset, legend, input, button {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.5; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { border: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { background: none; cursor: pointer; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; border-spacing: 0; }


/* 2. Tokens
   ----------------------------------------------------------------------- */

:root {
  --color-primary: #F86B35;
  --color-heading: #444;
  --color-body: #727272;
  --color-link: #343434;
  --color-bg: #F0F0F0;
  --color-bg-alt: #fff;
  --color-border: #E7E7E7;
  --color-muted: #EDEDED;
  --color-footer-bg: #373839;
  --color-copyright-bg: #282A2B;
  --color-footer-text: #9C9C9C;
  --color-footer-link: #BCBCBC;
  --color-footer-title: #EAEAEA;
  --color-form-border: #ddd;
  --color-form-bg: #fff;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-icon: "moon", "Segoe UI Symbol", sans-serif;

  --size-wrap: 940px;
  --header-height: 70px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 1px rgba(0,0,0,0.196);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.08);
}


/* 3. Base typography
   ----------------------------------------------------------------------- */

html, body { width: 100%; }
body {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  margin-bottom: 15px;
  color: var(--color-heading);
  line-height: 1.4;
}
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { margin-bottom: 18px; }

a { color: var(--color-link); transition: color 0.15s ease; }
a:hover, a:focus-visible { color: var(--color-primary); }

ul, ol { padding-left: 30px; margin-bottom: 18px; }
ul li, ol li { line-height: 18px; }
ul li { list-style: disc; }
ol li { list-style: decimal; }
ul ul, ul ol, ol ol, ol ul { margin: 4px 0 5px 30px; }
ul ul li, ul ol li, ol ol li, ol ul li { margin-bottom: 6px; }

blockquote {
  margin: 10px 30px;
  padding-left: 15px;
  border-left: 3px solid #aaa;
  color: #999;
  font-style: italic;
}
blockquote, blockquote p { font-size: 14px; color: #777; }
blockquote cite { display: block; font-size: 12px; color: #555; }

code, pre, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95em; }
pre { background: #f7f7f7; color: #222; padding: 1.5em; border: 1px solid #e9e9e9; margin-bottom: 18px; line-height: 18px; white-space: pre-wrap; }

hr { background-color: var(--color-muted); border: 0; clear: both; height: 1px; margin-bottom: 18px; }

em { font-style: italic; }
strong { font-weight: 700; }
small { font-size: 80%; }
abbr, acronym { border-bottom: 1px dotted #666; cursor: help; }
sup, sub { height: 0; line-height: 1; position: relative; vertical-align: baseline; }
sup { bottom: 1ex; }
sub { top: 0.5ex; }


/* 4. Layout
   ----------------------------------------------------------------------- */

.size-wrap { width: var(--size-wrap); max-width: 100%; margin: 0 auto; padding: 0 15px; }

#layout-wrapper { width: 100%; }
#layout-wrapper.full-width { background: var(--color-bg-alt); }

#wrapper { padding: 30px 15px; }
#content_full, #content_left, #content_right { width: 100%; display: flow-root; }

.clear { clear: both; }


/* 5. Header & navigation
   ----------------------------------------------------------------------- */

#header-wrapper {
  position: relative;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
#header { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }

#logo img { max-height: 50px; width: auto; }

#menu-wrapper { position: relative; }
.toggleMenu {
  display: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-heading);
}
.toggleMenu-icon {
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
}
.toggleMenu-icon::before, .toggleMenu-icon::after,
.toggleMenu-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-heading);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.toggleMenu-icon::before { top: 0; }
.toggleMenu-icon::after { bottom: 0; }

#primary-main-menu {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
#primary-main-menu > li { padding-bottom: 25px; position: relative; }
#primary-main-menu > li > a {
  display: block;
  padding: 0 15px;
  line-height: var(--header-height);
  color: #292929;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
#primary-main-menu > li:hover > a,
#primary-main-menu > li.current-menu-item > a,
#primary-main-menu > li.current-menu-ancestor > a,
#primary-main-menu > li.current_page_parent > a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

#primary-main-menu > li > a::after {
  content: "\2022";
  display: inline-block;
  margin: 0 0 0 15px;
  color: #999;
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
}
#primary-main-menu > li:last-child > a::after { content: none; }

.header-shadow {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.04), transparent);
  pointer-events: none;
}


/* 6. Footer
   ----------------------------------------------------------------------- */

#footer-wrapper { background: var(--color-footer-bg); color: var(--color-footer-text); padding: 30px 0; clear: both; }
#footer-widget-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
#footer-widget-area .widget-title {
  color: var(--color-footer-title);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #4A4A4A;
}
#footer-wrapper address { font-style: normal; }
#footer-wrapper a { color: var(--color-footer-link); }
#footer-wrapper a:hover { color: var(--color-primary); }
#footer-widget-area ul { padding: 0; margin: 0; list-style: none; }
#footer-widget-area ul li { margin-bottom: 6px; }
.hours { padding: 0; margin: 0; list-style: none; }
.hours li { margin-bottom: 4px; }

#copyright-wrapper { background: var(--color-copyright-bg); color: var(--color-footer-text); padding: 15px 0; font-size: 12px; }
#copyright { text-align: center; }


/* 7. Components
   ----------------------------------------------------------------------- */

#title-wrapper {
  position: relative;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 30px 0;
}
.page-title h1 {
  margin: 0;
  color: #333;
  text-shadow: none;
  background: none;
  font-size: 30px;
}

.divider { height: 1px; background: var(--color-border); border: 0; clear: both; margin: 10px 0; }
.spacer { display: block; height: 0; line-height: 0; clear: both; }
.spacer[style*="height"] { height: auto; }

.columns { display: flex; flex-wrap: wrap; gap: 4%; }
.column { position: relative; margin: 0 0 18px; float: left; }
.column-1-2 { width: 48%; }
.column-1-3 { width: 30.66%; }
.column-2-3 { width: 65.33%; }
.column-1-4 { width: 22%; }
.column-3-4 { width: 74%; }
.column.column-last { margin-right: 0; }
.columns::after { content: ""; display: block; clear: both; }

.service-box { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.service-box .icon,
.service-box i:first-child { color: var(--color-primary); font-size: 32px; line-height: 1; flex-shrink: 0; font-family: var(--font-icon); font-style: normal; }
.service-content h5 { margin-bottom: 8px; }
.service-content ul { margin: 0; padding-left: 20px; }
.service-content ul li { margin-bottom: 4px; }

.heading-wrapper { text-align: center; margin: 20px 0; }
.heading-wrapper h6 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-heading);
  margin: 0;
}
.heading-line-left, .heading-line-right {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.big-testimonial-wrapper { display: flex; align-items: flex-start; gap: 20px; margin: 20px 0; }
.big-testimonial-image { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; background: var(--color-muted); overflow: hidden; }
.big-testimonial-image img { width: 100%; height: 100%; object-fit: cover; }
.big-testimonial-content { font-style: italic; color: var(--color-heading); }
.big-testimonial-content span { display: block; margin-top: 8px; font-size: 12px; color: var(--color-body); font-style: normal; }
.big-testimonial-content::before { content: "\201C"; margin-right: 4px; }
.big-testimonial-content::after { content: "\201D"; margin-left: 4px; }


/* 8. Posts & entry content
   ----------------------------------------------------------------------- */

.entry-content { word-wrap: break-word; }
.entry-content img { max-width: 100%; height: auto; margin: 5px 0; }
.entry-content img.alignleft { float: left; margin: 5px 20px 20px 0; }
.entry-content img.alignright { float: right; margin: 5px 0 20px 20px; }
.entry-content img.aligncenter { display: block; margin: 5px auto; }

.alignleft { float: left; }
.alignright { float: right; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignnone { display: inline-block; }

.wp-caption {
  border: 1px solid #ddd;
  background: var(--color-bg-alt);
  color: #999;
  max-width: 96%;
  padding: 7px 3px 0;
  text-align: center;
  border-radius: var(--radius-md);
}
.wp-caption img { max-width: 98.5%; height: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }

.post-header { margin-bottom: 30px; }
.post-header h1 { color: var(--color-heading); }

.post-meta { color: var(--color-body); font-size: 12px; margin-bottom: 18px; }
.post-meta > span { margin-right: 15px; }
.post-meta a { color: var(--color-link); }
.post-meta a:hover { color: var(--color-primary); }

.post-list ul { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.post-list li a { font-weight: 600; }
.post-card-meta { color: var(--color-body); font-size: 12px; }

.post-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-body);
  font-size: 12px;
}
.post-footer p { margin-bottom: 6px; }
.post-tags { color: var(--color-body); }
.tag { display: inline-block; margin-right: 6px; }


/* 9. FAQ (su-spoiler accordion)
   ----------------------------------------------------------------------- */

.su-spoiler { border-bottom: 1px solid var(--color-border); }
.su-spoiler-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-heading);
  user-select: none;
  list-style: none;
}
.su-spoiler-title::-webkit-details-marker { display: none; }
.su-spoiler-title::marker { display: none; content: ""; }
.su-spoiler-title i {
  font-family: var(--font-icon);
  font-style: normal;
  color: var(--color-primary);
  font-size: 14px;
  transition: transform 0.2s ease;
}
.su-spoiler.su-spoiler-open .su-spoiler-title i.spoiler-active { transform: rotate(90deg); }
.su-spoiler.su-spoiler-open .su-spoiler-title i:not(.spoiler-active) { display: none; }
.su-spoiler:not(.su-spoiler-open) .su-spoiler-title i.spoiler-active { display: none; }
.su-spoiler-content {
  padding: 0 0 16px 24px;
  color: var(--color-body);
}
.su-spoiler:not(.su-spoiler-open) .su-spoiler-content { display: none; }


/* 10. Contacts (su-tabs, su-gmap)
   ----------------------------------------------------------------------- */

.su-tabs { margin: 20px 0; }
.su-tabs-nav { display: none; }
.su-tabs-style-2 .su-tabs-nav { display: none; }

.pane-wrapper { border: 1px solid var(--color-border); border-top: 0; }
.pane-wrapper:first-child { border-top: 1px solid var(--color-border); }
.pane-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading);
  background: linear-gradient(to bottom, rgba(0,0,0,0.02), rgba(0,0,0,0.05));
  cursor: pointer;
  user-select: none;
}
.pane-wrapper.su-tabs-current .pane-title { font-weight: 700; }
.pane-title i {
  font-family: var(--font-icon);
  font-style: normal;
  color: var(--color-primary);
  font-size: 16px;
}
.su-tabs-pane {
  padding: 16px;
  display: none;
  border-top: 1px solid var(--color-border);
}
.pane-wrapper.su-tabs-current .su-tabs-pane { display: block; }

.su-gmap {
  position: relative;
  width: 100%;
  aspect-ratio: 450 / 240;
  background: var(--color-muted);
  border: 0;
  margin-bottom: -5px;
}
.su-gmap iframe { width: 100%; height: 100%; border: 0; }
.su-gmap::before {
  content: "A carregar mapa...";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-body);
  font-size: 13px;
}
.su-gmap.loaded::before { display: none; }

.contact-cta { margin: 20px 0; }


/* 11. Slideshow
   ----------------------------------------------------------------------- */

.slideshow {
  position: relative;
  width: 100%;
  max-width: var(--size-wrap);
  margin: 0 auto 30px;
  aspect-ratio: 940 / 705;
  background: #000;
  overflow: hidden;
  border-radius: 0;
}
.slideshow-track { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.slideshow button.slideshow-prev,
.slideshow button.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 60px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  border-radius: 0;
}
.slideshow button.slideshow-prev { left: 0; }
.slideshow button.slideshow-next { right: 0; }
.slideshow button.slideshow-prev:hover,
.slideshow button.slideshow-next:hover { background: rgba(0,0,0,0.7); }
.slideshow-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50px;
  display: flex;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.slideshow-dots > li { list-style: none; }
  padding: 0;
  z-index: 2;
}
.slideshow-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  padding: 0;
  border: 0;
  transition: background 0.2s ease;
}
.slideshow-dots button[aria-selected="true"] { background: var(--color-primary); }


/* 12. Forms
   ----------------------------------------------------------------------- */

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="password"], textarea, select {
  width: 100%;
  max-width: 400px;
  padding: 6px 10px;
  color: #696969;
  font-size: 13px;
  background: var(--color-form-bg);
  border: 1px solid var(--color-form-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.1);
}
input { height: 28px; }
textarea { width: 100%; max-width: 550px; min-height: 100px; padding: 10px; resize: vertical; }

input[type="submit"], input[type="button"], .button, button.button {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  line-height: 34px;
  padding: 0 20px;
  text-align: center;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
input[type="submit"]:hover, input[type="button"]:hover, .button:hover, button.button:hover {
  background: #e25a25;
  color: #fff;
}
input[type="submit"]:focus-visible, .button:focus-visible { outline: 2px solid var(--color-heading); outline-offset: 2px; }

input[type="checkbox"], input[type="radio"] { width: auto; height: auto; box-shadow: none; }

::placeholder { color: #aaa; }


/* 13. Utilities
   ----------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-right { text-align: right; }
.pull-right { float: right; margin-left: 15px; }
.pull-left { float: left; margin-right: 15px; }
.visually-hidden, .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* 14. Skip link
   ----------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; }


/* 15. Media queries
   ----------------------------------------------------------------------- */

@media (max-width: 979px) {
  .size-wrap { width: 100%; max-width: 100%; }
  #footer-widget-area { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 767px) {
  :root { --header-height: 60px; }

  #header { flex-wrap: wrap; height: auto; padding: 10px 15px; }

  .toggleMenu {
    display: flex;
    align-items: center;
    order: 2;
    width: 100%;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
  }
  .toggleMenu[aria-expanded="true"] .toggleMenu-icon::before { transform: translateY(5px) rotate(45deg); }
  .toggleMenu[aria-expanded="true"] .toggleMenu-icon::after { transform: translateY(-5px) rotate(-45deg); }

  #primary-main-menu {
    display: none;
    flex-direction: column;
    order: 3;
    width: 100%;
  }
  #primary-main-menu.is-open { display: flex; }
  #primary-main-menu > li > a::after { content: none; }
  #primary-main-menu > li { padding-bottom: 0; border-bottom: 1px solid var(--color-border); }
  #primary-main-menu > li:last-child { border-bottom: 0; }
  #primary-main-menu > li > a { line-height: 1.4; padding: 12px 15px; }

  .columns { display: block; }
  .column { width: 100% !important; margin-right: 0; }
  .big-testimonial-wrapper { flex-direction: column; align-items: stretch; }
  .big-testimonial-image { width: 100%; height: 200px; border-radius: var(--radius-md); }

  .slideshow { aspect-ratio: 4 / 3; }
  .slideshow button.slideshow-prev,
  .slideshow button.slideshow-next { width: 32px; height: 48px; font-size: 24px; }

  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  #title-wrapper { padding: 20px 0; }
  .page-title h1 { font-size: 24px; }
}

@media (max-width: 479px) {
  :root { --size-wrap-pad: 10px; }
  .size-wrap { padding: 0 10px; }
  .slideshow { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .slide { transition: none; }
  .slideshow-dots button { transition: none; }
}

@media (hover: none) {
  .slideshow button.slideshow-prev,
  .slideshow button.slideshow-next { display: none; }
}
