@charset "UTF-8";

/*
 * TC SHARED SITE SHELL
 *
 * Contains:
 * - Shared colour palette.
 * - Current footer.
 * - Desktop and mobile headers and navigation.
 * - Header search, email links and shared tooltips.
 * - Outer page layout and primary left menu.
 *
 * Dependencies retained during migration:
 * - Existing global foundations and body typography.
 * - Shared content/link styling in tc-content.css.
 * - Existing global form/input styling.
 * - Existing inline styles in library items and pages.
 * - Existing clearing <hr> before the footer.
 *
 * Legacy components remain in other stylesheets.
 * Do not remove other stylesheet links.
 */

/* =========================================================
   TC SHARED COLOUR PALETTE

   Header red remains reserved for the established branding.
   These variables are also available to other stylesheets.
   ========================================================= */

:root {
  --tc-header: #FF0000;
  --tc-primary: #D71920;
  --tc-primary-soft: #FFF1F2;
  --tc-ink: #262626;
  --tc-nav-bg: #444444;    
  --tc-muted: #666666;
  --tc-border: #DEDEDE;
  --tc-soft: #F7F7F7;
  --tc-white: #FFFFFF;
  --tc-footer-bg: #F0F0F0;    
}



/* =========================================================
   FOOTER — OUTER WRAPPERS
   ========================================================= */

.footer-wrapper {
  background-color: var(--tc-footer-bg);
  width: 100%;
  padding: 20px 0;
}

.footer-content {
  width: 95%;
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.footer-column {
  padding: 10px;
  box-sizing: border-box;
}


/* =========================================================
   FOOTER — COLUMN WIDTHS AND STRUCTURE
   ========================================================= */

.footer-info {
  width: 30%;
  display: flex;
  gap: 20px;
}

.footer-contact {
  width: 40%;
}

.footer-hours {
  width: 25%;
  margin-left: auto;
}


/* =========================================================
   FOOTER — HEADINGS AND LINKS
   ========================================================= */

.footer-info h3,
.footer-contact h3,
.footer-hours h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.footer-column .section-title {
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 10px;
  display: block;
}

.sub-column a {
  font-size: 13px;
  color: #333;
  text-decoration: none;
  line-height: 20px;
}

.sub-column a:hover {
  text-decoration: underline;
}

.central-footer-link {
  color: #333;
  font-size: 13px;
  text-decoration: none;
  line-height: 22px;
}

.central-footer-link:hover {
  text-decoration: underline;
}

.footer-hours p a:hover {
  text-decoration: underline !important;
}

.footer-column-break {
  break-before: column;
  display: block;
  height: 1px;
}


/* =========================================================
   FOOTER — NEWSLETTER FORM
   Preserve existing form behaviour and field names.
   ========================================================= */

.footer-contact form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact input,
.footer-contact textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--tc-muted);
  border-radius: 4px;
  box-sizing: border-box;
}

.footer-contact button {
  padding: 10px;
  background-color: var(--tc-ink);
color: var(--tc-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.footer-contact button:hover {
  background-color: var(--tc-nav-bg);
}

.privacy-checkbox {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-size: 0.9em;
}

.privacy-checkbox input {
  margin-right: 5px;
}

.privacy-checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 5px;
}


/* =========================================================
   FOOTER — MOBILE ADDRESS AND LINKS
   ========================================================= */

.mob-address {
  margin-top: 20px;
}

.mob-address a {
  font-size: 13px;
  text-decoration: none;
  line-height: 20px;
}


/* =========================================================
   FOOTER — COPYRIGHT ROW
   ========================================================= */

.footer-bottom-row {
  width: 95%;
  max-width: 1420px;
  margin: 20px auto 0;
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  font-size: 1.0em;
  color: #666;
  line-height: 17px;
}


/* =========================================================
   FOOTER — RESPONSIVE BEHAVIOUR
   Existing breakpoint behaviour preserved.
   ========================================================= */

@media (max-width: 768px) {
  .footer-info {
    display: none;
  }

  .footer-contact,
  .footer-hours {
    width: 100%;
  }

  .footer-hours {
    display: none;
  }
}

@media screen and (max-width: 570px) {
  .mob-address {
    display: block;
  }
}

@media screen and (min-width: 769px) {
  .mob-address {
    display: none;
  }
}

/* =========================================================
   MOBILE HEADER
   Migration: TC-002B.1

   Existing appearance and breakpoint behaviour preserved.
   Menu opening remains controlled by the existing JavaScript.
   ========================================================= */

.mobile-header {
  position: relative;
  display: none;
  flex-direction: column;
  background-color: #F00;
  color: #fff;
}


/* ---------------------------------------------------------
   Main header row
   --------------------------------------------------------- */

.mobile-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px 3px 8px;
}


