/*
Theme Name:   A.Collection Child
Theme URI:    https://www.acollectionmag.com
Description:  Child theme da A.Collection USA baseado no Hello Elementor
Author:       A.Collection USA
Author URI:   https://www.acollectionmag.com
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  acollection-child
*/

/* =============================================
   FONTES — Google Fonts (carregadas via functions.php)
   Cormorant Garamond — títulos, display, editorial
   Jost — corpo, labels, UI
   ============================================= */

/* =============================================
   DESIGN TOKENS — Variáveis globais
   ============================================= */
:root {
  --ac-off-white:   #efece5;
  --ac-sand:        #ccb393;
  --ac-sand-dark:   #b89a78;
  --ac-slate:       #687268;
  --ac-charcoal:    #232221;
  --ac-mid-gray:    #8a8a85;
  --ac-light-gray:  #c8c5bc;
  --ac-page-bg:     #f5f2eb;

  --ac-serif:  'Cormorant Garamond', Georgia, serif;
  --ac-sans:   'Jost', sans-serif;
}

/* =============================================
   RESET BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ac-sans);
  background-color: var(--ac-page-bg);
  color: var(--ac-charcoal);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   TIPOGRAFIA GLOBAL
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ac-serif);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ac-charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }

p {
  font-family: var(--ac-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: #3a3a38;
}

a {
  color: var(--ac-charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--ac-sand); }

em, i { color: var(--ac-sand); }

strong, b {
  font-weight: 600;
  color: var(--ac-charcoal);
}

blockquote {
  border-left: 2px solid var(--ac-sand);
  padding: 8px 0 8px 28px;
  margin: 44px 0;
  font-family: var(--ac-serif);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--ac-charcoal);
}

blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--ac-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ac-mid-gray);
  font-style: normal;
}

/* =============================================
   ELEMENTOR — OVERRIDES GLOBAIS
   ============================================= */

/* Remove padding padrão do Hello Elementor */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px;
}

/* Heading widget */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--ac-serif);
  font-weight: 300;
  line-height: 1.1;
}

/* Text editor widget */
.elementor-widget-text-editor p {
  font-family: var(--ac-sans);
  font-weight: 300;
  line-height: 1.9;
}

/* Image widget */
.elementor-widget-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Divider */
.elementor-widget-divider .elementor-divider-separator {
  border-color: var(--ac-light-gray);
}

/* Button */
.elementor-widget-button .elementor-button {
  font-family: var(--ac-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 12px 24px;
}

/* Form */
.elementor-widget-form input,
.elementor-widget-form textarea {
  font-family: var(--ac-sans);
  font-weight: 300;
  border-radius: 0;
  border-color: var(--ac-light-gray);
  background: transparent;
}

.elementor-widget-form input:focus,
.elementor-widget-form textarea:focus {
  border-color: var(--ac-sand);
  outline: none;
  box-shadow: none;
}

/* Nav Menu */
.elementor-nav-menu .elementor-nav-menu--main .elementor-item {
  font-family: var(--ac-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ac-light-gray);
  padding: 0;
}

.elementor-nav-menu .elementor-nav-menu--main .elementor-item:hover,
.elementor-nav-menu .elementor-nav-menu--main .elementor-item.elementor-item-active {
  color: var(--ac-sand);
}

/* Posts widget */
.elementor-widget-posts .elementor-post__title {
  font-family: var(--ac-serif);
  font-weight: 400;
  color: var(--ac-charcoal);
}

.elementor-widget-posts .elementor-post__excerpt p {
  font-size: 13px;
  color: #777;
}

/* =============================================
   COMPONENTES — Single Post
   ============================================= */

/* Drop cap — primeiro parágrafo do post */
.ac-drop-cap::first-letter,
.single-post .entry-content > p:first-of-type::first-letter {
  font-family: var(--ac-serif);
  font-size: 5.5rem;
  font-weight: 300;
  line-height: 0.75;
  float: left;
  margin: 6px 16px 0 0;
  color: var(--ac-sand);
  padding-top: 4px;
}

/* Intro / Chapeau */
.ac-chapeau {
  font-family: var(--ac-serif);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--ac-slate);
  border-bottom: 1px solid var(--ac-light-gray);
  padding-bottom: 40px;
  margin-bottom: 40px;
}

/* Pull quote */
.ac-pull-quote {
  border-left: 2px solid var(--ac-sand);
  padding: 8px 0 8px 28px;
  margin: 44px 0;
  font-family: var(--ac-serif);
  font-size: 1.45rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--ac-charcoal);
  position: relative;
}

