/*
Theme Name: Tons de Prata
Theme URI: https://tonsdeprata.pt
Author: Agilstore
Author URI: https://agilstore.pt
Description: Tema personalizado para a ourivesaria Tons de Prata — Prata fina desde 1985.
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: tons-de-prata
Tags: ourivesaria, prata, joias, elegante, premium
*/

/* ========================================
   DESIGN TOKENS
   ======================================== */

:root {
    /* Cores */
    --light: #f4f6f8;
    --silver: #a8b8c8;
    --silver-deep: #6a7a8a;
    --charcoal: #1b1c1c;
    --gray-muted: #5a6068;
    --gray-light: #8a9098;
    --bg: #f4f6f8;
    --surface: #eef0f2;
    --fg: #1b1c1c;
    --muted: #5a6068;
    --border: #c8ced4;
    --accent: #7a9eb3;

    /* Tipografia */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', system-ui, sans-serif;

    /* Layout */
    --max-width: 1440px;
    --gap-section: 60px;
    --gap-section-lg: 80px;
    --px: 24px;
    --px-lg: 80px;
}

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

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    line-height: 1.5;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul,
ol {
    list-style: none;
}

*,
input,
textarea,
button {
    border-radius: 0 !important;
}

/* ========================================
   TIPOGRAFIA
   ======================================== */

.t-display-lg {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.t-headline-lg {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.2;
}

.t-headline-md {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 400;
    line-height: 1.3;
}

.t-body-lg {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.t-body {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.1vw, 16px);
    font-weight: 400;
    line-height: 1.5;
}

.t-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--px);
    padding-right: var(--px);
}

.section-pad {
    padding-top: var(--gap-section);
    padding-bottom: var(--gap-section);
}

/* ========================================
   HEADER / NAVEGAÇÃO
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transition: background 0.5s ease, box-shadow 0.5s ease;
    background: var(--light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.home .site-header {
    background: transparent;
    box-shadow: none;
}

.home .site-header.scrolled {
    background: var(--light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.site-logo {
    font-family: var(--font-display);
    font-size: clamp(20px, 1.8vw, 26px);
    letter-spacing: -0.02em;
    color: var(--charcoal);
    transition: color 0.5s ease;
}

.home .site-logo {
    color: var(--light);
}

.home .scrolled .site-logo {
    color: var(--charcoal);
}

.main-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.home .main-nav a {
    color: var(--light);
}

.home .scrolled .main-nav a {
    color: var(--charcoal);
}

.home .scrolled .main-nav a:hover {
    color: var(--accent);
}

/* Menu hamburger mobile */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--charcoal);
    transition: color 0.5s ease;
}

.home .menu-toggle {
    color: var(--light);
}

.home .scrolled .menu-toggle {
    color: var(--charcoal);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 32px;
    right: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
}

.mobile-menu-close svg {
    width: 28px;
    height: 28px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--charcoal);
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--accent);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--charcoal);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(27, 28, 28, 0.92) 0%, rgba(27, 28, 28, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-inner {
    width: 100%;
}

.hero-label {
    color: var(--accent);
    margin-bottom: 32px;
    display: block;
}

.hero-title {
    color: var(--light);
    margin-bottom: 32px;
}

.hero-text {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--border);
    max-width: 65ch;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.page-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    background-color: var(--charcoal);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    background-image: url('https://placehold.co/1920x300/1b1c1c/a8b8c8');
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(27, 28, 28, 0.92) 0%, rgba(27, 28, 28, 0.4) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.page-hero-title {
    color: var(--light);
    margin: 0;
}

.page-hero + .legal-page {
    padding-top: 80px;
}

/* ========================================
   BOTÕES
   ======================================== */

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--light);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--silver-deep);
    border-color: var(--silver-deep);
    color: var(--light);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border-color: var(--light);
}

.btn-outline:hover {
    background: var(--light);
    color: var(--charcoal);
}

.btn-dark {
    background: var(--charcoal);
    color: var(--light);
    border-color: var(--charcoal);
}

.btn-dark:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--light);
}