/* ---------------------------------------------------------
   Logo and telephone icon
   --------------------------------------------------------- */

.mob-logo {
  padding-top: 2px;
}

.mob-logo img {
  width: 70px;
}

.mob-call img {
  width: 28px;
}


/* ---------------------------------------------------------
   Menu toggle
   --------------------------------------------------------- */

.mob-menu-icon {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.mob-bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
}


/* ---------------------------------------------------------
   Mobile dropdown menu
   --------------------------------------------------------- */

.mob-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background-color: #333;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
  display: none;
}

.mob-menu-open .mob-menu {
  display: block;
}

.mob-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mob-menu li {
  margin: 10px 0;
}

.mob-menu a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  display: block;
  padding: 10px;
}


/* ---------------------------------------------------------
   Mobile search
   Existing selectors and dimensions preserved.
   --------------------------------------------------------- */

.mob-search {
  display: flex;
  align-items: center;
}

.mob-searchBox1 {
  top: 20px;
  z-index: 1;
  display: flex;
}

/*
 * The old declaration "position: flex" was invalid and ignored.
 * It has deliberately not been replaced with another position
 * value, because doing so could change the layout.
 */

#mob-q {
  padding: 2px 0px 0px 5px;
  background-color: white;
  color: #666;
  cursor: pointer;
  border-radius: 5px 0px 0px 5px;
  border-style: solid;
  border-width: 0px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  height: 27px;
  line-height: 27px;
  width: 125px;
}

#mob-submitButton {
  background: #f1f1f1 url("../TCsearch/img/search.svg") no-repeat center;
  background-size: 13px;
  width: 30px;
  height: 29px;
  text-indent: -9999px;
  cursor: pointer;
  margin: 0px;
  padding: 0px;
  border-radius: 0px 5px 5px 0px;
  border-style: solid;
  border-width: 0px;
  border-color: #333;
}


/* ---------------------------------------------------------
   Company strapline
   --------------------------------------------------------- */

.mobile-header-strapline {
  text-align: left;
  padding: 5px 8px;
  font-size: 1.2em;
  background-color: #F00;
  letter-spacing: 0.02em;
}


/* ---------------------------------------------------------
   Responsive behaviour
   --------------------------------------------------------- */

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }
}

@media (max-width: 330px) {
  #mob-q {
    width: 100px;
  }
}

/* =========================================================
   DESKTOP HEADER AND NAVIGATION
   Migration: TC-002B.2

   Current appearance preserved.

   Dependencies still supplied elsewhere:
   Search-field, search-button, email-icon and shared tooltip
   rules are included later in this stylesheet.

   External dependencies:
   - Shared typography, global foundations and input styling.
   ========================================================= */


/* ---------------------------------------------------------
   Header visibility and shared row structure
   --------------------------------------------------------- */

.desktop-header {
  display: block;
}

