/*
Theme Name:   Iveta Renhold
Theme URI:    https://ivetareinhold.no/
Description:  GeneratePress child theme for Iveta Renhold AS — boutique Norwegian cleaning atelier. Dark forest green + crisp white, Fraunces + Inter, hairlines over shadows. Ports REFERENCE.html section-for-section.
Author:       Ovanap Design
Author URI:   https://ovanap.dev/
Template:     generatepress
Version:      0.6.5
Text Domain:  iveta-child
*/

/* ===========================================================
   Tokens
   =========================================================== */
:root {
  --green-900: #14332A;
  --green-800: #1F4A3A;
  --green-600: #3A6A58;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F6F2;
  --text-primary: #1A1C1A;
  --text-muted: #6B6E68;
  --text-inverse: #F7F6F2;
  --divider: #E8E5DE;
  --divider-soft: #F0EEE8;
  --accent-blue: #B8CDCE;
  --about-body: #EDE7D6;

  --font-serif: 'Fraunces', 'PP Editorial New', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-display: 56px;
  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-body-lg: 18px;
  --fs-body: 17px;
  --fs-body-sm: 15px;
  --fs-meta: 13px;
  --fs-label: 11px;

  --lh-display: 1.08;
  --lh-heading: 1.18;
  --lh-body: 1.55;
  --ls-label: 0.08em;
  --ls-heading: -0.01em;

  --container-max: 1240px;
  --container-pad: 24px;

  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  --shadow-soft: 0 2px 8px rgba(20,51,42,.04), 0 1px 2px rgba(20,51,42,.04);
  --shadow-lifted: 0 8px 28px rgba(20,51,42,.08), 0 2px 6px rgba(20,51,42,.04);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-base: 240ms;
}

/* ===========================================================
   Reset & base — override GP defaults
   =========================================================== */
html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: var(--ls-heading);
  color: var(--text-primary);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  text-wrap: balance;
  margin: 0;
}

h1, .entry-title { font-size: var(--fs-display); line-height: var(--lh-display); font-variation-settings: "opsz" 120, "SOFT" 40; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); font-variation-settings: "opsz" 96, "SOFT" 40; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); font-variation-settings: "opsz" 72, "SOFT" 40; }
h4 { font-size: var(--fs-h4); line-height: var(--lh-heading); font-variation-settings: "opsz" 60, "SOFT" 40; }

@media (max-width: 768px) {
  h1, .entry-title { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
}

a { color: var(--green-800); text-decoration: none; transition: color var(--dur-base) var(--ease); }
a:hover, a:focus { color: var(--green-900); }

p { line-height: var(--lh-body); margin: 0 0 1em; text-wrap: pretty; }

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

/* Italic helper — echoes the logo italic */
.iv-italic {
  font-style: italic;
  font-variation-settings: "opsz" 120, "SOFT" 60;
}

/* Eyebrow */
.iv-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-800);
  display: inline-block;
}

/* ===========================================================
   Hide GP chrome on iveta-templated pages — we render our own
   =========================================================== */
.iv-page #masthead,
.iv-page #site-navigation,
.iv-page .site-header,
.iv-page #site-footer,
.iv-page .site-footer,
.iv-page .footer-widgets,
.iv-page .site-info,
.iv-page .entry-header,
.iv-page .entry-footer,
.iv-page .post-image,
.iv-page .nav-below,
.iv-page .footer-bar,
.iv-page .footer-widgets-container,
.iv-page #footer-bar,
.iv-page .generate-back-to-top,
.iv-page #generate-back-to-top { display: none !important; }

.iv-page .site,
.iv-page #page,
.iv-page .site-content,
.iv-page #content,
.iv-page #primary,
.iv-page .content-area,
.iv-page main,
.iv-page article,
.iv-page .entry-content,
.iv-page .inside-article {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: block !important;
  float: none !important;
}

