/*
Theme Name: Lar Pronto
Theme URI: https://larpronto.com.br
Author: Lar Pronto Team
Author URI: https://larpronto.com.br
Description: Tema WordPress profissional para venda de projetos arquitetônicos com integração WooCommerce. Desenvolvido especificamente para produtos digitais de arquitetura. Baseado no visual do ProjetoProonto.com.br.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: projetoarq
Tags: e-commerce, woocommerce, architecture, digital-products, responsive, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===================================
   CSS VARIABLES - DESIGN SYSTEM
   =================================== */

:root {
  /* Colors - Dark Blue / Orange / Dark Text */
  --color-primary: #ff660e;
  --color-primary-dark: #e0621a;
  --color-primary-light: #ff8c4a;
  --color-secondary: #023047;
  --color-secondary-dark: #012A3B;
  --color-secondary-light: #034C6A;
  --color-accent: #ff660e;
  --color-accent-light: #FFF3EC;
  --color-accent-dark: #CC5A17;
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  --color-cream: #F5F8FA;
  --color-beige: #E2EDF2;
  --color-taupe: #C9D6DE;
  --color-brown: #023047;

  /* Neutral colors */
  --color-neutral: #444444;
  --color-neutral-light: #666666;
  --color-neutral-dark: #222222;

  /* Grays */
  --color-gray-100: #F8F9FA;
  --color-gray-200: #EEF0F2;
  --color-gray-300: #DEE2E6;
  --color-gray-400: #CED4DA;
  --color-gray-500: #999999;
  --color-gray-600: #666666;
  --color-gray-700: #444444;
  --color-gray-800: #333333;
  --color-gray-900: #222222;

  /* Semantic colors */
  --color-text: #222222;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-surface: #F5F8FA;
  --color-surface-alt: #EEF0F2;
  --color-border: #DEE2E6;
  --color-border-hover: #ff660e;

  /* Typography - Larger for better readability */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-size-xs: 13px;
  --font-size-sm: 15px;
  --font-size-base: 17px;
  --font-size-md: 19px;
  --font-size-lg: 22px;
  --font-size-xl: 28px;
  --font-size-2xl: 38px;
  --font-size-3xl: 52px;
  --font-size-4xl: 64px;
  --font-size-5xl: 80px;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  --spacing-3xl: 96px;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1300px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-gray-800);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

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

/* ===================================
   UTILITY CLASSES
   =================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}
.container .container {
  padding: 0;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

.section-padding {
  padding: var(--spacing-xxl) 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-gray {
  background-color: var(--color-gray-100);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-xl);
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  line-height: 1.5;
}

.btn-primary {
  background-color: #ff660e;
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #e0621a;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 112, 29, 0.3);
}

.btn-secondary {
  background-color: var(--color-accent);
  color: var(--color-brown);
}

.btn-secondary:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-brown);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: transparent;
  color: #ff660e;
  border: 2px solid #ff660e;
}

.btn-outline-primary:hover {
  background-color: #ff660e;
  color: var(--color-white);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-brown);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
}

.btn-md {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--font-size-sm);
}

/* ===================================
   WORDPRESS CORE CLASSES
   =================================== */

.alignleft {
  float: left;
  margin-right: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.alignright {
  float: right;
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-md);
}

.alignwide {
  max-width: var(--container-wide);
}

.alignfull {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  margin-top: var(--spacing-xs);
  text-align: center;
}

.sticky {
  /* Styles for sticky posts */
}

.bypostauthor {
  /* Styles for post author */
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: var(--color-gray-100);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  clip: auto !important;
  color: var(--color-secondary);
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 86px;
    right: 16px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 48, 71, 0.3);
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 102, 14, 0.4);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

.woocommerce-cart .wc-block-components-totals-wrapper, .wp-block-woocommerce-checkout-order-summary-block, .wc-block-cart .wc-block-cart__totals-title, .wc-block-cart .wc-block-components-totals-footer-item {
  border: 0 !important;
}
.wc-block-cart .wc-block-components-totals-footer-item {
  font-size: 20px !important;
}

.entry-header h1 { font-size: var(--font-size-2xl); text-align: center; margin: 60px auto 40px; }
.entry-wrapper .wp-block-heading { font-size: var(--font-size-2xl); }
.entry-content ol, .entry-content ul {margin-left:40px;}
.wp-singular .faq-section {
    padding: 0;
    background: none;
}
.wp-singular .faq-section .section-header { display: none; }
.wp-singular .faq-item {  
    border: 1px solid #eee;
}
.wp-singular .faq-cta {
  margin-bottom: var(--spacing-xl);
}
.wc-block-components-order-summary .wc-block-components-order-summary-item {
    flex-direction: column !important;
}
.wc-block-components-order-summary .wc-block-components-order-summary-item__image, .wc-block-components-order-summary .wc-block-components-order-summary-item__image>img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}
.wc-block-components-order-summary .wc-block-components-order-summary-item__description{
  padding: 10px 0 !important;
}

.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total, .is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total, .is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-row-start: 1;
    position: relative;
    width: 100%;
}
.wc-block-cart-item__total-price-and-sale-badge-wrapper {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 40px;
    left: 100%;
}
.gallery-main-img,
.lightbox-image {
  display: block;
  width: 100%;
  height: auto;
}
.single-product-container {
    max-width: 100% !important;
    margin: 0 auto;
}

/* ===================================
   RESPONSIVE TYPOGRAPHY
   =================================== */

@media (max-width: 767px) {
  :root {
    --font-size-4xl: 32px;
    --font-size-3xl: 28px;
    --font-size-2xl: 24px;
    --font-size-xl: 20px;
  }

  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }

  .section-padding {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xxl: 48px;
    --spacing-3xl: 64px;
  }

  .container,
  .container-wide {
    padding: 0 var(--spacing-sm);
  }
}
