/*
Theme Name: M.A. Giardini
Theme URI: https://magiardini.it
Author: M.A. Giardini
Author URI: https://magiardini.it
Description: Professional garden and landscape care theme for M.A. Giardini.
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: ma-giardini
Tags: one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* ===== DESIGN TOKENS ===== */
:root {
    --bg-clean: #FFFFFF;
    --bg-soft: #F4F7F5;
    --brand-green: #0E7A24;
    --brand-active: #16A34A;
    --text-dark: #111827;
    --text-muted: #4B5563;
    --radius-smooth: 12px;
    --radius-pill: 9999px;
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Hanken Grotesk', sans-serif;
    background-color: var(--bg-clean);
    color: var(--text-dark);
    font-weight: 400;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

/* ===== LAYOUT CONTAINER ===== */
.ma-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .ma-container {
        padding: 0 4rem;
    }
}

/* ===== COMPONENT: LEAF BULLET ===== */
.leaf-bullet::before {
    content: "eco";
    font-family: 'Material Symbols Outlined';
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: var(--brand-green);
    vertical-align: middle;
}

/* Custom leaf list (About page) */
.custom-leaf-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.custom-leaf-list li::before {
    content: 'eco';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0;
    top: 2px;
    color: #0e7a24;
    font-size: 1.25rem;
}

/* ===== MATERIAL SYMBOLS ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* ===== COMPONENT: TONAL CARD ===== */
.tonal-card {
    background-color: var(--bg-soft);
    border-radius: var(--radius-smooth);
    transition: all 0.3s ease;
}

.tonal-card:hover {
    background-color: var(--bg-clean);
    box-shadow: 0 20px 40px rgba(14, 122, 36, 0.04);
    border: 1px solid #E2EAE5;
    transform: translateY(-4px);
}

/* ===== COMPONENT: PRIMARY PILL BUTTON ===== */
.btn-pill-primary {
    background-color: var(--brand-green);
    color: white;
    border-radius: var(--radius-pill);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-pill-primary:hover {
    transform: scale(1.03);
    background-color: var(--brand-active);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.ma-reveal-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ma-reveal-in.is-visible,
.ma-reveal-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PORTFOLIO GRID: ASYMMETRIC MASONRY ===== */
/* Every 3rd item spans 2 columns */
.ma-portfolio-loop-grid>div:nth-child(3n) {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .ma-portfolio-loop-grid>div:nth-child(3n) {
        grid-column: span 1;
    }
}

/* ===== PROJECT CARD HOVER OVERLAY ===== */
.project-card:hover .project-overlay {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== ABOUT PAGE UTILITY ===== */
.round-eight {
    border-radius: 0.5rem;
}

/* ===== CONTACT FORM FOCUS STYLES ===== */
input:focus,
textarea:focus {
    outline: none;
    border-bottom-color: #0E7A24 !important;
}

/* ===== NAVIGATION: WORDPRESS MENU OVERRIDES ===== */
/* Reset default WP nav menu styles */
.ma-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ma-main-nav ul li a {
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 500;
    color: #3f4a3d;
    text-decoration: none;
    transition: color 0.2s;
}

.ma-main-nav ul li a:hover,
.ma-main-nav ul li.current-menu-item>a {
    color: #005f17;
}

.ma-main-nav ul li.current-menu-item>a {
    font-weight: 700;
    border-bottom: 2px solid #005f17;
    padding-bottom: 4px;
}

/* Hide sub-menus by default (simple top-level nav) */
.ma-main-nav ul ul {
    display: none;
}

/* ===== CUSTOM LOGO — RESPONSIVE SCALING ===== */
/* Ensures logos uploaded via Appearance → Customize → Site Identity
   scale cleanly inside the max-w-[140px] / max-w-[180px] wrapper. */
.custom-logo-link img {
    width: 100%;
    max-width: 80px;
    height: auto;
    display: block;
    object-fit: contain;
}

.pt-20 {
    padding-top: 0rem !important;
}