/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling for alignment */
body {
    font-family: 'Asap', sans-serif;
    line-height: 1.6;
    color: #666;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Container for layout */
.container {
    width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Row layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Header styles */
.ova-wrapp {
    overflow: hidden;
}

.wrap_ova_header {
    padding: 120px 0;
    background-size: cover;
    background-position: center center;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrap_ova_header .cover_color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.wrap_ova_header .ova_header_el {
    position: relative;
    z-index: 1;

    max-width: 900px;
    margin: 0 auto;
}

.wrap_ova_header .header_title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

/* Hero background class to avoid inline styles in HTML */
.hero-bg {
    /* Use a specific image from the images/ folder - no inline CSS needed in the HTML */
    background-image: url("images/Head.jpg");
}

/* Breadcrumbs styles */
.ovatheme_breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.ovatheme_breadcrumbs ul li {
    display: inline;
    color: #fff;
}

.ovatheme_breadcrumbs ul li a {
    color: #fff;
    text-decoration: none;
}

.ovatheme_breadcrumbs .separator {
    margin: 0 10px;
}

/* Main content styles */
.ova_sev_wrap {
    display: flex;
    padding: 80px 0;
}

.ova_sev_content {
    flex: 0 0 75%;
    max-width: 75%;
    padding-right: 30px;
}

.ova_sev_content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

.ova_sev_content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.ova-sev-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
}

.ova-list-sev .title-list-sev {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.ova-list-sev .title-list-sev svg {
    margin-right: 10px;
}

.ova-list-sev ul {
    list-style: none;
    padding: 0;
}

.ova-list-sev ul li {
    margin-bottom: 15px;
}

.ova-list-sev ul li a {
    text-decoration: none;
    color: #666;
}

.ova-list-sev ul li.active a {
    color: #0056b3;
    font-weight: bold;
}

/* Contact form styles */
.our-works-section {
    padding: 80px 0;
    background: #fff;
}

.works-header {
    text-align: center;
    margin-bottom: 60px;
}

.works-title {
    font-size: 42px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.works-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.works-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Works intro (placed above the images) */
.works-intro {
    text-align: center;
    margin: 30px 0 40px 0;
}
.works-intro-list {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 18px;
}
.works-intro-item {
    max-width: 340px;
    text-align: left;
}
.works-intro-item h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #222;
}
.works-intro-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Project blocks container grid */
.works-container {
    display: grid;
    /* Stable 3-column layout on wide viewports */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Project block styling: separate content and image groups */
.project-block {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.project-block h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    text-align: left;
}
.project-block p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    flex-grow: 1;
}
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 0;
    align-items: start;
}
.project-gallery img,
.project-gallery figure img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center center;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: block;
}

.project-gallery > * {
    display: block;
}

.project-gallery figure {
    padding: 0;
}

/* Larger gallery variant for featured project images */
.project-gallery--large {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.project-gallery--large img,
.project-gallery--large figure img {
    height: 220px;
}
.project-gallery--large figcaption {
    font-size: 12px;
    padding: 8px;
}

/* Figure + caption styling for project galleries */
.project-gallery figure {
    margin: 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}
.project-gallery figure img {
    height: 100px;
    width: 100%;
    object-fit: cover;
    display: block;
}
.project-gallery figcaption {
    padding: 6px 8px;
    font-size: 11px;
    color: #333;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    line-height: 1.3;
}

/* Debug banner + css-test class (used by debug script) */
#debug-banner {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 9999;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
}

/* A class used to verify whether the stylesheet is applied correctly */
.debug-css-check {
    color: rgb(17, 34, 51); /* deterministic color to read with JS */
}

.contact-form-section {
    background: #f4f4f4;
    padding: 2rem 0;
}

.contact-form-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0056b3;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contact-form button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Footer styles */
footer {
    background: #333;
    color: #fff;
    padding: 2rem 0 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
}

footer .footer-about,
footer .footer-contact,
footer .footer-links {
    flex: 1;
    margin-right: 2rem;
}

footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    text-decoration: none;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #555;
}

/* Make images responsive with smooth fade-in effect */
img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  /* Additional responsiveness styles here */
}

/* Fade-in keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive styles */
@media (max-width: 1200px) {
    .container {
        width: 970px;
    }
}

@media (max-width: 900px) {
    /* Switch to 2 columns on medium screens */
    .container {
        width: 750px;
    }
    .ova_sev_wrap {
        flex-direction: column;
    }
    .ova_sev_content,
    .ova-sev-sidebar {
        max-width: 100%;
        padding-right: 0;
    }
    .works-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .works-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 600px) {
    /* Single column on small/mobile screens */
    .container {
        width: 100%;
    }
    .works-title {
        font-size: 32px;
    }
    .works-description {
        font-size: 14px;
    }
    .works-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .works-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
