/*
 * Neumorphic UI Theme for a Modern Digital Marketing Agency
 * Version: 4.0
 * Description: A static, responsive, and animation-free stylesheet
 *              utilizing Neumorphic / Soft UI design principles.
 */

/* ----------------------------- */
/* #region CSS Custom Properties */
/* ----------------------------- */
:root {
  /* Colors */
  --color-background: #eef0f4;
  --color-primary: #3d5af1;
  --color-primary-dark: #304ffe;
  --color-text-primary: #333a4e;
  --color-text-secondary: #7b829c;
  --color-white: #ffffff;
  --color-border: #d9dbe2;

  /* Shadows for Neumorphism */
  --shadow-light: #ffffff;
  --shadow-dark: #d9dbe2;
  --neumorphic-shadow-concave: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
  --neumorphic-shadow-convex: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);

  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --line-height-base: 1.6;

  /* Sizing & Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-section: 6rem;

  /* Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  /* Layout */
  --container-width: 1180px;
  --header-height: 80px;
}

/* #endregion */

/* ----------------------------- */
/* #region Base & Reset Styles */
/* ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style-type: none;
}

/* #endregion */

/* ----------------------------- */
/* #region Layout & Helpers */
/* ----------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.section-padding {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

/* #endregion */

/* ----------------------------- */
/* #region Neumorphic Components */
/* ----------------------------- */
.card-neumorphic {
  background-color: var(--color-background);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--neumorphic-shadow-convex);
  padding: var(--space-5);
}

.input-neumorphic,
select.input-neumorphic,
textarea.input-neumorphic {
  background-color: var(--color-background);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--neumorphic-shadow-concave);
  border: none;
  padding: 14px 18px;
  width: 100%;
  font-family: var(--font-family-base);
  font-size: 1rem;
  color: var(--color-text-primary);
  outline: none;
}

select.input-neumorphic {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%237b829c%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.btn {
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  padding: 16px 32px;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--neumorphic-shadow-convex);
}

.btn-primary:active {
  /* "Pressed in" state */
  box-shadow: var(--neumorphic-shadow-concave);
}

.btn-secondary {
  background-color: var(--color-background);
  color: var(--color-text-primary);
  box-shadow: var(--neumorphic-shadow-convex);
}

.btn-secondary:active {
  box-shadow: var(--neumorphic-shadow-concave);
}

/* #endregion */

/* ----------------------------- */
/* #region Header & Navigation */
/* ----------------------------- */
.site-header {
  background-color: var(--color-background);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link img {
  height: 90px;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  background-color: var(--color-text-primary);
  display: block;
  height: 2px;
  width: 25px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.nav-menu {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--color-background);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nav-menu.is-open {
  display: block;
}

.nav-menu li a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-weight: 500;
}

.nav-menu li a:hover,
.nav-menu li a.is-active {
  color: var(--color-primary);
}

/* #endregion */

/* ----------------------------- */
/* #region Hero Section */
/* ----------------------------- */
.hero-section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  padding: 12rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: 1.125rem;
  max-width: 500px;
  margin-bottom: var(--space-5);
}

.hero-kpi-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.kpi-card {
  background-color: var(--color-background);
  border-radius: var(--border-radius-md);
  box-shadow: var(--neumorphic-shadow-convex);
  padding: var(--space-4);
  text-align: center;
}

.kpi-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.kpi-label {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* #endregion */

/* ----------------------------- */
/* #region Specific Sections */
/* ----------------------------- */
/* Trusted By Section */
.trusted-by-section {
  padding-bottom: var(--space-section);
}

.trusted-by-title {
  text-align: center;
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-5);
}

.logo-placeholder {
  height: 30px;
  width: 120px;
  background-color: var(--color-border);
  border-radius: 4px;
}

/* Capabilities Section */
.capabilities-section {
  background-color: #f7f9fc;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.card-title {
  margin-bottom: var(--space-2);
}

.card-description {
  margin-bottom: var(--space-4);
}

.capability-list li {
  margin-bottom: var(--space-2);
  padding-left: 24px;
  position: relative;
}

.capability-list li::before {
  content: '✓';
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Case Study Section */
.case-study-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.case-study-logo-placeholder {
  height: 40px;
  width: 150px;
  background-color: var(--color-border);
  border-radius: 4px;
  margin-bottom: var(--space-4);
}

.case-study-details h4 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.case-study-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-content: center;
}

.result-card {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-4);
  border-radius: var(--border-radius-md);
  text-align: center;
}

.result-value {
  font-size: 2.5rem;
  display: block;
  font-weight: 700;
}

.result-label {
  font-size: 1rem;
  display: block;
  opacity: 0.9;
}

