/*
Theme Name: QWT- TNA
Theme URI: http://quanticteq.com/
Description: A clean and minimal theme fully compatible with WordPress 4.x+
Author: QWT2024
Author URI: http://www.quanticteq.com/
Version: 1.1
*/

/*-------------------------------------------------------
[Table of contents]

1. Reset
2. Generic
3. Typography
4. Form
5. Layout
6. Header
7. Footer
8. Universal Header Fix (Permanent)
--------------------------------------------------------*/


/*-------------------------------------------------------
  #Reset Styles
 -------------------------------------------------------*/
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800);
*{margin:0; padding:0; outline:0 none; border:0 none;}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i,
center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details,
figcaption, figure, footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin:0;
  padding:0;
  border:0;
  outline:0;
  font-size:100%;
  font:inherit;
  vertical-align:baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu,
nav, section { display:block; }
body { line-height:1; }
:focus { outline:0; }
ol, ul { list-style:none; }
blockquote, q { quotes:none; }
blockquote:before, blockquote:after, q:before, q:after {
  content:'';
  content:none;
}
ins { text-decoration:none; }
del { text-decoration:line-through; }
table { border-collapse:collapse; border-spacing:0; }
caption, th, td { text-align:left; font-weight:400; }
audio, canvas, img, video { vertical-align:middle; }
fieldset { border:0; margin:0; padding:0; }

