/*
Theme Name: Twenty Twenty-Four [Grill-Landia Skin]
Theme URI: 
Description: The Twenty Twenty-Four theme with CSS override to match GrillLandia's theme
Author: You
Author URI: 
Template: twentytwentyfour
Version: 1.0
*/

/* ----- 1. GLOBAL VARIABLES & RESETS ----- */
:root {
    --gl-red: #ce0000;
    --gl-red-dark: #a30000;
    --gl-gray-bg: #f8f8f8;
    --gl-border: #e0e0e0;
    --gl-text-dark: #1e1e1e;
    --gl-text-light: #4a4a4a;
    --gl-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --gl-transition: all 0.25s ease;
}

/* Base body style – cleaner, more spacious */
body {
    background-color: #ffffff;
    color: var(--gl-text-dark);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Headings – more compact, bold, with subtle spacing */
h1, h2, h3, h4, .wp-block-heading {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ----- 2. PRIMARY COLOR (RED) OVERRIDES ----- */
/* Links */
a,
.wp-block-post-title a,
.wp-block-navigation-item a {
    color: var(--gl-text-dark);
    text-decoration: none;
    transition: var(--gl-transition);
}
a:hover,
.wp-block-post-title a:hover {
    color: var(--gl-red);
}

/* Buttons – primary */
.wp-block-button__link,
button,
input[type="submit"],
.wp-block-search__button,
.contact-form button[type="submit"] {
    background-color: var(--gl-red) !important;
    color: white !important;
    border-radius: 0px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1.75rem !important;
    transition: var(--gl-transition) !important;
    border: none !important;
}
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--gl-red-dark) !important;
    transform: translateY(-2px);
}

/* Outline button – red border */
.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--gl-red) !important;
    border: 2px solid var(--gl-red) !important;
}
.is-style-outline .wp-block-button__link:hover {
    background: var(--gl-red) !important;
    color: white !important;
}

/* ----- 3. HEADER & NAVIGATION (Grill-Landia inspired) ----- */
.wp-block-site-title a {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--gl-text-dark);
}
.wp-block-site-title a:hover {
    color: var(--gl-red);
}

/* Navigation menu – uppercase, clean */
.wp-block-navigation-item__label {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.wp-block-navigation__submenu-icon {
    color: var(--gl-text-dark);
}

/* ----- 4. CARD / GRID STYLE (like Grill-Landia product blocks) ----- */
.wp-block-group,
.wp-block-columns,
.wp-block-cover,
.wp-block-post-template li {
    transition: var(--gl-transition);
}

/* Cards with subtle border and hover lift */
.wp-block-post-template.wp-block-post-template li,
.wp-block-query .wp-block-post,
.wp-block-group.group-card {
    border: 1px solid var(--gl-border);
    background: #ffffff;
    box-shadow: var(--gl-shadow);
    transition: var(--gl-transition);
}
.wp-block-post-template li:hover,
.wp-block-query .wp-block-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

/* Feature / stat blocks (like "1 день", "2 года") */
.wp-block-group.has-background,
.wp-block-cover {
    background-color: var(--gl-gray-bg) !important;
}
.stats-number,
.wp-block-group .wp-block-heading strong {
    color: var(--gl-red);
    font-size: 2rem;
}

/* ----- 5. FORMS & ANTI-SPAM (like original) ----- */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    border: 1px solid var(--gl-border);
    background: #ffffff;
    padding: 0.75rem 1rem;
    width: 100%;
    border-radius: 0;
    transition: var(--gl-transition);
}
input:focus,
textarea:focus {
    border-color: var(--gl-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(206, 0, 0, 0.2);
}

/* anti-spam label */
.wpcf7-form label,
.contact-form label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

/* ----- 6. TESTIMONIAL / REVIEW SECTION (inspired by "Елена") ----- */
.wp-block-quote,
.wp-block-pullquote {
    border-left: 4px solid var(--gl-red);
    padding: 1rem 1.5rem;
    background: var(--gl-gray-bg);
    font-style: normal;
}
.wp-block-quote cite,
.wp-block-pullquote cite {
    color: var(--gl-red);
    font-weight: 600;
    margin-top: 0.75rem;
    display: inline-block;
}

/* ----- 7. FOOTER – DARKER, WITH RED ACCENTS ----- */
footer.wp-block-group,
.wp-block-site-footer {
    background-color: #111111;
    color: #cccccc;
    border-top: 3px solid var(--gl-red);
}
footer a,
footer .wp-block-navigation-item a {
    color: #dddddd;
}
footer a:hover {
    color: var(--gl-red);
}

/* Address & contact info (like Grill-Landia map section) */
footer .wp-block-group address,
.contact-address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ----- 8. GALLERY / MAP / IMAGES (borderless, full width taste) ----- */
.wp-block-image img,
.wp-block-gallery figure img {
    border-radius: 0;
    transition: transform 0.3s ease;
}
.wp-block-image:hover img {
    transform: scale(1.02);
}

/* ----- 9. MISC – BADGES, STATS, "Гарантия", "Скорость" ----- */
.is-style-default .wp-block-button__link {
    border-radius: 0px;
}
/* Highlight numbers like "9 из 10" */
.highlight-number,
.wp-block-group .has-large-font-size {
    color: var(--gl-red);
    font-weight: 800;
}

/* ----- 10. RESPONSIVE TOUCHES ----- */
@media (max-width: 768px) {
    .wp-block-button__link,
    button {
        width: 100%;
        text-align: center;
    }
    h1 {
        font-size: 2rem;
    }
}


/* Make CF7 full width of container */
.wpcf7-form {
    width: 100%;
    max-width: 100%;
}

/* Make all form elements full width */
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    box-sizing: border-box;
}

/* Keep labels and text normal width */
.wpcf7-form label {
    width: 100%;
    display: block;
}

/* Submit button - keep its natural size or make it full width (your choice) */
.wpcf7-submit {
    width: auto; /* natural width */
    /* OR use this for full width button: */
    /* width: 100%; */
}

/* For checkbox and radio groups - don't force them full width */
.wpcf7-checkbox,
.wpcf7-radio {
    width: auto !important;
}

/* For inline elements like checkboxes */
.wpcf7-list-item {
    display: inline-block;
    margin-right: 20px;
}

/* Make form groups take full width */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}