/*
  Minimal Corporate Theme – Defense / Aerospace
  Color Palette:
  Olive Drab    #6B8E23
  Desert Sand  #EDC9AF
  Space Cadet  #112B4B
*/

:root {
  --color-primary: #112B4B; /* Space Cadet */
  --color-primary-g: #114B2B;
  --color-hi-text: #234572; /* Space Cadet 2 */
  --color-accent: #6B8E23;  /* Olive Drab */
  --color-bg: #e9c5ab;      /* Desert Sand */
  --color-bg2: #f0d02f;      /* Gold */
  --color-text: #0f1f33;
  --color-text-g: #0f331f;
  --color-light: #ffffff;
}

/* ---------------- Base ---------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-bg);
  background-color: var(--color-primary);
}

.container {
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  /*padding: 0 1.5rem;*/
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  /*text-decoration: underline;*/
  text-decoration: none;
}

*:focus-visible {
  outline: 0px none;
}

.float-right {
  float: right;
}

h1, h2, h3, h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

hr {
  border: 0px none;
  height: 1px;
  margin: 15px 0 10px 0;
  background-color: color(from var(--color-accent) srgb r g b / 0.2);
}

/* ---------------- Header ---------------- */
header {
  background: linear-gradient(180deg, color(from var(--color-primary-g) srgb r g b / 0.9), #18403bd0);
  /*border-bottom: 3px solid rgba(112, 96, 0, 0.6);*/
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  color: var(--color-light);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(3px);
  transition: all 0.3s;
}
body.scrolled-to-top header {
  background: linear-gradient(180deg, color(from var(--color-primary-g) srgb r g b / 0.2), #04492438);
}

header .container {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  align-items: center;
  padding: 0.5rem 0;
}

header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  justify-self: start;
  text-align: center;
}

header a.logo, header a.logo:hover {
  text-decoration: none;
  color: var(--color-light);
}

header .logo img {
  vertical-align: -18px;
  margin-right: 12px;
  height: 48px;
  transition: all 0.3s;
}
body.scrolled-to-top header .logo img {
  height: 60px;
  vertical-align: -23px;
}

header nav {
  justify-self: end;
}

.header {
  background: linear-gradient(180deg, var(--color-primary), #051b34);
  /*border-top: 2px solid rgba(112, 96, 0, 0.6);
  border-bottom: 1px solid rgb(112, 96, 0);*/
  /*box-shadow: inset -70px 0px 50px -30px var(--color-light), inset 70px 0px 50px -30px var(--color-light);*/
  color: var(--color-light);
  width: 100%;
}

.header h2 {
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 1.25rem 0;
}

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

nav ul li {
  margin: 1.25rem 0;
  transition: margin 0.3s;
}

body.scrolled-to-top nav ul li {
  margin: 2rem 0;
}

nav a {
  color: var(--color-bg);
  font-weight: 600;
  letter-spacing: 0.05em;
}

nav a:hover {
  color: var(--color-bg2);
}

/*main {
  margin-top: -99px;
}*/
main:before {
  content: " ";
  display: block;
  height: 99px;
  width: 100%;
  background-color: var(--color-primary);
}

/* ---------------- Hero ---------------- */
.hero {
  /*background: linear-gradient(rgba(17, 43, 75, 0.85), #435c1280, rgba(17, 43, 75, 0.85), #583c2980),
    url('background.webp'); /* image placeholder */
  /*background: linear-gradient(rgba(0, 15, 33, 0.5)), url('background.webp');
  background-image: url('background.webp');*/
  margin-top: -99px;
  background-size: cover;
  background-position: center center;
  position: relative;
  transition: background-image 0.3s ease-in;
  -webkit-transition: background-image 0.3s ease-in;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  left: 0;
  background: rgba(0, 15, 33, 0.75);
  z-index: 0; 
}

.hero.inner {
  background-attachment: fixed;
}
.hero.inner::before {
  background: rgba(0, 15, 33, 0.5);
}

.hero::before {
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.65s;
}
.hero.blur::before {
  backdrop-filter: blur(16px);
}

.hero article {
  margin-bottom: 2rem;
  background: #00000080;
  color: var(--color-bg2);
}

.hero-overlay {
  padding: 4rem 0;
  position: relative;
  min-height: 600px;
}

.hero-overlay article {
  position: absolute;
  top: 240px;
  right: 0px;
  width: 72%;
  opacity: 0;
  transform: translateY(-60px) scale(0.7);
  transition: all 0.5s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
}
.hero-overlay article:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero-overlay article.active {
  opacity: 1;
  transform: translateY(0px) scale(1);
}
.hero-overlay article.inactive {
  opacity: 0;
  transform: translateY(60px) scale(0.7);
}

.hero-overlay h2 {
  position: absolute;
  top: 420px;
  left: 2rem;
  color: var(--color-bg2);
  font-size: 2rem;
  text-shadow: 0 0 4px #000000, 0 0 12px #000000;
}

.hero-overlay article h2,
.hero-overlay article h3,
.hero-overlay article h4 {
  color: var(--color-bg2);
}

.hero-overlay article p {
  color: var(--color-bg);
  margin-bottom: 0;
}

.hero-overlay .buttons {
  margin-top: 420px;
  text-align: right;
}

/*.hero h3 {
  color: var(--color-light);
}

.hero p {
  color: #d8dde4;
}*/

/* ---------------- Sections ---------------- */
section {
  /*background: linear-gradient(180deg, #ffffff, #f6f6f6);*/
  background: linear-gradient(180deg, var(--color-primary), var(--color-text));
  /*margin: 3rem 0;*/
}

section > .container {
  padding: 3rem 0;
  min-height: calc(100vh - 305px);
  overflow-x: hidden;
}

/* ---------------- Grid ---------------- */
.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ---------------- Cards ---------------- */
article {
  background: color(from var(--color-text) srgb r g b / 0.4);
  color: var(--color-light);
  padding: 2rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px color(from var(--color-text) srgb r g b / 0.8);
  border: 1px solid color(from var(--color-accent) srgb r g b / 0.2);
}
article:hover {
  box-shadow: 0 3px 20px color(from var(--color-text) srgb r g b / 0.9);/*rgba(0, 0, 0, 0.12)*/
  text-decoration: none;
}
.grid a article {
  height: 100%;
  /*text-decoration: none !important;
  text-decoration-color: transparent;*/
}

article p, article h3 {
  color: var(--color-light);
}

article time {
  color: var(--color-accent);
}

article img {
  max-width: 100%;
}

/* ---------------- Team ---------------- */
article .placeholder-img {
  width: calc(100% + 4rem);
  height: 33vh;
  overflow: hidden;
  margin: -2rem -2rem 1rem -2rem;
  text-align: center;
  /*background-image: url(/admin/static/loading.gif);
  background-repeat: no-repeat;
  background-position: center center;*/
}
article .placeholder-img.vh50 {
  height: 50vh;
}
article .placeholder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

article center {
  margin: 10px 0;
}
article center img {
  max-height: 60vh;
  margin: 0 auto;
}

article em {
  color: var(--color-bg2);
  font-style: normal;
  font-weight: 600;
}

/* ---------------- Icons ---------------- */

.icon {
  display: inline-block;
  height: 28px;
  width: 28px;
  background: linear-gradient(180deg, var(--color-accent), #5c7a1f);
  mask-image: var(--svg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}
.icon:hover {
  filter: brightness(0.95);
}
.icon.linkedin {
  --svg: url('../icons/linkedin.svg');
}
.icon.facebook {
  --svg: url('../icons/facebook.svg');
}
.icon.youtube {
  --svg: url('../icons/youtube-8.svg');
}
.icon.email {
  --svg: url('../icons/email-10.svg');
}
.icon.phone {
  --svg: url('../icons/phone-8.svg');
}
.icon.large {
  height: 39px;
  width: 39px;
  vertical-align: -14px;
  margin-left: 8px;
}
.icon.small {
  height: 20px;
  width: 20px;
  vertical-align: -4px;
  margin-right: 8px;
}

/* ---------------- Testimonials ---------------- */
blockquote {
  margin: 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f1dfcd, var(--color-bg));
  color: var(--color-text);
  border-left: 6px solid var(--color-accent);
}

blockquote p {
  margin-top: 0.5rem;
}

blockquote span {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: small;
}

/* ---------------- News ---------------- */
ul.news {
  padding-left: 0;
  list-style-type: none;
}

ul.news li, article.top-story {
  margin-bottom: 2rem;
}

ul.news {
  width: calc(100% + 2em);
}

ul.news li {
  width: calc(50% - 2px - 2em);
  margin-right: 2em;
  display: inline-block;
}

/* ---------------- FAQ ---------------- */
details {
  background: color(from var(--color-light) srgb r g b / 0.8);
  color: var(--color-text);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--color-primary);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---------------- Forms ---------------- */
form.contact-us, div.contact-details {
  width: calc(50% - 2px);
  display: inline-block;
}

form {
  display: grid;
  gap: 1.2rem;
}

.map .placeholder-img {
  width: 80%;
  height: 230px;
  overflow: hidden;
  text-align: center;
}
.map .placeholder-img img {
  width: 100%;
  height: 100%;
  filter: sepia(0.3) hue-rotate(72deg);
  object-fit: cover;
  object-position: center;
}

label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--color-bg2);
}

input,
textarea {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0.4rem;
  margin-top: 0.25rem;
  margin-bottom: 0.8rem;
  border-radius: 4px;
  background: #00000040;
  border: 1px solid color(from var(--color-accent) srgb r g b / 0.25);
  color: var(--color-bg2);
  outline: 0px none;
}
textarea {
  max-width: 100%;
  min-width: 100%;
  min-height: 140px;
  max-height: 140px;
}

button, a.button {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11pt;
  align-self: flex-start;
  /*background: #2d415b60;/*linear-gradient(180deg, color(from var(--color-text) srgb r g b / 0.9), #485f1a80);*/
  background: #00000060;
  border: 1px solid color(from var(--color-accent) srgb r g b / 0.5);
  color: var(--color-accent);
  padding: 10px 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

button.primary, a.button.primary {
  background: linear-gradient(180deg, var(--color-accent), #5c7a1f);
  /*border: 1px solid color(from var(--color-accent) srgb r g b / 0.5);*/
  color: var(--color-light);
  backdrop-filter: none;
}

button:hover, a.button:hover {
  filter: brightness(0.95);
}

a.button {
  text-decoration: none;
  display: inline-block;
}

/* ---------------- Footer ---------------- */
footer {
  background: linear-gradient(180deg, #0a2e1a, var(--color-primary-g));
  color: var(--color-bg);
  padding-top: 4rem;
}

footer a {
  color: var(--color-bg);
}

footer h4 {
  color: var(--color-bg2);
}

footer ul {
  padding-left: 0;
  list-style-type: none;
}

footer ul li {
  margin-bottom: 1rem;
}

footer .container .links {
  text-align: right;
}

/* --------------------- Pagewise --------------------- */

section.team article {
  position: relative;
}
section.team article a.icon.snap-bottom {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
}
section.team article a p {
  margin: 0.5rem 0;
}
section.team article a p.bio {
  margin-bottom: 2.5rem;
}

section.news a article {
  position: relative;
}
section.news a article p {
  height: 5rem;
  overflow: hidden;
}

/* --------------------- Flash Message --------------------- */

div#flash_messages,
div.anyErrors{
	text-align:left;
}

div#flash_messages div.success, div#flash_messages div.error, div#flash_messages div.warning,
div.anyErrors div.success, div.anyErrors div.error, div.anyErrors div.warning{
	padding:10px 8px;
	margin:6px 0px 18px 0px;
	font-size:11pt;
}

div#flash_messages div.success,
div.anyErrors div.success{
	border-bottom:3px solid #80D080;
	background-color:#D0F8D0;
	color:#208020;
}

div#flash_messages div.error,
div.anyErrors div.error{
	border-bottom:3px solid #D08080;
	background-color:#F8D0D0;
	color:#802020;
}

div#flash_messages div.warning,
div.anyErrors div.warning{
	border-bottom:3px solid #B0B060;
	background-color:#E4E4B0;
	color:#585820;
}

div#flash_messages div.icon,
div.anyErrors div.icon{
	float:left;
	height:16px;
	width:16px;
}

/* --------------------- Mobile Responsive --------------------- */

@media screen and (min-width: 601px){
  nav i.icon.hamberger {
    display: none;
  }
  nav ul {
    height: auto !important;
  }
}

@media screen and (max-width: 840px){
  nav ul {
    gap: 1rem;
  }
  footer .container .links {
    text-align: left;
  }
}

@media screen and (max-width: 600px){
  nav ul {
    display: block;
    margin-right: 2em;
    list-style: circle;
    height: 0px;
    overflow: hidden;
    transition: height 0.3s;
  }
  header.expand i.icon.hamberger {
    top: 21px !important;
    width: 18px;
    height: 18px;
    --svg: url('../icons/x-symbol.svg');
  }
  header.expand, body.scrolled-to-top header.expand {
    background-color: var(--color-primary-g);
    box-shadow: 0px 0px 35px 35px #000000C0;
  }
  section>.container {
    padding: 1rem 0 2rem 0;
  }
  body.scrolled-to-top header.expand .logo img,
  header.expand .logo img {
    height: 90px;
    margin: 6px 24px;
    display: block;
  }
  body.scrolled-to-top nav i.icon.hamberger {
    top: 25px;
  }
  nav i.icon.hamberger {
    position: fixed;
    top: 20px;
    right: 25px;
    cursor: pointer;
    transition: margin 0.3s, top 0.3s;
  }
  nav ul li, body.scrolled-to-top nav ul li {
    margin: 12px 0;
  }
  form.contact-us, div.contact-details {
    width: 100%;
    display: inline-block;
  }
  div.contact-details {
    margin-bottom: 2em;
  }
}

.icon.hamberger {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--color-bg);
  --svg: url('../icons/burger-menu.svg');
}


@media print {
	header {
		position: absolute;
	}
	section > .container {
	  min-height: auto;
	}
  main {
    margin-top: 0px;
  }
}
