/* ==========================================================================
   Casey & Meaney — modern skin
   ==========================================================================
   Loaded LAST, after the theme's own sheets (allstyles.css, style.css,
   responsive.css, site.css) so it can override them. Keeps the original
   markup untouched; only presentation changes.

   What it does:
     - fluid, responsive layout (the theme used fixed pixel widths)
     - a modern header (sticky, crisp menu, proper mobile menu panel)
     - a rebuilt hero slider that keeps its text on mobile
     - card-based service / project grids with consistent image crops
     - clean form, footer and page-header styling
     - responsive breakpoints that fix the old mobile bugs

   Palette: brand teal #106481 kept as primary; deep navy for dark bands;
   a restrained amber used only as a small accent (underlines, active dots,
   CTA hovers).
   ========================================================================== */

:root {
    --teal: #106481;
    /* brand primary */
    --teal-600: #0E5C74;
    --teal-700: #0B4256;
    /* hover */
    --navy: #0C2430;
    /* dark bands: topbar, page header, footer */
    --navy-deep: #071C26;
    --ink: #1C2B33;
    /* headings / body text */
    --slate: #5F6F78;
    /* muted text */
    --soft: #F4F6F7;
    /* section background (was #F5F5F5) */
    --line: #E4E9EB;
    /* borders (was #E2E6E7) */
    --amber: #F2A900;
    /* small accent */
    --white: #FFFFFF;
    --radius: 10px;
    --shadow-sm: 0 1px 2px rgba(12, 36, 48, 0.06), 0 4px 14px rgba(12, 36, 48, 0.07);
    --shadow-md: 0 12px 32px rgba(12, 36, 48, 0.14);
    --container: 1200px;
}

/* -------------------------------------------------------------- base */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

.site-container,
body {
    max-width: 100%;
}

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

p {
    color: var(--ink);
    line-height: 1.7;
}

strong {
    color: var(--ink);
    font-weight: 600;
}

a {
    transition: color 0.2s ease;
}

a:hover img {
    opacity: 1;
    /* the theme dims images on hover; our cards use shadows instead */
}

::selection {
    background: rgba(16, 100, 129, 0.18);
}

:focus-visible {
    outline: 3px solid rgba(16, 100, 129, 0.55);
    outline-offset: 2px;
}

/* -------------------------------------------------- fluid containers */

/* The theme fixes .row/.header/.header-top-bar/.announcement to 1170px and
   then to shrinking pixel widths at each breakpoint. Replace that whole
   ladder with one fluid container that scales to the viewport. */
.row,
.header,
.header-top-bar,
.announcement {
    width: auto;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.row.full-width {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Nested rows inside columns carry no page gutter — the parent grid cell
   already sits inside the gutter. */
.column .row {
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

@media screen and (min-width: 768px) and (max-width: 1189px) {

    .row,
    .header,
    .header-top-bar,
    .announcement {
        max-width: 100%;
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media screen and (max-width: 767px) {

    .row,
    .header,
    .header-top-bar,
    .announcement {
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* --------------------------------------------------------- typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', Arial, sans-serif;
    color: var(--ink);
    margin-top: 0;
}

h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: 1px;
}

h2 {
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: 1px;
}

h3 {
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 700;
}

h4 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

p.description,
div.description {
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    padding: 0;
    margin-top: 18px;
    color: var(--slate);
}

p.description.t1,
div.description.t1 {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--slate);
}

/* Section headings: uppercase, spaced, with a teal-to-amber underline. */
h2.box-header,
h3.box-header,
h4.box-header {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink);
}

h2.box-header {
    text-align: center;
}

h2.box-header::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--teal) 0 64%, var(--amber) 64% 100%);
}

h2.box-header.align-left::after,
.box-header.align-left::after {
    margin-left: 0;
}

