/* =========================================================
   Mesna Industrier AS — v2 stylesheet
   Layout/interaction pattern modeled on brevanhoward.com/about-us/:
   sticky full-width header, numbered narrative sections,
   pull-quote band, hallmarks icon grid, interactive tabbed
   "pillars" component with image swap, scroll-reveal, and a
   full site-wide footer with legal + contact blocks.
   ========================================================= */

:root{
  --navy: #16263D;
  --navy-2: #1F3552;
  --paper: #F7F6F2;
  --ink: #17171A;
  --ink-soft: #55565C;
  --gray-line: #E3E1D9;
  --brass: #8A6D3B;
  --brass-light: #A6864F;
  --white: #FFFFFF;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1180px;
  --maxw-text: 640px;
  --header-h: 78px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html, body{ margin:0; padding:0; }
body{
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px){ .wrap{ padding: 0 22px; } }

img, svg{ max-width: 100%; display: block; }

/* ---------- Brand lockup (shared with v1) ---------- */
.brand-lockup{ display:inline-flex; flex-direction:column; align-items:stretch; width:fit-content; }
.brand-lockup .brand-main{ font-family: var(--serif); font-weight:700; letter-spacing:0.14em; white-space:nowrap; }
.brand-lockup .brand-rule{ height:1px; background:currentColor; margin:0.14em 0; width:100%; }
.brand-lockup .brand-sub{ font-family: var(--sans); letter-spacing:0.4em; white-space:nowrap; padding-left:0.4em; }
.brand-lockup.small .brand-main{ font-size:15px; }
.brand-lockup.small .brand-sub{ font-size:6.5px; margin-top:1px; }
.brand-lockup.large .brand-main{ font-size: clamp(34px, 6vw, 56px); }
.brand-lockup.large .brand-sub{ font-size: clamp(11px, 1.4vw, 15px); margin-top:2px; }

.brand-logo{ display:block; width:auto; }
.brand-logo.small{ height:30px; }
.brand-logo.large{ height: clamp(56px, 9vw, 92px); margin: 0 auto; }

/* ---------- Sticky header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled{
  border-bottom-color: var(--gray-line);
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}
.site-header .wrap{
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header a.brand-link{ color: var(--ink); }

.header-nav{
  display: flex;
  align-items: center;
  gap: 34px;
}
.header-nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; gap: 30px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header-nav a{
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.header-nav a.current,
.header-nav a:hover,
.header-nav a:focus-visible{
  border-bottom-color: var(--brass);
  color: var(--brass);
}

.header-nav a[href="ledig.html"],
.header-nav a[href="ledig.html"].current,
.header-nav a[href="ledig.html"]:hover,
.header-nav a[href="ledig.html"]:focus-visible{
  color: #3E6B44;
}

.lang-toggle{
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  line-height: 1;
  padding: 6px;
}
.lang-toggle .lang-option{
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 400;
}
.lang-toggle .lang-option:hover{ color: var(--ink); }
.lang-toggle .lang-option.active{ color: var(--ink); font-weight: 700; cursor: default; }
.lang-toggle .lang-sep{ font-size: 11px; color: var(--gray-line); }

.menu-btn{
  display:none;
  width: 30px; height: 30px;
  padding:0; background:transparent; border:none; cursor:pointer;
  flex-direction: column; align-items:flex-end; justify-content:center; gap:6px;
}
.menu-btn span{ display:block; width:24px; height:1px; background:var(--ink); transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-btn[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px){
  .header-nav ul{ display:none; }
  .menu-btn{ display:flex; }
}

.nav-overlay{
  position: fixed; inset:0; background: var(--white); z-index: 90;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition: opacity 0.3s ease;
}
.nav-overlay.open{ opacity:1; visibility:visible; }
.nav-overlay ul{ list-style:none; margin:0; padding:0; text-align:center; }
.nav-overlay li{ margin: 20px 0; }
.nav-overlay a{ font-size: clamp(24px,5vw,34px); font-weight:300; }
.nav-overlay a.current{ font-weight:600; color: var(--brass); }
.nav-overlay a[href="ledig.html"]{ color: #3E6B44; }
.nav-overlay a[href="ledig.html"].current{ font-weight:600; color: #3E6B44; }

/* ---------- Numbered section shell ---------- */
.section{ padding: 100px 0; border-bottom: 1px solid var(--gray-line); scroll-margin-top: var(--header-h); }
.section:last-of-type{ border-bottom: none; }
.section-num{
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.section-eyebrow{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.section h2{
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 26px;
  line-height: 1.15;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ---------- Hero (Home) ---------- */
.hero{
  min-height: calc(100vh - var(--header-h));
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  text-align:center; padding: 25vh 24px 80px;
}
.hero .tagline{ margin-top: 32px; font-size: 15px; color: var(--ink-soft); }
.hero .estd{ margin-top: 28px; font-size: 11px; letter-spacing:0.1em; color: var(--ink-soft); text-transform:uppercase; }

.hero-intro{
  margin-top: 70px;
  width: min(calc(var(--logo-w, 400px) * 1.5), 100%);
  text-align: left;
}
.hero-intro p{ font-size: 17px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 20px; }
.hero-intro p:last-child{ margin-bottom: 0; }
.nowrap{ white-space: nowrap; }
.hero .cta{
  margin-top: 42px;
  display: inline-block;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 30px;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.hero .cta:hover{ background: var(--navy); color: var(--white); }

.scroll-cue{
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-soft);
  animation: scrollCueBounce 2.2s ease-in-out infinite;
}
.scroll-cue:hover{ color: var(--brass); }
@keyframes scrollCueBounce{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce){
  .scroll-cue{ animation: none; }
}

/* ---------- Intro (About 01) two-column ---------- */
.intro-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px){ .intro-grid{ grid-template-columns: 1fr; gap: 36px; } }
.intro-grid p{ color: var(--ink-soft); font-size: 16.5px; line-height: 1.8; margin: 0 0 18px; max-width: 56ch; }
.intro-grid p.lead-line{ color: var(--ink); font-size: 15px; margin-top: 26px; }

.portrait-card{
  border: 1px solid var(--gray-line);
  background: var(--paper);
  padding: 22px;
}
.portrait-frame{
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #1F3552, #16263D);
  position: relative;
  overflow: hidden;
  display:flex; align-items:flex-end;
}
.portrait-frame svg{ position:absolute; inset:0; width:100%; height:100%; opacity:0.5; }
.portrait-caption{
  position: relative;
  z-index: 2;
  padding: 18px 20px;
  color: #EDEFF3;
  font-size: 13px;
}
.portrait-caption .role{ display:block; font-size: 11px; letter-spacing:0.1em; text-transform:uppercase; color:#9FADC2; margin-top:3px; }
.portrait-note{
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Pull-quote band ---------- */
.quote-band{
  background: var(--navy);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}
.quote-band blockquote{
  margin: 0 auto;
  max-width: 780px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.5;
}
.quote-band .quote-mark{
  font-family: var(--serif);
  font-size: 54px;
  color: var(--brass-light);
  line-height: 1;
  margin-bottom: 10px;
}
.quote-band cite{
  display:block;
  margin-top: 26px;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9FADC2;
}

/* ---------- Hallmarks icon grid ---------- */
.hallmarks-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 40px;
}
@media (max-width: 860px){ .hallmarks-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .hallmarks-grid{ grid-template-columns: 1fr; } }
.hallmark .icon{
  width: 40px; height: 40px;
  margin-bottom: 18px;
  color: var(--navy);
  transition: color 0.2s ease, transform 0.2s ease;
}
.hallmark:hover .icon{ color: var(--brass); transform: translateY(-2px); }
.hallmark h3{ font-family: var(--serif); font-size: 18px; font-weight:700; margin: 0 0 8px; }
.hallmark p{ font-size: 14.5px; color: var(--ink-soft); margin:0; line-height:1.7; }

/* ---------- Three Pillars tabbed component ---------- */
.pillars{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px){ .pillars{ grid-template-columns: 1fr; } }

.pillar-tabs{ display:flex; flex-direction: column; border-top: 1px solid var(--gray-line); }
.pillar-tab{
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-line);
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--ink-soft);
}
.pillar-tab .tab-num{ font-family: var(--serif); font-size: 15px; color: var(--brass); flex: 0 0 auto; }
.pillar-tab .tab-title{ font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.pillar-tab .tab-desc{
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
  max-width: 46ch;
}
.pillar-tab[aria-selected="true"] .tab-title{ color: var(--brass); }
.pillar-tab[aria-selected="true"]{ border-bottom-color: var(--brass); }

.pillar-panels{ position: relative; }
.pillar-panel{ display:none; }
.pillar-panel.active{ display:block; animation: pillarFade 0.4s ease; }
@keyframes pillarFade{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform: translateY(0); } }

.pillar-image{
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #EFEDE3, #DAD6C7);
  border: 1px solid var(--gray-line);
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.pillar-image svg{ position:absolute; inset:0; width:100%; height:100%; }
.pillar-image .replace-note{
  position: absolute; bottom: 10px; right: 12px;
  font-size: 9.5px; letter-spacing:0.08em; text-transform:uppercase; color: var(--ink-soft);
}
.pillar-panel ul{ list-style:none; margin:0; padding:0; }
.pillar-panel li{ margin-bottom: 18px; }
.pillar-panel li h4{ font-family: var(--serif); font-size: 16.5px; margin: 0 0 4px; }
.pillar-panel li p{ font-size: 14.5px; color: var(--ink-soft); margin:0; line-height:1.7; }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--paper);
  padding: 90px 0;
  text-align: center;
}
.cta-band h2{ font-family: var(--serif); font-size: clamp(24px,3.4vw,32px); margin: 0 0 16px; }
.cta-band p{ color: var(--ink-soft); max-width: 52ch; margin: 0 auto 30px; }
.cta-band a.cta-btn{
  display:inline-block;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 34px;
  background: var(--navy); color: var(--white);
}
.cta-band a.cta-btn:hover{ background: var(--navy-2); }

/* ---------- Simple content page (Privacy) ---------- */
.content-simple{ padding: 90px 24px; }
.content-simple .inner{ max-width: var(--maxw-text); margin: 0 auto; }
.content-simple p{ font-size: 15.5px; line-height: 1.8; color: var(--ink); margin: 0 0 18px; }

/* ---------- Properties page ---------- */
.properties-hero{ padding-top: 70px; padding-bottom: 20px; }
.properties-hero p{ color: var(--ink-soft); font-size: 16px; }

.properties-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding: 44px 0 90px;
}
@media (max-width: 900px){ .properties-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .properties-grid{ grid-template-columns: 1fr; } }