.header-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.header-content {
  width: 95%;
  max-width: 1420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.red-bg {
  background-color: #F00;
  color: #FFF;
}

.header-row.red-bg {
  height: 100px;
}

.dark-grey-bg {
  background-color: var(--tc-nav-bg);
  height: 37px;
  color: #FFF;
}


/* ---------------------------------------------------------
   Logo and search placement
   --------------------------------------------------------- */

.logo {
  background-image: url("../images/header/tc-logo.svg");
  background-repeat: no-repeat;
  background-position: 8px 21px;
  background-size: auto 73px;
  width: 615px;
  height: 113px;
}

.search-bar {
  position: relative;
  top: 18px;
  left: 180px;
  width: 370px;
  padding: 10px;
}

.search-bar input {
  padding: 10px;
  width: 300px;
}


/* ---------------------------------------------------------
   Quote prompt
   --------------------------------------------------------- */

.new-quote {
  display: block;
  font-size: 18px;
  color: #FFF;
  letter-spacing: 0.02em;
}

.quote-request {
  text-decoration: none;
  color: #fff;
  display: block;
}

.quote-request:hover,
.quote-request:hover * {
  color: #333;
}


/* ---------------------------------------------------------
   Contact details
   --------------------------------------------------------- */

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-info p {
  margin: 0;
  text-align: right;
}

.contact-info div {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.contact-info img {
  margin-right: 8px;
}

.phone-info {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
}

.phone-info a {
  color: #FFF;
  text-decoration: none;
}


/* ---------------------------------------------------------
   Main navigation
   --------------------------------------------------------- */

.navbar ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}

.navbar ul li {
  display: inline-block;
}

.navbar ul li a {
  text-decoration: none;
  color: #FFF;
  font-size: 14px;
  font-weight: bold;
}

.navbar ul li a:hover {
  text-decoration: underline;
}


/* ---------------------------------------------------------
   Technical Resources dropdown
   Existing hover behaviour preserved.
   --------------------------------------------------------- */

.dropbtn {
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: inline-block;
}

.dropbtn:hover {
  background-color: var(--tc-nav-bg);
  text-decoration: none !important;
}

.dropdownmenu {
  position: relative;
}

.dropdownmenu-content {
  display: none !important;
  position: absolute;
  background-color: var(--tc-nav-bg);
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 999;
  padding-top: 6px;
  line-height: 30px;
  padding-bottom: 10px !important;
}

.dropdownmenu-content li {
  display: block;
  width: 100%;
  word-wrap: break-word;
}

.dropdownmenu-content li a {
  padding: 10px 15px;
  color: #fff;
  white-space: nowrap;
}

.dropdownmenu:hover .dropdownmenu-content {
  display: block !important;
}


/* ---------------------------------------------------------
   Country selector
   Existing hover behaviour preserved.
   --------------------------------------------------------- */

.flag-dropdown {
  position: relative;
  display: block;
  margin: -10px;
  font-size: 0.9rem;
}

.flag-dropbtn {
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 9px 0px;
  background: none;
}

.flag-icon {
  width: 25px;
  margin-right: 10px;
  border: 1px solid white;
}

.arrow {
  color: #fff;
  font-size: 12px;
}

.country-name {
  color: #fff;
  padding-right: 5px;
}

.flag-dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: 200px;
  right: 0;
}

.flag-dropdown-content a {
  color: black;
  padding: 10px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.flag-dropdown-content a:hover {
  background-color: #f1f1f1;
}

.flag-dropdown:hover .flag-dropdown-content {
  display: block;
}


/* ---------------------------------------------------------
   Responsive behaviour
   Existing thresholds preserved.
   --------------------------------------------------------- */

@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }
}

@media screen and (min-width: 769px) and (max-width: 1230px) {
  .new-quote {
    font-size: 15px;
  }

  .phone-info {
    font-size: 19px;
  }

  .intl-phone {
    font-size: 11px;
  }
}

@media screen and (max-width: 1139px) {
  .new-quote {
    display: none;
  }

  .flag-dropdown {
    display: none;
  }
}

@media screen and (min-width: 769px) and (max-width: 870px) {
  .navbar ul li a {
    font-size: 13px;
    font-weight: normal;
  }
}

/* =========================================================
   HEADER SEARCH, EMAIL AND SHARED TOOLTIPS
   Migration: TC-002B.3

   Existing selectors and responsive behaviour preserved.

   a[data-tooltip] remains shared rather than header-scoped.
   ========================================================= */


/* ---------------------------------------------------------
   Desktop search field
   Previously in /TCsearch/styles.css.
   Originally applied to all media.
   --------------------------------------------------------- */

