/* =======================================
   Oratrraffi Investeringar Style.css
   Professional Corporate | Flexbox Only
   ======================================= */

/* =====================
   CSS RESET + NORMALIZE
   ===================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F9FAFB;
  color: #172B36;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
*, *::before, *::after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
img { max-width:100%; display:block; height:auto; border:0; }
button { font-family: inherit; border:none; background:none; cursor:pointer; }

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,700&display=swap');

/* ============================
   BRAND COLOR & TYPOGRAPHY VARS
   ============================ */
:root {
  --color-primary: #172B36;
  --color-secondary: #F0E4D4;
  --color-accent: #BC8957;
  --color-bg: #F9FAFB;
  --color-bg-card: #FFFFFF;
  --color-bg-header: #F9FAFB;
  --color-bg-footer: #172B36;
  --color-text-main: #172B36;
  --color-text-light: #FFFFFF;
  --color-text-secondary: #444D56;
  --color-border: #D2D8DD;
  --color-focus: #4D90FE;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
  --shadow-card: 0 2px 16px 0 rgba(23,43,54,0.05), 0 0.5px 2px rgba(23,43,54,0.06);
  --shadow-hover: 0 8px 24px -2px rgba(23,43,54,0.12);
  --radius: 10px;
}

/* ========================
   LAYOUT + CONTAINER STYLES
   ======================== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  max-width: 1140px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
}

/* =============
   TYPOGRAPHY
   ============= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.22;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 14px;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  h2 { font-size: 1.5rem; }
}
h3 {
  font-size: 1.25rem;
}
h4, h5, h6 { font-size: 1rem; font-weight: 500; }
p, li, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-secondary);
}
strong, b { font-weight: bold; color: var(--color-primary); }
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==================
   HEADER/NAVIGATION
   ================== */
header {
  width: 100%;
  background: var(--color-bg-header);
  box-shadow: 0 2px 8px 0 rgba(23,43,54,0.029);
  position: relative;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 80px;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
header .btn-primary {
  margin-left: 24px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 20px;
}
@media (max-width: 992px) {
  header nav { gap: 12px; }
  header img { height: 38px; }
  header .container { gap: 14px; }
}

/* =====================
   MOBILE NAV HAMBURGER
   ===================== */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  margin-left: 12px;
  transition: background 0.20s;
  z-index: 101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
}
@media (max-width: 900px) {
  header nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ================
   MOBILE MENU OVERLAY
   ================ */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  background: rgba(23,43,54,0.96);
  color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 200;
  padding: 0;
  will-change: transform;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin: 24px 32px 0 0;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: flex-start;
  margin: 50px 0 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 400;
  padding: 8px 0;
  transition: color 0.18s, background 0.18s;
  border-radius: 5px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* ===================
   BUTTON STYLES
   =================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 11px 28px;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px 0 rgba(23,43,54,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.19s, transform 0.14s;
  margin-top: 12px;
  text-decoration: none;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 18px -2px rgba(188,137,87,0.22);
  transform: translateY(-2px) scale(1.021);
}

/* ========================
   SECTION / CARD / FLEX PATTERNS
   ======================== */
.card-container, .card-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex: 1 1 250px;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover, .card:focus {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 180px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  transition: box-shadow 0.12s;
  margin-bottom: 18px;
}
.feature-item img { height: 40px; margin-bottom: 10px; }

/* Specific feature grid for index (3 cols on desktop, stacked mobile) */
.feature-grid {
  width: 100%;
  justify-content: space-between;
  gap: 26px;
}
.feature-grid > div {
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 28px 22px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.12s;
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-hover);
}
.feature-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    width: 100%;
  }
}

/* TESTIMONIAL CARD */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  border-left: 6px solid var(--color-accent);
  max-width: 620px;
}
.testimonial-card p {
  color: var(--color-text-main);
  font-size: 1.13rem;
  font-family: var(--font-body);
}
.testimonial-card strong {
  color: var(--color-accent);
  font-weight: 700;
}

/* ACCORDION FAQ (investment_opportunities) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-accordion > div {
  background: var(--color-secondary);
  padding: 20px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.faq-accordion h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.faq-accordion p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* LISTS AND UL/OL */
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}
ul li {
  list-style-type: disc;
  margin-bottom: 7px;
}
ol li {
  list-style-type: decimal;
  margin-bottom: 7px;
}

/* ===========
   HERO SECTION
   =========== */
