/*
Theme Name: Coderial
Author: Coderial
Description: A clean, modern WordPress theme with parallax hero, accent color support, and professional layout - inspired by the Coderial web design.
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: coderial
Tags: one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --coderial-primary: #a52868;
    --coderial-primary-dark: #8a1f56;
    --coderial-primary-light: #c43a7e;
    --coderial-dark: #212529;
    --coderial-gray: #6c757d;
    --coderial-gray-light: #f8f9fa;
    --coderial-white: #ffffff;
    --coderial-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --coderial-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --coderial-transition: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--coderial-dark);
    background-color: var(--coderial-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--coderial-primary);
    text-decoration: none;
    transition: var(--coderial-transition);
}

a:hover {
    color: var(--coderial-primary-dark);
    text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1140px;
}

/* ========= HEADER / NAVBAR ========= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--coderial-white);
    box-shadow: var(--coderial-shadow);
}

.site-header .container {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.site-logo {
    display: inline-block;
    margin-right: 1.5rem;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.nav-primary {
    margin-left: auto;
}

.nav-primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-primary li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--coderial-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: none;
    text-decoration: none;
    transition: var(--coderial-transition);
}

.nav-primary li a:hover,
.nav-primary li.current-menu-item a,
.nav-primary li.current_page_item a {
    color: var(--coderial-primary);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--coderial-dark);
    margin: 5px 0;
    transition: var(--coderial-transition);
}

/* ========= HERO SECTION ========= */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 10rem 0 15rem;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    margin-left: auto;
    text-align: right;
}

.hero-content h1 {
    color: var(--coderial-white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content h1 .accent {
    color: var(--coderial-primary);
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    padding: 0.75rem 1.75rem;
    font-size: 1.125rem;
    line-height: 1.5;
    border-radius: 0;
    transition: var(--coderial-transition);
}

.btn-primary {
    background-color: var(--coderial-primary);
    border-color: var(--coderial-primary);
    color: var(--coderial-white);
}

.btn-primary:hover {
    background-color: var(--coderial-primary-dark);
    border-color: var(--coderial-primary-dark);
    color: var(--coderial-white);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--coderial-primary);
    color: var(--coderial-primary);
}

.btn-secondary:hover {
    background-color: var(--coderial-primary);
    border-color: var(--coderial-primary);
    color: var(--coderial-white);
    text-decoration: none;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.25rem;
}

/* ========= TEXT + IMAGE SECTION ========= */
.text-image-section {
    padding: 4rem 0;
}

.text-image-section .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-11 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.text-image-section .text-col {
    padding: 2rem 15px;
}

.text-image-section .text-col h3 {
    margin-bottom: 1rem;
}

.text-image-section .text-col p {
    color: var(--coderial-gray);
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--coderial-primary);
    width: 100%;
    margin: 1.5rem 0 2rem;
}

.text-image-section .image-col {
    padding: 2rem 15px;
}

.text-image-section .image-col img {
    display: block;
    margin: 0 auto;
    border-radius: 0;
}

/* ========= SERVICES PAGE ========= */
.page-header {
    padding: 3rem 0 2rem;
    background-color: var(--coderial-gray-light);
}

.page-header h1 {
    margin: 0;
}

.services-section {
    padding: 4rem 0;
}

.service-card {
    margin-bottom: 4rem;
}

.service-card .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.service-card .image-col {
    padding: 1rem 15px;
}

.service-card .image-col img {
    display: block;
    margin: 0 auto;
    border-radius: 0;
    max-width: 400px;
}

.service-card .text-col {
    padding: 1rem 15px;
}

.service-card .text-col h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card .text-col .card-divider {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.service-card .text-col p {
    color: var(--coderial-gray);
}

/* ========= QUOTES CAROUSEL ========= */
.quotes-section {
    padding: 4rem 0;
    background-color: var(--coderial-gray-light);
}

.quotes-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.quote-carousel {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.quote-carousel blockquote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--coderial-gray);
    margin-bottom: 1rem;
    padding: 1rem 0;
}

