/* 
 * HTML5 ✰ Boilerplate
 *
 * What follows is the result of much research on cross-browser styling. 
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 *
 * Detailed information about this CSS: h5bp.com/css
 * 
 * ==|== normalize ==========================================================
 */
 
 @font-face {
    font-family: 'AzoftSansBold';
    src: url('azoft-sans-bold-webfont.eot');
    src: url('azoft-sans-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('azoft-sans-bold-webfont.woff') format('woff'),
         url('azoft-sans-bold-webfont.ttf') format('truetype'),
         url('azoft-sans-bold-webfont.svg#AzoftSansBold') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'AzoftSansRegular';
    src: url('azoft-sans-webfont.eot');
    src: url('azoft-sans-webfont.eot?#iefix') format('embedded-opentype'),
         url('azoft-sans-webfont.woff') format('woff'),
         url('azoft-sans-webfont.ttf') format('truetype'),
         url('azoft-sans-webfont.svg#AzoftSansRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}


/* =============================================================================
   HTML5 display definitions
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Force vertical scrollbar in non-IE
 * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body { margin: 0; font-size: 15px; line-height: 1.5; }

body, button, input, select, textarea { font-family: sans-serif; color: #222; }

.wrapper { width: 1000px; margin: 0 auto; position: relative; clear: both; }

/* 
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate
 * Also: hot pink! (or customize the background color to match your design)
 */

::-moz-selection { background: rgba(47, 121, 181, 0.5); color: #fff; text-shadow: none; }
::selection { background: rgba(47, 121, 181, 0.5); color: #fff; text-shadow: none; }

/* =============================================================================
   Links
   ========================================================================== */

a { color: #286496; text-decoration: none; font-weight: bold; }
a:visited { color: #5d8a95; }
a:hover { color: #286496; text-decoration: underline; }
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }


/* =============================================================================
   Typography
   ========================================================================== */
   
h1, h2, h3, h4 { font-family: AzoftSansRegular; font-weight: normal; text-transform: uppercase; color: #808080; margin-top: 0; }
h1 strong, h2 strong, h3 strong { font-family: AzoftSansBold; font-weight: 900 !important; }
h1 { font-size: 32px; margin-top: 28px;}
h2 { font-size: 24px; }
h3 { font-size: 18px; font-weight: bold; margin: 0 0 0 0; }
h4 { font-size: 16px; }

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; }

dfn { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

p { color: #5a5a5a; margin-top: 0;}

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 0 0; padding: 0 0 0 17px; list-style: square; color: #5a5a5a; }
.wide li { padding: 0 0 1em 0; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/e 
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/*
 * Correct overflow not hidden in IE9 
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/* 
 * 1. Correct color not inheriting in IE6/7/8/9 
 * 2. Correct alignment displayed oddly in IE6/7 
 */

legend { border: 0; *margin-left: -7px; padding: 0; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */

button, input { line-height: normal; *overflow: visible; }

/*
 * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
 */

table button, table input { *overflow: auto; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */

button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

/* 
 * Remove inner padding and border in FF3/4: h5bp.com/l 
 */

button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }

/* 
 * 1. Remove default vertical scrollbar in IE6/7/8/9 
 * 2. Allow only vertical resizing
 */

textarea { overflow: auto; vertical-align: top; resize: vertical; }

/* Colors for form validity */
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }


/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }


/* ==|== primary styles =====================================================
   Author: 
   ========================================================================== */
   
/* == COMMON STYLES == */
.box, .box2 { border: 1px solid #ccc; box-shadow: 0px 2px 4px #ddd; -mox-box-shadow: 0px 2px 4px #ddd; -webkit-box-shadow: 0px 2px 4px #ddd; -o-box-shadow: 0px 2px 4px #ddd; -ms-box-shadow: 0px 2px 4px #ddd; }
.box2:hover { border-color: #286496; box-shadow: 0px 2px 8px #4f96d0; }
.box2 { 
-webkit-transition-property: box-shadow, border; 
-webkit-transition-duration: 0.3s; 
-webkit-transition-timing-function: ease-in-out;
-moz-transition-property: box-shadow, border; 
-moz-transition-duration: 0.3s; 
-moz-transition-timing-function: ease-in-out;
-o-transition-property: box-shadow, border; 
-o-transition-duration: 0.3s; 
-o-transition-timing-function: ease-in-out;
transition-property: box-shadow, border; 
transition-duration: 0.3s; 
transition-timing-function: ease-in-out;
}
.box2, .box-margin { margin: 0 0 20px 0; }
.shadow-white { text-shadow: 0px 1px 0px #fff; }
.shadow-black { text-shadow: 0px 1px 0px #000; }
.shadow-blue { text-shadow: 0px 1px 0px #286496; }
.first-p { font-weight: bold; }
.last-p { margin-bottom: 50px; }
.contact-heading { margin: 20px 0 0 0; }
.contact-heading2 { margin-bottom: 0; color: #5a5a5a; }

/* == HEADER ==*/
.container { background: #e6e6e6 url(img/bg.png) no-repeat center top; }   
header { background: #2a6ba0 url(img/bg_header.jpg) no-repeat center top; height: 131px; box-shadow: 0px 0px 12px #666; }
.logo { margin: 27px 0 0 0; }
.lang-sel { position: absolute; top: -20px; right: 10px; height: 20px; display: block; text-align: right;}
.lang-sel li { display: inline; position: relative; }
.item-divider { border-right: 1px dotted #fff; }
.lang-sel a { color: #fff; text-decoration: none; display: block; padding: 3px 8px; float: left; -webkit-transition: background 0.3s ease-in-out; -moz-transition: background 0.3s ease-in-out; -o-transition: background 0.3s ease-in-out; transition: background 0.3s ease-in-out; }
.lang-sel a:hover { background: #fff; color: #286496; }

.menu { position: absolute; top: 25px; right: 0px; width: 650px;}
.menu a, .menu a:hover, .menu a:visited, .menu-nonactive { display: block; float: left; color: #fff; text-decoration: none; font-weight: normal; padding: 5px 10px; margin: 0 20px 0 0; -webkit-transition: background 0.3s ease-in-out; -moz-transition: background 0.3s ease-in-out; -o-transition: background 0.3s ease-in-out; transition: background 0.3s ease-in-out; }
.menu li { display: block; float: left; text-transform: uppercase; }
.menu a:hover, .menu-nonactive:hover { background: #2f79b5; }
.menu li > ul { display: none; position: absolute; top: 30px; left: 17px; width: 644px; height: 51px; background: #2f79b5; padding: 1px 3px; font-size: 11px; }
.menu li:hover > ul { display: block; }
.menu ul > li:hover, .menu ul > li, .menu-nonactive ul > li { padding: 0; margin: 0; }
.submenu { padding: 5px 8px !important; margin: 0 20px 0 0 !important; }
.submenu:hover { color: #a0d4ff !important; }

/* == MAIN CONTENT ==*/
.slider, .slider2 { display: block; width: 583px; height: 308px; background: #fff url(img/slider.jpg) no-repeat center top; border: 1px solid #ccc; box-shadow: 0px 2px 4px #ddd; margin: 47px 0 47px 0; padding: 90px 60px 0 355px; }
.slider strong, .slider2 strong { color: red; }
.slider2 { background: #fff url(img/slider2.jpg) no-repeat center top; }

.selector { display: block; width: 300px; margin: 0 50px 20px 0; float: left;}
.selector-last { margin: 0 0 20px 0; }
.service1, .service2, .service3 { display: block; background: #fff url(img/service1.jpg) no-repeat; background-position: 0px 0px; height: 188px; text-indent: -9999px; overflow: hidden; 
-webkit-transition-property: background, box-shadow, border; 
-webkit-transition-duration: 0.3s; 
-webkit-transition-timing-function: ease-in-out;
-moz-transition-property: background, box-shadow, border; 
-moz-transition-duration: 0.3s; 
-moz-transition-timing-function: ease-in-out;
-o-transition-property: background, box-shadow, border; 
-o-transition-duration: 0.3s; 
-o-transition-timing-function: ease-in-out;
transition-property: background, box-shadow, border; 
transition-duration: 0.3s; 
transition-timing-function: ease-in-out;
 }
.service1:hover, .service2:hover, .service3:hover { background-position: 0px -188px; }
.service2 { background: #fff url(img/service2.jpg) no-repeat; }
.service3 { background: #fff url(img/service3.jpg) no-repeat; }
.wide { width: 645px; margin: 0 0 0 0; }
.contact-icon { margin: 0 10px 0 0; }
#mapa { width: 645px !important; height: 750px; }

/* == DESIGN ENGINEERING == */
.design-engineering, .contact, .concept-engineering, .computer-simulation, .project-management, .technical-documentation, .cad-support, .graphic-design, .start-cooperation, .internal-cooperation, .external-cooperation, .division-engineers, .references, .intranet { background: #fff url(img/design-engineering.jpg) no-repeat top left; margin: 47px 0 47px 0; padding: 0 0 0 347px; height: 109px; }
.contact { background: #fff url(img/contact.jpg) no-repeat top left; }
.contact-box { background: #fff; padding: 0 20px; width: 260px; height: 750px; }
.concept-engineering { background: #fff url(img/concept-engineering.jpg) no-repeat top left; }
.computer-simulation { background: #fff url(img/computer-simulation.jpg) no-repeat top left; }
.project-management { background: #fff url(img/project-management.jpg) no-repeat top left; }
.technical-documentation { background: #fff url(img/technical-documentation.jpg) no-repeat top left; }
.cad-support { background: #fff url(img/cad-support.jpg) no-repeat top left; }
.start-cooperation { background: #fff url(img/start-cooperation.jpg) no-repeat top left; }
.references { background: #fff url(img/references.jpg) no-repeat top left; }
.graphic-design { background: #fff url(img/graphic-design.jpg) no-repeat top left; }

/* == INTRANET == */
.intranet { background: #fff url(img/intranet.png) no-repeat 10px -10px; }
.intranet-box { background: #fff; padding: 0 20px; width: 260px; }
.squirrelmail, .ftplogin { background: #fff url(img/kontact.png) no-repeat 20px 30px; min-height: 100px; padding: 20px 20px 50px 200px; }
.squirrelmail { border-bottom: 1px dotted #ddd; }
.ftplogin { background: #fff url(img/ftp.png) no-repeat 20px 20px; }
.squirrelname { background: url(img/user.png) no-repeat 0px 3px; display: block; padding: 0 0 20px 20px; margin: 20px 0 0 0; }
.squirrelpass { background: url(img/key.png) no-repeat 0px 3px; display: block; padding: 0 0 20px 20px; }
.squirrelname label, .squirrelpass label { font-family: AzoftSansRegular; font-weight: normal; display: block; float: left; width: 100px; padding-top: 3px; }
.squirrelname input, .squirrelpass input { border: 1px solid #ccc; box-shadow: inset 0px 2px 8px #eee; padding: 3px 5px; border-radius: 2px; }
.squirrelname input:focus, .squirrelpass input:focus { background: #eff8fb; box-shadow: inset 0px 2px 8px #afdde9; outline: 0px; border: 1px solid #afdde9; }
.squirrelbutton { font-family: AzoftSansBold; font-weight: bold; background: #eee; box-shadow: inset 0px 1px 1px #fff, 0px 2px 8px #eee; border: 1px solid #ccc; padding: 5px 10px; margin: 0 0 0 120px; width: 187px; border-radius: 2px;
background-image: linear-gradient(bottom, rgb(224,224,224) 0%, rgb(238,238,238) 100%);
background-image: -o-linear-gradient(bottom, rgb(224,224,224) 0%, rgb(238,238,238) 100%);
background-image: -moz-linear-gradient(bottom, rgb(224,224,224) 0%, rgb(238,238,238) 100%);
background-image: -webkit-linear-gradient(bottom, rgb(224,224,224) 0%, rgb(238,238,238) 100%);
background-image: -ms-linear-gradient(bottom, rgb(224,224,224) 0%, rgb(238,238,238) 100%);
background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(224,224,224)),	color-stop(1, rgb(238,238,238))); 
}
.squirrelbutton:hover, .squirrelbutton:focus { outline: 0px; background: #286496; box-shadow: inset 0px 1px 1px #afdde9, 0px 2px 8px #4f96d0; color: #fff; border-color: #183b59; 
background-image: linear-gradient(bottom, rgb(40,101,150) 0%, rgb(92,165,224) 100%);
background-image: -o-linear-gradient(bottom, rgb(40,101,150) 0%, rgb(92,165,224) 100%);
background-image: -moz-linear-gradient(bottom, rgb(40,101,150) 0%, rgb(92,165,224) 100%);
background-image: -webkit-linear-gradient(bottom, rgb(40,101,150) 0%, rgb(92,165,224) 100%);
background-image: -ms-linear-gradient(bottom, rgb(40,101,150) 0%, rgb(92,165,224) 100%);
background-image: -webkit-gradient( linear,	left bottom, left top, color-stop(0, rgb(40,101,150)), color-stop(1, rgb(92,165,224))); }

/* == FOOTER ==*/
footer { background: #666; border-top: 1px solid #333; min-height: 200px; clear: both; margin: 50px 0 0 0; padding: 0 0 30px 0; background-image: linear-gradient(bottom, rgb(71,71,71) 0%, rgb(102,102,102) 100%);
background-image: -o-linear-gradient(bottom, rgb(71,71,71) 0%, rgb(102,102,102) 100%);
background-image: -moz-linear-gradient(bottom, rgb(71,71,71) 0%, rgb(102,102,102) 100%);
background-image: -webkit-linear-gradient(bottom, rgb(71,71,71) 0%, rgb(102,102,102) 100%);
background-image: -ms-linear-gradient(bottom, rgb(71,71,71) 0%, rgb(102,102,102) 100%);
background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(71,71,71)), color-stop(1, rgb(102,102,102)));
box-shadow: 0px 0px 20px #666; }
footer h3 { color: #fff; margin: 0 0 10px 0; padding: 0; }
footer ul { margin: 0; padding: 0; }
footer li { list-style: none; margin: 0; padding: 0; }
footer a, footer a:visited, footer p { color: #fff; -webkit-transition: text-shadow, color 0.3s linear; }
footer a { font-weight: normal; }
footer a:hover { color: #37abc8; text-decoration: none; text-shadow: 0px 0px 5px #37abc8; }







/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Contain floats: h5bp.com/q */ 
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }



/* ==|== media queries ======================================================
   PLACEHOLDER Media Queries for Responsive Design.
   These override the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 721px) {
  /* Style adjustments for viewports 721px and over go here */
  header { min-height: 630px; }
  .container { background-position: center 500px; }
  .wrapper {width: auto; padding: 1em; }
  .slider, .slider2 { width: auto; height: auto; padding: 368px 1em 1em 1em; background-position: 0px 0px; }
  .selector { width: auto; margin: 0 0 3em 0; float: none;}
  .service1, .service2, .service3, .service1:hover, .service2:hover, .service3:hover { background-position: top right; }
  
  .menu { position: relative; width: auto; background-color: #2f79b5; display: block; margin-top: 10px;}
  .menu a, .menu a:hover, .menu a:visited, .menu-nonactive { clear: both; margin: 0; padding: 1em 0; font-weight: bold;}
  .menu-nonactive { padding-top: 1em !important; }
  .menu li { clear: both; margin: 0; padding: 0; }
  .menu li:hover { background: transparent; }
  .menu li > ul { display: block; position: relative; width: auto; height: auto; top: 0px; left: 0px; background: transparent; padding: 0; }
  .submenu { margin: 0; padding: 0.5em 0 !important; font-weight: normal !important; }
  .design-engineering, .contact, .concept-engineering, .computer-simulation, .project-management, .technical-documentation, .cad-support, .graphic-design, .start-cooperation, .internal-cooperation, .external-cooperation, .division-engineers, .references, .intranet { background: #fff; margin: 47px 0 47px 0; padding: 0 1em; height: auto; }
  .contact-box, #mapa { width: auto; height: auto; }
  #mapa { height: 500px; min-width: 320px; width: auto !important; }
  .squirrelmail, .ftplogin { background: #fff; min-height: 100px; padding: 1em; }
}

/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  .wrapper { width: auto; padding: 1em; }
  header, footer { display: none; }
  h2 { font-size: 1.5em; margin-bottom: 0.5em;}
  .selector { width: 30%; margin: 0 1em 1em 0; font-size: 0.7em;}
  .wide { width: 60%;}
  .design-engineering, .contact, .concept-engineering, .computer-simulation, .project-management, .technical-documentation, .cad-support, .graphic-design, .start-cooperation, .internal-cooperation, .external-cooperation, .division-engineers, .references, .intranet { background: #fff; margin: 47px 0 47px 0; padding: 0 1em; height: auto; }
  .last-p { margin-bottom: 2em; }
  a, a:visited { text-decoration: underline; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}
