/*
Theme Name: SmartGrub Child
Theme URI: https://smartgrub.in/
Description: SmartGrub child theme for Hello Elementor. Built for Elementor Pro, Hostinger, RankMath, WPForms, and LiteSpeed Cache.
Author: SmartGrub
Template: hello-elementor
Version: 1.0.0
Text Domain: smartgrub-child
*/

:root {
  --sg-mint: #6fc7b6;
  --sg-orange: #f15a31;
  --sg-cream: #f0ecd9;
  --sg-yellow: #ffcb05;
  --sg-charcoal: #333333;
  --sg-ink: #202020;
  --sg-muted: #6a6a61;
  --sg-white: #ffffff;
  --sg-line: rgba(51, 51, 51, 0.14);
  --sg-shadow: 0 18px 50px rgba(32, 32, 32, 0.12);
  --sg-radius: 8px;
  --sg-max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--sg-charcoal);
  font-family: "Century Gothic", "Avenir Next", Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  background: #fffdf7;
}

.site-header,
.preview-header,
.sg-site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(51, 51, 51, 0.12);
  display: flex;
  gap: 26px;
  height: 82px;
  justify-content: space-between;
  left: 0;
  padding: 0 28px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 999;
}

.sg-site-logo {
  align-items: center;
  color: var(--sg-charcoal);
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  max-width: 220px;
  text-decoration: none;
}

.sg-site-logo img,
.custom-logo-link img,
.site-header .site-branding img {
  height: 54px !important;
  max-height: 54px !important;
  max-width: 54px !important;
  object-fit: contain;
  width: 54px !important;
}