/* The about-split image was a hard circle; a rounded card fits better. */
.image-wrapper img.radius {
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/* The theme's thinner h4 underline is fine but adjust its offset. */
h4.box-header::after {
    width: 44px;
    height: 3px;
    margin-top: 12px;
}

/* -------------------------------------------------------------- header */

/* Sticky header: sticks once the top bar has scrolled away. */
.header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    padding: 18px 0;
    box-shadow: 0 1px 0 var(--line);
}

.header-container .vertical-align-table {
    display: block;
}

.header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex-wrap: nowrap;
}

.header .vertical-align-cell {
    display: block;
}

/* Desktop: no hamburger — the full menu is shown instead. */
.header .mobile-menu-switch,
.mobile-menu,
.mobile-menu-divider {
    display: none;
}

.header .logo {
    width: auto;
    margin-right: auto;
    flex: 0 0 auto;
}

.header .logo img {
    max-width: 260px;
    height: auto;
}

/* Desktop menu — heavier, spaced, clearly clickable. */
.sf-menu {
    float: none;
}

.sf-menu li a,
.sf-menu li a:visited {
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 1.6px;
    color: #3A4A53;
    padding: 20px 0 20px 34px;
    text-transform: uppercase;
}

.sf-menu li:hover a,
.sf-menu li:hover a:visited,
.sf-menu a:hover,
.sf-menu a:visited:hover {
    color: var(--teal);
    text-decoration: none;
}

.sf-menu li.current-menu-item>a,
.sf-menu li.selected>a {
    color: var(--teal);
    position: relative;
}

.sf-menu li.current-menu-item>a::after,
.sf-menu li.selected>a::after {
    content: "";
    position: absolute;
    left: 34px;
    right: 0;
    bottom: 12px;
    height: 2px;
    background: var(--amber);
}

body .header-container .menu-container .sf-menu>li:first-child>a {
    padding-left: 0;
}

body .header-container .menu-container .sf-menu>li:first-child.current-menu-item>a::after {
    left: 0;
}

/* --------------------------------------------------------- top bar */

.header-top-bar-container {
    background: var(--navy);
}

.header-top-bar {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
}

.header-top-bar .contact-details {
    float: right;
}

.header-top-bar .contact-details li {
    padding: 9px 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
}

.header-top-bar .contact-details li:first-child {
    border-left: none;
}

.header-top-bar .contact-details li::before {
    color: var(--amber);
    margin-right: 9px;
}

.header-top-bar .contact-details a {
    color: #FFFFFF;
    font-weight: 500;
}

.header-top-bar .contact-details a:hover {
    color: var(--amber);
    text-decoration: none;
}

.header-top-bar-container .header-toggle {
    display: none;
    color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------ buttons */

.more,
.more[type="submit"] {
    display: inline-block;
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: normal;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--teal);
    border: 2px solid var(--teal);
    border-radius: 6px;
    padding: 15px 26px 14px;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(11, 66, 86, 0.25);
    transition: background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.more:hover,
.more[type="submit"]:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-1px);
}

.more.simple {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.9);
    color: #FFFFFF;
    box-shadow: none;
}

.more.simple:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--navy);
}

.more.small {
    padding: 11px 18px 10px;
    font-size: 12px;
}

/* -------------------------------------------------------------- slider */

.revolution-slider {
    height: clamp(380px, 58vw, 620px);
    background: var(--navy);
}

.revolution-slider .slide {
    z-index: 1;
}

/* Legibility scrim laid over the photo, under the text. */
.revolution-slider .slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(8, 34, 47, 0.82) 0%,
            rgba(8, 34, 47, 0.55) 45%,
            rgba(8, 34, 47, 0.15) 78%,
            rgba(8, 34, 47, 0.35) 100%);
    pointer-events: none;
}

.revolution-slider .slide .slider-content-box {
    position: absolute;
    z-index: 2;
    top: auto;
    bottom: 44px;
    left: 0;
    width: auto;
    max-width: 580px;
    margin-left: 0;
    padding: 30px 36px 34px;
    background: rgba(8, 34, 47, 0.5);
    border-left: 4px solid var(--amber);
    border-radius: 0 12px 12px 0;
    backdrop-filter: blur(2px);
    white-space: normal;
}