.iv-page .grid-container,
.iv-page .container { max-width: none !important; padding: 0 !important; }
.iv-page .iv-header,
.iv-page .iv-footer,
.iv-page .iv-main,
.iv-page .iv-section,
.iv-page .iv-hero,
.iv-page .iv-marquee,
.iv-page .iv-about { width: 100% !important; max-width: none !important; }

/* Make sure mobile nav drawer or admin bar push doesn't break sticky */
.iv-page { background: var(--bg-primary); }

/* ===========================================================
   Custom container helper
   =========================================================== */
.iv-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ===========================================================
   Header — sticky, white, hairline border on scroll
   =========================================================== */
.iv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.iv-header.is-scrolled {
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--divider);
}
.iv-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.iv-header__logo { display: flex; align-items: center; }
.iv-header__logo img { width: 115px; height: auto; }
@media (min-width: 768px) {
  .iv-header__logo img { width: 150px; }
}
.iv-nav { display: none; gap: 32px; align-items: center; }
.iv-nav a { font-size: 14px; color: var(--text-primary); }
.iv-nav a:hover { color: var(--green-800); }
.iv-header__right { display: none; gap: 20px; align-items: center; }
.iv-header__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-primary); }
.iv-header__phone:hover { color: var(--green-800); }
.iv-cta {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--green-800);
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  transition: background-color var(--dur-base) var(--ease);
}
.iv-cta:hover { background: var(--green-900); color: #FFFFFF; }
.iv-cta--lg { padding: 14px 24px; font-size: 15px; }
.iv-cta--ghost {
  color: var(--green-800);
  background: transparent;
  border: 1px solid var(--divider);
}
.iv-cta--ghost:hover { background: transparent; border-color: var(--green-800); color: var(--green-800); }

.iv-header__burger { display: inline-flex; padding: 8px; margin-right: -8px; background: none; border: 0; color: var(--text-primary); cursor: pointer; }
.iv-mobile-menu { display: none; background: #FFFFFF; border-top: 1px solid var(--divider); padding: 20px var(--container-pad); flex-direction: column; gap: 16px; }
.iv-mobile-menu > a { font-size: 16px; color: var(--text-primary); }
.iv-mobile-menu > a:hover { color: var(--green-800); }
/* CTA pill in the mobile menu — solid green, white text. Higher specificity to beat .iv-mobile-menu > a. */
.iv-mobile-menu a.iv-cta {
  background: var(--green-800);
  color: #FFFFFF;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
  margin-top: 8px;
}
.iv-mobile-menu a.iv-cta:hover { background: var(--green-900); color: #FFFFFF; }
.iv-header.is-open .iv-mobile-menu { display: flex; }
@media (min-width: 768px) {
  .iv-nav, .iv-header__right { display: flex; }
  .iv-header__burger { display: none; }
  .iv-header.is-open .iv-mobile-menu { display: none; }
}

/* ===========================================================
   Hero
   =========================================================== */
.iv-hero { position: relative; }
.iv-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px var(--container-pad) 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .iv-hero__inner { padding-top: 80px; padding-bottom: 112px; grid-template-columns: repeat(12, 1fr); gap: 40px; }
  .iv-hero__text { grid-column: span 5; order: 1; }
  .iv-hero__image { grid-column: span 7; order: 2; }
}
.iv-hero h1 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 120, "SOFT" 40;
}
@media (min-width: 768px) { .iv-hero h1 { font-size: 56px; } }
.iv-hero h1 .iv-italic { font-variation-settings: "opsz" 120, "SOFT" 60; }
.iv-hero__sub { margin-top: 24px; font-size: 17px; line-height: 1.55; color: var(--text-muted); max-width: 440px; }
@media (min-width: 768px) { .iv-hero__sub { font-size: 18px; } }
.iv-hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.iv-hero__trust { margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.iv-hero__trust .iv-dot { color: var(--accent-blue); margin: 0 8px; }
.iv-hero__image .iv-frame { aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; background: #F4EFE4; position: relative; }
/* Same watermark crop on hero. Static (no hover scale) since the hero is the
   focal element and zoom-on-hover would be needless motion. */
.iv-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transform: scale(1.06);
  transform-origin: top left;
}
.iv-hero__image .iv-mask { display: none; }

/* ===========================================================
   Marquee
   =========================================================== */
.iv-marquee {
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  overflow: hidden;
  height: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.iv-marquee__track {
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--green-800);
  letter-spacing: 0.15em;
  font-variation-settings: "opsz" 48, "SOFT" 40;
  width: max-content;
  animation: iv-marquee 60s linear infinite;
}
.iv-marquee__line {
  display: inline-block;
  white-space: nowrap;
  /* No padding: each line ends with " — " so the join between the two duplicated
     lines reads as a single separator, not a 48px gap that looks like an empty
     placeholder between Sarpsborg and Moss. */
}
@keyframes iv-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .iv-marquee__track { animation: none; }
}

/* ===========================================================
   Sections — common
   =========================================================== */
.iv-section {
  border-top: 1px solid var(--divider);
}
.iv-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 96px var(--container-pad);
}
@media (min-width: 768px) {
  .iv-section__inner { padding-top: 112px; padding-bottom: 112px; }
}
.iv-section--narrow .iv-section__inner { max-width: 820px; }
.iv-section--center { text-align: center; }