#q {
  padding: 2px 0px 0px 5px;
  background-color: white;
  color: #666;
  cursor: pointer;

  -webkit-border-radius: 5px 0px 0px 5px;
  -moz-border-radius: 5px 0px 0px 5px;
  border-radius: 5px 0px 0px 5px;

  border-style: solid;
  border-width: 0px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  height: 27px;
  line-height: 19px;
  width: 331px;
}


/* ---------------------------------------------------------
   Screen foundations
   Previously in mobile_port.css.

   These rules also apply at larger screen widths.
   --------------------------------------------------------- */

@media screen and (min-width: 0px) {

  #submitButton {
    background: #666 url("../TCsearch/img/search2.png")
      no-repeat center;
    background-size: 70%;
    width: 41px;
    height: 25px;
    text-indent: -9999px;
    border: none;
    cursor: pointer;
    margin: 2px 0px 0px 5px;
    padding: 0px;
    float: right;
  }

  a.headermail {
    clear: both;
    display: none;
    float: right;
    padding: 0 0 0 20px;
    background: url("../images/mailIcon.png")
      top left no-repeat transparent;
    color: white;
    text-decoration: none;
    position: relative;
    top: 1px;
    right: 8px;
  }

  a.headermail:hover {
    text-decoration: underline;
  }

  a[data-tooltip] {
    position: relative;
  }

  a[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-28%);
    background-color: var(--tc-ink);
    color: var(--tc-white);
    padding: 5px 10px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s ease-in-out,
      visibility 0.2s ease-in-out;
    z-index: 1000;
  }

  a[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
  }
}


/* ---------------------------------------------------------
   Intermediate screen behaviour
   Previously in mobile_land.css.
   Other email declarations inherit from the screen foundation.
   --------------------------------------------------------- */

@media screen and (min-width: 481px) {

  a.headermail {
    display: block;
  }
}


/* ---------------------------------------------------------
   Desktop screen behaviour
   Previously in desktop.css.
   --------------------------------------------------------- */

@media screen and (min-width: 769px) {

  #submitButton {
    background: #f1f1f1 url("../TCsearch/img/search.svg")
      no-repeat center;
    background-size: 13px;
    width: 30px;
    height: 29px;
    text-indent: -9999px;
    cursor: pointer;
    margin: 0px 5px 0px -4px;
    padding: 0px;

    -webkit-border-radius: 0px 5px 5px 0px;
    -moz-border-radius: 0px 5px 5px 0px;
    border-radius: 0px 5px 5px 0px;

    border-style: solid;
    border-width: 0px;
  }

  a.headermail {
    clear: both;
    display: block;
    float: right;
    padding: 0 0 0 26px;

    background: url("../images/header/mail-icon.svg")
      top left no-repeat transparent;
    background-size: auto 11px;
    background-position: 3px 2px;

    color: white;
    text-decoration: none;
    position: relative;
    top: 7px;
    right: 8px;
    font-size: 1.05em;
  }
}

/* =========================================================
   OUTER PAGE LAYOUT AND LEFT  MENU
   Migration: TC-002C

   Existing floats, dimensions and breakpoint behaviour
   preserved. No global box-sizing changes.

   The existing clearing <hr> before the footer is retained.
   ========================================================= */


/* ---------------------------------------------------------
   Screen foundations
   Previously supplied by mobile_port.css.
   --------------------------------------------------------- */

@media screen and (min-width: 0px) {

  #container {
    width: 99%;
    max-width: 960px;
    background-color: #FFF;
    margin: 0 auto;
  }

  .left_menu {
    float: left;
    width: 20%;
    background-color: #FFF;
    padding: 0;
    border: 1px solid #EFEFEF;
    display: none;
  }
}


/* ---------------------------------------------------------
   Small-screen main content
   Original inclusive 481px boundary preserved.
   --------------------------------------------------------- */

@media screen and (min-width: 0px) and (max-width: 481px) {

  #content {
    display: flex;
    flex-wrap: wrap;
    padding: 5px 5px 20px 10px;
    width: 95%;
    margin-top: 10px;
    float: none;
  }
}


