/* SEO Intro Animation — scoped under .seo-intro-wrap */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Roboto:wght@400;500;700&display=swap');

.seo-intro-wrap {
  --google-blue: #1a0dab;
  --google-visited: #681da8;
  --google-text: #4d5156;
  --google-dark: #202124;
  --google-border: #dadce0;
  --google-bg: #ffffff;
  --google-star: #fbbc05;
  --google-star-empty: #e8eaed;

  background-color: var(--google-bg);
  font-family: Roboto, Arial, sans-serif;
  color: var(--google-dark);
  -webkit-font-smoothing: antialiased;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.seo-intro-wrap * { box-sizing: border-box; }

.seo-intro-wrap .scroll-track {
  height: 250vh !important;
  position: relative;
}

.seo-intro-wrap .pin-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--google-bg);
}

.seo-content-rise {
  position: relative;
  z-index: 50;
  background: #ffffff;
  margin-top: -100vh;
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.18);
  will-change: transform;
}

.seo-intro-wrap .serp-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--google-bg);
}

.seo-intro-wrap .serp-layer > header {
  border-bottom: 1px solid var(--google-border);
  padding-top: 20px;
  width: 100%;
  flex-shrink: 0;
  z-index: 10;
  background-color: var(--google-bg);
}

.seo-intro-wrap .header-top {
  display: flex;
  align-items: center;
  padding-left: 24px;
  padding-right: 24px;
  margin-bottom: 16px;
}

.seo-intro-wrap .logo-link {
  display: inline-block;
  margin-right: 28px;
  text-decoration: none;
}

.seo-intro-wrap .logo-img {
  display: block;
  width: 92px;
  height: 30px;
}

.seo-intro-wrap .search-box-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 692px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--google-border);
  border-radius: 24px;
  padding: 0 14px 0 18px;
}

.seo-intro-wrap .search-box-container:hover {
  box-shadow: 0 1px 6px rgba(32,33,36,0.28);
  border-color: rgba(223,225,229,0);
}

.seo-intro-wrap .search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--google-dark);
  padding: 0;
  background: transparent;
}

.seo-intro-wrap .search-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.seo-intro-wrap .search-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-intro-wrap .search-icon-btn svg {
  width: 24px;
  height: 24px;
}

.seo-intro-wrap .search-magnifier {
  fill: #4285f4;
  margin-right: 12px;
}

.seo-intro-wrap .nav-tabs-container {
  padding-left: 144px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--google-text);
  overflow-x: auto;
}

.seo-intro-wrap .tab {
  display: flex;
  align-items: center;
  padding: 0 12px 12px 12px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--google-text);
  white-space: nowrap;
  gap: 6px;
}

.seo-intro-wrap .tab:hover { color: var(--google-dark); }

.seo-intro-wrap .tab.active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

.seo-intro-wrap .tab svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.seo-intro-wrap .main-layout {
  padding-left: 170px;
  padding-right: 24px;
  padding-top: 24px;
  padding-bottom: 60px;
  max-width: 846px;
  flex: 1;
  position: relative;
}

.seo-intro-wrap .search-stats {
  font-size: 14px;
  color: var(--google-text);
  margin-bottom: 24px;
}

.seo-intro-wrap .results-list {
  display: flex;
  flex-direction: column;
  max-width: 652px;
  position: relative;
}

.seo-intro-wrap .results-wrap {
  position: relative;
  overflow: visible;
}

.seo-intro-wrap .search-result {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform;
}

.seo-intro-wrap .result-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--google-dark);
  margin-bottom: 4px;
}

.seo-intro-wrap .favicon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background-color: #f1f3f4;
  border-radius: 50%;
  margin-right: 12px;
  border: 1px solid #e8eaed;
  flex-shrink: 0;
}

.seo-intro-wrap .favicon-container svg {
  width: 16px;
  height: 16px;
}

.seo-intro-wrap .meta-info {
  display: flex;
  flex-direction: column;
}

.seo-intro-wrap .site-name {
  font-size: 14px;
  line-height: 20px;
  color: var(--google-dark);
  font-weight: normal;
}