section:first-of-type {
  background: var(--color-secondary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 3px 18px -8px rgba(23,43,54,0.04);
  margin-bottom: 56px;
}
@media (max-width:700px){
  section:first-of-type {
    padding: 30px 12px;
    margin-bottom: 30px;
  }
}

/* =====================
   FOOTER STYLES
   ===================== */
footer {
  width: 100%;
  background: var(--color-bg-footer);
  color: var(--color-secondary);
  padding: 36px 0 20px 0;
  font-size: 1rem;
  box-shadow: 0 -2px 12px 0 rgba(23,43,54,0.05);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.2);
}
footer nav {
  display: flex;
  gap: 24px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  font-family: var(--font-body);
  opacity: 0.88;
  transition: color 0.18s, opacity 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
footer .text-section p {
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 3px;
}
@media (min-width: 900px) {
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
  }
}

/* ================
   COOKIE BANNER  
   ================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  width: 100vw;
  background-color: var(--color-primary);
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 24px 18px;
  box-shadow: 0 -2px 38px -10px rgba(16,29,46,.13);
  gap: 26px;
  justify-content: center;
  transition: transform 0.28s, opacity 0.21s;
  opacity: 1;
}
.cookie-banner[hidden] {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  font-size: 1rem;
  flex: 1 1 0%;
  min-width: 140px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-cookie {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.17s, color 0.14s;
}
.btn-cookie.accept {
  color: #fff;
  background: var(--color-accent);
}
.btn-cookie.accept:hover, .btn-cookie.accept:focus {
  background: #a57240;
}
.btn-cookie.reject {
  border: 1.5px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-cookie.reject:hover, .btn-cookie.reject:focus {
  background: #fff;
  color: var(--color-primary);
}
.btn-cookie.settings {
  color: var(--color-accent);
  background: #fff;
}
.btn-cookie.settings:hover, .btn-cookie.settings:focus {
  background: #ffe9ca;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 6px;
  }
  .cookie-banner__text {
    margin-bottom: 8px;
  }
}

/* Cookie modal (overlay) */
.cookie-modal {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 9999;
  background: rgba(23,43,54,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
  opacity: 1;
}
.cookie-modal[hidden] {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__content {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius);
  max-width: 410px;
  box-shadow: 0 6px 48px -12px rgba(23,43,54,.18);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal__heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size:1rem;
}
.cookie-category input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}
.cookie-category.essential label {
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal__close {
  position: absolute;
  top: 23px; right: 31px;
  font-size: 1.7rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal__close:hover { color: var(--color-accent); }

@media (max-width:500px){
  .cookie-modal__content { padding: 18px 7px; }
  .cookie-modal__heading { margin-bottom: 11px; }
}

/* =====================
   FORM & INPUTS (generic)
   ===================== */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 7px;
  padding: 10px 13px;
  margin-bottom: 10px;
  transition: border-color 0.16s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 1px 8px -1px var(--color-accent);
}
label { font-family: var(--font-body); font-weight: 500; font-size: 1rem; margin-bottom: 4px; }

/* ==============
   UTILITIES
   ============== */
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; clip: rect(1px,1px,1px,1px); padding:0!important; border:0!important; height:1px;width:1px;overflow:hidden; }

/* ============
   RESPONSIVE
   ============ */
@media (max-width: 600px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.08rem; }
  .container { padding: 0 5px; }
}
@media (max-width: 480px) {
  .feature-grid > div, .card, .testimonial-card { padding: 15px 7px; }
}

/* ===== SPACING and FLEXBOX GAPS (critical) ===== */
.section, .feature-grid > div, .card, .testimonial-card, .faq-accordion > div {
  margin-bottom: 20px; /* Ensure vertical spacing between blocks */
}
.card-container, .card-grid, .feature-grid, .content-grid {
  gap: 20px;
}
.content-wrapper {
  gap: 20px;
}

/* =============
   MICRO-INTERACTIONS/ANIMATIONS
   ============= */
.btn-primary, .btn-cookie {
  transition: background 0.17s, color 0.14s, transform 0.13s, box-shadow 0.16s;
}
.card, .feature-grid > div, .testimonial-card, .faq-accordion > div {
  transition: box-shadow 0.17s, transform 0.16s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .faq-accordion > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.01);
}

/* === ACCESSIBLE FOCUS INDICATORS === */
:focus-visible {
  outline: 2.5px solid var(--color-focus);
  outline-offset: 2px;
}

/* ============
   ICON IMG IN TEXT
   ============ */
.text-section img {
  height: 22px;
  width: 22px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
  margin-bottom: -3px;
}

/* ============
   PRINT STYLES (minimal)
   ============ */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  body { color: #222; background: #fff; font-size: 11pt; }
}