/* ---------------------------------------------------------
   Intermediate screen layout
   Previously supplied by mobile_land.css.

   At exactly 481px this combines with the small-screen rule
   above, matching the existing cascade.
   --------------------------------------------------------- */

@media screen and (min-width: 481px) {

  #container {
    width: 95%;
    max-width: 960px;
    background-color: #FFF;
    margin: 0 auto;
  }

  .left_menu {
    float: left;
    width: 20%;
    background-color: #FFF;
    padding: 0;
    border: 0px solid #EFEFEF;
    display: none;
  }

  #content {
    padding: 5px 5px 20px 10px;
    width: 95%;
    float: left;
  }
}


/* ---------------------------------------------------------
   Desktop screen layout
   Previously supplied by desktop.css.
   --------------------------------------------------------- */

@media screen and (min-width: 769px) {

  #container {
    width: 95%;
    max-width: 1420px;
    background-color: #FFF;
    margin: 0 auto;
  }

  .left_menu {
    float: left;
    width: 20%;
    max-width: 275px;
    background-color: #FFF;
    padding: 0;
    border: 0px solid #EFEFEF;
    display: block;
    margin-top: 2px;
  }

  #content {
    padding: 5px 5px 20px 10px;
    width: 77%;
    float: left;
    margin-top: 0;
  }
}


/* =========================================================
   LEFT MENU — TYPOGRAPHY AND LINKS
   Previously supplied by navigation.css.
   Originally applied to all media.
   ========================================================= */

.left_menu h2 {
  background-color: #596167;
  font-family: "Lucida Grande", "Helvetica", "Arial", "Verdana",
    sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
  text-decoration: none;
  display: block;
  line-height: 14px;
  padding: 4px 0px 4px 7px;
  margin: 0;
  border: 1px solid #596167;
  text-shadow: 1px 1px 1px #333;
}

.left_menu h3 a,
.left_menu h3 a:visited,
.left_menu h3 {
  font-family: "Lucida Grande", "Helvetica", "Arial", "Verdana",
    sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  display: block;
  line-height: 14px;
  padding: 3px 2px 3px 3px;
  margin: 0;
  border: 0;
}

.left_menu h3 a:hover,
.left_menu h3 a:active,
.left_menu h3 a:focus {
  color: var(--tc-ink);
background-color: var(--tc-soft);
}

.left_menu strong a,
.left_menu strong a:visited,
.left_menu strong {
  font-family: "Lucida Grande", "Helvetica", "Arial", "Verdana",
    sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--tc-ink);
  text-decoration: none;
  display: block;
  line-height: 1.3;
  padding: 3px 2px 3px 3px;
  margin: 0;
  border: 0;
}

.left_menu ul.nav strong a:hover,
.left_menu ul.nav strong a:active,
.left_menu ul.nav strong a:focus {
  color: var(--tc-primary);
  text-decoration: underline;
}

.left_menu b,
.left_menu strong {
  color: var(--tc-ink);
}


/* ---------------------------------------------------------
   Primary catalogue list
   Selector scope preserved for any other use of ul.nav.
   --------------------------------------------------------- */

ul.nav {
  font-family: "Lucida Grande", "Helvetica", "Arial", "Verdana",
    sans-serif;
  font-size: 14px;
  color: var(--tc-ink);
}

ul.nav li {
  padding: 3px 2px 3px 7px;
  display: block;
  margin: 0;
}

ul.nav a,
ul.nav a:visited {
  color: var(--tc-ink);
  text-decoration: none;
  line-height: 1.3;
  display: block;
  margin: 0;
}

ul.nav li a:hover,
ul.nav li a:active,
ul.nav li a:focus {
  color: var(--tc-primary);
  text-decoration: underline;
}

/* =========================================================
   COOKIE BANNER
   TC-078 — Extracted from tcmain.css.
   Existing appearance, positioning and all-media scope
   preserved. Consent logic and scripts unchanged.
   ========================================================= */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}

#accept-cookies {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}