.properties-empty{
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 30px 0;
}

.property-card{
  border: 1px solid var(--gray-line);
  background: var(--white);
}

.property-image{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}
.property-image img,
.property-image svg{ width: 100%; height: 100%; object-fit: cover; display: block; }

.property-status{
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--white);
  border: 1px solid currentColor;
}
.property-status.status-available{ color: #3E6B44; }
.property-status.status-leased{ color: var(--ink-soft); }
.property-status.status-contract{ color: #7B3B33; }

/* ---------- Ledig (available listings) page ---------- */
.listings-hero{ padding-top: 70px; padding-bottom: 20px; }
.listings-hero p{ color: var(--ink-soft); font-size: 16px; }

.listings-grid{
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 44px 0 90px;
}

.listing-card{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-line);
  background: var(--white);
}

.listing-image{
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--paper);
}
.listing-image img,
.listing-image svg{ width: 100%; height: 100%; object-fit: cover; display: block; }

.listing-images{
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--gray-line);
}
.listing-images .listing-image{ aspect-ratio: 21 / 9; }

.listing-body{
  padding: 34px 38px;
}
.listing-body h3{
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
}
.listing-body p{
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.property-body{ padding: 20px 22px 24px; }
.property-body h3{
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.35;
}

.property-details{
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--gray-line);
}
.property-subtitle{
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.6;
}
.property-tenants-list{
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Team / contact person cards ---------- */
.team-section{ padding-top: 10px; padding-bottom: 90px; }

.team-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 640px){ .team-grid{ grid-template-columns: 1fr; } }