/* Manifesto */
.iv-manifesto {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  font-variation-settings: "opsz" 96, "SOFT" 40;
  text-wrap: balance;
}
.iv-manifesto .iv-italic { font-variation-settings: "opsz" 96, "SOFT" 60; }
@media (min-width: 768px) {
  .iv-manifesto { font-size: 32px; }
}

/* Section header (eyebrow + h2) */
.iv-section__head { max-width: 680px; margin-bottom: 64px; }
.iv-section__head .iv-eyebrow { margin-bottom: 16px; }
.iv-section__head h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96, "SOFT" 40;
}
@media (min-width: 768px) { .iv-section__head h2 { font-size: 40px; } }
.iv-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===========================================================
   Service cards
   =========================================================== */
.iv-services-row { margin-bottom: 80px; }
.iv-services-row:last-child { margin-bottom: 0; }
.iv-services-row__head { margin-bottom: 40px; }
.iv-services-row__head .iv-eyebrow { margin-bottom: 12px; }
.iv-services-row__head h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96, "SOFT" 40;
}
@media (min-width: 768px) { .iv-services-row__head h2 { font-size: 40px; } }

.iv-cards-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .iv-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.iv-card {
  background: #FFFFFF;
  border: 1px solid var(--divider);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.iv-card:hover {
  border-color: #D4CFC2;
  box-shadow: var(--shadow-soft);
}
.iv-card__img { aspect-ratio: 4 / 3; background: #F4EFE4; overflow: hidden; position: relative; }
/* Service-card images: scale up + push origin to top-left so the AI generator's
   watermark in the bottom-right corner is clipped out by overflow:hidden. */
.iv-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transform: scale(1.07);
  transform-origin: top left;
  transition: transform 400ms var(--ease);
  will-change: transform;
}
.iv-card:hover .iv-card__img img { transform: scale(1.10); }
.iv-card__body { padding: 24px; }
.iv-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.iv-card__desc { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin-bottom: 20px; }
.iv-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--green-800);
}
.iv-card__more svg { width: 14px; height: 14px; }
.iv-card:hover .iv-card__more { color: var(--green-900); }

/* ===========================================================
   About — dark green full-bleed
   =========================================================== */
