/* ==========================================================================
   PREMIUM ENHANCEMENTS - All Style Tile & Stone
   Professional refinements for a $20k+ luxury website experience
   ========================================================================== */

/* ==========================================================================
   1. RESPONSIVE LOGO SIZING
   ========================================================================== */

.navbar2_logo {
  max-width: 240px;
  height: auto;
  transition: all 0.3s ease;
}

@media screen and (max-width: 991px) {
  .navbar2_logo {
    max-width: 200px;
  }
}

@media screen and (max-width: 767px) {
  .navbar2_logo {
    max-width: 180px;
  }
}

@media screen and (max-width: 479px) {
  .navbar2_logo {
    max-width: 160px;
  }
}

/* ==========================================================================
   2. TEXT ALIGNMENT CORRECTIONS
   ========================================================================== */

/* Remove global center alignment from medium text */
.text-size-medium {
  text-align: left !important;
}

/* Keep center alignment only where intentionally centered */
.text-align-center .text-size-medium,
.cta51_component .text-size-medium,
.portfolio8_component .text-size-medium,
.layout373_component .text-size-medium,
.contact2_component .text-size-medium {
  text-align: center !important;
}

/* ==========================================================================
   3. RESPONSIVE HERO TYPOGRAPHY
   ========================================================================== */

.heading-style-h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

@media screen and (max-width: 991px) {
  .heading-style-h1 {
    font-size: 2.75rem;
  }
}

@media screen and (max-width: 767px) {
  .heading-style-h1 {
    font-size: 2.25rem;
  }
}

@media screen and (max-width: 479px) {
  .heading-style-h1 {
    font-size: 1.875rem;
    letter-spacing: -0.01em;
  }
}

/* ==========================================================================
   4. ENHANCED MOBILE NAVIGATION
   ========================================================================== */

/* Navigation social wrapper */
.navbar2_social-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: 16px;
}

.navbar2_social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.navbar2_social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.05);
}

.navbar2_reviews-link {
  background: none;
  border: none;
  color: currentColor;
  font-size: 15px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
  margin-left: 4px;
}

.navbar2_reviews-link:hover {
  opacity: 1;
  color: #0D0806;
}

/* Hide reviews link on mobile */
@media screen and (max-width: 767px) {
  .navbar2_reviews-link {
    display: none;
  }

  .navbar2_social-wrapper {
    margin-right: 12px;
    gap: 8px;
  }

  .navbar2_social-link {
    width: 32px;
    height: 32px;
  }
}

