/* ============================================================
   arche.page — Hugo theme
   Fonts: Lora (headings) + Open Sans (body)
   Colors: --primary #1c6bd0, --secondary #414156
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Open+Sans:wght@400;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */

:root {
  --primary:   #1c6bd0;
  --secondary: #414156;
  --white:     #ffffff;
  --light:     #f8f9fa;
  --dark:      #1a1a2e;
  --header-height: 70px;
}

/* ── Dark theme ────────────────────────────────────────────── */

html.dark body {
  --primary:   #5b9fe8;
  --secondary: #c8cad8;
  --white:     #1a1a2e;
  --light:     #22223a;
  --dark:      #0d0d1a;
  background: #1a1a2e;
  color: #c8cad8;
}

html.dark .header        { background: #12121f; border-bottom-color: #2e2e4a; }
html.dark .front_text    { color: #c8cad8; }
html.dark .sub-footer-strip { background: #0d0d1a; }
html.dark .footer-strip  { background: #12121f; }
html.dark .content h1    { border-bottom-color: var(--primary); }

/* ── Theme toggle button ────────────────────────────────────── */


.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.5rem;
  color: var(--secondary);
  line-height: 1;
  margin-left: auto;
}

/* ── Reset / Base ──────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--secondary);
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }

/* ── Grid (Bootstrap 4 subset) ─────────────────────────────── */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class^="col-"] {
  padding: 0 15px;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6  { flex: 0 0 50%;     max-width: 50%; }
  .col-md-8  { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-12 { flex: 0 0 100%;    max-width: 100%; }
  .justify-content-center { justify-content: center; }
}

/* ── Utilities ─────────────────────────────────────────────── */

.text-left   { text-align: left; }
.text-center { text-align: center; }
.pb-4        { padding-bottom: 2rem; }
.img-fluid   { max-width: 100%; height: auto; }

/* ── Wrapper ───────────────────────────────────────────────── */

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e8eaf0;
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo { flex-shrink: 0; }
.logo img { height: 2rem; width: auto; }
.logo-mobile { display: none; }

/* ── Main menu ─────────────────────────────────────────────── */

.main-menu { margin-left: auto; }

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-menu ul li a {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  transition: color 0.2s;
}

.main-menu ul li a:hover { color: var(--primary); }

/* ── Hamburger (mobile) ────────────────────────────────────── */

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
}

.hamburger-box { display: flex; align-items: center; }

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: transform 0.3s;
}

.hamburger-inner { position: relative; }
.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger-inner::before { top: -7px; }
.hamburger-inner::after  { top:  7px; }

.hamburger.is-active .hamburger-inner  { background: transparent; }
.hamburger.is-active .hamburger-inner::before { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger-inner::after  { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu overlay ───────────────────────────────────── */

.main-menu-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--primary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main-menu-mobile.open { display: flex; }

.mobile-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.main-menu-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.main-menu-mobile ul li { margin: 1.2rem 0; }

.main-menu-mobile ul li a {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Bilboard (decorative fixed background) ─────────────────── */

.bilboard {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}

/* ── Intro / Hero ───────────────────────────────────────────── */

.intro {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
  flex: 1;
  display: flex;
  align-items: center;
}

.intro .row { align-items: center; gap: 2rem 0; }

.intro img { width: 23rem; }

.front_text {
  font-family: 'Lora', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.front_text_small {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2rem;
}

/* ── Button ─────────────────────────────────────────────────── */

/* ── Email obfuscation ──────────────────────────────────────── */

.name-of-the-rose {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.button {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 24px;
  background: var(--primary);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
}

.button:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-1px);
}

.call-box-bottom { margin-top: 1.5rem; }

/* ── Content pages ──────────────────────────────────────────── */

.content {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 4rem;
  flex: 1;
}

.content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: var(--secondary);
}

.content a { color: var(--primary); border-bottom: 1px solid transparent; }
.content a:hover { border-bottom-color: var(--primary); }

.content ul li::marker { color: var(--primary); }

/* ── Footer ─────────────────────────────────────────────────── */

.footer-strip {
  background: var(--secondary);
  padding: 1.5rem 0;
}

.sub-footer-strip {
  background: var(--dark);
  padding: 1rem 0;
}

.sub-footer-strip p {
  color: #888;
  font-size: 0.8rem;
  margin: 0;
  text-align: left;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 767px) {
  .main-menu  { display: none; }
  .hamburger  { display: block; }
  .logo       { display: none; }
  .logo-mobile { display: block; }
  .logo-mobile img { height: 30px; }

  .intro { padding-top: var(--header-height); }
  .intro img { max-width: 33rem; margin: 0 auto; }
  .front_text { font-size: 1.4rem; }
  .front_text_small { font-size: 1rem; }

  .content { padding-top: calc(var(--header-height) + 30px); }
}
