/*
Theme Name: Echobend
Description: Custom theme for Echobend website
Version: 1.0
Author: Your Name
*/

/* Color Palette Variables */
:root {
  /* Primary Colors */
  --color-primary: #0073aa;
  --color-primary-light: #005a87;
  --color-primary-dark: #004d73;

  /* Accent Colors */
  --color-accent: #ffbc41;

  /* Neutral Colors */
  --color-text: #333;
  --color-text-light: #666;
  --color-text-lighter: #888;
  --color-text-lightest: #aaa;
  --color-text-white: #ffffff;

  /* Background Colors */
  --color-bg-white: #ffffff;
  --color-bg-light: #f5f5f5;
  --color-bg-lighter: #f8f8f8;
  --color-bg-dark: #25292a;
  --color-bg-black: #000000;

  /* Interactive States */
  --color-hover: #00ffff;
  --color-focus: #0073aa;
  --color-border: #ddd;
  --color-border-light: #e0e0e0;
  --color-border-dark: #333;

  /* Status Colors */
  --color-success: #d4edda;
  --color-success-text: #155724;
  --color-success-border: #c3e6cb;
  --color-error: #f8d7da;
  --color-error-text: #721c24;
  --color-error-border: #f5c6cb;

  /* Opacity/Alpha Colors */
  --color-overlay-light: rgba(0, 0, 0, 0.1);
  --color-overlay-medium: rgba(0, 0, 0, 0.5);
  --color-overlay-dark: rgba(0, 0, 0, 0.9);
  --color-overlay-darker: rgba(0, 0, 0, 0.95);
  --color-white-alpha: rgba(255, 255, 255, 0.8);
  --color-white-alpha-light: rgba(255, 255, 255, 0.7);
}

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

body {
  font-family: "neue-haas-unica", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
}

/* Header Styles */
.site-header {
  background: var(--color-bg-white);
  box-shadow: 0 2px 10px var(--color-overlay-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

/* Logo Styles */
.site-branding {
  flex-shrink: 0;
}

.custom-logo {
  max-height: 35px;
  width: auto;
  transition: filter 0.3s ease;
}

.site-branding a:hover .custom-logo {
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(2000%) hue-rotate(147deg);
}

.site-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.site-title a {
  text-decoration: none;
  color: #333;
}

/* Navigation Styles */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  text-transform: none;
}

.nav-menu a:hover {
  color: var(--color-hover);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 15px;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

/* Main Content Container */
.site-main {
  min-height: calc(100vh - 70px);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }

  .custom-logo {
    max-height: 35px;
  }

  .container {
    padding: 1.5rem 15px;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  /* Full-screen mobile menu */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu li {
    border-bottom: none;
    text-align: center;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 1.5rem 2rem;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .nav-menu a:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
  }

  .main-navigation {
    position: relative;
  }

  /* Hamburger animation */
  .menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Home header specific mobile menu */
  .home-header .nav-menu {
    background: rgba(0, 0, 0, 0.98);
  }

  .home-header .nav-menu a {
    color: white;
    text-shadow: none;
  }
}

/* Black logo for specific pages */
.black-logo .custom-logo {
  filter: brightness(0) !important;
}

/* Modular Header Classes */
/* Color modifiers */
.header-white-text .nav-menu a,
.header-white-text .site-title a {
  color: white;
}

.header-white-text .nav-menu a:hover {
  color: var(--color-hover);
}

.header-white-text .hamburger {
  background: white;
}

.header-white-logo .custom-logo {
  filter: brightness(0) invert(1); /* Makes logo white */
}

.header-black-logo .custom-logo {
  filter: brightness(0); /* Makes logo black */
}

/* Background modifiers */
.header-transparent {
  background: transparent !important;
  box-shadow: none !important;
}

.header-dark {
  background: rgba(0, 0, 0, 0.9) !important;
}

.header-dark-gray {
  background: #25292a !important;
}

/* Position modifiers */
.header-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.header-margin {
  margin-bottom: 70px; /* Matches header height */
}

/* Home Page Header - Transparent Overlay */
.home-header {
  background: transparent !important;
  box-shadow: none !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Add background when scrolled */
.home-header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 10px var(--color-overlay-light) !important;
  backdrop-filter: blur(10px);
}

/* Change text to black when scrolled on homepage */
.home-header.scrolled .nav-menu a {
  color: #333 !important;
}

.home-header.scrolled .site-title a {
  color: #333 !important;
}

.home-header.scrolled .hamburger {
  background: #333 !important;
}

.home-header.scrolled .custom-logo {
  filter: brightness(0) contrast(1) !important; /* Makes logo solid black when scrolled */
}

.home-header .header-container {
  background: transparent;
}

.home-header .custom-logo {
  filter: brightness(0) invert(1); /* Makes logo white */
  transition: filter 0.3s ease;
  opacity: 1;
}

.home-header .site-branding a:hover .custom-logo {
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(2000%)
    hue-rotate(147deg);
}

.home-header .site-title a {
  color: white;
}

.home-header .nav-menu a {
  color: white;
  font-weight: 600;
}

.home-header .nav-menu a:hover {
  color: var(--color-hover);
}

.home-header .hamburger {
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Homepage main content adjustments */
.home .site-main {
  min-height: 100vh;
  margin-top: 0;
}

.home .homepage-content {
  margin-top: 0;
  padding-top: 0;
}

/* Ensure content doesn't get hidden under fixed header on home page */
.home .video-carousel-wrapper:first-child,
.home .site-main > *:first-child {
  margin-top: 0; /* Video carousel should be flush with top */
}

/* Mobile overlay for home header */
@media (max-width: 768px) {
  .home-header .nav-menu {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .home-header .nav-menu a {
    color: white;
    text-shadow: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 10px;
  }
}


/* Noise Texture Background - Light Backgrounds */
.grain-texture::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: multiply;
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

/* Work Page Styles */
.page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.page-content {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  max-width: 1400px;
  margin: 0 auto;
}

/* Work Archive Page Background */
.highlights-archive-page {
  color: #fff;
}

.highlights-archive-page .site-main .container {
  background-color: #25292a;
  max-width: none;
  padding: 2rem 40px;
}

/* Highlights page container full width */
.highlights-page .site-main .container {
  max-width: none;
  padding: 2rem 40px;
}

/* Highlights Grid Layout */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: none;
}

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

/* Portfolio grid column variations with max width */
.portfolio-columns-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: none;
}

.portfolio-columns-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-columns-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .portfolio-columns-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .portfolio-columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-columns-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-columns-4,
  .portfolio-columns-3,
  .portfolio-columns-2 {
    grid-template-columns: 1fr;
  }
}

/* Highlights Card Styles */
.highlights-card {
  position: relative;
  background: transparent;
}

/* Desktop hover border effect */
.highlights-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 0 solid rgba(122, 122, 122, 0.56);
  transition: border-width 600ms ease;
  pointer-events: none;
  z-index: 5;
}