.seo-intro-wrap .site-url {
  font-size: 12px;
  line-height: 18px;
  color: var(--google-text);
}

.seo-intro-wrap .result-title-container {
  display: flex;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 4px;
}

.seo-intro-wrap .result-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 400;
  color: var(--google-blue);
  text-decoration: none;
  margin: 0;
}

.seo-intro-wrap .result-title:hover { text-decoration: underline; }
.seo-intro-wrap .result-title:visited { color: var(--google-visited); }

.seo-intro-wrap .rating-container {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--google-text);
  margin-bottom: 4px;
}

.seo-intro-wrap .stars-list {
  display: flex;
  align-items: center;
  margin-right: 8px;
  gap: 1px;
}

.seo-intro-wrap .star-icon {
  width: 14px;
  height: 14px;
  fill: var(--google-star);
}

.seo-intro-wrap .rating-text { font-weight: normal; }

.seo-intro-wrap .result-snippet {
  font-size: 14px;
  line-height: 1.58;
  color: var(--google-text);
  margin: 0;
}

.seo-intro-wrap .name-your-business,
.seo-intro-wrap .title-your-business {
  display: inline-block;
  will-change: opacity;
}

.seo-intro-wrap .name-your-website,
.seo-intro-wrap .title-your-website {
  display: none;
  opacity: 0;
  will-change: opacity;
}

.seo-intro-wrap .website-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 12px 24px;
  width: 100%;
  max-width: 652px;
  margin-left: 0;
  margin-top: -10px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(-10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  will-change: opacity, transform;
}

.seo-intro-wrap .website-logo {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #111111;
}

.seo-intro-wrap .web-nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-intro-wrap .web-nav-links a {
  text-decoration: none;
  color: #555555;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  transition: color 0.2s ease;
}

.seo-intro-wrap .web-nav-links a:hover { color: #1a73e8; }

.seo-intro-wrap .serp-annotations-container {
  position: absolute;
  top: 181px;
  left: 170px;
  width: 652px;
  height: 500px;
  pointer-events: none;
  z-index: 15;
}

.seo-intro-wrap .annotations-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.seo-intro-wrap .annotation-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  will-change: stroke-dashoffset, opacity;
}

.seo-intro-wrap .red-circle,
.seo-intro-wrap .red-arrow,
.seo-intro-wrap .red-arrow-head {
  stroke: #d93025;
  stroke-width: 2.8;
}

.seo-intro-wrap .orange-arrow,
.seo-intro-wrap .orange-arrow-head {
  stroke: #ff5100;
  stroke-width: 3.0;
}

.seo-intro-wrap .callout-text {
  position: absolute;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.25;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  will-change: opacity, transform;
}

.seo-intro-wrap .red-callout {
  left: 360px;
  top: 310px;
  color: #d93025;
  transform: rotate(-3deg);
  max-width: 260px;
}

.seo-intro-wrap .orange-callout {
  left: 260px;
  top: -20px;
  color: #e53935;
  transform: rotate(-2deg);
  max-width: 260px;
}

.seo-intro-wrap .intro-hero-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.90);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 40px 24px;
  text-align: center;
  will-change: opacity, transform;
}

.seo-intro-wrap .intro-hero-content {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.seo-intro-wrap .intro-hero-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff5100;
}

.seo-intro-wrap .intro-hero-headline {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  color: #111111;
  max-width: 800px;
  margin: 0;
  letter-spacing: -0.5px;
}

.seo-intro-wrap .intro-hero-subtext {
  font-size: 16px;
  line-height: 1.6;
  color: #666666;
  max-width: 640px;
  margin: 0;
}

.seo-intro-wrap .intro-hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}

.seo-intro-wrap .intro-btn-orange {
  display: inline-block;
  background-color: #ff5100;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 2px 10px rgba(255, 81, 0, 0.15);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-intro-wrap .intro-btn-orange:hover {
  background-color: #e04700;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 81, 0, 0.25);
}

.seo-intro-wrap .intro-btn-outline {
  display: inline-block;
  background-color: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 30px;
  border: 1px solid #dddddd;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.seo-intro-wrap .intro-btn-outline:hover {
  border-color: #111111;
  background-color: #fafafa;
  transform: translateY(-1px);
}

