/* Styles added on top of css/theme.css and css/gdg.css */

:root {
    --adh-brown: rgba(83, 55, 39, 1);
    --adh-brown-soft: rgba(83, 55, 39, .08);
    --adh-icon-bg: #f4efeb;
    --adh-icon-bg-hover: #e9dfd7;
    --adh-topbar-bg: #f8f4f1;
    /* Same line weight for every icon, whatever its size or source (files or back office) */
    --adh-icon-stroke: 1.75px;
}

.adh-section-grid__icon svg *,
.adh-mobile-icon svg * {
    stroke-width: var(--adh-icon-stroke);
    vector-effect: non-scaling-stroke;
}

/* Section grid: COLLECTION mega menu, /collection page and home */
.adh-section-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.adh-section-grid li {
    display: block;
}
.adh-section-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 6px;
    color: #191919;
    text-align: center;
    transition: background-color .2s linear, color .2s linear;
}
.adh-section-grid a:hover,
.adh-section-grid a:focus-visible,
.adh-section-grid a.active {
    color: var(--adh-brown);
}
.adh-section-grid__icon {
    display: block;
    box-sizing: content-box;
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 50%;
    color: var(--adh-brown);
    background-color: var(--adh-icon-bg);
    transition: background-color .2s linear;
}
.adh-section-grid a:hover .adh-section-grid__icon,
.adh-section-grid a:focus-visible .adh-section-grid__icon,
.adh-section-grid a.active .adh-section-grid__icon {
    background-color: var(--adh-icon-bg-hover);
}
.adh-section-grid__icon svg {
    width: 100%;
    height: 100%;
}
.adh-section-grid__name {
    font-family: "Hind", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.adh-section-grid--large {
    gap: 16px;
}
.adh-section-grid--large .adh-section-grid__icon {
    width: 84px;
    height: 84px;
    padding: 12px;
}
.adh-section-grid--large .adh-section-grid__name {
    font-size: 15px;
}
@media (max-width: 1024px) {
    .adh-section-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .adh-section-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .adh-section-grid__icon {
        width: 52px;
        height: 52px;
        padding: 12px;
    }
    .adh-section-grid--large .adh-section-grid__icon {
        width: 68px;
        height: 68px;
        padding: 10px;
    }
}

/* Section photos (square JPEG from rcs/sections/): replace the icon circle with the same name below */
.adh-section-grid__icon--photo {
    width: 104px;
    height: 104px;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
    transition: box-shadow .2s linear;
}
.adh-section-grid__icon--photo img,
.adh-mobile-icon--photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.adh-section-grid a:hover .adh-section-grid__icon--photo,
.adh-section-grid a:focus-visible .adh-section-grid__icon--photo,
.adh-section-grid a.active .adh-section-grid__icon--photo {
    box-shadow: 0 0 0 2px var(--adh-brown);
}
.adh-section-grid--large .adh-section-grid__icon--photo {
    width: 150px;
    height: 150px;
    padding: 0;
}
@media (max-width: 575px) {
    .adh-section-grid__icon--photo,
    .adh-section-grid--large .adh-section-grid__icon--photo {
        width: 96px;
        height: 96px;
        padding: 0;
    }
}

/* COLLECTION mega menu: centred in the header. The theme forces left/margin on mega menus below 1230px,
   so it is centred with left + right + auto margins and a selector stronger than the theme's */
header .tt-desktop-header .tt-desctop-menu li.adh-collection-menu > .dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    transform: none;
}
.tt-desctop-menu .adh-submenu-indent {
    padding-left: 14px;
}

/* Keyboard access to the dropdowns (the theme only opens them on hover) */
.tt-desctop-menu .dropdown:focus-within > .dropdown-menu {
    display: block;
    top: auto;
}

/* Mobile menu: section icon before the name. The theme positions and fills any svg inside
   .panel-menu links (it expects 13px arrows), so that is undone here */
.panel-menu ul li a.adh-mobile-link {
    display: flex;
    align-items: center;
}
.panel-menu ul li a .adh-mobile-icon {
    display: inline-block;
    flex: none;
    box-sizing: content-box;
    width: 34px;
    height: 34px;
    padding: 7px;
    margin: 2px 14px 2px 0;
    border-radius: 50%;
    color: var(--adh-brown);
    background-color: var(--adh-icon-bg);
}
.panel-menu ul li a .adh-mobile-icon svg {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
}
.panel-menu ul li a .adh-mobile-icon svg *,
.panel-menu ul li a:hover .adh-mobile-icon svg * {
    fill: none;
}

.panel-menu ul li a .adh-mobile-icon--photo {
    width: 48px;
    height: 48px;
    padding: 0;
    overflow: hidden;
    border-radius: 4px;
}

/* Mobile menu: languages at the bottom, set apart from the sections */
.panel-menu ul li.adh-mm-lang {
    display: flex;
    gap: 8px;
    width: auto;
    margin: 18px 30px 0;
    padding: 18px 0 8px;
    border-top: 1px solid #e9e7e7;
}
.panel-menu ul li.adh-mm-lang a {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 8px;
    border: 1px solid #e9e7e7;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: normal;
    text-transform: none;
    color: #777;
}
.panel-menu ul li.adh-mm-lang a.active {
    border-color: var(--adh-brown);
    color: var(--adh-brown);
    font-weight: 500;
}
.panel-menu ul li.adh-mm-lang a img {
    position: static;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}

/* Mobile menu: social networks on the right of the "Close" row. The plugin adds that row (li.mm-close-parent, 51px)
   at the top of the first panel #mm0, which is absolute and scrolls, so the icons are placed over it */
.panel-menu #mm0.mmpanel li.adh-mm-social {
    position: absolute;
    top: 0;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 51px;
}
.panel-menu #mm0.mmpanel li.adh-mm-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    color: var(--adh-brown);
    background-color: var(--adh-icon-bg);
}
.panel-menu #mm0.mmpanel li.adh-mm-social a:hover {
    color: var(--adh-brown);
    background-color: var(--adh-icon-bg-hover);
}

/* Contact form: honeypot out of sight (not display:none, which some bots detect) */
.adh-hp {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.adh-privacy {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.adh-privacy input {
    margin-top: 4px;
}

/* Desktop header top strip: social networks on the left, languages on the right */
.adh-topbar {
    background-color: var(--adh-topbar-bg);
    border-bottom: 1px solid #efe7e1;
}
.adh-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 34px;
}
.adh-topbar__social {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.adh-topbar__social a {
    display: block;
    font-size: 17px;
    line-height: 1;
    color: var(--adh-brown);
    transition: opacity .2s linear;
}
.adh-topbar__social a:hover {
    opacity: .7;
}

/* Desktop header logo: 140px tall (theme), 100px below 1230px so the menu fits down to 992px */
@media (max-width: 1229px) {
    header .tt-desktop-header .tt-logo img {
        width: auto;
        max-height: 100px;
    }
}
/* Between 992px and 1024px the theme narrows the container to 770px: the header rows take the full width instead */
@media (min-width: 992px) and (max-width: 1024px) {
    header .tt-desktop-header .container,
    header .tt-stuck-nav .container {
        max-width: none;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Language switcher (desktop header top strip) */
.adh-lang {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.adh-lang a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Hind", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .05em;
    color: var(--adh-brown);
}
.adh-lang a.active,
.adh-lang a:hover {
    color: #fff;
    background-color: var(--adh-brown);
}
.adh-lang img {
    width: 21px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}
/* Hind has a deep descender, so its capitals sit above the middle of the line: nudge them down to the flag's centre */
.adh-lang span {
    position: relative;
    top: 1.5px;
}