.iv-about {
  background: var(--green-800);
  color: var(--text-inverse);
}
.iv-about__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 96px var(--container-pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .iv-about__inner { padding-top: 128px; padding-bottom: 128px; grid-template-columns: repeat(12, 1fr); gap: 56px; }
  .iv-about__image { grid-column: span 5; }
  .iv-about__text { grid-column: span 7; padding-left: 16px; }
}
.iv-about__frame { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--green-900); position: relative; }
.iv-about__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transform: scale(1.06);
  transform-origin: top left;
}
.iv-about .iv-eyebrow { color: var(--accent-blue); margin-bottom: 20px; }
.iv-about h2 {
  color: var(--text-inverse);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 120, "SOFT" 50;
  margin-bottom: 28px;
}
@media (min-width: 768px) { .iv-about h2 { font-size: 52px; } }
.iv-about h2 .iv-italic { font-style: italic; font-variation-settings: "opsz" 120, "SOFT" 70; color: var(--text-inverse); }
.iv-about__copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--about-body);
  max-width: 560px;
  margin: 0 0 20px;
}
.iv-about__copy p:last-child { margin-bottom: 0; }
.iv-about__sig {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text-inverse);
  font-variation-settings: "opsz" 60, "SOFT" 80;
}

/* ===========================================================
   Process
   =========================================================== */
.iv-process-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .iv-process-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.iv-step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.iv-step__num { font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.08em; color: var(--green-800); }
.iv-step__line { flex: 1; height: 1px; background: var(--divider); }
.iv-step__icon { width: 24px; height: 24px; color: var(--green-800); }
.iv-step h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.iv-step p { font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 300px; margin: 0; }

/* ===========================================================
   Areas
   =========================================================== */
.iv-areas__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 96px var(--container-pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .iv-areas__inner { padding-top: 112px; padding-bottom: 112px; grid-template-columns: repeat(12, 1fr); }
  .iv-areas__map { grid-column: span 7; }
  .iv-areas__text { grid-column: span 5; }
}
.iv-areas__map-frame { aspect-ratio: 6 / 5; border-radius: 20px; overflow: hidden; background: var(--bg-secondary); position: relative; }
.iv-areas__map-frame svg { width: 100%; height: 100%; display: block; }
.iv-areas h2 {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96, "SOFT" 40;
  margin-bottom: 20px;
}
.iv-areas h2 .iv-italic { font-variation-settings: "opsz" 96, "SOFT" 60; }
@media (min-width: 768px) { .iv-areas h2 { font-size: 34px; } }
.iv-areas__lead { font-size: 15.5px; line-height: 1.55; color: var(--text-muted); margin-bottom: 28px; max-width: 460px; }
.iv-areas__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.iv-areas__list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-primary); }
.iv-areas__list .iv-bullet { width: 6px; height: 6px; border-radius: 50%; background: var(--green-800); display: inline-block; flex: none; }
.iv-areas__outro { margin-top: 32px; font-size: 13.5px; color: var(--text-muted); font-style: italic; }

/* ===========================================================
   Testimonials
   =========================================================== */
.iv-testimonials { background: var(--bg-secondary); }
.iv-testimonials .iv-section__inner { padding-top: 96px; padding-bottom: 96px; }
@media (min-width: 768px) { .iv-testimonials .iv-section__inner { padding-top: 112px; padding-bottom: 112px; } }
.iv-testimonials .iv-section__head { margin-bottom: 56px; }
.iv-testi-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .iv-testi-grid { grid-template-columns: repeat(3, 1fr); } }
.iv-testi-card {
  background: #FFFFFF;
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.iv-testi__quote-glyph {
  font-family: var(--font-serif);
  font-size: 50px;
  line-height: 0.8;
  color: var(--accent-blue);
  margin-bottom: 16px;
  font-variation-settings: "opsz" 120, "SOFT" 60;
}
.iv-testi__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 32px;
  flex: 1;
  font-variation-settings: "opsz" 72, "SOFT" 60;
}
.iv-testi__name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ===========================================================
   Contact
   =========================================================== */
.iv-contact .iv-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 768px) {
  .iv-contact .iv-section__inner { grid-template-columns: repeat(12, 1fr); gap: 56px; }
  .iv-contact__left { grid-column: span 5; }
  .iv-contact__right { grid-column: span 7; }
}
.iv-contact .iv-eyebrow { margin-bottom: 16px; }
.iv-contact h2 {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 120, "SOFT" 40;
  color: var(--text-primary);
}
.iv-contact h2 + h2 { margin-bottom: 40px; font-style: italic; font-variation-settings: "opsz" 120, "SOFT" 70; }
@media (min-width: 768px) { .iv-contact h2 { font-size: 48px; } }
.iv-contact__info { display: flex; flex-direction: column; gap: 20px; font-size: 15px; color: var(--text-primary); }
.iv-contact__row { display: flex; align-items: center; gap: 12px; }
.iv-contact__row svg { width: 18px; height: 18px; color: var(--green-800); flex: none; }
.iv-contact__row--muted { color: var(--text-muted); align-items: flex-start; }
.iv-contact__row--muted svg { margin-top: 2px; }

