:root {
  --dark: linear-gradient(90deg,rgba(36, 43, 49, 1) 0%, rgba(42, 47, 54, 1) 74%, rgba(47, 54, 63, 1) 100%);
  --light: #f7f0e8;
  --beige: #e0cdba;
  --page-bg: #fffff0;
  --beige-gradient: linear-gradient(180deg, #e0cdba 0%, #f7f0e8 60%, #e0cdba 100%);
  --footer-bg: #232220;
  --hero-bg: #232220;
  --font-inter: 'Inter', Arial, Helvetica, sans-serif;
  --font-roslindale: 'Roslindale', sans-serif;

}
@import url('https://fonts.cdnfonts.com/css/roslindale');

@font-face {
  font-family: 'Inter';
  src: url('https://ext.same-assets.com/4089395072/623476531.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('https://ext.same-assets.com/4089395072/2081666296.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roslindale';
  src: url('https://ext.same-assets.com/4089395072/1502380293.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6,
header, footer {
  font-family: 'Roslindale', serif !important;
}

p {
  font-family: Arial, sans-serif !important;
}

header, footer {
  font-family: 'Roslindale', serif !important;
}


:root {
    --primary-dark: #1d1c1c;
    --primary-light: #e4cfba;
    --secondary-light: #f5ede4;
    --text-dark: #1d1c1c;
    --text-light: #898075;
    --accent: #a1a09c;
    --accent-red: #813535;
}

body.page-template-template-services {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--page-bg);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

   .services-grid {
    background: var(--page-bg);
}


.services-section {
    background-color: var(--page-bg) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--page-bg);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 25%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 5%;
    animation: float 10s ease-in-out infinite;
}

.hero-products {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-product-img {
    width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    color: var(--text-dark);
    max-width: 800px;
}

.hero-title .line-1,
.hero-title .line-2,
.hero-title .line-3,
.hero-title .line-4 {
    display: block;
    opacity: 0;
    transform: translateY(100px);
}

.highlight {
    background: var(--primary-dark);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 8px;
    font-style: normal;
}

/* Services Carousel */
.services-carousel {
    position: relative;
    background: var(--page-bg);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    min-height: 70vh;
}

.service-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    /*
    These properties are now controlled by GSAP (services.js)
    This prevents conflicts.
    
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    */
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.service-image {
    position: relative;
}

.service-image img {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.service-dot {
    position: absolute;
    top: 2rem;
    left: -1rem;
    width: 12px;
    height: 12px;
    background: var(--primary-dark);
    border-radius: 50%;
}

.service-text {
    padding-left: 2rem;
}

.service-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border: 1px solid var(--text-light);
    border-radius: 50%;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow svg {
    stroke: currentColor;
}


.nav-arrow:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    transform: scale(1.1);
}

.nav-progress {
    flex: 1;
    height: 2px;
    background: rgba(29, 28, 28, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-dark);
    width: 0%;
}

.service-text h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.service-text p {
    font-size: 1.1rem;
    color: black;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.regulation-text p:first-child {
    margin-bottom: 1.5rem;
}

/* Marketing Section */
.marketing-section {
    background: var(--primary-dark);
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.marketing-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.marketing-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.share-project-btn,
.say-hello-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 1 !important;
}

.share-project-btn:hover,
.say-hello-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-dark);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.share-project-btn:hover .btn-icon,
.say-hello-btn:hover .btn-icon {
    transform: rotate(45deg);
}

/* Process Section */
.process-section {
    padding: 8rem 0;
    background: var(--page-bg);
}

.process-header {
    text-align: center;
    margin-bottom: 6rem;
}

.process-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    color: var(--text-dark);
}

.process-steps {
    display: grid;
    gap: 4rem;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(50px);
}

.step-number {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-dark);
    min-width: 60px;
}

.step-content {
    border-bottom: 1px solid rgba(29, 28, 28, 0.1);
    padding-bottom: 3rem;
}

.step-content h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.step-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        padding-top: 80px;
    }
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
        max-width: 100%;
        text-align: center;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .service-image {
        margin: 0 auto;
        max-width: 90%;
    }

    .service-text {
        padding-left: 0;
        text-align: center;
    }
    .service-nav {
        justify-content: center;
    }

    .hero-products {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        text-align: center;
        margin-top: 2rem;
        width: 100%;
    }

    .hero-product-img {
        width: clamp(250px, 70%, 300px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        height: auto;
        padding: 6rem 0 2rem 0;
        margin-top: 60px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }

    /* Key mobile fixes for carousel */
    .services-carousel {
        min-height: auto; /* Remove fixed viewport height */
        padding: 2rem 0; /* Reduce padding on mobile */
        overflow: visible; /* Allow content to be visible */
    }

    .carousel-container {
        min-height: auto; /* Let content determine height */
        position: relative;
    }

    .service-slide {
        position: relative; /* Change from absolute to relative on mobile */
        min-height: auto; /* Remove min-height constraint */
        width: 100%;
        display: block; /* Change to block for better mobile flow */
        padding: 2rem 0; /* Add some padding */
    }

    /* Ensure service content stacks properly on mobile */
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem; /* Reduce gap */
        text-align: center;
        min-height: auto;
    }
    
    .service-image {
        margin: 0 auto;
        max-width: 90%;
    }

    .service-text {
        padding-left: 0;
        text-align: center;
    }
    
    .service-nav {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .service-text h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .service-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .marketing-content h2 {
        font-size: 2rem;
    }
    .marketing-section {
        padding: 4rem 0;
    }

    .process-header h2 {
        font-size: 2rem;
    }
    .process-section {
        padding: 4rem 0;
    }
    .process-header {
        margin-bottom: 3rem;
    }

    .process-step {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    .step-number {
        margin: 0 auto;
    }
    .step-content {
        padding-bottom: 2rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-info {
        grid-template-columns: 1fr 1fr;
    }
}

/* GSAP Animation Helper Classes (if used by services.js) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

@media (pointer: coarse) {
  .service-image img,
  .hero-product-img,
  .shape-1, .shape-2, .shape-3 {
    will-change: transform, opacity;
    filter: none !important;
  }
}