/* =====================================================================
   OAKLEY - DESIGN IMPROVEMENTS
   ---------------------------------------------------------------------
   Loaded AFTER the original template (style.css), so it only refines
   the look. The original colours and branding are kept:
     --theme-color : #1397D5 (Oakley blue)
     --color-dark  : #19232B
   Delete this file's <link> in app/Views/layouts/main.php to go back
   to the original look.
   ===================================================================== */

:root {
    --radius: 14px;
    --radius-sm: 8px;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.22);
    --glass-blur: blur(12px);
    --shadow-soft: 0 10px 30px rgba(25, 35, 43, 0.08);
    --shadow-hover: 0 18px 40px rgba(19, 151, 213, 0.18);
    --theme-color-dark: #0f7fb5;
}

html,
body {
    font-family: 'Source Sans Pro', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: #ffffff;
    color: var(--body-text-color);
    font-size: 17px;
    line-height: 1.75;
}

.text-justify {
    text-align: justify;
}

/* Replaces the old inline "padding: 40px" on sections */
.section-tight {
    padding-top: 90px !important;
    padding-bottom: 90px !important;
}

.site-title {
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* ---------------------------------------------------------------------
   BUTTONS - softer corners, gentle lift on hover
   --------------------------------------------------------------------- */
.theme-btn {
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 18px rgba(19, 151, 213, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(19, 151, 213, 0.35);
}

.theme-btn::before {
    border-radius: var(--radius-sm);
}

/* Second hero button = glass outline button */
.theme-btn.theme-btn2 {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: none;
}

/* ---------------------------------------------------------------------
   HEADER
   --------------------------------------------------------------------- */
.header-top-contact ul li a,
.header-top-social span {
    font-size: 15px;
}

.custom-nav {
    border-radius: var(--radius) var(--radius) 0 0;
}

.navbar .nav-link {
    position: relative;
}

/* Sticky menu after scrolling = frosted glass */
.navbar.fixed-top {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 8px 30px rgba(25, 35, 43, 0.08);
}

.navbar.fixed-top .custom-nav {
    background: transparent;
}

.dropdown-menu {
    border: 1px solid rgba(25, 35, 43, 0.06);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 40px rgba(25, 35, 43, 0.12);
    padding: 8px;
    overflow: hidden;
}

.dropdown-menu .dropdown-item {
    border-radius: 6px;
}

.search-area {
    border-radius: var(--radius-sm);
}

.search-area .form-control {
    border-radius: 6px;
}

/* ---------------------------------------------------------------------
   HERO SLIDER - glass card behind the text
   --------------------------------------------------------------------- */
.hero-single {
    min-height: 640px;
}

.hero-single .hero-content {
    background: rgba(12, 22, 30, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 44px 44px 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.hero-single .hero-content .hero-sub-title {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(19, 151, 213, 0.18);
    border: 1px solid rgba(19, 151, 213, 0.45);
}

.hero-slider.owl-theme .owl-nav [class*=owl-] {
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

@media (max-width: 767px) {
    .hero-single {
        min-height: 0;
        padding-top: 110px;
        padding-bottom: 90px;
    }

    .hero-single .hero-content {
        padding: 26px 22px 30px;
        border-radius: var(--radius);
    }

    .hero-slider.owl-theme .owl-nav {
        display: none;
    }

    .hero-single .hero-content .hero-sub-title {
        letter-spacing: 2px;
        font-size: 14px;
    }

    .hero-btn {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-btn .theme-btn {
        white-space: nowrap;
        padding: 12px 16px;
        margin: 0 !important;
    }
}

/* ---------------------------------------------------------------------
   PAGE BANNER (inner pages)
   --------------------------------------------------------------------- */
.site-breadcrumb {
    padding-top: 130px;
    padding-bottom: 100px;
}

.site-breadcrumb::before {
    background: linear-gradient(120deg, rgba(25, 35, 43, 0.88) 20%, rgba(19, 151, 213, 0.55) 100%);
    opacity: 1;
}

.site-breadcrumb .breadcrumb-menu {
    display: inline-block;
    padding: 8px 22px;
    margin: 0;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.site-breadcrumb .breadcrumb-menu li.active {
    color: #7fd0f7;
}

@media (max-width: 991px) {
    .site-breadcrumb {
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .site-breadcrumb .breadcrumb-title {
        font-size: 34px;
    }
}

/* ---------------------------------------------------------------------
   ABOUT
   --------------------------------------------------------------------- */
.about-img img,
.choose-img img,
.contact-img img {
    border-radius: var(--radius);
}

.about-experience {
    border-radius: var(--radius);
}

.about-item {
    border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------
   SERVICE CARDS - equal height, rounded, soft hover
   --------------------------------------------------------------------- */
.service-area2 .row > [class*="col-"] {
    display: flex;
}

.service-item {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.service-item .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-item .service-text {
    flex: 1;
}

.service-item:hover {
    box-shadow: var(--shadow-hover);
}

.service-icon {
    border-radius: 0 0 var(--radius) 0;
}

/* ---------------------------------------------------------------------
   VIDEO
   --------------------------------------------------------------------- */
.video-area {
    margin-top: 0;
}

.video-wrapper video {
    display: block;
    object-fit: cover;
    max-height: 620px;
}

/* ---------------------------------------------------------------------
   WHY CHOOSE US
   --------------------------------------------------------------------- */
.choose-area {
    margin-top: 0;
}

.choose-item {
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.choose-item:hover {
    transform: translateY(-4px);
}

/* ---------------------------------------------------------------------
   CALL TO ACTION
   --------------------------------------------------------------------- */
.cta-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(19, 151, 213, 0.3);
}

.cta-number {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.cta-btn .theme-btn {
    box-shadow: 0 8px 20px rgba(25, 35, 43, 0.18);
}

/* ---------------------------------------------------------------------
   TESTIMONIALS - glass cards on the dark photo background
   --------------------------------------------------------------------- */
.testimonial-single {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius);
    padding: 30px 28px;
    min-height: 290px;
}

.testimonial-single::before {
    border-radius: 0 0 6px 6px;
    left: 30px;
    right: 30px;
}

.testimonial-quote p {
    color: rgba(255, 255, 255, 0.88);
    font-style: italic;
}

.testimonial-author-info h4 {
    color: #ffffff;
}

.testimonial-author-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ---------------------------------------------------------------------
   TEAM
   --------------------------------------------------------------------- */
.team-img img {
    border-radius: var(--radius);
}

.team-content {
    border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------
   COUNTERS
   --------------------------------------------------------------------- */
.counter-box {
    padding: 28px 18px;
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.counter-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

/* ---------------------------------------------------------------------
   NEWS CARDS
   --------------------------------------------------------------------- */
.blog-area .row > [class*="col-"] {
    display: flex;
}

.blog-item {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.blog-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.blog-item-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-date {
    font-size: 14px;
}

.blog-title {
    font-size: 21px;
}

/* ---------------------------------------------------------------------
   PRODUCTS PAGE
   --------------------------------------------------------------------- */
.product-area .row > [class*="col-"] {
    display: flex;
}

.product-card {
    width: 100%;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-card-img {
    position: relative;
    display: block;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-card-icon {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    border-radius: 12px;
    background: rgba(19, 151, 213, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.product-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-body h4 {
    font-size: 21px;
    margin-bottom: 8px;
}

.product-card-body h4 a {
    color: var(--color-dark);
}

.product-card-body p {
    flex: 1;
    font-size: 16px;
}

.product-card-link {
    font-weight: 700;
    color: var(--theme-color);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.product-card-link i {
    margin-left: 6px;
    transition: margin 0.25s ease;
}

.product-card-link:hover i {
    margin-left: 12px;
}

/* ---------------------------------------------------------------------
   DETAIL PAGES (service / product / news)
   --------------------------------------------------------------------- */
.detail-img img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 28px;
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.detail-title h2,
.detail-heading {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}

.detail-heading {
    margin-bottom: 14px;
}

.detail-icon {
    flex: 0 0 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #ffffff;
    background: var(--theme-color);
    border-radius: 14px;
}

.detail-lead {
    font-size: 20px;
    color: var(--color-dark);
    border-left: 4px solid var(--theme-color);
    padding-left: 16px;
    margin-bottom: 22px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-dark);
}

.detail-meta i {
    color: var(--theme-color);
    margin-right: 6px;
}

.sidebar-sticky {
    position: sticky;
    top: 110px;
}

.sidebar-card {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 28px;
    margin-bottom: 25px;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--theme-bg-light);
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    background: var(--theme-bg-light);
    color: var(--color-dark);
    font-weight: 600;
    transition: all 0.25s ease;
}

.sidebar-links li a i:first-child {
    font-size: 22px;
    color: var(--theme-color);
}

.sidebar-links li a:hover,
.sidebar-links li.active a {
    background: var(--theme-color);
    color: #ffffff;
}

.sidebar-links li a:hover i,
.sidebar-links li.active a i {
    color: #ffffff;
}

.sidebar-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, var(--color-dark) 0%, #22384a 100%);
}

.sidebar-cta h4 {
    color: #ffffff;
    font-weight: 700;
}

.sidebar-cta-icon {
    font-size: 44px;
    color: var(--theme-color);
    margin-bottom: 10px;
}

.sidebar-cta-phone {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    color: #ffffff;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.sidebar-news {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-news li a {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-info-color);
}

.sidebar-news li:last-child a {
    border-bottom: 0;
}

.sidebar-news img {
    width: 76px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.sidebar-news strong {
    display: block;
    color: var(--color-dark);
    line-height: 1.3;
    font-size: 16px;
}

.sidebar-news small {
    color: var(--body-text-color);
}

.sidebar-news small i {
    color: var(--theme-color);
}

@media (max-width: 991px) {
    .sidebar-sticky {
        position: static;
    }

    .detail-title h2,
    .detail-heading {
        font-size: 28px;
    }
}

/* ---------------------------------------------------------------------
   GALLERY
   --------------------------------------------------------------------- */
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.gallery-img img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.05);
}

.gallery-content::before {
    border-radius: 10px;
}

.gallery-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 14px;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    background: rgba(25, 35, 43, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    pointer-events: none;
}

.filter-btn {
    padding: 0;
}

.filter-btn li {
    border-radius: 50px;
}

/* ---------------------------------------------------------------------
   CONTACT / QUOTE
   --------------------------------------------------------------------- */
.contact-info {
    border-radius: var(--radius);
    height: calc(100% - 25px);
}

.contact-info-content p a {
    color: inherit;
}

.contact-wrapper {
    border-radius: 20px;
    overflow: hidden;
}

.contact-form .form-control,
.search-page-form .form-control {
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    border-color: rgba(25, 35, 43, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-control:focus,
.search-page-form .form-control:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 4px rgba(19, 151, 213, 0.12);
}

.contact-map iframe {
    display: block;
}

/* Form messages */
.site-alert {
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.site-alert ul {
    margin: 6px 0 0;
    padding-left: 22px;
    font-weight: 400;
}

.site-alert.success {
    background: #e8f7ee;
    color: #146c43;
    border: 1px solid #b7e4c7;
}

.site-alert.error {
    background: #fdecec;
    color: #b02a37;
    border: 1px solid #f5c2c7;
}

/* ---------------------------------------------------------------------
   SEARCH PAGE
   --------------------------------------------------------------------- */
.search-page-form {
    display: flex;
    gap: 10px;
}

.search-page-form .theme-btn {
    white-space: nowrap;
}

.search-result {
    display: block;
    padding: 22px 26px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-result:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.search-result h4 {
    color: var(--color-dark);
    margin: 6px 0;
}

.search-result p {
    margin: 0;
    color: var(--body-text-color);
}

.search-result-type {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--theme-color);
    background: rgba(19, 151, 213, 0.1);
    padding: 2px 10px;
    border-radius: 50px;
}

/* ---------------------------------------------------------------------
   PAGINATION (news list)
   --------------------------------------------------------------------- */
.pagination-wrap .pagination {
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-wrap .pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--theme-bg-light);
    color: var(--color-dark);
    font-weight: 600;
}

.pagination-wrap .pagination li.active a,
.pagination-wrap .pagination li a:hover {
    background: var(--theme-color);
    color: #ffffff;
}

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.subscribe-form .form-control {
    border-radius: var(--radius-sm);
}

.footer-alert {
    font-size: 15px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.footer-alert.success {
    background: rgba(25, 135, 84, 0.18);
    color: #9ee6bd;
}

.footer-alert.error {
    background: rgba(220, 53, 69, 0.18);
    color: #f5a3ab;
}

.staff-login {
    margin-left: 10px;
    opacity: 0.55;
    font-size: 14px;
}

.staff-login:hover {
    opacity: 1;
}

#scroll-top {
    border-radius: 50%;
}

/* ---------------------------------------------------------------------
   Respect visitors who prefer less motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