.slider-content-box h2 {
    color: #FFFFFF;
    border-bottom: none;
    background: none;
    padding: 0 0 12px;
    font-size: clamp(22px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.25;
    text-shadow: 0 2px 14px rgba(7, 28, 38, 0.45);
}

.slider-content-box p {
    color: rgba(255, 255, 255, 0.97);
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    padding: 0 0 22px;
    text-shadow: 0 1px 10px rgba(7, 28, 38, 0.5);
}

.slider-content-box .more {
    margin-left: 0;
    background: var(--amber);
    border-color: var(--amber);
    color: var(--navy);
    box-shadow: 0 2px 0 rgba(120, 80, 0, 0.3);
}

.slider-content-box .more:hover {
    background: #E39F00;
    border-color: #E39F00;
    color: var(--navy);
}

.slider-dots {
    z-index: 3;
    bottom: 16px;
}

.slider-dots .slider-dot {
    border-color: rgba(255, 255, 255, 0.9);
    width: 12px;
    height: 12px;
}

.slider-dots .slider-dot.is-active {
    background: var(--amber);
    border-color: var(--amber);
}

/* -------------------------------------------- "get in touch" bar */

.row.full-width .announcement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding-top: 26px;
    padding-bottom: 26px;
}

.announcement ul.columns.no-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.announcement .column,
.announcement .column-right {
    float: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    width: auto;
}

.announcement .sl-small-wallet::before {
    float: none;
    font-size: 34px;
    line-height: 1;
    color: var(--teal);
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 50%;
}

