/*
 Theme Name: LA Design (Child of GeneratePress)
 Template: generatepress
 Description: Child theme for client site.
 Author: Left Align
*/

/* Import parent theme styles */
@import url("../generatepress/style.css");

/* Hide site title on mobile */

@media (max-width: 768px) {
	.site-branding {
		display: none;
	}
}


/* =====================================================
   GLOBAL
   ===================================================== */

:root {
	--fluentform-primary: var(--brand-primary);
}

.main-title {
	font-size: 20px;
}

/* Remove GP content padding on the homepage */
.page-id-XX .inside-article {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* =====================================================
   LA BUTTONS
   ===================================================== */

.la-button {
  --btn-bg: white;
  --btn-bg-hover: black;
  --btn-text: black;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.4rem;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  align-self: center;
}

/* Button text sits above animated background */
.la-button__text {
  position: relative;
  z-index: 2;
  color: var(--btn-text);
}

/* Animated background layer */
.la-button__bg {
  position: absolute;
  inset: 0;
  background: var(--btn-bg);
  z-index: 1;
  transform: translate(var(--x, 0), var(--y, 0)) scale(1.2);
  transition: background 0.2s ease;
  will-change: transform, background;
}

.la-button__text {
	transition: background 0.3s ease;
}

/* Hover: background colour shifts */
.la-button:hover .la-button__bg {
  background: var(--btn-bg-hover);
}



.la-button:hover .la-button__text {
  color: white;
}

/* Homepage section backgrounds */

.la-wwd     { background: #fff; }
.la-who     { background: var(--brand-primary-light); }
.la-sectors { background: #fff; }
.la-case-carousel { background: var(--brand-primary-light); }
.la-case-bg     { background: var(--brand-primary-light); }
.la-cta { background: var(--brand-primary); }


/* =====================================================
   HERO SECTION
   ===================================================== */

.la-hero {
  position: relative;
  height: 92vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--brand-text-light);
  padding: 0 1.5rem;
}

/* Background video */
.la-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.la-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(10, 22, 45, 0.88),
    rgba(8, 28, 62, 0.78)
  );
  z-index: 1;
}