/* Smooth backdrop blur for mobile menu */
.navbar2_menu.w--open {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Better touch targets */
.navbar2_link {
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

/* Smoother animation */
.w-nav-menu {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ==========================================================================
   5. PREMIUM TYPOGRAPHY REFINEMENTS
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.heading-style-h1,
.heading-style-h2,
.heading-style-h3,
.heading-style-h4,
.heading-style-h5 {
  letter-spacing: -0.01em;
  font-weight: 700;
}

.heading-style-h2 {
  letter-spacing: -0.015em;
}

.heading-style-h5 {
  letter-spacing: 0;
}

p, .text-size-medium, .text-size-regular {
  line-height: 1.7;
  font-weight: 400;
}

.text-style-tagline {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   6. COLOR & CONTRAST ENHANCEMENTS
   ========================================================================== */

/* Hero image gradient overlay for depth */
.header77_image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.header77_image-wrapper {
  position: relative;
}

/* Enhanced button contrast */
.button {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   7. REFINED SPACING & RHYTHM (8px Grid System)
   ========================================================================== */

.padding-section-large {
  padding-top: 96px;
  padding-bottom: 96px;
}

@media screen and (max-width: 991px) {
  .padding-section-large {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media screen and (max-width: 767px) {
  .padding-section-large {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* ==========================================================================
   8. PREMIUM MICRO-INTERACTIONS
   ========================================================================== */

/* Navigation link hover animation */
.navbar2_link {
  position: relative;
}

.navbar2_link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar2_link:hover::after {
  width: 100%;
}

/* Card hover effects */
.portfolio8_item-link {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Portfolio image hover */
.portfolio8_image-wrapper {
  overflow: hidden;
}

.portfolio8_image {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio8_item-link:hover .portfolio8_image {
  transform: scale(1.05);
}

/* Header image subtle animation */
.header77_image {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.header77_image-wrapper:hover .header77_image {
  transform: scale(1.02);
}

/* ==========================================================================
   9. PREMIUM DETAILS & SHADOWS
   ========================================================================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Enhanced card shadows with layers */
.cta51_card {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta51_card:hover {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Refined border radius */
.button,
.form_input,
.portfolio8_image-wrapper,
.header77_image-wrapper {
  border-radius: 8px;
}

.navbar2_component {
  border-radius: 0;
}

/* Navigation shadow on scroll */
.navbar2_component {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Subtle hero texture overlay */
.section_header77::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.section_header77 {
  position: relative;
}

/* ==========================================================================
   10. FORM ENHANCEMENTS
   ========================================================================== */

/* Enhanced focus states */
.form_input:focus {
  outline: none;
  border-color: #4d65ff;
  box-shadow: 0 0 0 3px rgba(77, 101, 255, 0.1);
  transition: all 0.2s ease;
}

/* Better select styling */
.form_input.is-select-input {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

/* Checkbox and radio enhancements */
.form_checkbox-icon,
.form_radio-icon {
  transition: all 0.2s ease;
  border-width: 2px;
}

.w-checkbox-input:checked + .form_checkbox-icon,
.w-radio-input:checked + .form_radio-icon {
  background-color: #4d65ff;
  border-color: #4d65ff;
  box-shadow: 0 2px 8px rgba(77, 101, 255, 0.25);
}

/* Button group spacing */
.button-group {
  gap: 1rem;
}

/* Success message animation */
.form_message-success-wrapper {
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   11. FOOTER ENHANCEMENTS
   ========================================================================== */

.footer2_link {
  transition: all 0.2s ease;
  opacity: 0.9;
}

.footer2_link:hover {
  opacity: 1;
  transform: translateX(4px);
}

/* Social links hover */
.footer2_social-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}

.footer2_social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ==========================================================================
   12. ADDITIONAL PREMIUM TOUCHES
   ========================================================================== */

/* Tag styling */
.tag {
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Text link styling with underline hover */
.button.is-link {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
  position: relative;
  text-decoration: none;
  font-weight: 500;
}

.button.is-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.button.is-link:hover::after {
  width: calc(100% - 20px);
}

.button.is-link:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Link icons */
.button.is-link .icon-embed-xxsmall {
  transition: transform 0.2s ease;
  margin-left: 4px;
}

.button.is-link:hover .icon-embed-xxsmall {
  transform: translateX(4px);
}

/* Portfolio item content fade in on hover */
.portfolio8_title-wrapper {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio8_item-link:hover .portfolio8_title-wrapper {
  background: rgba(255, 255, 255, 0.98);
}

/* Enhanced dividers */
.divider-horizontal {
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

/* Improve image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ==========================================================================
   13. ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Better focus indicators for keyboard navigation */
a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 3px solid #4d65ff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   14. PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* GPU acceleration for smooth animations */
.header77_image,
.portfolio8_image,
.button,
.navbar2_link::after {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ==========================================================================
   15. GOOGLE REVIEWS WIDGET - PREMIUM FEATURE
   ========================================================================== */

/* Common styles */
.reviews-widget {
  z-index: 9999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.reviews-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
}

.reviews-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Star ratings */
.reviews-stars,
.reviews-stars-large {
  display: flex;
  gap: 2px;
  color: #F59E0B;
}

.reviews-stars-large {
  font-size: 24px;
  gap: 4px;
}

.star.filled {
  color: #F59E0B;
}

.star.half {
  color: #F59E0B;
  opacity: 0.5;
}

.star.empty {
  color: #D1D5DB;
}

/* Mobile Widget (iOS-style bottom drawer) */
.reviews-widget.mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reviews-mobile-handle {
  background: linear-gradient(135deg, #0D0806 0%, #1a1614 100%);
  color: white;
  padding: 12px 20px 16px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.reviews-handle-bar {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 0 auto 12px;
}

.reviews-teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.reviews-count {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.reviews-mobile-panel {
  background: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reviews-widget.mobile.expanded .reviews-mobile-panel {
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.reviews-panel-header {
  padding: 24px 20px;
  border-bottom: 1px solid #E5E7EB;
  background: linear-gradient(to bottom, #F9FAFB 0%, white 100%);
}

.reviews-panel-header h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #0D0806;
}

.reviews-summary {
  text-align: center;
}

.reviews-rating-text {
  font-size: 18px;
  font-weight: 700;
  color: #0D0806;
  margin-top: 8px;
}

.reviews-count-text {
  font-size: 14px;
  color: #6B7280;
  margin-top: 4px;
}

.reviews-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
}

/* Desktop Widget (floating button + modal) */
.reviews-widget.desktop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
}

.reviews-desktop-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0D0806 0%, #1a1614 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 24px 14px 20px;
  font-size: 15px;
  font-weight: 600;
  box-shadow:
    0 4px 16px rgba(13, 8, 6, 0.25),
    0 8px 32px rgba(13, 8, 6, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(184, 115, 51, 0.3);
}

.reviews-desktop-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 20px rgba(13, 8, 6, 0.3),
    0 12px 40px rgba(13, 8, 6, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(184, 115, 51, 0.5);
}

.reviews-desktop-button:active {
  transform: translateY(0) scale(1);
}

.reviews-desktop-button svg {
  color: #F59E0B;
  flex-shrink: 0;
}

.reviews-button-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.reviews-button-rating {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.reviews-button-count {
  font-size: 13px;
  opacity: 0.85;
}

.reviews-desktop-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  height: auto;
  background: white;
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reviews-desktop-modal.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.reviews-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.reviews-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.reviews-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.reviews-modal-close svg {
  color: #374151;
}

.reviews-modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid #E5E7EB;
  background: linear-gradient(to bottom, #F9FAFB 0%, white 100%);
  flex-shrink: 0;
}

.reviews-modal-header h3 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: #0D0806;
  letter-spacing: -0.02em;
}

.reviews-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 32px;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

/* Review cards */
.review-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  min-width: 280px;
  scroll-snap-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.reviews-list .review-card {
  min-width: auto;
  width: 100%;
  margin-bottom: 16px;
}

.reviews-list .review-card:last-child {
  margin-bottom: 0;
}

.review-card:hover {
  border-color: #B87333;
  box-shadow: 0 4px 16px rgba(184, 115, 51, 0.1);
  transform: translateY(-1px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.review-author {
  font-size: 16px;
  font-weight: 600;
  color: #0D0806;
}

.review-date {
  font-size: 13px;
  color: #9CA3AF;
  white-space: nowrap;
}

.review-rating {
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

/* Use desktop widget on all viewports, hide mobile widget */
.reviews-widget.mobile {
  display: none !important;
}

.reviews-widget.desktop {
  display: block;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
  .reviews-desktop-button {
    padding: 12px 20px 12px 16px;
    font-size: 14px;
  }

  .reviews-desktop-modal {
    width: 95%;
    max-height: 90vh;
    border-radius: 12px;
  }

  .reviews-modal-header {
    padding: 24px 24px 20px;
  }

  .reviews-modal-header h3 {
    font-size: 20px;
  }

  .reviews-list {
    padding: 20px 24px;
  }

  .review-card {
    min-width: 240px;
  }
}

@media screen and (max-width: 479px) {
  .reviews-widget.desktop {
    bottom: 20px;
    right: 20px;
  }

  .reviews-desktop-button {
    padding: 10px 16px 10px 14px;
    font-size: 13px;
  }

  .reviews-button-text {
    gap: 3px;
  }

  .reviews-button-rating {
    font-size: 14px;
  }

  .reviews-button-count {
    font-size: 12px;
  }

  .reviews-desktop-modal {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
  }

  .reviews-desktop-modal.visible {
    transform: translateY(0);
  }

  .reviews-modal-header,
  .reviews-list {
    padding-left: 20px;
    padding-right: 20px;
  }

  .review-card {
    min-width: 220px;
  }
}

/* Animation for expanding/collapsing */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.reviews-widget.mobile.expanded {
  animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Accessibility improvements */
.reviews-desktop-button:focus-visible,
.reviews-modal-close:focus-visible {
  outline: 3px solid #4d65ff;
  outline-offset: 2px;
}

/* Performance optimizations */
.reviews-mobile-panel,
.reviews-desktop-modal,
.reviews-backdrop {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ==========================================================================
   16. MOBILE-SPECIFIC OPTIMIZATIONS
   ========================================================================== */

/* Prevent horizontal overflow - but don't use overflow-x on body as it breaks sticky positioning */
* {
  box-sizing: border-box;
}

/* Fix footer email overflow on mobile */
.footer2_link {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

/* Ensure all containers respect viewport width - but avoid overflow-x: hidden on main containers */
.page-wrapper,
.padding-global,
.container-large {
  max-width: 100%;
}

/* Fix image overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Ensure contact form is mobile-friendly */
@media screen and (max-width: 767px) {
  .contact2_form {
    width: 100%;
  }

  .form_field-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Better mobile button sizing */
  .button-group {
    flex-direction: column;
    width: 100%;
  }

  .button-group .button {
    width: 100%;
  }

  /* Optimize portfolio grid for mobile */
  .portfolio8_list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Better mobile padding */
  .padding-section-large {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  /* Footer adjustments for mobile */
  .footer2_left-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer2_link-column {
    width: 100%;
  }

  /* Move contact section to its own row on mobile */
  .footer2_link-column:last-child {
    grid-column: 1 / -1;
    margin-top: 1rem;
  }

  /* Make email smaller on mobile to prevent overflow */
  .footer2_link {
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

@media screen and (max-width: 479px) {
  /* Even tighter spacing on small phones */
  .padding-section-large {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* Ensure text is readable */
  .text-size-medium {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Mobile-optimized buttons */
  .button {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
