/*
Theme Name: WS Elementor Base
Theme URI: https://williamschons.com.br/
Author: William Schons
Author URI: https://williamschons.com.br/
Description: Tema ultra-minimalista e rápido, feito para usar o Elementor/Elementor Pro como camada de visual. Inclui hooks para Theme Builder, templates Full Width e Canvas, e base responsiva.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ws-elementor-base
*/

:root {
  --container: min(75rem, 92vw);
  --font-base: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  --font-size: clamp(0.9rem, 1.2vw + 0.5rem, 1.125rem);
  --lh: 1.6;
  --fg: #111;
  --bg: #fff;
}

*,*::before,*::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--font-size);
  line-height: var(--lh);
  color: var(--fg);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,svg,video,canvas { display: block; max-width: 100%; height: auto }
a { color: inherit; text-decoration: none }
a:focus-visible, button:focus-visible { outline: 0.125rem solid #3b82f6; outline-offset: 0.125rem }
button,input,select,textarea { font: inherit }

.container { width: auto; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem) }
.site-header, .site-footer { padding: clamp(0.75rem, 2vh, 1.5rem) 0 }
.site-title { font-weight: 700; font-size: clamp(1.1rem, 2.5vw, 1.5rem) }
.menu { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  align-items: center;
}

.screen-reader-text {
  position: absolute; width: 0.0625rem; height: 0.0625rem; padding: 0; margin: -0.0625rem; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.screen-reader-text:focus {
  clip: auto; width: auto; height: auto; margin: 0; padding: 0.5rem 0.75rem; background: #fff; color: #000; z-index: 1000;
}

main.site-content { display: block; min-height: 40vh }

/* Layout Header Responsivo */
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-branding {
  display: flex !important;
  align-items: center !important;
  gap: clamp(0.5rem, 2vw, 1rem) !important;
  flex-shrink: 0;
}

.site-branding a {
  display: inline-flex;
  align-items: center;
}

.site-header nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

/* Menu Links Responsivos */
.menu a {
  padding: clamp(0.25rem, 1vw, 0.5rem) clamp(0.5rem, 2vw, 1rem);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  white-space: nowrap;
}

.menu a:hover,
.menu a:focus {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

/* Mobile First - Breakpoints */
@media (max-width: 48rem) {
  .site-header .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .site-header nav {
    width: 100%;
    justify-content: center;
  }
  
  .menu {
    justify-content: center;
    gap: clamp(0.5rem, 4vw, 1rem);
  }
  
  .menu a {
    font-size: clamp(0.875rem, 3.5vw, 1rem);
  }
}

@media (max-width: 30rem) {
  .menu {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .menu a {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

/* Fallbacks de conteúdo básico (usados só se não tiver template do Elementor) */
.post { 
  width: auto; 
}
.post h1 { 

  line-height: 1.2;
}
.post h2 {

  line-height: 1.3;
}
.post .meta { 
  color: #666; 

}
.post .excerpt,
.post .entry-content {

  line-height: 1.7;
}

/* Footer Responsivo */
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

@media (max-width: 48rem) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  .site-footer nav {
    width: 100%;
  }
  
  .site-footer .menu {
    justify-content: center;
  }
}
