/*
Theme Name: Virks Theme
Description: Modern WordPress theme for Virks jewelry store
Version: 2.0
Author: Your Name
Text Domain: virkstheme
*/

/* CSS Variables - Modern Color Palette */
:root {
    --primary-color: #910003;
    --primary-dark: #6d0002;
    --primary-light: #b30004;
    --accent-color: #d1b494;
    --accent-light: #e8d9c4;
    --text-dark: #2c2c2c;
    --text-medium: #555;
    --text-light: #777;
    --bg-light: #fafafa;
    --bg-dark: #1a1a1a;
    --white: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--bg-light);
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Menlo", Arial, sans-serif !important;
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.7;
    font-weight: 400;
    font-size: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1.25rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.75rem;
    font-weight: 600;
}

.startSeiteText {
    hyphens: auto;
    text-align: left;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 600;
}

.startSeiteText a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.startSeiteText a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

/* Header */
.site-header {
    background-color: var(--primary-color) !important;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    line-height: 1;
    width: 100%;
    min-height: 90px;
    left: 0;
    right: 0;
}

.site-header .header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: var(--primary-color);
    min-height: 90px;
}

@media (max-width: 767px) {
    .site-header {
        min-height: 70px;
    }
    
    .site-header .header-container {
        padding: 10px 15px;
        min-height: 70px;
    }
    
    .navbar-header {
        min-height: 50px;
        height: 50px;
    }
    
    .navbar-brand {
        height: 50px;
        min-height: 50px;
    }
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0 !important;
    flex-wrap: wrap;
}

.navbar-nav > li {
    margin: 0 !important;
}

.navbar-nav > li > a {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 20px 20px !important;
    transition: var(--transition);
    letter-spacing: 0.01em;
    position: relative;
    white-space: nowrap;
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--white);
    transform: scaleX(0);
    transition: var(--transition);
}

.navbar-nav > li > a:hover::after,
.navbar-nav > li > a:focus::after {
    transform: scaleX(1);
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: var(--white) !important;
    background-color: rgba(0, 0, 0, 0.15) !important;
}

.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus {
    background-color: var(--accent-color) !important;
    color: var(--text-dark) !important;
}

.navbar-nav > .active > a::after {
    transform: scaleX(1);
}

.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    height: 70px;
    min-height: 70px;
}

.navbar-brand img,
.navbar-brand .site-logo {
    max-height: 70px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-toggle {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    margin-left: 15px;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggle .icon-bar {
    background-color: var(--white);
    height: 3px;
    width: 22px;
    margin: 3px 0;
}

.navbar-default {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    min-height: auto !important;
    padding: 0 !important;
    width: 100%;
    position: relative;
}

.navbar-default::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: var(--primary-color);
    background-image: none;
    z-index: -1;
}

.navbar {
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    width: 100%;
    background-image: none !important;
}

.navbar-nav > li > a,
.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus,
.navbar-nav > .open > a,
.navbar-nav > .open > a:hover,
.navbar-nav > .open > a:focus {
    background-image: none !important;
}

.navbar-header {
    background-color: var(--primary-color);
    background-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 70px;
    height: 70px;
}

.navbar-collapse {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Override Bootstrap defaults */
.navbar-default .navbar-nav > li > a {
    color: var(--white) !important;
}

.navbar-default .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: var(--white) !important;
}

/* Remove any white space */
body > * {
    margin-top: 0;
}

.site-header + * {
    margin-top: 0;
}

main {
    margin: 0;
    padding: 0;
}

.site-main {
    margin: 0;
    padding: 0;
}

.carousel-section + .content-section {
    margin-top: 0;
    padding-top: 0;
}

.content-section + .site-footer {
    margin-top: 0;
}

/* Remove all Bootstrap navbar spacing */
.navbar-default .navbar-nav {
    margin: 0 !important;
}

.navbar-default .navbar-nav > li {
    margin: 0 !important;
}

.navbar-brand {
    margin: 0 !important;
}

/* Clock Widget */
#clock,
.clock-widget {
    max-width: 280px;
    margin: 0;
    background-color: var(--white);
    border-radius: 8px;
    padding: 18px 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

@media (min-width: 768px) {
    #clock,
    .clock-widget {
        float: right;
        margin: 10px 0 0 0;
    }
}

#clock:hover,
.clock-widget:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

#time {
    font-size: 2.25rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#date {
    color: var(--text-medium);
    font-size: 1rem;
    text-align: center;
    margin-top: 8px;
    text-transform: capitalize;
    font-weight: 400;
}

#isopen {
    margin-top: 10px;
    font-size: 1rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Full-Width Carousel */
.carousel-section {
    padding: 0;
    margin: 0;
    background-color: var(--bg-dark);
    width: 100%;
    position: relative;
    overflow: visible;
}

#myCarousel {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

#myCarousel .item img,
.carousel-inner .item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 75vh;
    transition: transform 0.6s ease;
}