.team-card{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--gray-line);
  background: var(--white);
  overflow: hidden;
}
@media (max-width: 640px){ .team-card{ grid-template-columns: 1fr; } }

.team-photo{
  width: 100%;
  min-height: 260px;
  background: var(--paper);
  border-right: 1px solid var(--gray-line);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 640px){
  .team-photo{ border-right: none; border-bottom: 1px solid var(--gray-line); min-height: 220px; }
}
.team-photo svg{
  width: 34%;
  height: 34%;
  fill: none;
  stroke: #C9C4B0;
  stroke-width: 4;
}
.team-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-info{ padding: 34px 32px; align-self: center; min-width: 0; }
.team-field{ margin: 0 0 15px; }
.team-field:last-child{ margin-bottom: 0; }
.team-field-tight{ margin-bottom: 4px; }
.team-label{
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.team-value{
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  word-break: break-word;
}
.team-title{
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
  word-break: break-word;
}
a.team-value:hover,
a.team-value:focus-visible{
  color: var(--brass);
  text-decoration: underline;
}

/* ---------- Contact page ---------- */
.contact-hero{ padding-top: 70px; padding-bottom: 20px; }
.contact-hero p{ color: var(--ink-soft); font-size: 16px; }

/* ---------- Footer ---------- */
footer.site-footer{ background: var(--navy); color: #C9D2DE; }
footer.site-footer .footer-top{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
  padding: 70px 0 50px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 860px){ footer.site-footer .footer-top{ grid-template-columns: 1fr; gap: 34px; } }
footer.site-footer h4{
  font-family: var(--sans); font-size: 11px; letter-spacing:0.1em; text-transform:uppercase;
  color: #92A2B8; margin: 0 0 14px;
}
footer.site-footer .footer-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
footer.site-footer a{ color: #DDE2E8; }
footer.site-footer a:hover{ color: var(--brass-light); }
footer.site-footer .footer-legal p{ font-size: 12px; line-height: 1.8; color: #8C9AAF; margin: 0 0 12px; }
footer.site-footer .footer-contact p{ font-size: 14px; color: #DDE2E8; margin: 0 0 10px; line-height: 1.7; }
footer.site-footer .footer-bottom{
  padding: 22px 0 30px;
  display:flex; justify-content: space-between; align-items:center; flex-wrap:wrap; gap: 10px;
  font-size: 11.5px; color: #7C8CA3;
}
footer.site-footer .footer-bottom a{ color: #7C8CA3; }
footer.site-footer .footer-bottom a:hover{ color: var(--brass-light); }