/* CF7 form styling — bottom-border-only */
.iv-form-shell { /* container */ }
.wpcf7-form { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) {
  .iv-form-2col .wpcf7-form { grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 32px; }
  .iv-form-2col .wpcf7-form .iv-field--full { grid-column: span 2; }
}

.iv-field { display: flex; flex-direction: column; gap: 8px; }
.iv-field label,
.wpcf7 .iv-field > label,
.iv-field .iv-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--divider);
  border-radius: 0;
  padding: 4px 0 10px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--dur-base) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%231F4A3A' stroke-width='1.5'><path d='M1 1l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 0.25rem center; padding-right: 1.5rem; }
.wpcf7 textarea { resize: none; min-height: 96px; }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: #A9ACA8; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { border-bottom-color: var(--green-800); }

.wpcf7 .iv-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.wpcf7 .iv-submit-note { font-size: 13px; color: var(--text-muted); margin: 0; }

.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  background: var(--green-800);
  color: #FFFFFF;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease);
  width: auto;
}
.wpcf7 input[type="submit"]:hover { background: var(--green-900); }

.wpcf7 .wpcf7-not-valid-tip { color: #b04a3a; font-size: 13px; margin-top: 4px; }
.wpcf7 .wpcf7-response-output { border: 1px solid var(--divider); border-radius: var(--radius-md); padding: 12px 16px; margin: 24px 0 0; font-size: 14px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--green-800); color: var(--green-800); }

/* ===========================================================
   FAQ
   =========================================================== */
.iv-faq { }
.iv-faq__list { }
.iv-faq__item { border-top: 1px solid var(--divider); }
.iv-faq__item:last-child { border-bottom: 1px solid var(--divider); }
.iv-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  background: transparent;
  border: 0;
  outline: none;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  -webkit-appearance: none;
  appearance: none;
}
.iv-faq__btn:focus,
.iv-faq__btn:focus-visible,
.iv-faq__btn:active,
.iv-faq__btn:hover { background: transparent; outline: none; }
.iv-faq__item { background: transparent; transition: background-color .24s var(--ease), border-color .24s var(--ease), border-radius .24s var(--ease); }

/* Open state — full brand-green border around the entire block.
   Per Tomas: pilną žalią rėmelį, NOT just left border. Question + answer
   text stay dark on white bg. Rounded corners. Slight outer margin so the
   rounded box reads as a distinct active item among hairline neighbors. */
.iv-faq__item.is-open {
  background: var(--bg-primary);                /* solid white, not tinted */
  border: 1.5px solid var(--green-800);         /* full 4-side green border */
  border-radius: 8px;
  margin: 8px 0;                                /* breathing room from neighbors */
  /* When open, drop the hairline divider that would otherwise duplicate the top edge */
  border-top-color: var(--green-800);
}
/* When the item BEFORE an open one would collide its bottom hairline with the
   top edge of the green box, suppress the open item's top hairline-from-divider
   inheritance. The item's own border:1.5px solid wins, so this is mostly a
   safety net against future cascade additions. */
.iv-faq__item.is-open + .iv-faq__item { border-top-color: var(--divider); }

