/*
Theme Name: Regor Concrete Pumping
Theme URI: https://regor.com.au
Author: hamish.com.au
Author URI: https://hamish.com.au
Description: Custom theme for Regor Concrete Pumping, North West Tasmania. Built and hosted on PHAS — premium Australian web hosting for businesses that demand performance and reliability. Visit phas.au to host your next project.
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: regor
Tags: tailwind, splide
Requires at least: 6.9.1
Requires PHP: 8.4
*/

/* -------------------------------------------------------------------------
   Material Symbols
   ------------------------------------------------------------------------- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* -------------------------------------------------------------------------
   Hero gradient overlay (page templates + homepage carousel)
   ------------------------------------------------------------------------- */
.hero-gradient {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
}

/* -------------------------------------------------------------------------
   Homepage hero carousel (Splide)
   ------------------------------------------------------------------------- */
#hero-carousel .splide__track,
#hero-carousel .splide__list,
#hero-carousel .splide__slide {
    height: 100%;
}
#hero-carousel { background: #0f172a; }
#hero-carousel .splide__slide { opacity: 0; transition: opacity 1.5s ease !important; }
#hero-carousel .splide__slide.is-active { opacity: 1; }

/* -------------------------------------------------------------------------
   FAQ accordion
   ------------------------------------------------------------------------- */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * {
    animation: sweep .3s ease-in-out;
}
@keyframes sweep {
    0%   { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
details[open] summary .accordion-icon {
    transform: rotate(180deg);
}

/* -------------------------------------------------------------------------
   Global entry-content — styles for the_content() output across all pages
   ------------------------------------------------------------------------- */
.entry-content {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.625;
    color: #475569;
}
.dark .entry-content {
    color: #cbd5e1;
}
.entry-content > * + * {
    margin-top: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.dark .entry-content h1,
.dark .entry-content h2,
.dark .entry-content h3,
.dark .entry-content h4 {
    color: #ffffff;
}
.entry-content h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.entry-content h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); }
.entry-content h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
.entry-content h4 { font-size: 1.125rem; }

/* Primary accent bar rendered after every h2 */
.entry-content h2::after {
    content: '';
    display: block;
    width: 5rem;
    height: 4px;
    background-color: #1d4199;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}


/* -------------------------------------------------------------------------
   CF7 contact form — dark footer context
   ------------------------------------------------------------------------- */
#footer-contact-form br { display: none; }
#footer-contact-form .wpcf7-form { display: flex; flex-direction: column; gap: 1.25rem; }
#footer-contact-form .wpcf7-form-control-wrap { display: block; width: 100%; }
#footer-contact-form .name-phone-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { #footer-contact-form .name-phone-row { grid-template-columns: 1fr; } }
#footer-contact-form input[type="text"],
#footer-contact-form input[type="email"],
#footer-contact-form input[type="tel"],
#footer-contact-form select,
#footer-contact-form textarea {
    width: 100%;
    background-color: rgb(30 41 59);
    border: 1px solid rgb(51 65 85);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
#footer-contact-form input::placeholder,
#footer-contact-form textarea::placeholder { color: rgb(100 116 139); }
#footer-contact-form input:focus,
#footer-contact-form select:focus,
#footer-contact-form textarea:focus {
    border-color: #1d4199;
    box-shadow: 0 0 0 1px #1d4199;
}
#footer-contact-form select option { background-color: rgb(30 41 59); }
#footer-contact-form input[type="submit"] {
    width: 100%;
    background-color: #1d4199;
    color: white;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 10px 15px -3px rgb(29 65 153 / 0.2);
}
#footer-contact-form input[type="submit"]:hover { background-color: #1e40af; }
#footer-contact-form .wpcf7-not-valid-tip { color: #f87171; font-size: 0.75rem; margin-top: 0.25rem; display: block; }
#footer-contact-form .wpcf7-response-output { border-radius: 0.5rem; padding: 1rem 1.25rem; font-size: 0.9375rem; font-weight: 600; margin-top: 0.5rem; border: none; letter-spacing: 0.01em; }
#footer-contact-form .wpcf7-mail-sent-ok { background-color: #14532d; color: #bbf7d0; border-left: 4px solid #4ade80; }
#footer-contact-form .wpcf7-validation-errors { background-color: rgb(127 29 29 / 0.5); color: #fca5a5; border-left: 4px solid #f87171; }