.quote-carousel cite {
    font-style: normal;
    font-weight: 600;
    color: var(--coderial-dark);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-controls button {
    background: none;
    border: 1px solid var(--coderial-gray);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    color: var(--coderial-gray);
    transition: var(--coderial-transition);
}

.carousel-controls button:hover {
    border-color: var(--coderial-primary);
    color: var(--coderial-primary);
}

/* ========= ABOUT PAGE ========= */
.about-section {
    padding: 4rem 0;
}

.about-section h3 {
    margin-bottom: 1rem;
}

.about-section .about-divider {
    border: 0;
    border-top: 1px solid var(--coderial-primary);
    margin: 1.5rem 0;
}

.team-section {
    padding: 4rem 0;
    background-color: var(--coderial-gray-light);
}

.team-card {
    text-align: center;
    max-width: 350px;
    margin: 0 auto;
}

.team-card img {
    border-radius: 50%;
    margin-bottom: 1rem;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.team-card h4 {
    margin-bottom: 0.25rem;
}

.team-card .role {
    color: var(--coderial-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-card p {
    color: var(--coderial-gray);
    font-size: 0.95rem;
}

/* ========= CONTACT PAGE ========= */
.contact-section {
    padding: 4rem 0;
}

.contact-form {
    max-width: 600px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--coderial-primary);
    box-shadow: 0 0 0 0.2rem rgba(165, 40, 104, 0.25);
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.contact-info-list li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
}

.contact-info-list li::before {
    position: absolute;
    left: 0;
    font-family: "FontAwesome", sans-serif;
}

/* ========= FOOTER ========= */
.site-footer {
    background-color: var(--coderial-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0 0;
}

.footer-social {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--coderial-white);
    margin: 0 0.25rem;
    transition: var(--coderial-transition);
}

.footer-social a:hover {
    background-color: var(--coderial-primary);
    color: var(--coderial-white);
    text-decoration: none;
}

.footer-address {
    text-align: center;
    margin-bottom: 0.5rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-contact li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--coderial-primary-light);
    text-decoration: none;
}

.footer-logo {
    text-align: center;
    padding: 1.5rem 0;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    opacity: 0.9;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========= BLOG ========= */
.blog-section {
    padding: 4rem 0;
}

.post-card {
    margin-bottom: 3rem;
    background: var(--coderial-white);
    box-shadow: var(--coderial-shadow);
}

.post-card .post-thumbnail {
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .post-body {
    padding: 1.5rem;
}

.post-card .post-body h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-card .post-body h2 a {
    color: var(--coderial-dark);
}

.post-card .post-body h2 a:hover {
    color: var(--coderial-primary);
    text-decoration: none;
}

.post-card .post-meta {
    font-size: 0.875rem;
    color: var(--coderial-gray);
    margin-bottom: 1rem;
}

.post-card .post-excerpt {
    color: var(--coderial-gray);
}

/* ========= 404 ========= */
.error-404 {
    padding: 6rem 0;
    text-align: center;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--coderial-primary);
}

/* ========= RESPONSIVE ========= */
@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .offset-lg-1 { margin-left: 8.333333%; }
    .offset-lg-5 { margin-left: 41.666667%; }
}

@media (max-width: 991px) {
    .nav-primary ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--coderial-white);
        box-shadow: var(--coderial-shadow);
        padding: 1rem;
    }

    .nav-primary ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: 450px;
        padding: 6rem 0 8rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-section {
        padding: 4rem 0 5rem;
        min-height: 350px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

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

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--coderial-gray);
    text-align: center;
    padding: 0.5rem 0;
}

.alignleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.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;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-item {
    flex: 1 0 auto;
}

.sticky {
    background-color: var(--coderial-gray-light);
    padding: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    color: var(--coderial-dark);
}

.pagination a:hover {
    background-color: var(--coderial-primary);
    border-color: var(--coderial-primary);
    color: var(--coderial-white);
    text-decoration: none;
}

.pagination .current {
    background-color: var(--coderial-primary);
    border-color: var(--coderial-primary);
    color: var(--coderial-white);
}

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-author {
    font-weight: 600;
}

.comment-content {
    margin-top: 0.5rem;
}

.comment-reply-link {
    font-size: 0.875rem;
}

#respond {
    margin-top: 2rem;
}

#respond .comment-form input,
#respond .comment-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #dee2e6;
    font-family: inherit;
}

#respond .comment-form input:focus,
#respond .comment-form textarea:focus {
    outline: none;
    border-color: var(--coderial-primary);
}

#respond .submit {
    background-color: var(--coderial-primary);
    color: var(--coderial-white);
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: var(--coderial-transition);
}

#respond .submit:hover {
    background-color: var(--coderial-primary-dark);
}
