/*
Theme Name: DIGIT+
Description: Modern marketing website theme for DIGIT+ with Gutenberg block support and custom ACF fields
Author: DIGIT+ Team
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: digitplus
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* DIGIT+ Brand Colors */
  --color-primary: #000000;
  --color-email: #19A8D4;
  --color-local: #FDBC00;
  --color-social: #EC5B87;
  
  /* Background & Text */
  --color-background: #ffffff;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-border: #e5e5e5;

	/* colors from lovable */
	--background: 0 0% 100%;
    --foreground: 0 0% 0%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 0%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 0%;
    --primary: 0 0% 0%;
    --primary-foreground: 0 0% 100%;
    --email: 193 82% 39%;
    --email-foreground: 0 0% 100%;
    --email-subtle: 193 82% 95%;
    --local: 48 100% 49%;
    --local-foreground: 0 0% 0%;
    --local-subtle: 48 100% 95%;
    --social: 337 63% 63%;
    --social-foreground: 0 0% 100%;
    --social-subtle: 337 63% 95%;
    --secondary: 0 0% 96%;
    --secondary-foreground: 0 0% 0%;
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 40%;
    --accent: 0 0% 96%;
    --accent-foreground: 0 0% 0%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 0 0% 90%;
    --input: 0 0% 95%;
    --ring: 0 0% 0%;
    --radius: .75rem;
    --gradient-brand: linear-gradient(135deg, hsl(var(--email)), hsl(var(--social)));
    --gradient-email: linear-gradient(135deg, hsl(var(--email)), hsl(193 82% 55%));
    --gradient-local: linear-gradient(135deg, hsl(var(--local)), hsl(48 100% 65%));
    --gradient-social: linear-gradient(135deg, hsl(var(--social)), hsl(337 63% 75%));
    --shadow-brand: 0 4px 20px hsl(var(--primary) / .1);
    --shadow-email: 0 4px 20px hsl(var(--email) / .15);
    --shadow-local: 0 4px 20px hsl(var(--local) / .15);
    --shadow-social: 0 4px 20px hsl(var(--social) / .15);
    --transition-smooth: all .3s 
cubic-bezier(.4, 0, .2, 1);
    --transition-bounce: all .3s 
cubic-bezier(.68, -.55, .265, 1.55);
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
	--tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x: ;
    --tw-pan-y: ;
    --tw-pinch-zoom: ;
    --tw-scroll-snap-strictness: proximity;
	
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Typography */
  --font-family: system-ui, -apple-system, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-email: 0 10px 30px -10px rgba(25, 168, 212, 0.3);
  --shadow-local: 0 10px 30px -10px rgba(253, 188, 0, 0.3);
  --shadow-social: 0 10px 30px -10px rgba(236, 91, 135, 0.3);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
}

/* Typography */
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  letter-spacing: -.025em;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-muted);
}
ul, li {
	color: var(--color-text-muted);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.site-header {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 0; /*var(--spacing-md) 0;*/
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
}

.main-nav a {
  text-decoration: none !important;
  color: var(--color-text) !important;
  font-weight: 500 !important;
  transition: var(--transition-all) !important;
}

.main-nav a:hover {
  color: var(--color-email) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-all);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-email {
  background: var(--color-email);
  color: white;
}

.btn-email:hover {
  background: #1594c4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-email);
}

.btn-local {
  background: var(--color-local);
  color: black;
}

.btn-local:hover {
  background: #e6a900;
  transform: translateY(-2px);
  box-shadow: var(--shadow-local);
}

.btn-social {
  background: var(--color-social);
  color: white;
}

.btn-social:hover {
  background: #d94d7a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-social);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

/* Sections */
.section {
  padding: var(--spacing-3xl) 0;
}

.section-hero {
  /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
  text-align: center;
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
	color: #000;
  /*background: linear-gradient(135deg, var(--color-email), var(--color-social)); */
  /*-webkit-background-clip: text;*/
  /*-webkit-text-fill-color: transparent;*/
  /*background-clip: text;*/
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Service Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-all);
  border-left: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card.email {
  border-left-color: var(--color-email);
}

.service-card.local {
  border-left-color: var(--color-local);
}

.service-card.social {
  border-left-color: var(--color-social);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-2xl);
  color: white;
  margin: 0 auto 1rem;
}

.service-icon.email { background: var(--color-email); }
.service-icon.local { background: var(--color-local); color: black; }
.service-icon.social { background: var(--color-social); }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: #f8f9fa;
  border-radius: var(--radius-lg);
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--spacing-xs);
}