.ac-pull-quote::before {
  content: '\201C';
  position: absolute;
  left: 20px;
  top: -18px;
  font-size: 4rem;
  font-family: var(--ac-serif);
  color: var(--ac-sand);
  opacity: 0.3;
  line-height: 1;
}

/* Highlight box */
.ac-highlight {
  background: var(--ac-off-white);
  border-left: 3px solid var(--ac-sand);
  padding: 28px 32px;
  margin: 40px 0;
}

.ac-highlight p {
  font-family: var(--ac-serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ac-charcoal);
  margin: 0;
}

/* Stats bar */
.ac-stat-number {
  font-family: var(--ac-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--ac-sand);
  line-height: 1;
  display: block;
}

.ac-stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ac-mid-gray);
  display: block;
  margin-top: 6px;
}

/* Category badge */
.ac-badge {
  display: inline-block;
  font-family: var(--ac-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ac-charcoal);
  background: var(--ac-sand);
  padding: 5px 14px;
}

/* Section eyebrow label */
.ac-eyebrow {
  font-family: var(--ac-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ac-sand);
}

/* Tags */
.ac-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ac-slate);
  border: 1px solid var(--ac-light-gray);
  padding: 5px 12px;
  margin: 4px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.ac-tag:hover {
  border-color: var(--ac-sand);
  color: var(--ac-charcoal);
}

/* Linha decorativa sand */
.ac-line {
  width: 48px;
  height: 1px;
  background: var(--ac-sand);
  display: block;
}

/* Reading progress bar */
.ac-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(204,179,147,0.15);
  z-index: 9999;
}

.ac-progress-fill {
  height: 100%;
  background: var(--ac-sand);
  width: 0%;
  transition: width 0.1s linear;
}

/* =============================================
   COMPONENTES — Cards
   ============================================= */
.ac-card {
  background: var(--ac-page-bg);
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ac-card:hover { opacity: 0.9; }

.ac-card-img {
  overflow: hidden;
}

.ac-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ac-card:hover .ac-card-img img {
  transform: scale(1.04);
}

.ac-card-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ac-sand);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ac-card-cat::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ac-sand);
}

.ac-card-title {
  font-family: var(--ac-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ac-charcoal);
  transition: color 0.2s;
}

.ac-card:hover .ac-card-title { color: var(--ac-slate); }

/* =============================================
   COMPONENTES — Navigation
   ============================================= */

/* Prev/Next post */
.ac-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--ac-light-gray);
  border-top: 2px solid var(--ac-sand);
}

.ac-post-nav-item {
  background: var(--ac-charcoal);
  padding: 36px 48px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s;
}

.ac-post-nav-item:hover { opacity: 0.8; }

.ac-post-nav-dir {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ac-sand);
  margin-bottom: 10px;
}

.ac-post-nav-title {
  font-family: var(--ac-serif);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.25;
  color: var(--ac-off-white);
}

/* =============================================
   COMPONENTES — Newsletter sidebar
   ============================================= */
.ac-newsletter-box {
  background: var(--ac-charcoal);
  padding: 28px 24px;
}

.ac-newsletter-box input {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid rgba(200,197,188,0.3);
  font-family: var(--ac-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ac-off-white);
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.ac-newsletter-box input:focus {
  border-color: var(--ac-sand);
}

.ac-newsletter-box button {
  width: 100%;
  padding: 11px;
  background: var(--ac-sand);
  color: var(--ac-charcoal);
  font-family: var(--ac-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.ac-newsletter-box button:hover {
  background: var(--ac-off-white);
}

/* =============================================
   HEADER FIXO
   ============================================= */
.ac-header-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ac-charcoal) !important;
  height: 60px;
  border-bottom: 1px solid rgba(204,179,147,0.15);
}

body {
  padding-top: 60px;
}

/* =============================================
   FOOTER
   ============================================= */
.ac-footer {
  background: var(--ac-charcoal);
  padding: 64px 60px 32px;
}

.ac-footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: rgba(138,138,133,0.6);
  letter-spacing: 0.05em;
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 1024px) {
  body { padding-top: 60px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  blockquote { font-size: 1.15rem; }
  .ac-drop-cap::first-letter { font-size: 4rem; }
  .ac-post-nav { grid-template-columns: 1fr; }
  .ac-post-nav-item { padding: 24px; }
}
