/* 
Theme Name: Otto the Viking
Description: Custom þema fyrir Otto the Viking
Author: GJP - Black Flamingo
Author URI: https://blackflamingo.is/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

:root {
  /* Brand */
  --color-primary: #49b948;
  --color-primary-hover: #3fa53e;
  --color-primary-active: #348a34;

  /* Supporting fresh palette */
  --color-secondary: #8fdc8e;
  --color-secondary-soft: #d8f1d8;
  --color-accent: #eef8ee;

  /* Neutrals */
  --color-bg: #f7fbf6;
  --color-bg-alt: #f1f8ef;
  --color-surface: #ffffff;
  --color-surface-alt: #ebf3e9;

  /* Text */
  --color-text: #162312;
  --color-text-muted: #4f5f4a;
  --color-text-soft: #6a7a64;
  --color-text-inverse: #ffffff;

  /* Dark UI */
  --color-dark: #1f3a1f;
  --color-dark-2: #182e18;
  --color-overlay: rgba(19, 41, 19, 0.45);

  /* Borders */
  --color-border: #d6e6d1;
  --color-border-strong: #bcd2b6;

  /* Status / utility */
  --color-success: #348a34;
  --color-warning: #b8882d;
  --color-error: #c14f4f;

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Raleway", sans-serif;

  /* Font sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md: 1.125rem;    /* 18px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 1.875rem;   /* 30px */
  --text-3xl: 2.625rem;   /* 42px */
  --text-4xl: 3.75rem;    /* 60px */

  /* Line heights */
  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.8;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.16em;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 0 10px 0 rgba(0,0,0,.15);
  --shadow-md: 0 0 30px 0 rgba(0,0,0,.15);
  --shadow-lg: 0 18px 50px rgba(20, 44, 56, 0.16);

  /* Spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 140px;

  /* Layout */
  --container-width: 1200px;
  --section-padding-y: 80px;
  --section-padding-y-large: 120px;

  /* Buttons */
  --button-bg: var(--color-primary);
  --button-bg-hover: var(--color-primary-hover);
  --button-text: #ffffff;
  --button-radius: var(--radius-sm);
  --button-padding-y: 16px;
  --button-padding-x: 28px;

  /* Forms */
  --input-bg: #ffffff;
  --input-text: var(--color-text);
  --input-placeholder: var(--color-text-soft);
  --input-border: var(--color-border);
  --input-border-focus: var(--color-primary);
  --input-radius: var(--radius-md);
  --input-shadow-focus: 0 0 0 2px rgba(73, 185, 72, 0.18);

  /* Hero / overlays */
  --hero-overlay: linear-gradient(
    to bottom,
    rgba(19, 41, 19, 0.28),
    rgba(19, 41, 19, 0.5)
  );

  /* Optional gradients */
  --gradient-glacier: linear-gradient(135deg, #49b948 0%, #8fdc8e 100%);
  --gradient-ice: linear-gradient(135deg, #2f7f2f 0%, #d8f1d8 100%);
}


body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-hover);
}

button,
.elementor-button,
input[type="submit"] {
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: var(--button-radius);
}

button:hover,
.elementor-button:hover,
input[type="submit"]:hover {
  background: var(--button-bg-hover);
}

input,
select,
textarea {
  background: var(--input-bg);
  color: var(--input-text);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-shadow-focus);
  outline: none;
}

body .elementor-sub-item:hover {
    background-color:var(--color-secondary);
}

.shadow-small {
    box-shadow: var(--shadow-sm);
}

.shadow-medium {
    box-shadow: var(--shadow-md);
}

.shadow-large {
    box-shadow: var(--shadow-lg);
}

#tourCard:hover {
    box-shadow:var(--shadow-md);
}

.elementor-widget-button.smart-back {
    line-height: 1em;
}

.elementor-widget-breadcrumbs span {
    line-height: 1em;
}

.otto-the-viking .elementor-button {
    line-height: 1.4em;
    border: none;
}

.bokunButton span.elementor-button-icon {
    margin-inline-start: 8px;
}

.post-type-archive-tour .floating-cta-btn {
    display: none;
}

body:has(#wpadminbar) .otto-header {
    top: var(--wp-admin--admin-bar--height);
}

.otto-offcanvas-wrapper .elementor-widget-off-canvas {
  --e-off-canvas-animation-duration: 0.3s;
}

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 350;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
	  gap:1rem;
	  opacity: 0;
	  pointer-events: none;
    text-decoration: none !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateX(100%);
}

.elementor-icon-wrapper {
    line-height: 1em;
}

.scrollToTop {
	  padding: 16px 28px;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: var(--shadow-md);
    font-size: 16px;
}

.floating-buttons.button-show {
    opacity: 1;
    transform: none;
    pointer-events: visible
}

.scrollToTop .elementor-icon {
    font-size: 1rem;
}

body :is(a.floating-cta-btn, 
.hero-cta a) {
    box-shadow: var(--shadow-md);
}

.otto-the-viking #sb_instagram .sb_instagram_header .sbi_header_text {
    display: none;
}

.otto-the-viking #sb_instagram #sbi_images .sbi_item {
    border-radius: 4px;
}

.otto-the-viking #sb_instagram .sb_instagram_header {
    display: none;
}

.otto-the-viking div#sbi_images {
    gap: 1rem!important;
}

.floating-badges {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    max-width: 100px;
    background-color: rgba(31, 58, 70, 0.7);
    border-radius: 5px;
    transition: .2s ease;
	z-index:5;
}

.floating-badges:hover {
    background-color: var(--color-dark);
}

@media (max-width:768px) {
	.floating-badges {
		display:none;
}
	
	.elementor-widget-breadcrumbs:has(#breadcrumbs) {
    max-width: 77%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
	}
}

@media (max-width: 1024px) {
	.floating-badges {
		max-width:75px;
	}
}

@media (max-width: 1024px) {
    .otto-the-viking .otto-header button.bokun-header-button .elementor-button-text {
      display:none;
    }

    .otto-the-viking .otto-header button.bokun-header-button {
        background-color: transparent;
        font-size:1.25rem;
        padding: 1rem;
    }

    .otto-the-viking .otto-header button.bokun-header-button .elementor-button-icon {
        margin-inline-start:0;
    }
}

.hero:before {
    background-color: #0F222D;
    content:"";
    width:100%;
    height:100%;
    position:absolute;
    opacity:0.35;
    z-index:3;
}

.mobile-menu-cover:before {
    background-color:#0F222D62;
    content:"";
    width:100%;
    height:100%;
    position:absolute;
}