.sg-site-logo span {
  color: var(--sg-charcoal);
  font-family: Oswald, Impact, "Arial Narrow", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.sg-site-nav {
  align-items: center;
  display: flex;
  gap: 22px;
}

.sg-site-nav a {
  color: var(--sg-charcoal);
  font-family: Oswald, Impact, "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6,
.elementor-heading-title {
  color: var(--sg-charcoal);
  font-family: Oswald, Impact, "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: none;
}

h1 {
  font-size: clamp(42px, 5vw, 76px);
}

h2 {
  font-size: clamp(32px, 3.5vw, 52px);
}

h3 {
  font-size: clamp(23px, 2vw, 30px);
}

a {
  color: var(--sg-orange);
}

a:hover {
  color: #c84424;
}

.sg-accent,
.premium-accent {
  color: var(--sg-orange);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
}

.sg-section {
  padding: clamp(64px, 8vw, 112px) 24px;
}

.sg-section.sg-section-cream {
  background: var(--sg-cream);
}

.sg-section.sg-section-charcoal {
  background: var(--sg-charcoal);
  color: var(--sg-white);
}

.sg-section.sg-section-charcoal h1,
.sg-section.sg-section-charcoal h2,
.sg-section.sg-section-charcoal h3,
.sg-section.sg-section-charcoal p {
  color: var(--sg-white);
}

.sg-container {
  max-width: var(--sg-max);
  margin: 0 auto;
}

.sg-kicker {
  color: var(--sg-orange);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-style: italic;
  margin-bottom: 14px;
}

.sg-lede {
  color: var(--sg-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  max-width: 760px;
}

.sg-button,
.elementor-button,
button,
input[type="submit"] {
  border-radius: 6px;
  font-family: Oswald, Impact, "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 16px 24px;
  text-transform: uppercase;
}

.sg-button-primary,
.elementor-button.elementor-size-md {
  background: var(--sg-orange);
  border: 1px solid var(--sg-orange);
  color: var(--sg-white);
}

.sg-button-primary:hover,
.elementor-button.elementor-size-md:hover {
  background: #d94724;
  border-color: #d94724;
  color: var(--sg-white);
}

.sg-button-secondary {
  background: transparent;
  border: 1px solid var(--sg-charcoal);
  color: var(--sg-charcoal);
}

.sg-button-secondary:hover {
  background: var(--sg-charcoal);
  color: var(--sg-white);
}

.sg-hero {
  min-height: 88vh;
  padding: 148px 24px 72px;
  background:
    linear-gradient(90deg, rgba(32, 32, 32, 0.78), rgba(32, 32, 32, 0.28)),
    var(--sg-cream);
  display: flex;
  align-items: center;
}

.sg-hero.sg-hero-food {
  background:
    linear-gradient(90deg, rgba(32, 32, 32, 0.82), rgba(32, 32, 32, 0.35)),
    url("https://images.unsplash.com/photo-1555244162-803834f70033?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.sg-hero-inner {
  max-width: var(--sg-max);
  margin: 0 auto;
  width: 100%;
}

.sg-hero h1 {
  color: var(--sg-white);
  max-width: 840px;
}

.sg-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  max-width: 720px;
}

.sg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.sg-trust-grid,
.sg-service-grid,
.sg-proof-grid,
.sg-gallery-grid,
.sg-client-grid {
  display: grid;
  gap: 18px;
}

.sg-trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sg-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg-proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sg-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sg-client-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sg-logo-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.sg-logo-marquee::before,
.sg-logo-marquee::after {
  content: "";
  height: 100%;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 90px;
  z-index: 2;
}

.sg-logo-marquee::before {
  background: linear-gradient(90deg, var(--sg-cream), rgba(240, 236, 217, 0));
  left: 0;
}

.sg-logo-marquee::after {
  background: linear-gradient(270deg, var(--sg-cream), rgba(240, 236, 217, 0));
  right: 0;
}

.sg-logo-marquee-track {
  animation: sg-logo-marquee 28s linear infinite;
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.sg-logo-marquee:hover .sg-logo-marquee-track {
  animation-play-state: paused;
}

.sg-logo-marquee .sg-client-logo {
  flex: 0 0 214px;
}

@keyframes sg-logo-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.sg-card,
.sg-stat,
.sg-client-logo,
.sg-form-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  box-shadow: 0 8px 28px rgba(32, 32, 32, 0.06);
}

.sg-card {
  padding: 28px;
}

.sg-card h3 {
  margin: 0 0 12px;
}

.sg-card p {
  color: var(--sg-muted);
  margin: 0;
}

.sg-stat {
  padding: 24px;
}

.sg-stat strong {
  color: var(--sg-orange);
  display: block;
  font-family: Oswald, Impact, "Arial Narrow", sans-serif;
  font-size: 38px;
  line-height: 1;
}

.sg-stat span {
  color: var(--sg-muted);
  display: block;
  margin-top: 8px;
}

.sg-client-logo {
  align-items: center;
  color: var(--sg-charcoal);
  display: flex;
  font-family: Oswald, Impact, "Arial Narrow", sans-serif;
  font-size: 20px;
  justify-content: center;
  min-height: 92px;
  padding: 18px;
  text-align: center;
}

.sg-client-logo-mark {
  align-items: center;
  color: var(--sg-charcoal);
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-height: 42px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sg-client-logo:hover .sg-client-logo-mark {
  transform: translateY(-1px);
}

.sg-client-logo-mark.deloitte {
  color: #111111;
  font-weight: 700;
}

.sg-client-logo-mark.deloitte::after {
  background: #86bc25;
  border-radius: 50%;
  content: "";
  height: 8px;
  margin-left: 4px;
  margin-top: 20px;
  width: 8px;
}

.sg-client-logo-mark.ey {
  color: #333333;
  font-size: 34px;
  position: relative;
}

.sg-client-logo-mark.ey::before {
  background: #ffe600;
  content: "";
  height: 7px;
  left: -4px;
  position: absolute;
  top: -8px;
  transform: skewX(-28deg);
  width: 52px;
}

.sg-client-logo-mark.kpmg {
  background: #00338d;
  color: #ffffff;
  font-size: 23px;
  letter-spacing: 0.03em;
  padding: 12px 16px;
}

.sg-client-logo-mark.ibm {
  color: #1f70c1;
  font-size: 31px;
  letter-spacing: 0.04em;
}

.sg-client-logo-mark.accenture {
  color: #111111;
  font-size: 23px;
  font-weight: 700;
  position: relative;
}

.sg-client-logo-mark.accenture::before {
  color: #a100ff;
  content: ">";
  font-size: 26px;
  left: 72px;
  position: absolute;
  top: -20px;
}

.sg-client-logo-mark.capgemini {
  color: #0070ad;
  font-size: 21px;
  font-weight: 700;
}

.sg-client-logo-mark.concentrix {
  color: #e2231a;
  font-size: 21px;
  font-weight: 800;
}

.sg-client-logo-mark.genpact {
  color: #f37021;
  font-size: 22px;
  font-weight: 800;
}

.sg-client-logo-mark.canara-hsbc {
  color: #143980;
  flex-direction: column;
  font-size: 18px;
  gap: 4px;
  text-align: center;
}

.sg-client-logo-mark.canara-hsbc small {
  color: #d71920;
  font-size: 12px;
  font-weight: 700;
}

.sg-client-logo-image {
  filter: grayscale(1);
  height: auto;
  max-height: 48px;
  max-width: 154px;
  object-fit: contain;
  opacity: 0.9;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.sg-client-logo:hover .sg-client-logo-image {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-1px);
}

.sg-project-gallery {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg-project-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  box-shadow: 0 8px 28px rgba(32, 32, 32, 0.06);
  overflow: hidden;
}

.sg-project-image {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.sg-project-card-body {
  padding: 22px;
}

.sg-project-card-body h3 {
  font-size: 24px;
  margin: 0;
}

.sg-project-card-body h3 a {
  color: var(--sg-charcoal);
  text-decoration: none;
}

.sg-project-card-body p {
  color: var(--sg-muted);
  margin-bottom: 0;
}

.sg-project-type {
  color: var(--sg-orange) !important;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  margin: 0 0 8px !important;
}

.sg-case-study {
  background: var(--sg-charcoal);
  border-radius: var(--sg-radius);
  color: var(--sg-white);
  display: grid;
  gap: 34px;
  grid-template-columns: 0.9fr 1.1fr;
  padding: clamp(34px, 5vw, 64px);
}

.sg-case-study h2,
.sg-case-study h3,
.sg-case-study p {
  color: var(--sg-white);
}

.sg-case-study .sg-kicker {
  color: var(--sg-yellow);
}

.sg-check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
}

.sg-check-list li {
  list-style: none;
  padding-left: 30px;
  position: relative;
}

.sg-check-list li::before {
  background: var(--sg-mint);
  border-radius: 50%;
  color: var(--sg-charcoal);
  content: "";
  height: 10px;
  left: 5px;
  position: absolute;
  top: 12px;
  width: 10px;
}

.sg-form-card {
  padding: 30px;
}

.sg-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sg-form-grid .full {
  grid-column: 1 / -1;
}

.sg-form-card label {
  color: var(--sg-charcoal);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sg-form-card input,
.sg-form-card select,
.sg-form-card textarea {
  background: #fffdf7;
  border: 1px solid var(--sg-line);
  border-radius: 6px;
  color: var(--sg-charcoal);
  font-family: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.sg-form-card textarea {
  min-height: 118px;
}

.sg-floating-contact {
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  right: 18px;
  z-index: 9999;
}

.sg-floating-contact a {
  align-items: center;
  border-radius: 999px;
  box-shadow: var(--sg-shadow);
  color: var(--sg-white);
  display: flex;
  font-family: Oswald, Impact, "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 16px;
  text-decoration: none;
}

.sg-floating-contact .whatsapp {
  background: #25d366;
}

.sg-floating-contact .call {
  background: var(--sg-orange);
}

.sg-exit-cta {
  background: rgba(32, 32, 32, 0.62);
  display: none;
  inset: 0;
  position: fixed;
  z-index: 99999;
}

.sg-exit-cta.is-visible {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 22px;
}

.sg-exit-cta-panel {
  background: var(--sg-white);
  border-radius: var(--sg-radius);
  max-width: 560px;
  padding: 34px;
  position: relative;
  width: 100%;
}

.sg-exit-cta-close {
  background: transparent;
  border: 0;
  color: var(--sg-charcoal);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 6px;
  position: absolute;
  right: 12px;
  top: 10px;
}

.sg-footer {
  background: var(--sg-charcoal);
  color: rgba(255, 255, 255, 0.78);
  padding: 58px 24px 24px;
}

.sg-footer a,
.sg-footer h3 {
  color: var(--sg-white);
}

.sg-footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  max-width: var(--sg-max);
  margin: 0 auto;
}

.sg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  margin: 34px auto 0;
  max-width: var(--sg-max);
  padding-top: 18px;
}

@media (max-width: 1024px) {
  .sg-trust-grid,
  .sg-service-grid,
  .sg-gallery-grid,
  .sg-client-grid,
  .sg-project-gallery,
  .sg-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-case-study {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .sg-hero {
    min-height: 82vh;
    padding: 118px 18px 52px;
  }

  .sg-site-header {
    gap: 12px;
    height: auto;
    min-height: 72px;
    padding: 10px 18px;
  }

  .sg-site-nav {
    display: none;
  }

  .sg-site-logo span {
    font-size: 20px;
  }

  .sg-section {
    padding: 54px 18px;
  }

  .sg-trust-grid,
  .sg-service-grid,
  .sg-proof-grid,
  .sg-gallery-grid,
  .sg-client-grid,
  .sg-project-gallery,
  .sg-form-grid,
  .sg-footer-grid {
    grid-template-columns: 1fr;
  }

  .sg-button,
  .elementor-button,
  button,
  input[type="submit"] {
    width: 100%;
  }

  .sg-hero-actions {
    width: 100%;
  }

  .sg-floating-contact {
    bottom: 12px;
    flex-direction: row;
    left: 12px;
    right: 12px;
  }

  .sg-floating-contact a {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-logo-marquee-track {
    animation: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .sg-logo-marquee .sg-client-logo {
    flex: initial;
  }
}