#myCarousel .item.active img {
    transform: scale(1);
}

.carousel-inner {
    background-color: transparent;
    width: 100%;
    position: relative;
}

.carousel-control {
    display: none;
}

.carousel-control.left {
    left: 20px;
}

.carousel-control.right {
    right: 20px;
}

.carousel-control:hover,
.carousel-control:focus {
    opacity: 1;
    background-color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control .icon-prev,
.carousel-control .icon-next {
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Bootstrap 3 carousel control pseudo-elements */
.carousel-control.left .icon-prev:before,
.carousel-control.right .icon-next:before {
    color: var(--white);
    font-size: 24px;
}

.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    margin: 0 5px;
    transition: var(--transition);
    cursor: pointer;
}

.carousel-indicators li:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.9);
}

.carousel-indicators li.active {
    background-color: var(--white);
    border-color: var(--white);
    width: 36px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content-section {
    padding: 0;
    margin: 0;
}

#indextxt,
#beitraegebg {
    background-color: var(--accent-color);
    margin: 0;
    position: relative;
}

#txtwrapper {
    background-color: transparent;
    padding: 0 50px;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    position: relative;
}

.content-section .container {
    padding: 0;
    margin: 0;
    width: 100%;
}


.entry-content {
    padding: 0;
    background: transparent;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.entry-content article {
    margin: 0;
    padding: 0;
    position: relative;
}

.entry-header {
    margin-bottom: 35px;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
}

.entry-title,
h1.entry-title {
    margin: 0;
    font-size: 4rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
}

h1.entry-title p {
    margin: 0;
    font-size: 4rem !important;
    color: var(--primary-color);
    font-weight: 600;
    display: inline;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.entry-content p {
    padding-bottom: 22px;
    margin-bottom: 0;
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
}

.entry-content p:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.entry-content p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.entry-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

#beitraege {
    background: transparent;
    padding: 0;
    width: 100%;
}

#beitraege h2 {
    margin: 0 0 35px 0;
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
}

#beitraege p {
    padding-bottom: 22px;
    margin-bottom: 0;
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--text-dark);
    font-weight: 600;
}

#beitraege p:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

#beitraege a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

#beitraege a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 30px;
    margin-top: 0;
    border-top: 4px solid var(--primary-color);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.site-footer h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    position: relative;
}

.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
}

.site-footer p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 12px;
    font-weight: 400;
}

.footer-info {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.125rem;
    line-height: 1.8;
}

.footer-section {
    margin-bottom: 24px;
}

.footer-section:last-child {
    margin-bottom: 0;
}

.footer-section strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.footer-hours {
    font-variant-numeric: tabular-nums;
    font-family: "Menlo", monospace;
    letter-spacing: 0.02em;
}