.announcement h3 {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.announcement .description {
    margin: 0;
    color: var(--slate);
}

.announcement .more {
    white-space: nowrap;
}

/* ---------------------------------------------------------- services */

ul.services-list:not(.services-icons) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

ul.services-list:not(.services-icons) li {
    float: none;
    width: auto !important;
    height: auto;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding-bottom: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

ul.services-list:not(.services-icons) li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.services-list li a>img,
.services-list li img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.services-list li h4 {
    margin-top: 0;
    padding: 22px 22px 0;
    text-align: center;
}

.services-list li h4.box-header::after {
    margin-left: auto;
    margin-right: auto;
    margin-top: 14px;
}

.services-list li p {
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.6;
    padding: 12px 22px 0;
    text-align: center;
    color: var(--slate);
}

/* ------------------------------------------------ project grids */

.projects-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.projects-list li {
    float: none;
    width: auto !important;
    height: auto;
    margin-top: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.projects-list li>a {
    display: block;
}

.projects-list li a>img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    height: auto;
}

/* The isotope variant on the Projects page gets the same grid. */
.projects-list.isotope {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.projects-list.isotope li,
.projects-list.isotope li>a,
.projects-list.isotope a>img {
    width: auto;
    height: auto;
}

.projects-list.isotope li {
    margin-top: 0;
}

.projects-list.isotope li>a {
    display: block;
}

.projects-list.isotope a>img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Hover overlay on desktop: a soft scrim with a clear action. */
.projects-list li .view {
    background: linear-gradient(180deg,
            rgba(12, 36, 48, 0) 0%,
            rgba(12, 36, 48, 0.78) 100%);
    border-radius: 0 0 var(--radius) var(--radius);
}

.projects-list li:hover .view p.description {
    margin-bottom: 30px;
}

.projects-list li .view .more {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--navy);
    box-shadow: none;
}

/* -------------------------------------------------- isotope filters */

.tabs-navigation,
.tabs-navigation.small {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.tabs-navigation li {
    margin: 0 !important;
}

.tabs-navigation li a {
    min-width: 0;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--soft);
    border: 1px solid var(--line);
    color: var(--slate);
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tabs-navigation li a:hover {
    color: var(--teal);
    border-color: var(--teal);
    text-decoration: none;
}

.tabs-navigation li a.selected,
.tabs-navigation li a.selected:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #FFFFFF;
}

.tabs-navigation a::before {
    display: none;
}

.tabs-navigation.isotope-filters.margin-top-70 {
    margin-top: 36px;
}

/* ------------------------------------------------- page header band */

.page-header {
    background: var(--navy) !important;
}

.page-header .vertical-align-table,
.page-header .vertical-align-cell {
    display: block;
}

.page-header .row.full-width.padding-top-bottom-50 {
    padding-top: 58px;
    padding-bottom: 58px;
}

.page-header-left h1 {
    color: #FFFFFF;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: 2.5px;
    margin: 0;
}

.page-header-right {
    margin-top: 14px;
}

.bread-crumb-container label {
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.bread-crumb li,
.bread-crumb li a {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bread-crumb li a {
    color: var(--amber);
}

.bread-crumb li a:hover {
    text-decoration: none;
    color: #FFC53D;
}

.bread-crumb li.separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------- 2-col / 3-col rows */

/* Convert the theme's float columns into real grids. :has() is safe:
   unsupported browsers simply keep the old (still functional) floats. */
.row>.column,
.row>fieldset {
    margin-left: 0;
}

.row>.column {
    margin-top: 0;
}

.row.gray {
    background: var(--soft);
}

.row:has(> .column-1-3) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.row:has(> .column-1-2) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.row:has(> .column-1-3)>.column,
.row:has(> .column-1-2)>.column {
    float: none;
}

/* The main project-page split deserves a roomier gap. */
.theme-page>.clearfix>.row:has(> .column-1-2) {
    gap: 52px;
    grid-template-columns: 1.1fr 0.9fr;
}

/* --------------------------------------------------------- features */

.features-list li {
    margin-top: 34px;
}

.features-list li:before {
    float: left;
    font-size: 28px;
    line-height: 1;
    margin-right: 20px;
    margin-top: 2px;
    color: var(--teal);
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: 50%;
}

.features-list li h4 {
    font-size: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding-bottom: 6px;
}

.features-list li p {
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--slate);
}

/* Centered counters ("why choose us") */
.features-list.big li {
    text-align: center;
}

.features-list.big li:before {
    float: none;
    display: block;
    width: auto;
    font-size: 38px;
    margin: 0 auto 6px;
    padding: 22px;
    border-radius: 50%;
}

.features-list.big li .number {
    display: block;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--amber);
}

/* Bullet lists (check icons on About) */
ul.list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

ul.list li.template-bullet::before {
    flex: 0 0 auto;
    color: var(--teal);
    font-size: 18px;
    line-height: 24px;
}

/* ------------------------------- dark bands (parallax / testimonials) */

.parallax {
    background-color: rgba(10, 34, 46, 0.88);
    background-blend-mode: multiply;
}

.parallax h2,
.parallax h3,
.parallax .box-header {
    color: #FFFFFF;
}

.parallax .features-list li:before {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--amber);
}

.parallax .features-list.big li p,
.parallax p {
    color: rgba(255, 255, 255, 0.85);
}

/* Testimonials */
.testimonials-container {
    overflow: hidden;
}

.row .testimonials-list li {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-list p {
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 400;
    line-height: 1.7;
    color: #FFFFFF;
    padding: 34px 30px 0;
}

.testimonials-list .ornament::before {
    color: var(--amber);
}

.testimonials-list .author {
    color: var(--amber);
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 18px;
}

.testimonials-list .author-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 4px;
}

.slider-control {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.slider-control:hover {
    background: var(--amber);
}

/* ---------------------------------------------------------- accordion */

.accordion {
    border-top: 1px solid var(--line);
}

.accordion .ui-accordion-header {
    padding: 16px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-weight: 600;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.accordion .ui-accordion-header:hover {
    color: var(--teal);
}

.accordion .ui-accordion-header.ui-state-active {
    color: var(--teal);
}

.accordion .ui-accordion-header h5 {
    margin: 0;
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 16px;
}

.accordion .ui-accordion-header .ui-accordion-header-icon {
    color: var(--teal);
}

.accordion>li>p {
    margin: 0;
    padding: 14px 10px 22px;
}

/* ------------------------------------------------------------- tables */

table td,
table th {
    padding: 14px 20px;
    border-color: var(--line);
    font-size: 15.5px;
    color: var(--ink);
}

table tr:nth-child(odd) {
    background: #FAFBFC;
}

/* -------------------------------------------------------------- forms */

.contact-form .text-input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 24px;
    color: var(--ink);
    background: #FFFFFF;
    margin-bottom: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .text-input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(16, 100, 129, 0.16);
}

.contact-form ::placeholder {
    color: #8A9AA3;
    opacity: 1;
}

/* --------------------------------------------------------------- map */

/* The map row on the contact page sits edge-to-edge; keep it inside the
   page gutter without relying on :has(). */
body.page-contact .theme-page>.clearfix>.row.full-width {
    padding-left: 24px;
    padding-right: 24px;
}

.contact-map {
    height: 400px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------- footer */

.row.yellow {
    background: var(--navy) !important;
}

.site-container>.row.yellow>.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    padding: 0;
    text-align: left;
}

.contact-details-list li::before {
    float: none !important;
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
    color: var(--amber);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 13px;
    margin-left: 0 !important;
    /* theme sets margin-left:auto below 1189px — flush left instead */
    margin-right: 16px !important;
    border-radius: 50%;
}

.contact-details-list li p {
    margin: 0;
    padding: 0;
    clear: none !important;
    /* theme centers these below 1189px — keep them left */
    text-align: left !important;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Ek Mukta', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.contact-details-list li p a {
    color: #FFFFFF;
    font-weight: 600;
}

.contact-details-list li p a:hover {
    color: var(--amber);
    text-decoration: none;
}

/* Copyright row — same dark ground, one tone deeper. */
.site-container>.row.align-center.padding-top-bottom-30 {
    background: var(--navy-deep);
    padding-top: 34px;
    padding-bottom: 40px;
}

.site-container>.row.align-center.padding-top-bottom-30 .copyright {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

.copyright a {
    color: rgba(255, 255, 255, 0.85);
}

.copyright a:hover {
    color: var(--amber);
}

/* --------------------------------------------------------- scroll top */

.scroll-top {
    width: 46px;
    height: 46px;
    padding: 0 !important;
    border-radius: 50%;
    background: var(--teal);
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.scroll-top:before,
.scroll-top::before {
    display: inline-block;
    line-height: 1;
    font-size: 20px;
    margin: 0;
    padding: 0;
}

.scroll-top:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ------------------------------------------------------------- 404 */

.page-404 .features-list.big h2,
.page-404 .features-list.big .description {
    color: var(--ink);
}

.page-404 .features-list.big h2.box-header::after {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Breakpoint overrides — defeat the theme's fixed pixel widths at each step
   (loaded after responsive.css, equal or higher specificity wins).
   ========================================================================== */

@media screen and (max-width: 1189px) {
    .header .logo img {
        max-width: 230px;
    }

    .sf-menu li a,
    .sf-menu li a:visited {
        padding: 18px 0 18px 26px;
    }

    .sf-menu li.current-menu-item>a::after {
        left: 26px;
    }

    /* responsive.css pushes the menu to its own row here; we keep it inline. */
    .menu-container {
        float: none;
        clear: none;
        width: auto;
        margin-top: 0;
    }
}

@media screen and (max-width: 1023px) {
    .theme-page>.clearfix>.row:has(> .column-1-2) {
        gap: 40px;
    }
}

@media screen and (max-width: 767px) {

    /* Containers — kill the 462px/300px fixed widths. */
    .header-top-bar,
    .header,
    .row,
    .announcement,
    .menu-container {
        width: 100%;
    }

    .header-container {
        padding: 6px 0 !important;
    }

    .header {
        flex-wrap: wrap;
        gap: 0;
        padding-top: 0;
        padding-bottom: 0;
        align-items: center;
    }

    .header .logo {
        width: auto;
        max-width: calc(100% - 60px);
    }

    .header .logo img {
        max-width: 100%;
        max-height: 38px !important;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    /* Hamburger — compact touch target, aligned with the logo. */
    a.mobile-menu-switch.vertical-align-cell {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
        margin: 0 0 0 auto !important;
        margin-top: 0 !important;
        float: none;
        border-radius: 6px;
        background: var(--soft);
        flex: 0 0 auto;
    }

    .mobile-menu-switch .line {
        width: 18px;
        height: 2px;
        margin: 2.5px 0;
        background: var(--navy);
        border-radius: 2px;
    }

    /* The mobile panel drops below the logo row. */
    .menu-container {
        order: 3;
        flex: 1 0 100%;
        margin-top: 0 !important;
    }

    .mobile-menu-container {
        display: block;
        margin-top: 10px;
        border-top: 1px solid var(--line);
    }

    .mobile-menu-container nav {
        float: none;
    }

    .mobile-menu li a {
        display: block;
        background: #FFFFFF;
        color: var(--ink);
        font-family: 'Ek Mukta', Arial, sans-serif;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 1.4px;
        line-height: 24px;
        text-transform: uppercase;
        padding: 16px 6px;
        margin: 0;
        border-bottom: 1px solid var(--line);
    }

    .mobile-menu li.current-menu-item>a {
        background: var(--soft);
        color: var(--teal);
        border-left: 4px solid var(--amber);
        padding-left: 8px;
    }

    .mobile-menu li.current-menu-item>a:hover {
        color: var(--teal);
    }

    /* Top bar stays visible, compact and horizontal on phones. */
    .header-top-bar {
        display: block !important;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 12px;
    }

    .header-top-bar-container .header-toggle {
        display: none !important;
    }

    .header-top-bar .contact-details {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 2px 6px;
        float: none;
        margin: 0;
    }

    .header-top-bar .contact-details li {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        padding: 2px 10px;
        border: none;
    }

    .header-top-bar .contact-details li::before {
        font-size: 12px;
        margin-right: 6px;
    }

    /* Hero — keep the heading, subtitle and button on screen. */
    .revolution-slider {
        height: clamp(360px, 92vw, 480px);
    }

    .revolution-slider .slide .slider-content-box {
        bottom: 34px;
        left: 0;
        right: 0;
        width: auto;
        max-width: 100%;
        margin: 0 18px;
        padding: 22px 24px 24px;
        border-radius: 0 10px 10px 0;
    }

    .slider-content-box h2 {
        font-size: clamp(19px, 5.6vw, 26px);
        letter-spacing: 1.2px;
    }

    .slider-content-box p {
        font-size: 15px;
        line-height: 1.55;
        padding-bottom: 16px;
        display: block;
        /* responsive.css hides it below 480px */
    }

    .slider-content-box .more {
        display: inline-block;
        /* responsive.css hides it below 767px */
        padding: 13px 22px 12px;
        font-size: 12px;
    }

    /* One-column stacks for the float grids. */
    .row:has(> .column-1-3),
    .row:has(> .column-1-2),
    .theme-page>.clearfix>.row:has(> .column-1-2) {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* …except paired project photos, which stay side by side. */
    .column .row:has(> .column-1-2) {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .column-1-2,
    .column-1-3,
    .column-2-3,
    .column-1-4,
    .column-3-4,
    .row-4-4 .column-1-4 {
        width: 100%;
    }

    .column-2-3 .column-1-2,
    .column-1-3 .column-1-2,
    .column-3-4 .column-1-2,
    .column-1-2 .column-1-2 {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    /* Home services: stacked cards with a generous tap target. */
    ul.services-list:not(.services-icons) {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Project grids: 2-up on mobile, full-width on very small phones. */
    .projects-list,
    .projects-list.isotope {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .projects-list.isotope {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Project tiles: always-visible caption instead of a hover overlay. */
    .projects-list li .view {
        position: static;
        display: block;
        height: auto;
        opacity: 1;
        background: none;
        padding: 12px 14px 14px;
        border-top: 1px solid var(--line);
        border-radius: 0;
        text-align: left;
    }

    .projects-list li .view p.description {
        color: var(--ink);
        font-size: 14.5px;
        font-weight: 600;
        line-height: 1.4;
        margin: 0 0 6px;
    }

    .projects-list li .view .more {
        display: inline-block;
        background: none;
        border: none;
        color: var(--teal);
        font-size: 12px;
        letter-spacing: 1.2px;
        padding: 0;
        box-shadow: none;
    }

    .projects-list li .view .more:hover {
        color: var(--teal-700);
        background: none;
        border: none;
        transform: none;
    }

    /* Feature rows stack cleanly. */
    .features-list li {
        margin-top: 28px;
    }

    /* Filter pills keep a comfortable size and wrap cleanly. */
    .tabs-navigation li a {
        min-width: 0;
        padding: 10px 18px;
    }

    .tabs-navigation li {
        margin: 0 !important;
    }

    /* Announcement bar stacks; the CTA goes full width. */
    .row.full-width .announcement {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .announcement .column,
    .announcement .column-right {
        margin-top: 0;
        margin-bottom: 0;
    }

    .announcement ul.columns.no-width {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .announcement .column-right {
        width: auto;
    }

    .announcement .column-right .vertical-align {
        display: flex;
        align-items: center;
    }

    .announcement .more {
        width: 100%;
    }

    /* Footer strip stacks with dividers; every row stays left-aligned. */
    .site-container>.row.yellow>.row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-container>.row.yellow .column {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 0;
        text-align: left;
    }

    .contact-details-list {
        margin: 0;
        padding: 0;
    }

    .contact-details-list li {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .contact-details-list li::before {
        float: none !important;
        margin-left: 0 !important;
        margin-right: 16px !important;
        margin-top: 2px !important;
        flex: 0 0 auto;
    }

    .contact-details-list li p {
        clear: none !important;
        text-align: left !important;
        font-size: 14.5px;
        margin: 0;
        padding: 0;
    }

    /* Page header: heading and breadcrumbs stack. */
    .page-header .row.full-width.padding-top-bottom-50 {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .page-header-right {
        margin-top: 18px;
    }

    /* Contact map keeps a sane height. */
    .contact-map {
        height: 300px;
    }

    /* Form actions go full width for a decent touch target. */
    .contact-form input.more[type="submit"] {
        width: 100%;
        margin-top: 6px;
    }

    .contact-form .row.align-right {
        text-align: left;
    }

    /* Footer contact bar has been dark for the whole page; soften it. */
    .header-top-bar {
        text-align: center;
    }
}

@media screen and (max-width: 479px) {

    /* Top bar stays visible and centered on small phones. */
    .header-top-bar {
        display: block !important;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .header-top-bar .contact-details li {
        padding: 3px 8px;
    }

    .projects-list,
    .projects-list.isotope {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .column .row:has(> .column-1-2) {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .slider-content-box .more {
        display: inline-block;
    }

    .testimonials-list p {
        padding: 26px 18px 0;
        font-size: 17px;
    }

    .tabs-navigation.small li a,
    .tabs-navigation li a {
        min-width: 0;
        padding: 10px 18px;
    }

    /* Filter pills become evenly sized full-width buttons. */
    .tabs-navigation,
    .tabs-navigation.small {
        flex-direction: column;
        align-items: stretch;
    }

    .tabs-navigation li a {
        display: block;
        width: 100%;
    }
}

/* --------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}