/**
  Yappy CSS
 */

/* Fonts */
@font-face
{
    font-family: 'gilroyregular';
    src: url(/fonts/gilroy-regular-webfont.woff2) format("woff2"), url(fonts/gilroy-regular-webfont.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face
{
    font-family: 'gilroymedium';
    src: url(/fonts/gilroy-medium-webfont.woff2) format("woff2"), url(fonts/gilroy-medium-webfont.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face
{
    font-family: 'gilroybold';
    src: url(/fonts/gilroy-bold-webfont.woff2) format("woff2"), url(fonts/gilroy-bold-webfont.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face
{
    font-family: 'gilroyextrabold';
    src: url(/fonts/gilroy-extrabold-webfont.woff2) format("woff2"), url(fonts/gilroy-extrabold-webfont.woff) format("woff");
    font-weight: 400;
    font-style: normal;
}
@font-face
{
    font-family: 'Karla';
    src: url(/fonts/Karla-VariableFont_wght.woff2) format('woff2-variations'),
         url(/fonts/Karla-VariableFont_wght.ttf) format('truetype-variations');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face
{
    font-family: 'Karla';
    src: url(/fonts/Karla-Italic-VariableFont_wght.woff2) format('woff2-variations'),
         url(/fonts/Karla-Italic-VariableFont_wght.ttf) format('truetype-variations');
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}

/* Variables */
:root
{
    --yappy-purple: #5b0b99;
    --yappy-cyan: #30d5c8;
    --yappy-cyan-hover: #32c2b6;
    --yappy-cyan-transparent: rgba(48, 213, 200, 0.65);
    --yappy-light-gray: #f8f8f8;
    --yappy-welcome-gray: #f7f7f7;
    --yappy-text-gray: #646363;
    --yappy-dark-text: #212529;
    --yappy-red: #e0001b;
    --white: #fff;
    --black: #000;
    --transparent: transparent;
    --border-color: rgba(0, 0, 0, .125);
}

body {
    background-color: var(--white);
    min-height: 100vh;
    font-family: "karla", "Century Gothic", "Futura";
    color: #505050;
    padding-top: 70px; /* Account for fixed navbar */
}

body.navbar-with-yappicon
{
    padding-top: 125px; /* Account for extended navbar with Yappicon */
}

a {
    color: var(--yappy-purple);
    text-decoration: underline;
    text-decoration-color: var(--yappy-cyan);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

a:hover
{
    color: var(--yappy-cyan);
}

/* Mobile and Desktop Visibility */

.mobile-only {
    display: block !important;
}
@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

.desktop-only {
    display: none !important;
}
@media (min-width: 768px) {
    .desktop-only {
        display: block !important;
    }
}

/* Nav Bar */
.navbar {
    font-family: "gilroymedium", "Century Gothic", "Futura";
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar a {
    text-decoration: none;
    color: var(--white) !important;
}

.navbar-custom {
    background-color: var(--yappy-purple);
}

.navbar-custom.navbar-with-yappicon
{
    padding-bottom: 2rem;
}

.navbar-brand img {
    height: 30px;
}

.navbar-container
{
    position: relative;
    z-index: 2;
}

/* Yappicon in navbar */
.navbar-yappicon-container
{
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.navbar-yappicon-container::before
{
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 60px;
    background-color: var(--yappy-purple);
    z-index: -1;
}

.navbar-yappicon-container a
{
    display: block;
}

.navbar-yappicon
{
    width: 75px;
    height: 75px;
    display: block;
    cursor: pointer;
}

/* Standard Headings */

h1
{
    font-family: "gilroybold", "Century Gothic", "Futura";
    color: var(--yappy-purple);
    font-size: 2.2rem;
}

h2
{
    font-size: 1.4rem;
    font-family: "gilroybold", "Century Gothic", "Futura";
    color: var(--yappy-purple);
}

h3 {
    font-size: 1.1rem;
    font-family: "gilroyregular", "Century Gothic", "Futura";
    color: var(--yappy-purple);
}

h4 {
    font-size: 1.1rem;
    font-family: "gilroybold", "Century Gothic", "Futura";
    color: var(--yappy-purple);
}

h5 {
    font-size: 0.9rem;
    font-family: "gilroyregular", "Century Gothic", "Futura";
    color: var(--yappy-purple);
}

/* Descriptions */

.description {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: "karla", "Century Gothic", "Futura";
}

/* Buttons */

.btn
{
    font-family: "gilroybold", "Century Gothic", "Futura";
    letter-spacing: .1rem;
    cursor: pointer;
}

.btn-primary {
    cursor: pointer;
    color: var(--white);
    background-color: var(--yappy-cyan);
    border-color: var(--yappy-cyan);
    border-radius: 2rem;
    text-transform: uppercase;
    font-size: 1rem;
    padding: .75rem 1.75rem;
    font-family: "gilroybold", "Century Gothic", "Futura";
    letter-spacing: .1rem;
}

a.btn-primary
{
    color: var(--white) !important;
    text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.disabled,
.btn-primary:disabled,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--yappy-cyan-hover);
    border-color: var(--yappy-cyan-hover);
}

/* Secondary Button */
.btn-secondary {
    cursor: pointer;
    color: var(--yappy-cyan);
    background-color: var(--white);
    border-color: var(--yappy-cyan);
    border-radius: 2rem;
    text-transform: uppercase;
    font-size: 1rem;
    padding: .75rem 1.75rem;
    font-family: "gilroybold", "Century Gothic", "Futura";
    letter-spacing: .1rem;
}

a.btn-secondary {
    color: var(--yappy-cyan) !important;
    text-decoration: none;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.disabled,
.btn-secondary:disabled,
.btn-secondary:not(:disabled):not(.disabled).active,
.btn-secondary:not(:disabled):not(.disabled):active {
    background-color: var(--yappy-cyan);
    color: var(--white) !important; /* ensure anchors override base a.btn-secondary color */
    border-color: var(--yappy-cyan);
}

.btn-wide
{
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Animated Tiles */

.animatedTile img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.animatedTile:hover img {
    transform: scale(1.05);
}

.animatedTile a {
    text-decoration: none;
    color: inherit;
}

.animatedTile a:hover {
    text-decoration: none;
    color: inherit;
}

/* --- Footer Section --- */

.bottom-menu
{
    line-height: 1.7em;
    background-color: var(--yappy-light-gray);
    padding-top:15px;
}

@media (min-width: 992px) {
    .bottom-menu {
        padding-top: 50px; /* desktop only */
    }
}

/* Hide the dog image column in desktop footer when space gets cramped */
@media (max-width: 991.98px) {
    .desktop-only.bottom-menu .col-md-3:first-child {
        display: none !important;
    }
    
    /* Give remaining columns more space when first column is hidden */
    .desktop-only.bottom-menu .col-md-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.bottom-menu ul {
    font-size: 0.875rem;     /* or use 'smaller' */
}

.bottom-menu a {
    text-decoration: none;
    color: var(--yappy-purple);
}

.bottom-menu a:hover {
    color: var(--yappy-cyan);
}

/* Animated Flag (on hover) */

.animated-flag {
    transition: transform 0.3s ease;
    transform-origin: left center;
}

a:hover .animated-flag {
    animation: wave 0.6s ease-in-out;
}

@keyframes wave {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(2deg); }
    50%  { transform: rotate(-2deg); }
    75%  { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

/* Phone Image */

.phone-image {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 12 / 5;
    background-image: url(/artwork/furniture/phone-bg.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phone-image .yappicon {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 20%; /* <-- scales relative to parent width */
    height: auto;
}

/* Social Links */

.social-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-links li {
    margin-right:24px;
}

.social-links li:last-child {
    margin-right:0;
}

/* Light up (e.g., brighten and scale slightly) on hover of parent link */
a:hover .social-icon {
    filter: brightness(1.6) drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
    transform: scale(1.15);
}

/* Payment Methods */
.payment-methods img {
    height: 27px;
    margin-bottom:20px;
}

/* Base styling for all accordions */
.accordion {
    background-color: transparent !important;
}

.accordion .accordion-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background-color: transparent !important;
}

/* Remove curved corners from buttons too */
.accordion .accordion-button {
    border-radius: 0 !important;
    font-size: 1rem; /* slightly smaller */
    color: var(--yappy-purple);
    font-weight: 500;
    background-color: transparent !important;
    border: none !important;
}

/* Top item: top border only */
.accordion-top {
    border-top: 1px solid #ddd;
    border-bottom: 0;
}

/* Middle item: top border only */
.accordion-mid {
    border-top: 1px solid #ddd;
    border-bottom: 0;
}

/* Bottom item: top and bottom border */
.accordion-bottom {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* Remove background from open/active accordion buttons */
.accordion .accordion-item .accordion-button:not(.collapsed) {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Remove focus styles */
.accordion .accordion-button:focus {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Make accordion arrows yappy purple */
.accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235b0b99'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235b0b99'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Remove background from accordion body */
.accordion .accordion-item .accordion-body {
    background-color: transparent !important;
}

/* Ensure accordion arrow appears when button has flex layout */
.accordion .accordion-button.d-flex::after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Style the selected country display in mobile accordion */
.accordion .accordion-button .animated-flag {
    transition: transform 0.3s ease;
    transform-origin: left center;
}

/* Make selected country text lighter like accordion items */
.selected-country-text {
    font-weight: 400 !important;
    font-family: 'karla', 'Century Gothic', 'Futura' !important;
}

/* Screen readers */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Bottom divider */

.divider-bottom
{
    border-bottom: 1px solid rgba(0, 0, 0, .125);
}

/* === SIDEBAR STYLES === */

/* Burger Menu */
.sidebar-toggle {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--white) !important;
}

.burger-menu {
    width: 18px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    position: relative;
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 18px;
    background-color: var(--white);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
    position: absolute;
}

.burger-menu span:nth-child(1) {
    top: 3px;
}

.burger-menu span:nth-child(2) {
    top: 8px;
}

.burger-menu span:nth-child(3) {
    top: 13px;
}

/* Transform burger to X when sidebar is open */
body.sidebar-open .burger-menu span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

body.sidebar-open .burger-menu span:nth-child(2) {
    opacity: 0;
}

body.sidebar-open .burger-menu span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

.menu-label {
    font-family: "gilroymedium", "Century Gothic", "Futura";
    font-size: 1rem;
}

/* Sidebar */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1rem 1rem 1.5rem;
    height: 74px; /* Match main navbar height */
    background-color: var(--yappy-purple);
    color: var(--white);
    box-sizing: border-box;
}

.sidebar-tabs {
    display: flex;
    align-items: center;
    gap: 0;
}

.sidebar-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: "gilroymedium", "Century Gothic", "Futura";
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.sidebar-tab:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-tab.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar-tab-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    line-height: 1;
    padding-bottom: 2px;
}

.sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    padding: 0;
}

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

.sidebar-menu li.sidebar-divider {
    border-bottom: 1px solid #ddd;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    color: var(--yappy-purple);
    text-decoration: none;
    font-family: "gilroymedium", "Century Gothic", "Futura";
    font-size: 1rem;
    transition: all 0.2s ease;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background-color: var(--yappy-light-gray);
    color: var(--yappy-cyan);
    text-decoration: none;
}

.sidebar-link.logout-link {
    color: var(--yappy-red);
}

.sidebar-link.logout-link:hover {
    background-color: rgba(224, 0, 27, 0.1);
    color: var(--yappy-red);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main content wrapper */
.main-content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 70px);
}

/* Push footer to bottom when page content is shorter than viewport */
.main-content > .bottom-menu {
    margin-top: auto;
}

/* Body modifications when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }
}

/* Cookie Consent Banners */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 2px solid var(--yappy-cyan);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    padding: 1.25rem 1rem;
}

.cookie-banner-full {
    padding: 1.5rem 1rem;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.cookie-banner-text {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-banner-text {
        text-align: left;
    }
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--yappy-dark-text);
    font-family: "karla", "Century Gothic", "Futura";
}

.cookie-banner-link {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.cookie-banner-link a {
    color: var(--yappy-purple);
    text-decoration: underline;
    text-decoration-color: var(--yappy-cyan);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-family: "gilroymedium", "Century Gothic", "Futura";
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: var(--yappy-cyan);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background-color: var(--yappy-cyan-hover);
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--yappy-purple);
    border: 1px solid var(--yappy-purple);
}

.cookie-btn-reject:hover {
    background-color: var(--yappy-light-gray);
}

/* US Notice (smaller banner) */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--border-color);
    z-index: 1060;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.cookie-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-notice-text {
    font-size: 0.9rem;
    color: var(--yappy-dark-text);
    font-family: "karla", "Century Gothic", "Futura";
}

.cookie-link-btn {
    background: none;
    border: none;
    color: var(--yappy-purple);
    text-decoration: underline;
    text-decoration-color: var(--yappy-cyan);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    font-family: "karla", "Century Gothic", "Futura";
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.cookie-link-btn:hover {
    color: var(--yappy-cyan);
    text-decoration-color: var(--yappy-purple);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-full {
        padding: 1.25rem 1rem;
    }
    
    .cookie-banner-content {
        gap: 0.75rem;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.7rem 1rem;
    }
    
    .cookie-notice-content {
        flex-direction: column;
        text-align: center;
    }
}

.welcome-back-section
{
    background-color: var(--yappy-purple);
    color: var(--white);
}

.welcome-back-section h1
{
    color: var(--white);
}

.welcome-back-section h2
{
    color: var(--white);
    padding-bottom:10px;
}

.welcome-back-section a
{
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--yappy-cyan);
}