/* Inner padding for button + answer when open, so text doesn't kiss the border */
.iv-faq__item.is-open .iv-faq__btn {
  padding: 20px 24px;
}
.iv-faq__item.is-open .iv-faq__panel-inner p {
  padding: 0 24px 20px 24px;
  color: var(--text-primary);   /* dark text against white bg */
}
.iv-faq__item.is-open .iv-faq__q {
  color: var(--text-primary);   /* explicit: question text NEVER goes white */
  font-weight: 500;             /* slight emphasis on the active question */
}
/* Close icon stays brand green (already set on .iv-faq__icon, repeated for clarity) */
.iv-faq__item.is-open .iv-faq__icon { color: var(--green-800); }
.iv-faq__q {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 72, "SOFT" 40;
  /* Defensive: question title is ALWAYS visible regardless of open/closed
     state. Only the answer panel below collapses. !important to survive
     any future style drift or third-party plugin override. */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--text-primary) !important;
}
@media (min-width: 768px) { .iv-faq__q { font-size: 20px; } }
.iv-faq__icon { width: 24px; height: 24px; color: var(--green-800); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.iv-faq__icon svg { width: 18px; height: 18px; }
.iv-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.iv-faq__panel-inner { overflow: hidden; }
.iv-faq__panel-inner p {
  padding: 0 40px 24px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.iv-faq__item.is-open .iv-faq__panel { grid-template-rows: 1fr; }
.iv-faq__icon-plus { display: inline; }
.iv-faq__icon-minus { display: none; }
.iv-faq__item.is-open .iv-faq__icon-plus { display: none; }
.iv-faq__item.is-open .iv-faq__icon-minus { display: inline; }

/* ===========================================================
   Footer
   =========================================================== */
.iv-footer { background: #FFFFFF; border-top: 1px solid var(--divider); }
.iv-footer__inner { max-width: var(--container-max); margin: 0 auto; padding: 80px var(--container-pad) 40px; }
.iv-footer__cols { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 64px; }
@media (min-width: 768px) { .iv-footer__cols { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.iv-footer__col-title { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-800); margin-bottom: 20px; }
.iv-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.iv-footer__list a { font-size: 14px; color: var(--text-primary); }
.iv-footer__list a:hover { color: var(--green-800); }
.iv-footer__bottom { padding-top: 32px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; justify-content: space-between; }
@media (min-width: 768px) { .iv-footer__bottom { flex-direction: row; align-items: flex-end; } }
.iv-footer__logo img { height: 40px; width: auto; }
.iv-footer__org { font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 768px) { .iv-footer__org { text-align: right; align-items: flex-end; } }

/* ===========================================================
   MobileCTABar — pinned solid white, hairline top, brand colors.
   Matches REFERENCE.html MobileCTABar.jsx baseline:
   container px-4 py-3 padding, both pills px-4 py-3 rounded-[10px],
   Ring outline w/ green text + hairline border, Få tilbud solid green / white.

   Adaptations for native mobile browsers (iOS Safari/Chrome especially):
   - env(safe-area-inset-bottom) clears the iOS home indicator.
   - is-hidden class slides the bar off-screen when the user scrolls down,
     so it doesn't fight Chrome's own URL-bar collapse and doesn't sit on
     top of the FAQ when reading.
   =========================================================== */
.iv-mcta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  /* Premium separation: backdrop-blur with translucent white instead of a
     double border + drop shadow. One hairline keeps the line of separation
     when blur is unsupported. No box-shadow. */
  background: rgba(255, 255, 255, 0.92);
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--divider);
  box-shadow: none;
  padding: 12px 16px;
  /* iOS home-indicator clearance — adds to bottom padding when present. */
  padding-bottom: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  gap: 12px;
  transform: translateY(0);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
/* Fallback for browsers without backdrop-filter — solid white, no extra shadow. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iv-mcta { background: #FFFFFF; background-color: #FFFFFF; }
}
.iv-mcta.is-hidden { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) {
  .iv-mcta { transition: none; }
}
.iv-mcta a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}
/* Specific selectors so they beat .iv-mcta a baseline. */
a.iv-mcta__call {
  color: var(--green-800);
  background: #FFFFFF;
  border: 1px solid var(--divider);
}
a.iv-mcta__call:hover { color: var(--green-900); border-color: var(--green-800); }
a.iv-mcta__cta {
  color: #FFFFFF;
  background: var(--green-800);
  border: 0;
}
a.iv-mcta__cta:hover { color: #FFFFFF; background: var(--green-900); }
@media (min-width: 768px) { .iv-mcta { display: none; } }
@media (max-width: 767px) {
  /* leave room for the bar so FAQ + footer never sit underneath; account for safe area */
  .iv-page { padding-bottom: 88px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ===========================================================
   Reveal-on-scroll
   =========================================================== */
[data-iv-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-iv-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-iv-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===========================================================
   Service-detail page (Tjenester)
   =========================================================== */
.iv-svc-page { /* root */ }
.iv-svc-block { border-top: 1px solid var(--divider); }
.iv-svc-block:first-of-type { border-top: 0; }
.iv-svc-block__inner { max-width: var(--container-max); margin: 0 auto; padding: 96px var(--container-pad); }
@media (min-width: 768px) { .iv-svc-block__inner { padding-top: 112px; padding-bottom: 112px; } }
.iv-svc-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) {
  .iv-svc-grid { grid-template-columns: 5fr 7fr; gap: 56px; }
  .iv-svc-block__head { max-width: none; }
}
.iv-svc-block__head { max-width: 720px; margin-bottom: 48px; }
@media (min-width: 768px) { .iv-svc-block__head { margin-bottom: 0; } }
.iv-svc-block__head .iv-eyebrow { margin-bottom: 12px; }
.iv-svc-block__head h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "opsz" 96, "SOFT" 40; margin-bottom: 16px; }
@media (min-width: 768px) { .iv-svc-block__head h2 { font-size: 40px; } }
.iv-svc-block__head p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.iv-svc-detail-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
/* Reference uses 2 cols with the third card spanning both ("Slik fungerer det").
   3-col would leave an empty cell next to "Passer for" / "Dette kan inngå". */
@media (min-width: 640px) { .iv-svc-detail-grid { grid-template-columns: repeat(2, 1fr); } }
.iv-svc-detail-card { background: #FFFFFF; border: 1px solid var(--divider); border-radius: 16px; padding: 28px; }
.iv-svc-detail-card .iv-eyebrow { margin-bottom: 12px; }
.iv-svc-detail-card h3 { font-size: 20px; line-height: 1.25; font-variation-settings: "opsz" 60, "SOFT" 40; margin-bottom: 12px; }
.iv-svc-detail-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.iv-svc-detail-card li { display: flex; gap: 8px; font-size: 14.5px; line-height: 1.5; color: var(--text-primary); }
.iv-svc-detail-card li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green-800); margin-top: 8px; flex: none; }
.iv-svc-block__cta { margin-top: 32px; }

/* ===========================================================
   Page deep — Om Iveta
   =========================================================== */
.iv-bio-section .iv-section__inner { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }
@media (min-width: 768px) {
  .iv-bio-section .iv-section__inner { grid-template-columns: repeat(12, 1fr); gap: 56px; }
  .iv-bio-section__image { grid-column: span 5; }
  .iv-bio-section__text { grid-column: span 7; }
}
.iv-bio-section h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 120, "SOFT" 40;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .iv-bio-section h1 { font-size: 56px; } }
.iv-bio-section h1 .iv-italic { font-variation-settings: "opsz" 120, "SOFT" 60; }
.iv-bio-section__copy p { font-size: 17px; line-height: 1.6; color: var(--text-primary); margin-bottom: 16px; }
.iv-bio-section__frame { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--bg-secondary); position: relative; }
.iv-bio-section__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transform: scale(1.06);
  transform-origin: top left;
}

/* ===========================================================
   Kontakt-only deep page
   =========================================================== */
.iv-kontakt-hero {
  border-bottom: 1px solid var(--divider);
}
.iv-kontakt-hero .iv-section__inner { padding-top: 64px; padding-bottom: 32px; }
@media (min-width: 768px) { .iv-kontakt-hero .iv-section__inner { padding-top: 96px; padding-bottom: 48px; } }