.highlights-card:hover::before {
  border-width: 12px;
}

/* Mobile type element - hidden by default, shown on mobile */
.highlights-type-mobile {
  display: none;
}

.highlights-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.highlights-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: transparent;
}

.highlights-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.highlights-card:hover .highlights-card-image img {
  transform: scale(1.06);
}

.highlights-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Default Text Below Image */
.highlights-card-default-text {
  display: none;
}

.highlights-card:hover .highlights-card-default-text {
  opacity: 0;
  transform: translateY(10px);
}

.highlights-client-name-default {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: #333;
}

.highlights-title-default {
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
  color: #666;
}

/* Highlights page text colors for dark background */
.highlights-page .highlights-client-name-default,
.highlights-archive-page .highlights-client-name-default {
  color: #fff;
}

.highlights-archive-page .highlights-title-default {
  color: #ccc;
}

.highlights-archive-page .page-header h1 {
  color: #fff;
}

.highlights-page .highlights-title-default {
  color: #ccc;
}

.highlights-page .page-title {
  color: #fff;
}

.highlights-page .page-content {
  color: #ccc;
}

.highlights-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.8) 40%,
    rgba(0, 0, 0, 0.4) 80%,
    transparent 100%
  );
  padding: 1rem;
  margin: 0.8rem;
  color: white;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.35s ease-out;
  display: flex;
  align-items: flex-end;
}

.highlights-card:hover .highlights-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.highlights-card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  width: 100%;
  gap: 0.5rem 1rem;
}

