/* ==========================================================================
   Bella Piscine — Modern design layer (aqua / water)
   Loaded AFTER style.css. Overrides the template's CSS variables so the whole
   site re-colors + re-types cleanly, then adds component polish on top.
   ========================================================================== */

/* -------- Design tokens ---------------------------------------------------- */
:root {
    --web-wash: #ffffff;
    --primary:  #0b2a33;   /* deep teal ink (text / dark surfaces)            */
    --secondary:#5c7b83;   /* muted teal (body copy)                          */
    --ternary:  #c9dde1;
    --gray:     #eef7f8;   /* light aqua wash for alt sections                */
    --border:   #dceaed;
    --accent:   #0ea5bb;   /* aqua                                            */

    /* extra helpers used by this layer */
    --aqua:      #13b7cf;
    --aqua-deep: #0b4f6c;
    --ink-soft:  #35505a;
    --shadow-sm: 0 6px 18px rgba(11, 42, 51, .08);
    --shadow-md: 0 18px 40px rgba(11, 42, 51, .14);

    --primary-font: 'Sora', system-ui, sans-serif;    /* headings */
    --secondary-font: 'Inter', system-ui, sans-serif; /* body     */
}

/* -------- Base typography -------------------------------------------------- */
body {
    font-family: var(--secondary-font);
    color: var(--secondary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.cs_hero_title, .cs_card_title, .cs_video_block_title {
    font-family: var(--primary-font);
    color: var(--primary);
    letter-spacing: -0.015em;
    line-height: 1.08;
}
h1, .cs_hero_title { font-weight: 700; }
h2 { font-weight: 700; }
h3, h4, h5 { font-weight: 600; }

/* Calmer section label: a short aqua rule instead of tracked-out caps */
.cs_section_subtitle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-transform: none;
    letter-spacing: .01em;
    font-weight: 600;
    color: var(--aqua-deep);
}
.cs_section_subtitle::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    display: inline-block;
}
.text-center .cs_section_subtitle { justify-content: center; }

/* -------- Buttons ---------------------------------------------------------- */
.cs_btn.cs_style_2 {
    background: linear-gradient(135deg, var(--aqua) 0%, var(--accent) 45%, var(--aqua-deep) 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 30px;
    box-shadow: 0 10px 24px rgba(14, 165, 187, .30);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.cs_btn.cs_style_2:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(14, 165, 187, .42);
    filter: saturate(1.05);
    color: #fff;
}
.cs_btn.cs_style_2 span i svg path { fill: #fff; }

/* -------- Header: translucent, blur, solid on scroll ----------------------- */
.cs_site_header.cs_style_1 {
    background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(11, 42, 51, .06);
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cs_site_header.cs_gescout_sticky {
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-sm);
    border-bottom-color: transparent;
}
.cs_nav .cs_nav_list > li > a {
    position: relative;
    color: var(--primary);
    font-weight: 600;
    transition: color .2s ease;
}
.cs_nav .cs_nav_list > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transition: width .25s ease;
}
.cs_nav .cs_nav_list > li > a:hover { color: var(--aqua-deep); }
.cs_nav .cs_nav_list > li > a:hover::after { width: 100%; }

.cs_main_header_right .cs_btn.cs_style_2 { padding: 11px 24px; }

/* -------- Hero ------------------------------------------------------------- */
.cs_hero.cs_style_1 { position: relative; }

/* teal gradient overlay replaces the flat 50% black */
.cs_hero_overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 36, 46, .30) 0%, rgba(5, 36, 46, .20) 35%, rgba(5, 36, 46, .72) 100%),
        linear-gradient(115deg, rgba(11, 79, 108, .45) 0%, rgba(14, 165, 187, .12) 60%);
    z-index: 1;
}
.cs_hero .container { z-index: 3; }
.cs_hero_title {
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
    letter-spacing: -0.02em;
}
.cs_hero_subtitle { color: #eafbfe !important; }

.cs_hero_btn_wrap { margin-top: 34px; }
.cs_hero_btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--aqua) 0%, var(--accent) 55%, var(--aqua-deep) 100%);
    color: #fff;
    font-family: var(--secondary-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
    padding: 15px 36px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(10, 60, 80, .45);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cs_hero_btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(10, 60, 80, .55);
    color: #fff;
}

/* wave spilling from the hero into the section below */
.cs_hero_wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 4;
    line-height: 0;
    pointer-events: none;
}
.cs_hero_wave svg { display: block; width: 100%; height: 90px; }
@media (max-width: 767px) { .cs_hero_wave svg { height: 48px; } }

/* -------- Counter / stats -------------------------------------------------- */
#counter-section .cs_about_feature_list_1 {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
#counter-section .cs_about_feature_list_1 > li {
    flex: 1 1 240px;
    max-width: 340px;
    background: var(--web-wash);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 38px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
