/**
 * Additional Custom Styles for Đèn LED Vinhomes Theme
 */

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Form input styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
}

/* Button hover effects */
button,
.btn,
a.btn {
    cursor: pointer;
    user-select: none;
}

/* Disable text selection on buttons */
button *,
.btn *,
a.btn * {
    pointer-events: none;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* WordPress admin bar adjustment */
/* Desktop: Admin bar is fixed, header sits below it */
body.admin-bar .site-header {
    top: 32px !important;
}

/* Mobile: Hide admin bar completely to avoid scroll jank */
@media screen and (max-width: 782px) {
    #wpadminbar {
        display: none !important;
    }

    body.admin-bar .site-header {
        top: 0 !important;
    }

    html {
        margin-top: 0 !important;
    }
}

/* WordPress alignment classes */
.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;
}

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

.wp-caption-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
    text-align: center;
}

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

.screen-reader-text:focus {
    background-color: hsl(var(--background));
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: hsl(var(--foreground));
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Print styles */
@media print {

    .site-header,
    .mobile-menu,
    #contact,
    .site-footer {
        display: none;
    }
}