/* Placeholder styles */
*::-webkit-input-placeholder { color:#2f2f2f; opacity:1; }
*:-moz-placeholder { color:#2f2f2f; opacity:1; }
*::-moz-placeholder { color:#2f2f2f; opacity:1; }
*:-ms-input-placeholder { color:#2f2f2f; opacity:1; }

input:focus::-webkit-input-placeholder,
textarea:focus::-webkit-input-placeholder { color:transparent; }
input:focus:-moz-placeholder,
textarea:focus:-moz-placeholder { color:transparent; }
input:focus::-moz-placeholder,
textarea:focus::-moz-placeholder { color:transparent; }
input:focus:-ms-input-placeholder,
textarea:focus:-ms-input-placeholder { color:transparent; }


/*-------------------------------------------------------
 #Generic Styles
 -------------------------------------------------------*/
.left { float:left; }
.right { float:right; }
.clearfix:after {
  content:".";
  display:block;
  height:0;
  clear:both;
  visibility:hidden;
}
.clearfix { display:block; }
.noFloat { float:none; }
.hidden { position:absolute; top:0; visibility:hidden; }
.pointer { cursor:pointer; }

a {
  text-decoration:none;
  outline:0;
  color:#ff0375;
}
a:hover, a:focus, a:visited {
  outline:0;
  color:#000000;
  text-decoration:none;
}

ul, ol {
  margin:0 0 20px 0;
  list-style-position:inside;
}
ul li, ol li { list-style:none; }

body {
  font-size:16px;
  font-family:'Open Sans', sans-serif;
  line-height:1.8em;
  background:#F1F1F1;
}


/*-------------------------------------------------------
 #Typography
 -------------------------------------------------------*/
h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-weight:600;
  margin:0;
}
h1, .h1 { font-size:2.6em; margin-bottom:20px; line-height:1.1em; }
h2, .h2 { font-size:2.2em; margin-bottom:20px; line-height:1.1em; }
h3, .h3 { font-size:1.4em; margin-bottom:20px; line-height:1.1em; }
h4, .h4 { font-size:1.4em; margin-bottom:20px; line-height:1.1em; }
h5, .h5 { font-size:1em; margin-bottom:12px; line-height:1.1em; }
p + h1, p + h2, p + h3, p + h4, p + h5, p + h6 { margin-top:1.5em; }
p { margin:0.85em 0; line-height:28px; }
em { font-style:italic; }
strong, b { font-weight:700; }
small { font-size:80%; }

img, a img {
  border:none;
  padding:0;
  margin:0;
  display:inline-block;
  max-width:100%;
  height:auto;
  image-rendering:optimizeQuality;
}


/*-------------------------------------------------------
 #Forms
 -------------------------------------------------------*/
form { margin-bottom:20px; }
fieldset { margin-bottom:20px; }

.input-text, input[type="text"], input[type="input"], input[type="password"],
input[type="email"], input[type="number"], input[type="url"], input[type="tel"],
input[type="search"], textarea, select {
  -webkit-appearance:none;
  border:1px solid #e1e1e1;
  padding:8px 6px;
  outline:none;
  color:#777;
  width:95%;
  max-width:100%;
  display:block;
  margin-bottom:20px;
  background:#F1F1F1;
  border-radius:0;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus,
input[type="number"]:focus, input[type="url"]:focus, input[type="tel"]:focus,
input[type="search"]:focus, textarea:focus {
  box-shadow:0 0 2px rgba(0,0,0,0.2);
  color:#555;
}
input[type="submit"], #submit, .button {
  background:#000000;
  color:#ffffff;
  padding:9px 22px;
  cursor:pointer;
  border:none;
  font-weight:700;
  border-radius:0;
}
input[type="submit"]:hover, #submit:hover, .button:hover {
  background:#ff0375;
}
textarea { min-height:60px; line-height:1.5em; width:100%; }
label { display:block; font-weight:700; }
legend { display:block; font-weight:400; font-size:15px; }
label span, legend span { font-weight:400; font-size:13px; color:#444; }


/*-------------------------------------------------------
 #Layout Styles
 -------------------------------------------------------*/
html, body {
  width:100%;
  height:100%;
  background:#F1F1F1;
}
.container {
  max-width:1110px;
  margin:0 auto;
  padding:0 30px;
}
main { padding:5% 0; }
#content {
  float:left;
  width:70%;
  padding:0 30px 0 0;
  box-sizing:border-box;
}
#full-content {
  width:100%;
  padding:0 30px 0 0;
  box-sizing:border-box;
}
#right-content {
  float:right;
  width:70%;
  padding:0 0 0 30px;
  box-sizing:border-box;
}
#sidebar {
  float:left;
  width:30%;
  box-sizing:border-box;
}
article, .widget, header, footer { background:#ffffff; }

article {
  box-shadow:0 0 7px #ddd;
  padding:20px;
  margin-bottom:20px;
}
.widget {
  box-shadow:0 0 7px #ddd;
  padding:20px;
  margin-bottom:20px;
}
#sidebar > .widget:last-child { margin-bottom:0; }
.postmetadata { background:#f1f1f1; padding:15px; }
.comments-template { padding:20px 20px 20px 0; }


/*-------------------------------------------------------
 #Header
 -------------------------------------------------------*/
header {
  position:relative;
  z-index:1000;
  width:100%;
  background:#fff;
  box-shadow:0 2px 4px rgba(0,0,0,0.05);
}
header .logo { margin-top:18px; }

/*-------------------------------------------------------
 #Banners
 -------------------------------------------------------*/
#home-banner { position:relative; }
#home-banner, #home-banner li { height:450px; }
#home-banner li { background-size:cover; }


/*-------------------------------------------------------
 #Footer
 -------------------------------------------------------*/
footer {
  font-size:14px;
  padding:45px 0;
  text-align:center;
}
footer .nav ul li a {
  padding:0 22px;
  color:#ff0375;
}
footer .nav ul li a:hover { color:#000000; }


/*-------------------------------------------------------
 #Universal Header Fix (Permanent)
 -------------------------------------------------------*/

/* 1️⃣ Remove transform stacking contexts (like Owl Carousel) */
.owl-carousel,
.owl-stage-outer,
.owl-stage {
  transform:none !important;
  will-change:auto !important;
  perspective:none !important;
  backface-visibility:visible !important;
}

/* 2️⃣ Keep header fixed globally across all templates */
header {
  position:fixed !important;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:99999 !important;
  background:#fff !important;
  transition:none !important;
  box-shadow:0 2px 4px rgba(0,0,0,0.05);
}

/* 3️⃣ Add global top padding so content doesn’t hide behind header */
body:not(.admin-bar) main,
body:not(.admin-bar) .our_team_page,
body:not(.admin-bar) .site-content,
body:not(.admin-bar) #content {
  padding-top:120px !important; /* Adjust to header height */
}

/* 4️⃣ Prevent banners/sliders from overlapping header */
.breadcrumb__banner,
#home-banner,
.our_team_page .breadcrumb__banner,
.owl-carousel .owl-item {
  position:relative !important;
  z-index:1 !important;
  overflow:visible !important;
}

/* 5️⃣ Safety for page templates that had prior issues */
.page-template-page-our-team header,
.page-template-page-company header,
.page-template-page-services header {
  position:fixed !important;
  top:0;
  z-index:99999 !important;
  background:#fff !important;
}

/* === FIX: prevent ugly single-letter wraps in footer contact block === */
footer .footer_contact__d,
footer .footer_contact__d *{
  word-break: normal !important;        /* kills break-all */
  overflow-wrap: normal !important;     /* don't split in the middle */
  white-space: normal !important;
  hyphens: none !important;
}

/* Allow long strings like emails to wrap only at sensible points */
footer .footer_contact__d a,
footer .footer_contact__d p{
  overflow-wrap: break-word !important; /* breaks only if absolutely needed */
}

/*-------------------------------------------------------
 #Contact Form Section — center full-width, drop empty right column
 (applies site-wide wherever .form-content_sec is used)
 -------------------------------------------------------*/
.form-content_sec {
    display: block !important;       /* kill the 50/50 split */
    width: 100%;
    background: #f1f1f1;
    padding: 60px 20px;
}
.form-content_sec .form_d {
    max-width: 640px;
    width: 100%;
    margin: 0 auto !important;       /* center it */
    float: none !important;
}
.form-content_sec .form_d .title_name {
    text-align: center;
    margin-bottom: 30px;
}
.form-content_sec > .content_d {
    display: none !important;        /* hide the empty slider column */
}

.form-content_sec .wpcf7 { width: 100%; }
.form-content_sec .wpcf7 p { margin: 0 0 18px; }
.form-content_sec .wpcf7 input[type="text"],
.form-content_sec .wpcf7 input[type="email"],
.form-content_sec .wpcf7 input[type="tel"],
.form-content_sec .wpcf7 input[type="number"],
.form-content_sec .wpcf7 textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}
.form-content_sec .wpcf7 input[type="submit"] {
    display: inline-block;
    cursor: pointer;
}

@media (max-width: 600px) {
    .form-content_sec { padding: 40px 16px; }
    .form-content_sec .form_d { max-width: 100%; }
}
