/*
Theme Name: Bengkel Per Purwokerto
Theme URI: https://bengkelshcokbreakermobil.my.id/
Author: Arum Sari
Author URI: https://bengkelshcokbreakermobil.my.id/
Description: Theme WordPress khusus Bengkel Per Purwokerto yang responsive, ringan, cepat, dan kompatibel dengan Yoast SEO.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bengkel-per-purwokerto
*/

/* ==================================================
   ROOT / COLOR PALETTE
================================================== */

:root {

    /* Warna dari website lama */
    --as-black: #000000;
    --as-navy: #003399;
    --as-cyan: #00b7cd;
    --as-dark: #1c1b1b;
    --as-blue: #1e00fe;
    --as-brown-black: #1f0a0c;
    --as-charcoal: #333333;

    --as-gray-700: #4b4f58;
    --as-gray-600: #808080;
    --as-gray-500: #8c8c8c;
    --as-gray-400: #a2a2a2;
    --as-gray-350: #aaaaaa;
    --as-gray-300: #bfbfbf;
    --as-gray-250: #c3c3c3;
    --as-gray-200: #cccccc;

    --as-red-dark: #d40000;
    --as-red: #e11b14;

    --as-gray-light: #eaeaea;
    --as-gray-blue: #eceff3;
    --as-gray-lighter: #efefef;
    --as-gray-soft: #f6f6f6;

    /* Warna utama theme */
    --as-primary: var(--as-red);
    --as-primary-dark: var(--as-red-dark);

    --as-heading: var(--as-dark);
    --as-text: var(--as-gray-700);

    --as-border: var(--as-gray-light);
    --as-background: var(--as-gray-soft);

    --as-container: 1200px;

    --as-radius-sm: 6px;
    --as-radius-md: 10px;
    --as-radius-lg: 16px;

    --as-transition: 0.25s ease;
}


/* ==================================================
   RESET
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;
    line-height: 1.6;

    color: var(--as-text);
    background: var(--as-background);

    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--as-primary);
    text-decoration: none;
    transition: var(--as-transition);
}

a:hover {
    color: var(--as-primary-dark);
}

button,
input,
textarea,
select {
    font: inherit;
}


/* ==================================================
   TYPOGRAPHY
================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--as-heading);

    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-top: 0;
}


/* ==================================================
   CONTAINER
================================================== */

.as-container {
    width: min(
        calc(100% - 40px),
        var(--as-container)
    );

    margin-inline: auto;
}


/* ==================================================
   ACCESSIBILITY
================================================== */

.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed !important;

    top: 15px;
    left: 15px;

    width: auto;
    height: auto;

    padding: 12px 18px;
    margin: 0;

    clip: auto !important;

    background: var(--as-dark);
    color: var(--as-gray-soft);

    z-index: 999999;
}

/* =========================================================
   GLOBAL COMPONENTS
========================================================= */

.section-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--as-red);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   GLOBAL RESPONSIVE SAFETY
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   ACCESSIBILITY FOCUS
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--as-red);
    outline-offset: 3px;
}


/* =========================================================
   WORDPRESS CONTENT SAFETY
========================================================= */

.entry-content,
.single-post__content,
.single-service__content,
.about-page__content {
    overflow-wrap: anywhere;
}

.entry-content iframe,
.single-post__content iframe,
.single-service__content iframe,
.about-page__content iframe {
    max-width: 100%;
}


/* =========================================================
   TABLES
========================================================= */

.entry-content table,
.single-post__content table,
.single-service__content table {
    width: 100%;

    border-collapse: collapse;
}

.entry-content th,
.entry-content td,
.single-post__content th,
.single-post__content td,
.single-service__content th,
.single-service__content td {
    padding: 12px;

    border: 1px solid var(--as-gray-light);

    text-align: left;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* =========================================================
   BUTTON
========================================================= */

.as-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 22px;

    border: 1px solid transparent;
    border-radius: var(--as-radius-sm);

    font-size: 14px;
    font-weight: 800;

    transition:
        background var(--as-transition),
        border-color var(--as-transition),
        color var(--as-transition),
        transform var(--as-transition);
}

.as-button:hover {
    transform: translateY(-1px);
}

.as-button--primary {
    background: var(--as-red);
    color: var(--as-gray-soft);
}

.as-button--primary:hover {
    background: var(--as-red-dark);
    color: var(--as-gray-soft);
}

.as-button--secondary {
    background: transparent;

    color: var(--as-dark);

    border-color: var(--as-gray-300);
}

.as-button--secondary:hover {
    color: var(--as-red);

    border-color: var(--as-red);
}

.as-button--light {
    background: var(--as-gray-soft);
    color: var(--as-red);
}

.as-button--light:hover {
    background: var(--as-gray-lighter);
    color: var(--as-red-dark);
}

.as-text-link {
    font-weight: 700;
}

/* ==================================================
   MAIN
================================================== */

.site-main {
    min-height: 60vh;

    padding-top: 60px;
    padding-bottom: 60px;
}

