/* TelosSEO - styles.css */

/* BASE */

* {box-sizing: border-box;}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 80px;}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;}

/* CUSTOM COLORS */

:root {
  --primary: #591fce;
  --primary-hover: #2d1065;
  --accent: #0b9e60;
  --accent-hover: #087a4a;
  --lavender: #f4f1ff;
  --yellow: #ffd700;
  --black: #000000;
  --white: #ffffff;}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;}

p {
  line-height: 1.7;}

/* -------------------------
   IMAGE FIXES
------------------------- */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -------------------------
   BUTTONS
------------------------- */

a.package-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;

  font-weight: 700;
  text-align: center;
  text-decoration: none;

  border: 2px solid var(--primary);

  transition: background-color 0.3s ease;
}

a.package-btn {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

a.package-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

a.package-btn[data-package="SEO Tillväxt"] {
  background-color: var(--primary);
  color: var(--white);
}

a.package-btn[data-package="SEO Tillväxt"]:hover {
  background-color: var(--primary-hover);
}

a.package-btn:active {
  transform: scale(0.98);
}

/* -------------------------
   YELLOW UNDERLINE
------------------------- */

.yellow-underline {
  position: relative;
  z-index: 1;}

.yellow-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 215, 0, 0.4);
  z-index: -1;
  border-radius: 2px;}

/* -------------------------
   FAQ
------------------------- */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1rem;
}

.faq-item.active i.chevron {
  transform: rotate(180deg);
}

/* -------------------------
   NAVBAR
------------------------- */

nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* -------------------------
   MOBILE MENU
------------------------- */

#mobile-menu {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* -------------------------
   HERO SECTION
------------------------- */

.hero-section {
  overflow: hidden;
}

.hero-section h1 {
  word-break: break-word;
}

/* -------------------------
   CTA BANNERS
------------------------- */

.cta-banner {
  overflow: hidden;
  position: relative;
}

.cta-banner svg {
  max-width: 100%;
}

/* -------------------------
   PRICING CARDS
------------------------- */

.pricing-card {
  transition: box-shadow 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* -------------------------
   FORM
------------------------- */

.form-card {
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.04);
}

input {
  font-size: 16px;
}

input:focus {
  border-color: var(--primary);
}

/* -------------------------
   FOOTER
------------------------- */

footer a {
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 1;
}

/* -------------------------
   UTILITIES
------------------------- */

.overflow-fix {
  overflow-x: hidden;
}

.text-balance {
  text-wrap: balance;
}

/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1440px) {

  .max-w-7xl {
    max-width: 1400px;
  }

  h1 {
    line-height: 1.05;
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

  /* HERO */

  h1 {
    font-size: 4rem !important;
    line-height: 1.1 !important;
  }

  /* PRICING */

  .pricing-card {
    transform: none !important;
  }

  /* CTA */

  .cta-banner svg {
    width: 450px !important;
    height: 450px !important;
  }

  /* SPACING */

  section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  /* BODY */

  body {
    overflow-x: hidden;
  }

  /* TYPOGRAPHY */

  h1 {
    font-size: 2.6rem !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  p {
    font-size: 1rem;
  }

  /* SECTIONS */

  section {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }

  /* HERO */

  .hero-section {
    padding-top: 7rem !important;
    padding-bottom: 5rem !important;
  }

  /* BUTTONS */

  .hero-section a,
  .package-btn,
  button {
    width: 100%;
    text-align: center;
  }

  /* CTA */

  .cta-banner {
    border-radius: 28px !important;
  }

  .cta-banner svg {
    width: 320px !important;
    height: 320px !important;
  }

  /* CARDS */

  .pricing-card {
    padding: 1.5rem !important;
  }

  /* FAQ */

  .faq-item {
    padding: 1.25rem !important;
  }

  /* FORM */

  .form-card {
    padding: 1.5rem !important;
  }

  input {
    padding: 14px 16px !important;
  }

  /* FOOTER */

  footer {
    text-align: center;
  }

  footer .flex {
    justify-content: center;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  h1 {
    font-size: 2.1rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  .pricing-card {
    border-radius: 24px !important;
  }

  .cta-banner {
    border-radius: 24px !important;
  }

  .cta-banner svg {
    width: 250px !important;
    height: 250px !important;
  }
}

/* =========================================================
   IPAD LANDSCAPE FIX
   ========================================================= */

@media (min-width: 768px) and (max-width: 1180px) {

  .grid.md\:grid-cols-5 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .pricing-card.scale-105 {
    transform: none !important;
  }
}

/* =========================================================
   SAFARI FIXES
   ========================================================= */

@supports (-webkit-touch-callout: none) {

  body {
    -webkit-text-size-adjust: 100%;
  }

  input,
  textarea,
  button {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
  }
}

/* =========================================================
   PERFORMANCE
   ========================================================= */

.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}