/*
Theme Name: Takteam
Theme URI: https://takteam.se
Template: generatepress
Author: Takteam AB
Description: GeneratePress barn-tema för Takteam – anpassad header och footer som matchar takteam.se.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: takteam
*/

/* ============================================================
   Importera föräldratema
   ============================================================ */

/* (Laddas via functions.php wp_enqueue_style) */

/* ============================================================
   Variabler – Takteam brand
   ============================================================ */
:root {
  --tt-blue:   #3871c1;
  --tt-yellow: #f9dd05;
  --tt-dark:   #231f20;
  --tt-white:  #fff;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.tt-topbar {
  background: var(--tt-blue);
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.tt-topbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.tt-topbar li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  font-family: "Rajdhani", Arial, sans-serif;
  letter-spacing: 0.5px;
}

.tt-topbar li a::before {
  background: var(--tt-yellow);
  color: var(--tt-blue);
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tt-topbar .tt-phone::before { content: "☎"; }
.tt-topbar .tt-email::before { content: "@"; }

/* ============================================================
   HEADER LOGO AREA
   ============================================================ */
.tt-header-wrap {
  background: #fff;
  border-bottom: 3px solid var(--tt-blue);
  padding: 10px 0;
}

.tt-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tt-logo img {
  height: 70px;
  width: auto;
  display: block;
}

/* ============================================================
   Dölj GeneratePress standard-header och nav
   ============================================================ */
.site-header,
.main-navigation,
#site-navigation {
  display: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.tt-footer {
  background: #fff;
  border-top: 5px solid var(--tt-blue);
  padding: 4% 0;
}

.tt-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.tt-footer .tt-footer-logo img {
  width: 150px;
  height: auto;
  margin-bottom: 16px;
  display: block;
}

.tt-footer p {
  color: var(--tt-dark);
  font-size: 0.9em;
  line-height: 1.5em;
  margin-bottom: 0;
}

.tt-footer p a {
  color: var(--tt-dark);
  text-decoration: underline;
}

.tt-footer p a[href^="tel"] {
  text-decoration: none !important;
}

.tt-footer h4 {
  color: var(--tt-dark);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tt-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-footer ul li {
  padding: 0.2rem 0;
}

.tt-footer ul li a {
  color: rgba(0,0,0,0.6);
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.2s;
}

.tt-footer ul li a:hover {
  color: var(--tt-dark);
  text-decoration: underline;
}

/* USP column */
.tt-footer .tt-usps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.tt-footer .tt-usps a {
  display: block;
  text-align: center;
  padding: 15px 20px;
  background: var(--tt-blue);
  color: var(--tt-yellow) !important;
  font-family: "Rajdhani", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  transition: box-shadow 0.2s;
  box-shadow: rgba(0,0,0,0.1) 0 4px 6px -1px;
}

.tt-footer .tt-usps a:hover {
  box-shadow: rgba(0,0,0,0.05) 0 0 0 1px;
}

/* Social icons */
.tt-social-icons {
  display: flex;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  gap: 8px;
}

.tt-social-icons a {
  color: var(--tt-dark);
  font-size: 0.85em;
  text-decoration: none;
}

.tt-social-icons a::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  font-size: 12px;
  color: #fff;
  background: var(--tt-blue);
  border-radius: 50%;
  margin-right: 4px;
}

/* ============================================================
   ONE-PAGER HERO
   ============================================================ */
.tt-hero {
  background: linear-gradient(135deg, #0d3d6e 0%, #3871c1 65%, #2060b0 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.tt-hero.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tt-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.tt-hero-iframe-wrap {
  object-fit: unset;
}

.tt-hero-iframe-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 */
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw; /* 16:9 */
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

.tt-hero .tt-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tt-hero-content h1 {
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
}

.tt-hero-content h1 em {
  color: var(--tt-yellow);
  font-style: normal;
}

.tt-hero-content .tt-campaign {
  display: inline-block;
  background: var(--tt-yellow);
  color: var(--tt-dark);
  font-family: "Rajdhani", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: 3px;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tt-hero-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.tt-hero-badge strong {
  display: block;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--tt-yellow);
  font-weight: 700;
  line-height: 1.1;
}

.tt-hero-badge span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Hero left block */
.tt-hero-content {
  background: var(--tt-blue);
  border-radius: 8px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Form card */

.tt-form-card {
  background: #fff;
  border-radius: 8px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.tt-form-card h2 {
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tt-dark);
  margin: 0 0 24px;
  text-align: center;
}

/* ============================================================
   Dölj GeneratePress inbyggd footer
   ============================================================ */
.site-footer {
  display: none !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .tt-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .tt-footer-inner {
    grid-template-columns: 1fr;
  }
  .tt-hero .tt-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .tt-hero { min-height: auto; padding: 60px 0; }
  .tt-form-card { padding: 24px 18px; }
}