/* Tech Stack Section */
.tech-stack-section {
  background-color: #f7f9fc;
}

.tech-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.tech-logo-placeholder {
  background: var(--color-background);
  box-shadow: var(--neumorphic-shadow-convex);
  border-radius: var(--border-radius-md);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* ROI Section */
.roi-content-wrapper {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.roi-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
  text-align: left;
}

.roi-results {
  margin-top: var(--space-5);
}

/* Final CTA Section */
.final-cta-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-section) 0;
  text-align: center;
}

.final-cta-section h2 {
  color: var(--color-white);
}

.final-cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-5);
}

.final-cta-section .btn-primary {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* Live Chat Mockup */
.live-chat-mockup-neumorphic {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 200px;
  height: 50px;
  background: var(--color-background);
  box-shadow: var(--neumorphic-shadow-convex);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
}

/* #endregion */

/* ----------------------------- */
/* #region Other Pages */
/* ----------------------------- */
.page-header {
  text-align: center;
  padding: var(--space-6) 0;
}

.page-header h1 {
  margin-bottom: var(--space-2);
}

.contact-page-section {
  padding-bottom: var(--space-section);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.contact-form-wrapper h3 {
  text-align: center;
  margin-bottom: var(--space-5);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.contact-info-wrapper h3 {
  margin-bottom: var(--space-4);
}

.contact-info-card {
  background-color: var(--color-background);
  box-shadow: var(--neumorphic-shadow-convex);
  border-radius: var(--border-radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.contact-info-card address,
.contact-info-card a {
  font-style: normal;
  color: var(--color-text-secondary);
}

.legal-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content-wrapper h2 {
  margin-top: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-2);
}

/* #endregion */

/* ----------------------------- */
/* #region Media Queries */
/* ----------------------------- */
@media (min-width: 576px) {
  .roi-form {
    grid-template-columns: 1fr 1fr;
  }

  .tech-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-kpi-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    background: none;
    box-shadow: none;
    width: auto;
  }

  .nav-menu li {
    margin-left: var(--space-2);
  }

  .nav-menu li a {
    padding: var(--space-2) var(--space-3);
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    text-align: left;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-study-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-study-results {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 2fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-logo-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* #endregion */
/* ----------------------------- */
/* #region Footer */
/* ----------------------------- */

/* Main Footer Container */
/* Sets the overall background, color, and spacing for the footer.
   A subtle top border provides clean separation from the main content. */
.site-footer {
  background-color: var(--color-background);
  color: var(--color-text-secondary);
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
  border-top: 1px solid var(--shadow-dark);
  font-size: 0.95rem;
}

/* Footer Grid Layout */
/* Defines the main column structure for the footer content.
   It starts as a single column on mobile and expands on larger screens. */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* Individual Footer Columns */
/* Basic styling for each column in the grid. */
.footer-column {
  /* No specific styles needed here, defaults are fine */
}

/* Special styling for the 'about' column */
.footer-column.about p {
  max-width: 320px;
  line-height: 1.7;
}

/* Footer Logo */
/* Controls the size and spacing of the logo image in the footer. */
.footer-logo {
  height: 90px;
  width: auto;
  margin-bottom: var(--space-4);
}

/* Footer Headings (h4) */
/* Styles for the titles of each footer column (e.g., "Navigation").
   Makes them stand out from the link text. */
.footer-column h4 {
  color: var(--color-text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* Footer Link Lists */
/* Resets default list styling for clean navigation links. */
.footer-column ul {
  list-style-type: none;
  padding-left: 0;
}

.footer-column ul li {
  margin-bottom: var(--space-3);
}

/* Footer Links (a) */
/* Styling for individual links, including a clear hover state. */
.footer-column ul a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer-column ul a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Footer Address Block */
/* Styles the contact information block, ensuring proper line height and link colors. */
.footer-column address {
  font-style: normal;
  line-height: 1.8;
}

.footer-column address a {
  color: var(--color-text-secondary);
}

.footer-column address a:hover {
  color: var(--color-primary);
}

/* Footer Bottom Section */
/* Styles the final copyright line, separating it with a top border. */
.footer-bottom {
  border-top: 1px solid var(--shadow-dark);
  padding-top: var(--space-5);
  text-align: center;
}

.footer-bottom p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* #endregion */


/* ----------------------------- */
/* #region Footer Media Queries */
/* ----------------------------- */

/* Tablet and larger */
@media (min-width: 768px) {
  .footer-grid {
    /* Switches to a 2x2 grid on tablets */
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .footer-grid {
    /* Expands to the full 4-column layout on desktops */
    /* The 'about' column is given more space (2fr) */
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-5);
  }
}

/* #endregion */