#counter-section .cs_about_feature_list_1 > li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
#counter-section .counting {
    font-family: var(--primary-font);
    font-weight: 800;
    font-size: 54px;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 8px;
}
#counter-section .cs_about_feature_list_1 .fa { color: var(--aqua-deep); }

/* -------- Service / category cards ---------------------------------------- */
.cs_card.cs_style_1 .cs_card_thumb {
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-sm);
}
.cs_card.cs_style_1 .cs_card_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.cs_card.cs_style_1:hover .cs_card_thumb img { transform: scale(1.06); }
/* The template cross-fades TWO <img> (nth-child(1) is hidden until hover);
   we ship a single image, so keep that first image visible by default. */
.cs_card.cs_style_1 .cs_card_thumb img:nth-child(1) {
    position: relative; top: 0; left: 0;
    opacity: 1; filter: none; transform: none;
    width: 100%; height: 100%; object-fit: cover;
}
.cs_card.cs_style_1 .cs_card_thumb:hover img:nth-child(1) {
    opacity: 1; filter: none; transform: scale(1.06);
}
.cs_card.cs_style_1 .cs_card_thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,36,46,0) 45%, rgba(5,36,46,.55) 100%);
    opacity: .85;
    transition: opacity .3s ease;
}
.cs_card.cs_style_1 .cs_card_title a { color: var(--primary); transition: color .2s ease; }
.cs_card.cs_style_1:hover .cs_card_title a { color: var(--aqua-deep); }
.cs_card.cs_style_1 .cs_card_btn {
    background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
    color: #fff;
    box-shadow: 0 8px 18px rgba(14,165,187,.35);
    transition: transform .25s ease;
}
.cs_card.cs_style_1 .cs_card_btn:hover { transform: translateY(-2px) scale(1.05); color:#fff; }

/* -------- Service feature list check icons -------------------------------- */
.cs_list.cs_style_1 li svg path { fill: var(--accent); }

/* -------- Testimonials ----------------------------------------------------- */
.cs_testimonial.cs_style_3 {
    background: var(--web-wash);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 40px 36px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cs_testimonial.cs_style_3:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cs_testimonial.cs_style_3 .cs_quote_icon svg path { fill: var(--accent); opacity: .18; }
.cs_testimonial.cs_style_3 .cs_testimonial_avatar img {
    border-radius: 50%;
    width: 60px; height: 60px; object-fit: cover;
    border: 2px solid var(--accent);
}

/* -------- Video block ------------------------------------------------------ */
.cs_video_block.cs_style_1 .cs_play_btn svg path { fill: #fff; }
.cs_video_block.cs_style_1 .cs_video_block_title { color:#fff; }

/* -------- Footer tint ------------------------------------------------------ */
footer .cs_footer_logo img, .cs_footer img.cs_logo { filter: none; }

/* -------- Links accent ----------------------------------------------------- */
a { transition: color .2s ease; }

/* -------- Gallery: album index cards -------------------------------------- */
.cs_album_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}
.cs_album_card {
    display: block;
    background: var(--web-wash);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}
.cs_album_card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cs_album_card_media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.cs_album_card_media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.cs_album_card:hover .cs_album_card_media img { transform: scale(1.07); }
.cs_album_card_view {
    position: absolute;
    right: 16px; bottom: 16px;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
    color: #fff;
    opacity: 0; transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}
.cs_album_card:hover .cs_album_card_view { opacity: 1; transform: translateY(0); }
.cs_album_card_body { padding: 22px 24px 26px; }
.cs_album_card_title { font-size: 22px; margin: 0 0 6px; color: var(--primary); }
.cs_album_card_desc {
    margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* -------- Gallery: masonry lightbox grid ---------------------------------- */
.cs_masonry { columns: 3 280px; column-gap: 18px; }
.cs_masonry_item {
    display: block;
    position: relative;
    break-inside: avoid;
    margin: 0 0 18px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.cs_masonry_item img {
    width: 100%; height: auto; display: block;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.cs_masonry_item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,36,46,0) 55%, rgba(5,36,46,.45) 100%);
    opacity: 0; transition: opacity .3s ease;
}
.cs_masonry_item:hover img { transform: scale(1.05); }
.cs_masonry_item:hover::after { opacity: 1; }
.cs_masonry_item .cs_masonry_zoom {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: #fff; font-size: 22px;
    opacity: 0; transition: opacity .3s ease;
    z-index: 2;
}
.cs_masonry_item:hover .cs_masonry_zoom { opacity: 1; }
@media (max-width: 575px) { .cs_masonry { columns: 2 150px; column-gap: 12px; } .cs_masonry_item { margin-bottom: 12px; } }

/* -------- Motion & a11y ---------------------------------------------------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
