/*!
Theme Name:  Suacua Theme
Theme URI:   https://suacua.com/
Author:      suacua.com
Author URI:  https://suacua.com/
Description: Theme chuyên nghiệp cho website dịch vụ sửa cửa suacua.com. Thiết kế theo phong cách "The Precision Architect" với Tailwind CSS, font Work Sans + Inter.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suacua
Tags:        custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fb;
    color: #191c1e;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .headline {
    font-family: 'Work Sans', sans-serif;
    letter-spacing: -0.02em;
}

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

a { color: inherit; text-decoration: none; }

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

/* === Glass Nav === */
.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(221, 193, 174, 0.15);
}

/* === Emergency / Gradient Button === */
.emergency-btn {
    background: linear-gradient(135deg, #904d00 0%, #ff8c00 100%);
    box-shadow: 0 24px 40px rgba(144, 77, 0, 0.15);
}

/* === Mobile Menu — collapse only at tablet/mobile === */
@media (max-width: 1060px) {
    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    #mobile-menu.open { max-height: 480px; }
}

/* === No-scrollbar utility === */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* === Selection === */
::selection {
    background-color: rgba(255, 140, 0, 0.2);
    color: #623200;
}

/* ============================================================
   WordPress Core Compatibility
   ============================================================ */
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.875rem;
    color: #564334;
    margin-top: 0.5rem;
    text-align: center;
}

.alignleft  { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem;  margin-bottom: 1rem; }
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}
img.alignleft, img.alignright { max-width: 50%; }

/* Sticky post */
.sticky .card-inner::before {
    content: "📌";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
}

/* Gallery */
.gallery { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.gallery-item { flex: 1 1 200px; overflow: hidden; border-radius: 0.5rem; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; }

/* Screen-reader text */
.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;
}
.screen-reader-text:focus {
    background-color: #f2f4f6;
    clip: auto !important;
    clip-path: none;
    color: #904d00;
    display: block;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Comment form */
.comment-respond .comment-form input,
.comment-respond .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #e0e3e5;
    border: none;
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: background 0.2s;
    margin-top: 0.25rem;
}
.comment-respond .comment-form input:focus,
.comment-respond .comment-form textarea:focus {
    background: #d8dadc;
    box-shadow: 0 0 0 2px rgba(144, 77, 0, 0.3);
}
.comment-respond .submit {
    background: linear-gradient(135deg, #904d00 0%, #ff8c00 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.comment-respond .submit:hover { opacity: 0.9; transform: scale(1.02); }

/* Comment list */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment { padding: 1.5rem 0; border-top: 1px solid rgba(221,193,174,0.15); }
.comment-list .comment-author img {
    border-radius: 9999px;
    margin-right: 0.75rem;
    vertical-align: middle;
}
.comment-list .reply a {
    font-size: 0.8rem;
    font-weight: 700;
    color: #904d00;
    text-decoration: underline;
}

/* Pagination */
.pagination .page-numbers,
.nav-links a, .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #564334;
    background: #eceef0;
    transition: background 0.2s, color 0.2s;
}
.pagination .page-numbers.current,
.nav-links span.current {
    background: linear-gradient(135deg, #904d00, #ff8c00);
    color: #fff;
}
.pagination .page-numbers:hover,
.nav-links a:hover {
    background: #904d00;
    color: #fff;
}