/* Client Logos */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-lg);
  align-items: center;
  margin: var(--spacing-xl) 0;
}

.client-logo {
  text-align: center;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-all);
}

.client-logo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.client-logo img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--transition-all);
}

.client-logo:hover img {
  opacity: 1;
}

/* Testimonials */
.testimonial {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-lg);
}

.testimonial-quote {
  font-size: var(--font-size-lg);
  font-style: italic;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-role {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.tracking-tight {
    letter-spacing: -.025em;
}

.text-email {
	color: var(--color-email);
}
.bg-email {
	background-color: hsl(var(--email));
}
.bg-email\/10
 {
    background-color: hsl(var(--email) / 0.1);
}
.bg-email\/20 {
    background-color: hsl(var(--email) / .2);
}
.text-social {
	color: var(--color-social);
}
.bg-social {
	background-color: hsl(var(--social));
}
.bg-social\/10
 {
    background-color: hsl(var(--social) / 0.1);
}
.bg-social\/20
 {
    background-color: hsl(var(--social) / 0.2);
}

.text-local {
	color: var(--color-local);
}
.fill-local {
    fill: hsl(var(--local));
}
.bg-local {
	background-color: hsl(var(--local));
}
.bg-local\/10
 {
    background-color: hsl(var(--local) / 0.1);
}
.bg-local\/20 {
    background-color: hsl(var(--local) / .2);
}

.rounded-full {
    border-radius: 9999px;
}
.items-center {
    align-items: center;
}
.inline-flex {
    display: inline-flex;
}

.font-semibold {
    font-weight: 600;
}
.text-sm {
    font-size: .875rem;
    line-height: 1.25rem;
}
.py-2 {
    padding-top: .5rem;
    padding-bottom: .5rem;
}
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}
.text-destructive {
    color: hsl(var(--destructive));
}
.font-bold {
    font-weight: 700;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.wp-block-latest-posts__post-title {
	font-size: 1.5rem;
	line-height: 1.5rem;
}

.wp-block-latest-posts.wp-block-latest-posts__list li {
    min-height: calc(2rem + 150px);
    margin-bottom: 2rem;
	box-shadow: var(--shadow-email);
	border-radius: 1rem;
	padding: 1rem 2rem;
}

.nav-links {
	display: flex;
    flex-flow: row;
    justify-content: space-between;
}

.nav-links a {
	text-decoration: none;
}

.nav-next {
	margin-left: auto;
}

.nav-previous :before {
	content: "<<";
	margin-right: .5rem;
	letter-spacing: -4px;
}

.nav-next :after {
	content: ">>";
	margin-left: .5rem;
	letter-spacing: -4px;
}


.gap-8 {
    gap: 2rem;
}
.gap-6 {
    gap: 1.5rem;
}

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

.mb-16 {
    margin-bottom: 4rem;
}
.mb-10 {
    margin-bottom: 2.5rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mr-4 {
    margin-right: 1rem;
}
.mr-2 {
    margin-right: .5rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mt-20 {
    margin-top: 5rem;
}
.mb-2 {
    margin-bottom: .5rem !important;
}

.pt-0 {
	padding-top: 0;
}
.py-1 {
	padding-top:.25rem;
	padding-bottom: .25rem;
}
.p-6 {
    padding: 1.5rem;
}
.p-8 {
    padding: 2rem;
}
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.pt-4 {
    padding-top: 1rem;
}
.pr-4 {
	padding-right: 1rem;
}
.cursor-pointer {
    cursor: pointer;
}

.bg-email-subtle\/10 {
    background-color: hsl(var(--email-subtle) / .1);
}
.bg-social-subtle\/10 {
    background-color: hsl(var(--social-subtle) / .1);
}

.bg-destructive\/5 {
    background-color: hsl(var(--destructive) / .05);
}
.bg-destructive\/20 {
    background-color: hsl(var(--destructive) / .2);
}
.bg-social\/5 {
    background-color: hsl(var(--social) / .05);
}

.border-destructive\/20 {
    border-color: hsl(var(--destructive) / .2);
}
.border-social\/30 {
    border-color: hsl(var(--social) / .3);
}
.bg-social-subtle\/50 {
    background-color: hsl(var(--social-subtle) / .5);
}
.border-social\/20 {
    border-color: hsl(var(--social) / .2);
}
.hover\:border-social\/40:hover {
    border-color: hsl(var(--social) / .4);
}
.bg-email\/5 {
    background-color: hsl(var(--email) / .05);
}
.border-email\/20 {
    border-color: hsl(var(--email) / .2);
}
.border-email\/30 {
    border-color: hsl(var(--email) / .3);
}
.bg-email-subtle\/50 {
    background-color: hsl(var(--email-subtle) / .5);
}
.hover\:border-email\/40:hover {
    border-color: hsl(var(--email) / .4);
}
.bg-local\/5 {
    background-color: hsl(var(--local) / .05);
}
.border-local\/30 {
    border-color: hsl(var(--local) / .3);
}
.bg-local-subtle\/50 {
    background-color: hsl(var(--local-subtle) / .5);
}
.border-local\/20 {
    border-color: hsl(var(--local) / .2);
}
.hover\:border-local\/40:hover
{
    border-color: hsl(var(--local) / .4);
}

.border {
    border-width: 1px;
	border-style: solid;
}
.border-2 {
    border-width: 2px;
	border-style: solid;
}
.border-t {
    border-top-width: 1px;
	border-top-style: solid;
}
.rounded-lg {
    border-radius: var(--radius);
}
.rounded-xl {
    border-radius: .75rem;
}
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}
.text-right {
	text-align: right;
}

.flex {
	display: flex;
}
.flex-shrink-0, .shrink-0 {
    flex-shrink: 0;
}
.flex-1 {
    flex: 1;
}

.card {
	border-style: solid;
}
.w-16 {
    width: 4rem;
}
.h-16 {
    height: 4rem;
}
.w-12 {
    width: 3rem;
}
.h-12 {
    height: 3rem;
}
.w-6 {
    width: 1.5rem;
}
.h-6 {
    height: 1.5rem;
}
.w-2 {
    width: .5rem;
}
.w-32 {
    width: 8rem;
}
.h-2 {
    height: .5rem;
}

.justify-center {
    justify-content: center;
}
.items-center {
    align-items: center;
}
.items-start {
    align-items: flex-start;
}
.shadow-email {
    box-shadow: var(--shadow-email);
}
.text-center {
    text-align: center;
}

.bg-background {
    background-color: hsl(var(--background));
}
.rounded-2xl {
    border-radius: 1rem;
}
.space-x-4>:not([hidden])~:not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.max-w-2xl {
    max-width: 42rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.min-w-\[250px\] {
    min-width: 250px;
}
.h-16 {
    height: 4rem;
}
.inline-flex {
    display: inline-flex;
}

.duration-300 {
    animation-duration: .3s;
}
.duration-300 {
    transition-duration: .3s;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}

.shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.leading-relaxed {
    line-height: 1.625;
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.hover\:scale-105:hover {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:shadow-brand:hover {
    box-shadow: var(--shadow-brand);
}

.font-black {
	color: hsl(var(--foreground));
}
.font-grey {
	color: hsl(var(--muted-foreground));
}
.text-email-foreground {
    color: hsl(var(--email-foreground));
}
.text-social-foreground {
    color: hsl(var(--social-foreground));
}
.text-local-foreground {
    color: hsl(var(--local-foreground));
}

.no-border {
	border: 0 none !important;
}

.wp-block-gutena-forms .gutena-forms-field:not(.checkbox-field):not(.radio-field):not(.optin-field) {
    border-radius: 8px;
}

.gutena-forms-submit-button > button {
	border: 0 none !important;
}

.calendly-popup {
	background-color: #fff;
}
.ml-8 {
    margin-left: 2rem;
}
.list-inside {
    list-style-position: inside;
}
.list-disc {
    list-style-type: disc;
}

footer a:not(.btn):hover {
	color: #fff !important;
	letter-spacing: .25px;
}

.wp-post-image {
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

@media (min-width: 768px) {

	.md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
	
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
	
	.md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
	
   .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .md\:text-8xl
	{
        font-size: 6rem;
        line-height: 1;
    }
	
}

/* Responsive */
@media (max-width: 768px) {

	.text-4xl {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}

	.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}
	
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .client-grid {
    grid-template-columns: 1fr;
  }

	.wp-block-latest-posts__post-title {
		font-size: 1.2rem;
		line-height: 1.25rem;
	}

	.wp-block-latest-posts.wp-block-latest-posts__list li {
		min-height: calc(1rem + 150px);
		margin-bottom: 2rem;
		box-shadow: var(--shadow-email);
		border-radius: 1rem;
		padding: .5rem;
	}
	
	.grid-cols-2 {
		grid-template-columns: 1fr;
	}

}