.footer-hour-line {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.footer-hour-line:last-child {
    margin-bottom: 0;
}

.footer-phone {
    margin-top: 4px;
}

.footer-address {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.site-footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

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

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 400;
    padding: 4px 0;
    position: relative;
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: -16px;
    opacity: 0;
    transition: var(--transition);
    color: var(--primary-light);
}

.footer-menu a:hover {
    color: var(--white);
    padding-left: 16px;
}

.footer-menu a:hover::before {
    opacity: 1;
    left: 0;
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Links */
a {
    transition: var(--transition);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.entry-content img,
#beitraege img {
    margin: 24px 0;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive - Mobile */
@media only screen and (max-width: 767px) {
    #fischerbig {
        display: none;
    }
    
    #fischersmall {
        display: block;
    }
    
    #beitraege p,
    .entry-content p {
        margin-right: 20px;
        margin-left: 20px;
        font-size: 1.125rem;
    }
    
    #beitraege,
    .entry-content {
        width: 100% !important;
        margin: 20px 0;
        text-align: left;
    }
    
    #indextxt,
    #beitraegebg {
        padding: 50px 0;
    }
    
    #txtwrapper {
        padding: 0 30px;
        margin: 0;
    }
    
    /* Carousel mobile styles */
    #myCarousel .item img,
    .carousel-inner .item img {
        max-height: 50vh;
    }
    
    .carousel-control {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 18px;
    }
    
    .carousel-control.left {
        left: 10px;
    }
    
    .carousel-control.right {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators li {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    
    .carousel-indicators li.active {
        width: 30px;
    }
    
    .site-header .header-container {
        padding: 0 15px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar-header {
        width: 100%;
        justify-content: space-between;
        padding: 0;
        min-height: 50px;
        height: 50px;
    }
    
    .navbar-brand {
        padding: 0 !important;
        height: 50px;
        min-height: 50px;
    }
    
    .navbar-brand img,
    .navbar-brand .site-logo {
        max-height: 50px;
        height: auto;
    }
    
    .navbar-toggle {
        margin: 0;
        order: 2;
    }
    
    .navbar-collapse {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin-top: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin: 0 !important;
    }
    
    .navbar-nav > li {
        width: 100%;
    }
    
    .navbar-nav > li > a {
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        display: block;
        font-size: 1.125rem;
    }
    
    .navbar-nav > li > a::after {
        display: none;
    }
    
    .navbar-nav > li > a:hover,
    .navbar-nav > li > a:focus {
        background-color: rgba(0, 0, 0, 0.2) !important;
    }
    
    .navbar-nav.navbar-right {
        width: 100%;
        margin: 0 !important;
    }
    
    #clock,
    .clock-widget {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
        float: none;
    }
    
    #navbar-collapsed-items {
        background: transparent;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
    }
    
    #clock,
    .clock-widget {
        display: none;
    }
    
    .site-footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .site-footer .col-sm-5,
    .site-footer .col-sm-2 {
        margin-bottom: 40px;
    }
    
    .content-section {
        padding: 0;
    }
    
    .entry-title,
    h1.entry-title,
    #beitraege h2 {
        font-size: 3rem;
        margin-bottom: 24px;
    }
    
    h1.entry-title p {
        font-size: 3rem !important;
    }
    
    .entry-header,
    #beitraege h2 {
        padding-bottom: 16px;
        margin-bottom: 24px;
    }
}

/* Responsive - Desktop */
@media only screen and (min-width: 768px) {
    #fischerbig {
        display: block;
    }
    
    #fischersmall {
        display: none;
    }
    
    .navbar-nav > li > a {
        margin-right: 8px;
        padding-top: 52px !important;
        font-size: 1.25rem !important;
    }
    
    .navbar-brand img {
        height: 85px;
        max-width: 100%;
    }
    
    .navbar-brand {
        padding: 15px !important;
    }
    
    .navbar-default {
        background-color: var(--primary-color) !important;
        margin-bottom: 0 !important;
    }
    
    #virksMenue {
        background-color: var(--primary-color) !important;
    }
    
    .navbar-collapse {
        background-color: var(--primary-color) !important;
    }
    
    .site-header .container {
        background-color: var(--primary-color);
    }
    
    #txtwrapper {
        margin: 0 auto;
        max-width: 1200px;
        padding: 30px 30px;
    }
    
    .site-footer {
        text-align: left;
    }
}

/* Responsive - Clock sizes */
@media only screen and (min-width: 767px) and (max-width: 1023px) {
    #clock,
    .clock-widget {
        max-width: 240px;
        padding: 12px 16px;
    }
    
    #time {
        font-size: 2rem;
    }
}

@media only screen and (min-width: 1024px) {
    #clock,
    .clock-widget {
        max-width: 300px;
        padding: 18px 24px;
    }
    
    #time {
        font-size: 2.5rem;
    }
    
    .container {
        max-width: 1200px;
    }
}
