/*
Theme Name:   Ferras
Theme URI:    https://ferras.pt
Author:       Pedro Ferradeira
Author URI:   https://ferras.pt
Description:  Tema profissional para ferras.pt — desenvolvimento web, WordPress, PHP, Vue 3, WooCommerce e landing pages.
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  ferras
Tags:         custom-colors, custom-logo, full-width-template, block-patterns, responsive-layout
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ==========================================================
   Design Tokens
========================================================== */
:root {
  --fb-black:        #0d0d0d;
  --fb-white:        #fafaf8;
  --fb-cream:        #f4f1eb;
  --accent: 		 #ff6a3e;
  --accent-light:	 #ff6a3e4d;
  --accent-dark:	 #8f2809;
  --fb-gray-100:     #f0ede6;
  --fb-gray-200:     #d8d5ce;
  --fb-gray-400:     #9c9990;
  --fb-gray-600:     #5c5a57;
  --fb-green:        #1a7a4a;
  --fb-green-light:  #e3f5ec;
  --fb-font-serif:   'DM Serif Display', Georgia, serif;
  --fb-font-sans:    'DM Sans', system-ui, sans-serif;
  --fb-radius-sm:    8px;
  --fb-radius-md:    14px;
  --fb-radius-lg:    20px;
  --fb-radius-xl:    24px;
  --fb-accent: 		 #ff6a3e !important;
}

/* ==========================================================
   Reset & Base
========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fb-font-sans);
  background: var(--fb-white);
  color: var(--fb-black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================
   Typography
========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fb-font-serif);
  line-height: 1.2;
  color: var(--fb-black);
}

p { line-height: 1.7; }

/* WordPress content area */
.entry-content h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.entry-content h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 0.9rem; }
.entry-content h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.75rem; }
.entry-content p  { margin-bottom: 1.25rem; color: var(--fb-gray-600); }
.entry-content ul, .entry-content ol { list-style: initial; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content a  { color: var(--fb-accent); text-decoration: underline; }
.entry-content a:hover { color: var(--fb-accent-dark); }
.entry-content blockquote {
  border-left: 3px solid var(--fb-accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--fb-gray-600);
  font-style: italic;
}

/* ==========================================================
   Utilitários partilhados (usados pelo plugin e pelo tema)
========================================================== */
.fb-section-eyebrow {
  display: block;
  font-family: var(--fb-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fb-accent);
  margin-bottom: 0.75rem;
}

.fb-section-title {
  font-family: var(--fb-font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--fb-black);
}

.fb-btn-primary {
  display: inline-block;
  background: var(--fb-black);
  color: var(--fb-white) !important;
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  font-family: var(--fb-font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.fb-btn-primary:hover { background: var(--fb-accent); transform: translateY(-2px); }

.fb-btn-outline {
  display: inline-block;
  border: 1.5px solid var(--fb-gray-200);
  color: var(--fb-black) !important;
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: border-color 0.2s;
  background: transparent;
  cursor: pointer;
}
.fb-btn-outline:hover { border-color: var(--fb-black); }

@keyframes fb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ==========================================================
   Layout
========================================================== */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main    { flex: 1; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Gutenberg align full */
.wp-block-group.alignfull,
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* ==========================================================
   Skip link (acessibilidade)
========================================================== */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--fb-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 9999;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================
   Barra de Admin WP (compensa altura)
========================================================== */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ==========================================================
   Scroll animation helper (aplicado via JS)
========================================================== */
.fb-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
nav {
    position: relative !important;
}