/*
Theme Name: Sami's Trädservice AB
Theme URI: https://0708862622.com/
Author: Sami's Trädservice AB
Author URI: https://0708862622.com/
Description: Ett skräddarsytt, blixtsnabbt och SEO-optimerat visitkortstema för Sami's Trädservice AB.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: samis-tradservice
*/

:root {
  --bg-color: #0b0f0d;
  --text-color: #FFFFFF;
  --stroke-color: #076633;
  --stroke-glow: rgba(7, 102, 51, 0.45);
  --card-bg: #070908;
  --card-surface: #0c0f0d;
  --card-surface-hover: #121914;
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  background-image: url('assets/bg-texture.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-color);
  font-family: var(--font-family);
  font-weight: 500;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 60px 16px;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(7, 102, 51, 0.12) 0%, rgba(0, 0, 0, 0.45) 85%);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, .font-heading {
  font-weight: 600;
  letter-spacing: -0.01em;
}

p, span, .font-body, li, div {
  font-weight: 500;
}

/* Header & Intro */
header.header-bar {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.main-title {
  font-size: 34px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.sub-title {
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 500;
  max-width: 620px;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* Main Container */
.content-area {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Permanent Side-by-Side Presentation */
.cards-side-by-side {
  display: flex;
  width: 100%;
  gap: 28px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.card-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 450px;
}

.card-label-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #10b981;
  margin-bottom: 8px;
  padding-left: 4px;
}

.business-card {
  width: 100%;
  min-height: 290px;
  border-radius: 20px;
  border: 2px solid var(--stroke-color);
  background: #060907;
  position: relative;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9), 0 0 26px rgba(7, 102, 51, 0.28);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

.business-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 0%, rgba(7, 102, 51, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.business-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(7, 102, 51, 0.45);
  border-radius: 12px;
  pointer-events: none;
}

/* Front Card Specifics */
.card-front {
  text-align: center;
}

.front-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(7, 102, 51, 0.35);
  border: 1px solid var(--stroke-color);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.front-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  margin: 10px 0;
}

.logo-img {
  max-width: 155px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(7, 102, 51, 0.6));
  margin-bottom: 10px;
}

.brand-name {
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.brand-tagline {
  font-size: 12px;
  font-weight: 500;
  color: #e5e7eb;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.front-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(7, 102, 51, 0.4);
  padding-top: 10px;
  position: relative;
  z-index: 1;
}

.front-bottom span {
  font-size: 11px;
  font-weight: 500;
  color: #d1d5db;
}

.stars-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #facc15;
  font-size: 12px;
  font-weight: 600;
}

.stars-badge span {
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  margin-left: 2px;
}

/* Back Card Specifics */
.back-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(7, 102, 51, 0.4);
  padding-bottom: 8px;
  position: relative;
  z-index: 1;
}

.back-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-logo {
  width: 34px;
  height: auto;
}

.back-brand-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

.back-brand-text p {
  font-size: 11px;
  font-weight: 500;
  color: #d1d5db;
}

.card-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
  position: relative;
  z-index: 1;
}

.card-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(7, 102, 51, 0.5);
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.25s ease;
}

.card-link-item:hover {
  background: rgba(7, 102, 51, 0.28);
  border-color: #10b981;
  transform: translateY(-2px);
}

.link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 102, 51, 0.35);
  border: 1px solid var(--stroke-color);
  flex-shrink: 0;
}

.link-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  color: #FFFFFF;
}

.link-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.link-title {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-desc {
  font-size: 10px;
  font-weight: 500;
  color: #d1d5db;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.back-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(7, 102, 51, 0.35);
  padding-top: 10px;
}

.services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(7, 102, 51, 0.45);
  color: #e5e7eb;
}

/* Card Actions Bar below cards */
.card-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--stroke-color);
  background: rgba(10, 14, 12, 0.9);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--stroke-color);
  box-shadow: 0 4px 16px var(--stroke-glow);
  transform: translateY(-2px);
}

.action-btn.primary {
  background: var(--stroke-color);
  font-weight: 600;
}

.action-btn.primary:hover {
  background: #0b8040;
}

/* SEO Content & About Section */
.seo-section {
  width: 100%;
  max-width: 960px;
  background: rgba(7, 11, 9, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(7, 102, 51, 0.45);
  border-radius: 16px;
  padding: 32px 28px;
  margin-top: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.seo-card {
  background: rgba(3, 5, 4, 0.85);
  border: 1px solid rgba(7, 102, 51, 0.38);
  border-radius: 12px;
  padding: 20px;
}

.seo-card h4 {
  color: #FFFFFF;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-card p {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #076633;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  body {
    padding: 20px 12px 40px 12px;
  }
  .main-title {
    font-size: 24px;
  }
  .sub-title {
    font-size: 13px;
  }
  .business-card {
    padding: 20px 16px;
  }
  .brand-name {
    font-size: 19px;
  }
  .brand-tagline {
    font-size: 11px;
  }
  .logo-img {
    max-width: 130px;
  }
  .card-links-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .card-actions-bar {
    gap: 8px;
  }
  .action-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}