.seo-intro-wrap .intro-hero-trust {
  font-size: 13px;
  color: #888888;
  font-weight: 500;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .seo-intro-wrap .search-box-container { width: 100%; max-width: 92vw; }
  .seo-intro-wrap .nav-tabs-container { padding-left: 24px; }
  .seo-intro-wrap .main-layout { padding-left: 24px; padding-right: 16px; }
  .seo-intro-wrap .serp-annotations-container { left: 24px; width: calc(100% - 48px); }
  .seo-intro-wrap .intro-hero-headline { font-size: 28px; }
}

/* ── Small phone portrait (≤ 600px) ── */
@media (max-width: 600px) {
  .seo-intro-wrap .header-top {
    padding-left: 12px;
    padding-right: 12px;
  }
  .seo-intro-wrap .logo-link {
    margin-right: 10px;
    flex-shrink: 0;
  }
  .seo-intro-wrap .logo-img {
    width: 72px;
    height: 24px;
  }
  /* Let the search box fill remaining flex space and shrink as needed */
  .seo-intro-wrap .search-box-container {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    height: 40px;
    padding: 0 8px 0 12px;
  }
  .seo-intro-wrap .search-magnifier {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
  }
  .seo-intro-wrap .search-input {
    font-size: 13px;
    min-width: 0;
  }
  .seo-intro-wrap .search-controls {
    gap: 6px;
    flex-shrink: 0;
  }
  /* On small screens: hide Clear, Voice, Lens; keep only the Search button */
  .seo-intro-wrap .search-controls .search-icon-btn:not(:last-child) { display: none; }
  .seo-intro-wrap .search-controls > div { display: none; }
  .seo-intro-wrap .search-icon-btn svg { width: 20px; height: 20px; }
  .seo-intro-wrap .nav-tabs-container {
    padding-left: 12px;
    font-size: 13px;
  }
  .seo-intro-wrap .tab { padding: 0 8px 10px 8px; gap: 4px; }
  .seo-intro-wrap .tab svg { width: 13px; height: 13px; }
  .seo-intro-wrap .main-layout {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 14px;
  }
  .seo-intro-wrap .results-list { max-width: 100%; }
  .seo-intro-wrap .serp-annotations-container { left: 12px; width: calc(100% - 24px); }
  .seo-intro-wrap .red-callout {
    left: auto;
    right: 0;
    top: 185px;
    max-width: 120px;
    font-size: 15px;
  }
  .seo-intro-wrap .orange-callout { left: 4px; font-size: 15px; max-width: 180px; }
  .seo-intro-wrap .result-title { font-size: 17px; line-height: 23px; }
  .seo-intro-wrap .result-snippet { font-size: 13px; }
  .seo-intro-wrap .search-stats { font-size: 12px; margin-bottom: 16px; }
  .seo-intro-wrap .intro-hero-headline { font-size: 22px; }
  .seo-intro-wrap .intro-hero-subtext { font-size: 14px; }
  .seo-intro-wrap .intro-hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .seo-intro-wrap .intro-btn-orange,
  .seo-intro-wrap .intro-btn-outline {
    padding: 12px 24px;
    font-size: 13px;
    text-align: center;
    min-width: 200px;
  }
}

/* ── Very small phone (≤ 390px) — extra safety ── */
@media (max-width: 390px) {
  .seo-intro-wrap .header-top { padding-left: 10px; padding-right: 10px; }
  .seo-intro-wrap .logo-img { width: 60px; height: 20px; }
  .seo-intro-wrap .logo-link { margin-right: 8px; }
  .seo-intro-wrap .search-box-container { height: 36px; padding: 0 6px 0 10px; }
  .seo-intro-wrap .search-input { font-size: 12px; }
  .seo-intro-wrap .nav-tabs-container { padding-left: 10px; }
  .seo-intro-wrap .main-layout { padding-left: 10px; padding-right: 10px; }
  .seo-intro-wrap .result-title { font-size: 15px; line-height: 21px; }
}