.highlights-card-left {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Hide subtitle in left column on desktop - only show on mobile */
.highlights-card-left .highlights-subtitle {
  display: none;
}

.highlights-card-right {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.highlights-client-name {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.3rem 0;
  line-height: 1;
  color: white;
  text-transform: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  font-family: "neue-haas-unica", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.highlights-title {
  font-size: 0.8rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.highlights-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  margin: 0 0 0.3rem 0;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  text-transform: none;
}

.highlights-type {
  font-size: 0.8rem;
  font-weight: 400;
  margin: 0 0 0.3rem 0;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  text-transform: none;
}

/* No Highlights Found State */
.no-highlights-found {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.no-highlights-found p {
  font-size: 1.1rem;
  margin: 0;
}

/* News Page Styles */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
}

.news-item {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.news-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.news-item:hover .news-item-title {
  color: #0073aa;
}

.news-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2.5rem 0;
}

.news-item-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
}

.news-item-thumbnail {
  flex: 0 0 200px;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.news-item-thumbnail img,
.news-item-thumbnail .news-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.news-item-placeholder .placeholder-text {
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-item-title {
  font-size: 2.75rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  color: #1a1a1a;
  transition: color 0.3s ease;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.news-item-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.news-item-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
  color: #666;
  margin-top: 0.5rem;
}

/* No News Found State */
.no-news-found {
  text-align: center;
  padding: 6rem 2rem;
  color: #999;
}

.no-news-found p {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 400;
}

/* Responsive Design for News */
@media (max-width: 768px) {
  .news-item-link {
    padding: 2rem 0;
  }

  .news-item-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .news-item-thumbnail {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 4px;
  }

  .news-item-thumbnail img,
  .news-item-thumbnail .news-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .news-item-details {
    gap: 0.75rem;
  }

  .news-item-title {
    font-size: 1.5rem;
  }

  .news-item-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .news-item-link {
    padding: 1.5rem 0;
  }

  .news-item-content {
    gap: 1.25rem;
  }

  .news-item-thumbnail {
    height: auto;
    aspect-ratio: 1;
  }

  .news-item-title {
    font-size: 1.3rem;
  }

  .news-item-subtitle {
    font-size: 0.95rem;
  }
}

/* Footer Styles */
.site-footer {
  background: #f5f5f5;
  padding: 1rem;
  /* margin-top: 4rem; */
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #434242;
}

.footer-left,
.footer-right {
  flex: 1;
}

.footer-left {
  text-align: left;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 2rem;
}

.footer-social a {
  color: #888;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #333;
}

/* Newsletter */
.footer-newsletter-label {
  color: #333;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.newsletter-section {
  text-align: right;
}

.newsletter-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.newsletter-header {
  color: #333;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}

.footer-newsletter-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.footer-newsletter-form .form-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-newsletter-form input[type="email"],
.footer-newsletter-form input[type="text"] {
  background: #afafaf;
  border: 1px solid #888;
  color: white;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  width: 200px;
  outline: none;
  transition: border-color 0.3s ease;
}

.footer-newsletter-form input[type="email"]:focus,
.footer-newsletter-form input[type="text"]:focus {
  border-color: #ccc;
}

.footer-newsletter-form input[type="email"]::placeholder,
.footer-newsletter-form input[type="text"]::placeholder {
  color: white;
  opacity: 1;
}

.footer-newsletter-form button {
  /* background: #666; */
  border: none;
  color: rgb(0, 0, 0);
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  height: auto;
}

.footer-newsletter-form button:hover {
  background: #555;
}

.footer-newsletter-form button svg {
  width: 22px;
  height: 22px;
}

.success-message {
  color: #333;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  padding: 1rem 1.25rem;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.footer-copyright,
.footer-credit {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

/* Work page footer adjustments */
.highlights-page .site-footer {
  background: #1a1a1a;
  color: #ccc;
}

.highlights-page .footer-content {
  border-bottom-color: #333;
}

.highlights-page .footer-social a,
.highlights-page .footer-newsletter-label {
  color: #ccc;
}

.highlights-page .footer-social a:hover {
  color: white;
}

.highlights-page .footer-copyright,
.highlights-page .footer-credit {
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1.3rem;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .newsletter-section {
    text-align: center;
  }

  .newsletter-container {
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
  }

  .footer-newsletter-form {
    justify-content: center;
  }

  .footer-newsletter-form input[type="email"],
  .footer-newsletter-form input[type="text"] {
    width: 250px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Responsive Design for Work Grid */
@media (max-width: 1024px) {
  .highlights-grid {
    gap: 1.5rem;
  }

  .page-title {
    font-size: 2.2rem;
  }
}

/* Tablet: Keep desktop styling but adjust grid for smaller screens */
@media (max-width: 768px) and (min-width: 701px) {
  .highlights-grid,
  .portfolio-grid,
  .portfolio-columns-2,
  .portfolio-columns-3,
  .portfolio-columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header {
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }
}

/* Medium screens: Single column with mobile overlay styling */
@media (max-width: 700px) and (min-width: 481px) {
  .highlights-grid,
  .portfolio-grid,
  .portfolio-columns-2,
  .portfolio-columns-3,
  .portfolio-columns-4 {
    grid-template-columns: 1fr;
  }

  .page-header {
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  /* Disable hover border on medium screens */
  .highlights-card::before {
    display: none;
  }

  /* Make cards more square on medium screens */
  .highlights-card-image {
    aspect-ratio: 6 / 5;
  }

  /* Show mobile overlay always visible */
  .highlights-card-overlay {
    opacity: 1;
    transform: translateY(0);
    transition: none;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.6) 60%,
      transparent 100%
    );
    margin: 0;
  }

  .highlights-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    gap: 0.25rem;
  }

  .highlights-card-left {
    display: contents;
  }

  .highlights-card-right {
    display: contents;
    order: -1;
  }

  /* Hide top right type element */
  .highlights-type-mobile {
    display: none;
  }

  /* Show type from right column but in flow */
  .highlights-card-right .highlights-type {
    display: block;
    font-size: 0.7rem;
    margin: 0;
    text-transform: none;
    font-weight: 400;
    opacity: 0.9;
    order: 1;
  }

  /* Hide duplicate subtitle from right column */
  .highlights-card-right .highlights-subtitle {
    display: none;
  }

  .highlights-card-left .highlights-subtitle {
    display: block;
    order: 2;
    font-size: 0.8rem;
    margin: 0;
  }

  .highlights-card-left .highlights-client-name {
    order: 3;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
  }

  .highlights-card-left .highlights-title {
    order: 4;
    font-size: 0.9rem;
    margin: 0;
  }
}

/* Small mobile screens: Single column with mobile styling */
@media (max-width: 480px) and (min-width: 361px) {
  .highlights-grid,
  .portfolio-grid,
  .portfolio-columns-2,
  .portfolio-columns-3,
  .portfolio-columns-4 {
    grid-template-columns: 1fr;
  }

  .page-header {
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .highlights-card-default-text {
    padding: 0;
    margin-top: 0.5rem;
  }

  .highlights-client-name-default {
    font-size: 0.95rem;
  }

  .highlights-title-default {
    font-size: 0.85rem;
  }

  .highlights-card-overlay {
    padding: 0.75rem 1.25rem;
    height: 50%;
    margin: 0;
  }

  .highlights-client-name {
    font-size: 1rem;
  }

  .highlights-title {
    font-size: 0.85rem;
  }

  .highlights-subtitle {
    font-size: 0.8rem;
  }

  .highlights-type {
    font-size: 0.7rem;
  }
}

/* Mobile highlights card adjustments */
@media (max-width: 480px) {
  .highlights-card {
    position: relative;
  }

  /* Disable hover border on mobile */
  .highlights-card::before {
    display: none;
  }

  /* Make cards more square on mobile */
  .highlights-card-image {
    aspect-ratio: 6 / 5; /* Square aspect ratio for mobile */
  }

  /* Show mobile type element in top right of card */
  .highlights-type-mobile {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    font-size: .8rem;
    margin: 0;
    /* background: rgba(0, 0, 0, 0.7); */
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
    color: white;
    text-shadow: none;
    text-transform: none;
    font-weight: 400;
    line-height: 1.2;
  }

  .highlights-card-overlay {
    opacity: 1;
    transform: translateY(0);
    transition: none;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.6) 60%,
      transparent 100%
    );
    margin: 0;
  }

  .highlights-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    gap: 0.25rem;
  }

  .highlights-card-left {
    display: contents;
  }

  .highlights-card-right {
    display: contents;
    order: -1;
  }

  /* Hide top right type element */
  .highlights-type-mobile {
    display: none;
  }

  /* Show type from right column but in flow */
  .highlights-card-right .highlights-type {
    display: block;
    font-size: 0.7rem;
    margin: 0;
    text-transform: none;
    font-weight: 400;
    opacity: 0.9;
    order: 1;
  }

  /* Hide duplicate subtitle from right column */
  .highlights-card-right .highlights-subtitle {
    display: none;
  }

  .highlights-card-left .highlights-subtitle {
    display: block; /* Show subtitle in left column on mobile */
    order: 2;
    font-size: 0.7rem;
    margin: 0;
  }

  .highlights-card-left .highlights-client-name {
    order: 3;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
  }

  .highlights-card-left .highlights-title {
    order: 4;
    font-size: 0.9rem;
    margin: 0;
  }

  .footer-social a {
    font-size: 1rem;
  }
}

/* Very small screens: Single column */
@media (max-width: 360px) {
  .highlights-grid,
  .portfolio-grid,
  .portfolio-columns-2,
  .portfolio-columns-3,
  .portfolio-columns-4 {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-content {
    font-size: 1rem;
  }

  .highlights-card-default-text {
    padding: 0;
    margin-top: 0.5rem;
  }

  .highlights-client-name-default {
    font-size: 0.9rem;
  }

  .highlights-title-default {
    font-size: 0.8rem;
  }

  .highlights-card-overlay {
    padding: 0.75rem 1rem;
    height: 50%;
    margin: 0;
  }

  .highlights-client-name {
    font-size: 0.95rem;
  }

  .highlights-title {
    font-size: 0.8rem;
  }

  .highlights-subtitle {
    font-size: 0.75rem;
  }

  .highlights-type {
    font-size: 0.65rem;
  }

  /* Hide top right type element */
  .highlights-type-mobile {
    display: none;
  }

  /* Mobile overlay layout */
  .highlights-card-overlay {
    opacity: 1;
    transform: translateY(0);
    transition: none;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.6) 60%,
      transparent 100%
    );
  }

  .highlights-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    gap: 0.25rem;
  }

  .highlights-card-left {
    display: contents;
  }

  .highlights-card-right {
    display: contents;
    order: -1;
  }

  /* Show type from right column but in flow */
  .highlights-card-right .highlights-type {
    display: block;
    font-size: 0.65rem;
    margin: 0;
    text-transform: none;
    font-weight: 400;
    opacity: 0.9;
    order: 1;
  }

  /* Hide duplicate subtitle from right column */
  .highlights-card-right .highlights-subtitle {
    display: none;
  }

  .highlights-card-left .highlights-subtitle {
    display: block;
    order: 2;
    font-size: 0.75rem;
    margin: 0;
  }

  .highlights-card-left .highlights-client-name {
    order: 3;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
  }

  .highlights-card-left .highlights-title {
    order: 4;
    font-size: 0.8rem;
    margin: 0;
  }
}

/* News Pagination */
.pagination {
  margin: 3rem 0;
  text-align: center;
}

.page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: #333;
  color: white;
  border-color: #333;
}

.page-numbers.dots {
  border: none;
  padding: 0.5rem 0.5rem;
}

/* Default News Thumbnail Styling */
.news-thumbnail-default {
  opacity: 0.8;
  filter: grayscale(20%);
}

.news-item:hover .news-thumbnail-default {
  opacity: 1;
  filter: grayscale(0%);
}

/* 404 Page Styles */
.error-404-content {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
  padding: 2rem;
}

.error-404-title {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #333;
  line-height: 1;
}

.error-404-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem 0;
  color: #666;
}

.error-404-description {
  font-size: 1.1rem;
  color: #777;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

.error-404-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 0 0 3rem 0;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #333;
}

.button-primary {
  background: #333;
  color: white;
}

.button-primary:hover {
  background: #555;
  border-color: #555;
}

.button-secondary {
  background: transparent;
  color: #333;
}

.button-secondary:hover {
  background: #333;
  color: white;
}

.error-404-suggestions {
  border-top: 1px solid #eee;
  padding-top: 2rem;
  margin-top: 2rem;
}

.error-404-suggestions h3 {
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  color: #333;
}

.error-404-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-404-suggestions li {
  margin: 0.5rem 0;
}

.error-404-suggestions a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.error-404-suggestions a:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .error-404-content {
    margin: 2rem auto;
    padding: 1rem;
  }

  .error-404-actions {
    flex-direction: column;
    align-items: center;
  }

  .button-primary,
  .button-secondary {
    width: 200px;
    text-align: center;
  }
}

/* Transparent Header Styles */
.site-header.transparent {
  background: transparent !important;
  box-shadow: none !important;
}

/* Scrolled Header Styles */
.site-header.scrolled {
  background: var(--color-bg-white) !important;
  box-shadow: 0 2px 10px var(--color-overlay-light) !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure transparent-scroll-header starts transparent */
.transparent-scroll-header {
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