.as-content-card {
    padding: 32px;

    background: var(--as-gray-lighter);

    border: 1px solid var(--as-gray-light);
    border-radius: var(--as-radius-md);
}


/* ==================================================
   FOOTER
================================================== */

.site-footer {
    padding: 30px 0;

    background: var(--as-dark);
    color: var(--as-gray-300);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--as-gray-soft);
}

.site-footer a:hover {
    color: var(--as-red);
}


/* ==================================================
   RESPONSIVE DASAR
================================================== */

@media (max-width: 991px) {

    .site-header__inner {
        min-height: 68px;
    }
}

@media (max-width: 767px) {

    .as-container {
        width: min(
            calc(100% - 30px),
            var(--as-container)
        );
    }

    .site-main {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .as-content-card {
        padding: 22px;
    }
}

/* =========================================================
   BREADCRUMBS
========================================================= */

.site-breadcrumbs {
    padding: 13px 0;

    background: var(--as-gray-lighter);

    border-bottom: 1px solid var(--as-gray-light);
}

.breadcrumbs {
    color: var(--as-gray-600);

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   YOAST BREADCRUMBS
========================================================= */

.breadcrumbs--yoast a {
    color: var(--as-gray-700);

    font-weight: 600;
}

.breadcrumbs--yoast a:hover {
    color: var(--as-red);
}

.breadcrumbs--yoast
.breadcrumb_last {
    color: var(--as-dark);

    font-weight: 700;
}


/* =========================================================
   FALLBACK BREADCRUMBS
========================================================= */

.breadcrumb-list {
    display: flex;

    flex-wrap: wrap;
    align-items: center;

    gap: 0;

    margin: 0;
    padding: 0;

    list-style: none;
}

.breadcrumb-item {
    display: inline-flex;

    align-items: center;

    color: var(--as-gray-600);
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";

    margin: 0 9px;

    color: var(--as-gray-400);
}

.breadcrumb-item a {
    color: var(--as-gray-700);

    font-weight: 600;
}

.breadcrumb-item a:hover {
    color: var(--as-red);
}

.breadcrumb-item--current {
    color: var(--as-dark);

    font-weight: 700;
}


/* =========================================================
   MOBILE BREADCRUMBS
========================================================= */

@media (max-width: 767px) {

    .site-breadcrumbs {
        padding: 11px 0;
    }

    .breadcrumbs {
        font-size: 12px;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 7px;
    }

}

/* =========================================================
   GLOBAL HERO DECORATION
========================================================= */

.page-hero,
.blog-hero,
.service-archive__hero,
.single-service__hero {
    position: relative;
    overflow: hidden;

    isolation: isolate;
}


/* Decorative red bar */

.page-hero::before,
.blog-hero::before,
.service-archive__hero::before,
.single-service__hero::before {
    content: "";

    position: absolute;
    top: 0;
    right: 8%;

    width: 180px;
    height: 4px;

    background: var(--as-red);

    z-index: -1;
}


/* Large circle decoration */

.page-hero::after,
.blog-hero::after,
.service-archive__hero::after,
.single-service__hero::after {
    content: "";

    position: absolute;
    top: -145px;
    right: -80px;

    width: 340px;
    height: 340px;

    border: 46px solid rgba(225, 27, 20, 0.035);
    border-radius: 50%;

    z-index: -1;
    pointer-events: none;
}


/* Dot pattern */

.page-hero .as-container,
.blog-hero .as-container,
.service-archive__hero .as-container,
.single-service__hero .as-container {
    position: relative;
}


.page-hero .as-container::after,
.blog-hero .as-container::after,
.service-archive__hero .as-container::after {
    content: "";

    position: absolute;
    right: 40px;
    top: 50%;

    width: 90px;
    height: 90px;

    opacity: 0.22;

    background-image:
        radial-gradient(
            var(--as-red) 1.5px,
            transparent 1.5px
        );

    background-size: 12px 12px;

    transform: translateY(-50%);

    pointer-events: none;
}


/* Small accent beside eyebrow */

.page-hero .section-eyebrow,
.blog-hero .section-eyebrow,
.service-archive__hero .section-eyebrow,
.single-service__hero .section-eyebrow {
    position: relative;

    padding-left: 26px;
}


.page-hero .section-eyebrow::before,
.blog-hero .section-eyebrow::before,
.service-archive__hero .section-eyebrow::before,
.single-service__hero .section-eyebrow::before {
    content: "";

    position: absolute;
    left: 0;
    top: 50%;

    width: 16px;
    height: 2px;

    background: var(--as-red);

    transform: translateY(-50%);
}


/* Mobile */

@media (max-width: 767px) {

    .page-hero::after,
    .blog-hero::after,
    .service-archive__hero::after,
    .single-service__hero::after {
        width: 220px;
        height: 220px;

        top: -110px;
        right: -100px;

        border-width: 30px;
    }


    .page-hero .as-container::after,
    .blog-hero .as-container::after,
    .service-archive__hero .as-container::after {
        display: none;
    }

}