/*
Theme Name: Avendira
Theme URI: https://avendira.se/
Author: Avendira
Description: A clear, responsive company site for Avendira.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: avendira
*/

:root {
  --ink: #142b3a;
  --navy: #0e2533;
  --navy-deep: #081d2b;
  --muted: #566b77;
  --paper: #f6f5f1;
  --white: #fff;
  --line: #d9e1e1;
  --teal: #69c6b1;
  --teal-soft: #dff2e9;
  --gold: #ccac72;
  --content: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Aptos", "Segoe UI", Arial, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea { font: inherit; }
img, svg { max-width: 100%; }
::selection { background: #b8e3d4; color: var(--navy); }
.screen-reader-text { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text:focus { left: 12px; top: 12px; width: auto; height: auto; background: white; color: var(--ink); padding: 10px 14px; z-index: 100; }
.shell { width: min(calc(100% - 64px), var(--content)); margin-inline: auto; }
.site-header { background: var(--navy-deep); color: white; position: relative; z-index: 2; }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: white; white-space: nowrap; }
.brand-symbol { width: 29px; height: 29px; display: block; color: var(--teal); }
.brand-name { font-size: 23px; font-weight: 700; letter-spacing: .035em; }
.primary-nav { display: flex; align-items: center; gap: 34px; }
.primary-nav a { text-decoration: none; color: #c8d6dc; font-size: 13px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: white; }
.primary-nav .nav-contact { color: var(--teal); }
.hero { background: radial-gradient(circle at 75% 38%, #193c4d 0, #112d3d 38%, #0b2331 76%); color: white; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); min-height: 635px; align-items: center; gap: 24px; }
.hero-copy { padding-block: 72px 90px; position: relative; z-index: 1; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .23em; text-transform: uppercase; margin: 0 0 28px; }
.hero h1 { max-width: 680px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 5vw, 78px); line-height: 1.08; letter-spacing: -.035em; font-weight: 400; }
.hero h1 em { color: #a4dbc9; font-style: normal; }
.hero-summary { max-width: 550px; margin: 30px 0 36px; color: #d2dfe1; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.55; }
.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 12px 22px; background: var(--teal); border: 1px solid var(--teal); border-radius: 3px; color: #0c2934; text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover, .button:focus-visible { background: #93ddc8; transform: translateY(-2px); }
.text-link { color: white; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-decoration-color: var(--teal); text-underline-offset: 7px; text-transform: uppercase; }
.text-link:hover { color: var(--teal); }
.hero-art { position: relative; min-height: 590px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 12% 0; background: radial-gradient(circle, rgba(107,197,178,.14), transparent 58%); filter: blur(24px); }
.orbit { width: min(39vw, 470px); aspect-ratio: 1; border: 1px solid rgba(150,210,202,.21); border-radius: 50%; position: relative; display: grid; place-items: center; transform: rotate(-14deg); }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 11%; border: 1px solid rgba(150,210,202,.27); border-radius: 50%; }
.orbit::after { inset: 24%; border-color: rgba(150,210,202,.34); }
.orbit-line { position: absolute; width: 130%; height: 30%; border: 1px solid rgba(159,217,204,.34); border-radius: 50%; transform: rotate(37deg); }
.orbit-core { width: 90px; aspect-ratio: 1; background: radial-gradient(circle at 35% 30%, #a7e1ce, #4aa792 70%); border-radius: 50%; box-shadow: 0 0 70px rgba(84,192,159,.3); z-index: 1; }
.orbit-point { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; position: absolute; top: 24%; right: 12%; }
.hero-art-caption { position: absolute; bottom: 78px; right: 0; color: #9fb8be; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.section { padding-block: 104px; }
.section-heading { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 50px; align-items: start; margin-bottom: 50px; }
.section-kicker { display: flex; align-items: center; gap: 15px; color: #3a826e; margin: 4px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; white-space: nowrap; }
.section-kicker::before { content: ""; display: block; width: 31px; height: 1px; background: #3a826e; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 3.6vw, 56px); line-height: 1.12; letter-spacing: -.025em; font-weight: 400; margin: 0; }
.section-intro { max-width: 700px; font-size: 19px; color: #445b65; margin: 22px 0 0; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #c9d6d3; border-bottom: 1px solid #c9d6d3; }
.focus-card { padding: 34px 31px 38px 0; }
.focus-card + .focus-card { border-left: 1px solid #c9d6d3; padding-left: 31px; }
.focus-number { color: #528b7d; display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; margin-bottom: 40px; }
.focus-card h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 29px; line-height: 1.2; margin: 0 0 15px; }
.focus-card p { margin: 0; max-width: 290px; color: #576a73; font-size: 16px; }
.about { background: #eaf0eb; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 7vw, 115px); align-items: center; }
.about h2 { margin: 0 0 22px; }
.about p { margin: 0 0 18px; color: #455c64; font-size: 18px; }
.about .section-kicker { margin-bottom: 30px; }
.principles { display: grid; gap: 0; }
.principle { display: grid; grid-template-columns: 57px 1fr; border-bottom: 1px solid #bdd1c7; padding: 25px 0; }
.principle:first-child { border-top: 1px solid #bdd1c7; }
.principle-index { color: #4a927c; font-weight: 800; font-size: 13px; }
.principle h3 { font-size: 17px; margin: 0 0 4px; }
.principle p { font-size: 15px; line-height: 1.5; margin: 0; }
.name-section { background: var(--white); }
.name-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 145px); align-items: start; }
.name-section h2 { margin-top: 24px; }
.name-copy p { color: #566972; font-size: 18px; margin: 0 0 21px; }
.latin-list { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.latin-list li { display: grid; grid-template-columns: 135px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.latin-list strong { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; font-size: 19px; }
.latin-list span { color: #586d76; font-size: 15px; }
.contact-section { background: var(--navy); color: white; padding-block: 82px 88px; }
.contact-grid { display: flex; justify-content: space-between; align-items: end; gap: 60px; }
.contact-section .section-kicker { color: var(--teal); margin-bottom: 25px; }
.contact-section .section-kicker::before { background: var(--teal); }
.contact-section h2 { max-width: 690px; }
.contact-section p { max-width: 640px; font-size: 18px; color: #b9cdd2; margin: 20px 0 0; }
.contact-section .button { white-space: nowrap; }
.site-footer { background: var(--navy-deep); color: #9fb3bd; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-block: 30px; font-size: 13px; }
.footer-inner .brand-name { color: white; font-size: 18px; }
.footer-inner .brand-symbol { width: 23px; height: 23px; }
.footer-inner a:not(.brand) { text-decoration: none; color: #b8cbd1; }
.footer-inner a:not(.brand):hover { color: white; }
.content-page { min-height: 65vh; padding-block: 90px 120px; }
.content-page h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(40px, 4vw, 60px); }
.content-page .entry-content { max-width: 760px; font-size: 18px; }
.content-page .entry-content a { color: #256e5f; }

@media (max-width: 950px) {
  .hero-inner { grid-template-columns: 1fr .7fr; min-height: 560px; }
  .hero-art { min-height: 480px; }
  .orbit { width: 37vw; }
  .hero-art-caption { right: 10px; bottom: 30px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .name-grid { grid-template-columns: 1fr 1.3fr; gap: 45px; }
}
@media (max-width: 700px) {
  .shell { width: min(calc(100% - 40px), var(--content)); }
  .header-inner { min-height: 75px; align-items: start; flex-direction: column; gap: 8px; padding-block: 14px; }
  .brand-name { font-size: 21px; }
  .primary-nav { width: 100%; gap: 20px; overflow-x: auto; padding-bottom: 3px; }
  .primary-nav a { font-size: 10px; white-space: nowrap; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; min-height: unset; }
  .hero-copy { padding-block: 75px 35px; }
  .hero h1 { font-size: clamp(46px, 11vw, 65px); }
  .hero-summary { font-size: 18px; margin-top: 24px; }
  .hero-art { min-height: 310px; margin-top: -20px; }
  .orbit { width: min(62vw, 320px); }
  .orbit-core { width: 65px; }
  .hero-art-caption { bottom: 30px; right: 10px; }
  .section { padding-block: 75px; }
  .section-heading { margin-bottom: 34px; }
  .section-intro { font-size: 17px; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card, .focus-card + .focus-card { border-left: 0; border-top: 1px solid #c9d6d3; padding: 26px 0; }
  .focus-card:first-child { border-top: 0; }
  .focus-number { margin-bottom: 13px; }
  .focus-card h3 { font-size: 27px; margin-bottom: 8px; }
  .focus-card p { max-width: 560px; }
  .about-grid, .name-grid { grid-template-columns: 1fr; gap: 35px; }
  .contact-grid { display: block; }
  .contact-section .button { margin-top: 28px; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
