/*
Theme Name: Value Partner
Description: KV Value Partnerin teema
Version: 1.0.1
Text Domain: kv-value-partner
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --gold:       #E8A800;
  --gold-light: #F5C842;
  --black:      #0D0D0D;
  --dark:       #141414;
  --light-grey: #F4F2EE;
  --white:      #FFFFFF;
  --text:       #2C2C2C;
  --text-muted: #6B6B6B;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius: 6px;
  --max-width: 1180px;
  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p  { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}
#content {
	min-height: calc(100vh - 430px);
	font-size: 1.1rem !important;
	margin: 5em auto;
	padding: 0 2em;
	max-width: 1200px;
}

.section { padding-block: 72px; }
.section--dark  { background: var(--dark);       color: var(--white); }
.section--grey  { background: var(--light-grey); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn--primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--black);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  min-height: 160px;
}

.header-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.header-bg::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.35)),
    url('https://valuepartner.fi/wp/wp-content/uploads/2026/05/2013-06-08-233.jpg') top/cover no-repeat;
  filter: blur(3px);
}

.header-inner {
  position: relative;
  z-index: 1; /* sits above the pseudo-element */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 28px 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-branding { text-decoration: none; }
.site-branding__name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,1);
}
.site-branding__tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
  font-weight:600;
  margin-top: 6px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* Primary nav */
.main-navigation { width: 100%; margin-top: 20px; }
.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 10px 0; padding: 0;
}
.main-navigation a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  padding: 10px 14px;
  font-weight:600;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: all var(--transition);
}

.main-navigation .current-menu-item > a {
  color: var(--gold);
}

.main-navigation a:hover {
  color: var(--gold);
  background: rgba(232,168,0,0.08);
}

/* Mobile */
@media (max-width: 768px) {
  .site-header { min-height: 0; }
  .header-inner { padding-block: 14px; }
  .main-navigation { margin-top: 0; }
  .site-branding__name { font-size: 1.35rem; }
  .site-branding__tagline { font-size: 0.7rem; }
  .main-navigation ul { flex-direction: column; }
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   CONTACT BAR
   ============================================================ */
.contact-bar {
  background: var(--gold);
  padding: 10px 0;
}
.contact-bar__inner {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
.contact-bar a {
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 500;
}
.contact-bar a:hover { color: var(--dark); }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: var(--dark);
  padding: 52px 0;
  border-bottom: 3px solid var(--gold);
}
.page-header h1 { color: var(--white); }
.page-header .breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}
.page-header .breadcrumb a { color: var(--gold); }

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* ============================================================
   SIDEBAR / WIDGET
   ============================================================ */
.widget {
  background: var(--light-grey);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.widget__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.widget ul { list-style: none; }
.widget ul li { margin-bottom: 8px; }
.widget ul li a { color: var(--text); font-size: 0.9rem; }
.widget ul li a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  padding: 0;
}
.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  margin: 0;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,168,0,0.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding-block: 48px; }
  .nav-toggle { display: flex; }
  .main-navigation {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .main-navigation.open { display: flex; }
  .main-navigation a { padding: 11px 14px; }
  .contact-bar__inner { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