.btn-outline-dark {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-outline-dark:hover {
    background: var(--charcoal);
    color: var(--light);
}

/* ========================================
   SECÇÃO SOBRE
   ======================================== */

.about-section {
    background: var(--bg);
}

.about-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-image {
    aspect-ratio: 3 / 4;
    background: var(--surface);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-label {
    color: var(--accent);
    margin-bottom: 24px;
    display: block;
    text-align: center;
}

.about-title {
    color: var(--charcoal);
    margin-bottom: 32px;
    text-align: center;
}

.about-text {
    color: var(--muted);
    max-width: 65ch;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 24px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   SECÇÃO PRODUTOS / COLEÇÕES
   ======================================== */

.products-section {
    background: var(--bg);
}

.products-header {
    text-align: center;
    margin-bottom: 80px;
}

.products-header .t-label {
    color: var(--accent);
}

.products-header .t-headline-lg {
    color: var(--charcoal);
    margin-top: 16px;
}

.products-grid {
    display: grid;
    gap: 48px;
}

.product-card {
    text-align: center;
    cursor: pointer;
    display: block;
}

.product-card-image {
    aspect-ratio: 3 / 4;
    background: var(--surface);
    margin-bottom: 32px;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.product-card-price {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gray-light);
}

/* ========================================
   SECÇÃO SERVIÇOS
   ======================================== */

.services-section {
    background: var(--surface);
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-header .t-label {
    color: var(--accent);
}

.services-header .t-headline-lg {
    color: var(--charcoal);
    margin-top: 16px;
}

.services-grid {
    display: grid;
    gap: 32px;
}

.service-card {
    background: var(--bg);
    padding: 48px 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.service-card-icon {
    margin-bottom: 32px;
    color: var(--accent);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    background: var(--surface);
    transition: background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: var(--accent);
    color: var(--light);
}

.service-card-icon svg,
.service-card-icon .iconify {
    width: 28px;
    height: 28px;
}

.service-card-title {
    color: var(--charcoal);
    margin-bottom: 16px;
}

.service-card-desc {
    color: var(--muted);
}

/* ========================================
   SECÇÃO CONTACTO
   ======================================== */

.contact-section {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    gap: 64px;
}

.contact-label {
    color: var(--accent);
    margin-bottom: 24px;
    display: block;
}

.contact-title {
    color: var(--charcoal);
    margin-bottom: 48px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-label {
    color: var(--gray-light);
    margin-bottom: 8px;
}

.contact-info-value {
    color: var(--charcoal);
    white-space: pre-line;
}

/* Formulário */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--charcoal);
    padding-bottom: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    padding: 60px 0 40px 0;
    background-color: var(--charcoal);
    color: #FFFFFFCC;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-brand {
    flex: 1;
    gap: 16px;
}

.footer-brand-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--silver);
    letter-spacing: 0.9px;
    line-height: 1.5;
}

.footer-brand-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 22.4px;
    color: #FFFFFFCC;
}

.footer-brand-image {
    display: block;
    max-width: 300px;
    margin-top: 4px !important;
}

.footer-heading {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.75px;
    line-height: 1.5;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: #FFFFFFCC;
    transition: color 0.3s ease;
    display: inline-block;
    line-height: 1.5;
}

.footer-links a:hover {
    color: var(--silver);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

.footer-copyright,
.footer-developer {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: #FFFFFFCC;
    line-height: 1.5;
}

/* ========================================
   PÁGINAS LEGAIS (Política, Litígios)
   ======================================== */

.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--bg);
}

.legal-page-title {
    color: var(--charcoal);
    margin-bottom: 48px;
}

.legal-page-content {
    max-width: 800px;
}

.legal-page-content h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 28px);
    color: var(--charcoal);
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-page-content h3 {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.5vw, 22px);
    color: var(--charcoal);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-page-content p {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 16px;
}

.legal-page-content ul,
.legal-page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-page-content li {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 8px;
    list-style: disc;
}

.legal-page-content a {
    color: var(--accent);
}

.legal-page-content a:hover {
    color: var(--silver-deep);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

[data-scroll-hidden] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-scroll-visible] {
    opacity: 1;
    transform: translateY(0);
}

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

@media (min-width: 768px) {
    :root {
        --px: 40px;
    }

    .section-pad {
        padding-top: var(--gap-section-lg);
        padding-bottom: var(--gap-section-lg);
    }

    .main-nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 48px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 96px;
    }

    .footer-grid {
        flex-direction: row;
        gap: 24px;
    }

    .footer-col {
        width: 250px;
        flex-shrink: 0;
    }

    .footer-col-brand {
        flex: 1;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero-inner {
        width: 60%;
    }
}

@media (min-width: 1024px) {
    :root {
        --px: 80px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}

/* ========================================
   WORDPRESS ESPECÍFICO
   ======================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.alignwide {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

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