/* Content wrapper */
.la-hero__content {
  max-width: 700px;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* Headline block */
.la-hero__main {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Text slide-up animation 
.la-slide-in {
  opacity: 0;
  transform: translateY(50px);
  animation: la-slide-up 0.6s ease-out forwards;
}
.la-delay-2 { animation-delay: 0.15s; }
.la-delay-3 { animation-delay: 0.3s; }

@keyframes la-slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}*/

/* Base state for all hero lines */
.la-hero__main span {
    opacity: 0;
    transform: translateX(-40px);
    display: block; /* ensures each line animates separately */
}

/* Staggered animation */
.la-slide-in {
    animation: la-slide-left 0.8s ease-out forwards;
}

.la-delay-2 {
    animation-delay: 0.2s;
}

.la-delay-3 {
    animation-delay: 0.4s;
}

/* Keyframes: fade + slide from left */
@keyframes la-slide-left {
    0% {
        opacity: 0;
        transform: translateX(-500px);
    }
    60% {
        opacity: 1;
        transform: translateX(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



/* Subheading */
.la-hero__subheading {
  max-width: 500px;
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
	.la-hero__subheading {
		max-width: 95%:
		font-size: 
	}
}




/* =====================================================
   "WHAT WE DO" SECTION
   ===================================================== */

.la-section {
  padding: 4.5rem 1.5rem;
  text-align: center;
	
}

.la-section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.la-wwd-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.la-wwd-card {
  padding: 2rem 1.6rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-top: 4px solid var(--brand-primary);
}

.la-wwd-card h3 {
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.la-wwd-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}


/* =====================================================
   WHO WE ARE
   ===================================================== */

.la-who-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  max-width: 700px;
  gap: 2.5rem;
  align-items: center;
}

.la-who-text p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.55;
	text-align: left;
	
}

.la-who-button {
  display: inline-block;
  background: var(--brand-primary);
  color: var(--brand-text-light);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
}

.la-who-image img {
  width: 100%;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .la-who-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/* ===========================
   CASE STUDIES v3
   =========================== */

.la-case {
    max-width: 1100px;
    margin: 0 auto;
    padding-block: 4rem 5rem;
}

.la-case-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.la-case-tab {
    background: none;
    border: none;
    opacity: .6;
    font-weight: 600;
    cursor: pointer;
}

.la-case-tab.active {
    opacity: 1;
}

.la-case-underline {
    position: absolute;
    bottom: -6px;
    height: 3px;
    background: var(--brand-primary);
    width: 0;
    transition: all .25s ease;
}

/* Slider structure */
.la-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
	border-radius: 3px;
}

.la-slides {
    display: flex;
    transition: transform .6s ease;
}

.la-slide {
    min-width: 100%;
    height: 500px;
    background: var(--bg) center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
	cursor: grab;
}

.la-slide-content {
    background: #fff;
    padding: 2.5rem;
    max-width: 520px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Arrows */
.la-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    border: none;
    color: white;
    padding: .5rem .75rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 6px;
}

.la-prev { left: 10px; }
.la-next { right: 10px; }



@media (max-width: 768px) {

    /* Make slider shorter */
    .la-slide {
        height: auto;
        min-height: 420px;
        padding: 1.5rem;
        background-position: center;
    }

    /* Slide container becomes column-like */
    .la-slides {
        transition: transform .45s ease;
    }

    /* Content sits full-width & centred */
    .la-slide-content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto;
        padding: 1.8rem;
        border-radius: 8px;
    }

    .la-slide-content h3 {
        font-size: 1.25rem;
        margin-bottom: .6rem;
    }

    .la-slide-content p {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    /* Tabs row becomes scrollable */
    .la-case-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;           /* hide scrollbar */
        -ms-overflow-style: none;        /* hide scrollbar */
        padding-bottom: .4rem;
        gap: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .la-case-tabs::-webkit-scrollbar {
        display: none; /* hide scrollbar on WebKit */
    }

    .la-case-tab {
        white-space: nowrap;
        font-size: 0.85rem;
        padding-bottom: .2rem;
    }

    .la-case-underline {
        height: 2px;
    }
	
	.la-section-title {
		padding-left: 1.5rem;
	}

    /* Hide arrows completely on mobile */
    .la-arrow {
        display: none;
    }
    */

}

/* ===========================
   BADGES (Image Logos Only)
   =========================== */

.la-badges {
  padding: 6rem 1.5rem;
  background: var(--sha-primary-light);
}

.la-badges__inner {

  max-width: 1100px;
  margin: 0 auto;
  display: flex;
	flex-direction: column;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: center;
  align-items: center;
}

.la-badges__row {
	 max-width: 1100px;
  margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: center;
  align-items: center;
}

.la-badge-img {
  width: 300px;             
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.la-badge-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(0);         /* Keep full colour, remove if needed */
  transition: transform 0.25s ease;
}

.la-badge-img:hover img {
  transform: translateY(-4px);  /* subtle hover lift */
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .la-badge-img {
    width: 90vw !important;
  }
}


/* =====================================================
   SECTORS SECTION
   ===================================================== */

.la-sectors-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.la-sector-box {
  background: var(--brand-primary-light);
  padding: 2rem;
  border-radius: 6px;
  text-align: center;
}

.la-sector-box h3 {
  margin-bottom: 0.7rem;
  color: var(--brand-primary);
}


/* =====================================================
   FINAL CTA SECTION
   ===================================================== */

.la-cta {
  background: var(--brand-primary);
  color: var(--brand-text-light);
  text-align: center;
  padding: 4rem 1.5rem;
}

.la-cta h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.la-cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}




/* ===========================
   ABOUT PAGE
   =========================== */

.la-about-hero {
  padding-top: 4rem;
  padding-bottom: 1rem;
  background: var(--brand-primary-light);
}

.la-about-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--brand-primary);
  text-align: center;
}

.la-about-tagline {
  text-align: center;
  opacity: .75;
  margin-top: .5rem;
}

.la-about-grid,
.la-about-whatwedo {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
	text-align: left;
}

.la-about-image img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.la-about-projects {
	display: flex;
	flex-direction: column;
	align-items: center;
	list-style: olive;
	text-align: left
}

@media (max-width: 768px) {
  .la-about-grid {
    grid-template-columns: 1fr;

  }
}

.la-about-whatwedo h2,
.la-about-projects h2 {
  color: var(--brand-primary);
  font-weight: 700;
}

.la-about-whatwedo p {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.la-bullet-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.la-bullet-list li {
  margin-bottom: 0.75rem;
  font-weight: 600;
  position: relative;
  padding-left: 1.2rem;
}

.la-bullet-list li::before {
  content: "•";
  color: var(--brand-primary);
  position: absolute;
  left: 0;
  top: 0;
}

/* ===========================
   CONTACT PAGE
   =========================== */

.la-contact-hero {
  padding-top: 4rem;
  padding-bottom: 1rem; 
  background: var(--brand-primary-light);
}



.la-contact-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  text-align: center;
  color: var(--brand-primary);
  font-weight: 800;
}

.la-contact-sub {
  text-align: center;
  opacity: .75;
}

.la-contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
	text-align: left;
}

.la-contact-details h2,
.la-contact-form h2 {
  color: var(--brand-primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .la-contact-grid {
    grid-template-columns: 1fr;
  
  }
}
