/*
Theme Name: SQ Web
Theme URI: 
Author: SQ 3D
Author URI: 
Description: A custom theme made by SQ 3D team, tailored to your needs.
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sq-web
Tags: 
*/
::selection {
  background-color: #c68937;
  color: #ffffff; /* Optional: Sets text color for better contrast */
}
/* WebKit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px; /* Thin scrollbar width */
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* Light background for the track */
}

::-webkit-scrollbar-thumb {
  background: #c68937; /* Scrollbar thumb color */
  border-radius: 4px; /* Rounded edges for the thumb */
}

::-webkit-scrollbar-thumb:hover {
  background: #a5712e; /* Slightly darker shade on hover */
}

/* Firefox */
html {
  scrollbar-width: thin; /* Makes scrollbar thin */
  scrollbar-color: #c68937 #f1f1f1; /* Thumb color and track color */
}
.wp-block-group:not(.no-custom-padding) {
  padding: clamp(1rem, 3vw, 5rem);
}
.wp-block-group + .wp-block-group {
  margin-block-start: 0;
}
:where(.wp-site-blocks) > * {
  margin-block-start: 0 !important;
}

.wp-block-navigation__container {
  li {
    a.wp-block-navigation-item__content {
    }
    &:hover {
      a.wp-block-navigation-item__content {
        color: #c68937 !important;
      }
    }
    &.current-menu-item {
      a.wp-block-navigation-item__content {
        color: #c68937 !important;
      }
    }
  }
}
/* General Header Styling */
.wp-block-template-part.header-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8); /* Fallback */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease-in-out;
}

@supports not (backdrop-filter: blur(10px)) {
  .wp-block-template-part.header-scrolled {
    background: rgba(0, 0, 0, 0.8);
  }
}

/* Fix for the wpadminbar */
body.wp-admin-bar-is-fixed .wp-block-template-part.header-scrolled {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.wp-admin-bar-is-fixed .wp-block-template-part.header-scrolled {
    top: 46px;
  }
  .wp-block-template-part.header-scrolled {
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.8);
  }
}

/* Navigation Menu */
.wp-block-navigation__container li:hover .wp-block-navigation-item__content,
.wp-block-navigation__container
  li.current-menu-item
  .wp-block-navigation-item__content {
  color: #c68937;
}
body.header-fixed-active #wpadminbar {
  position: fixed;
}
/* Example styling for the scrolled state */
.wp-block-template-part.header-scrolled .wp-block-group.is-layout-flex {
  padding-top: var(--wp--preset--spacing--20); /* Smaller padding */
  padding-bottom: var(--wp--preset--spacing--20);
}

.wp-block-template-part.header-scrolled .wp-block-site-logo img {
  max-height: 40px; /* Adjust logo size */
  width: auto;
  transition: max-height 0.3s ease-in-out;
}
blockquote {
  font-weight: 100;
  font-size: clamp(1.5rem, 4vw, 1.8rem); /* Scales font size responsively */
  max-width: 90%; /* Prevents overflow on smaller screens */
  line-height: 1.4;
  position: relative;
  margin: 0 auto; /* Centers the blockquote */
  padding: 1rem;
  box-sizing: border-box; /* Ensures padding doesn't cause overflow */
}

blockquote:before,
blockquote:after {
  position: absolute;
  color: #c68937;
  font-size: clamp(4rem, 10vw, 6rem); /* Scales quote marks */
  width: 2rem;
  height: 2rem;
}

blockquote:before {
  content: "“";
  left: -2rem; /* Reduced offset for smaller screens */
  top: -1rem;
}

blockquote:after {
  content: "”";
  right: -2rem; /* Reduced offset */
  bottom: 0.5rem;
}

cite {
  line-height: 2; /* Adjusted for better spacing on mobile */
  text-align: left;
  font-size: clamp(0.9rem, 2.5vw, 1rem); /* Responsive cite font size */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  blockquote {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    padding: 0.5rem;
  }

  blockquote:before,
  blockquote:after {
    font-size: clamp(3rem, 8vw, 4rem);
    width: 1.5rem;
    height: 1.5rem;
  }

  blockquote:before {
    left: -1.5rem;
    top: -0.5rem;
  }

  blockquote:after {
    right: -1.5rem;
    bottom: 0.3rem;
  }

  cite {
    line-height: 1.8;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  blockquote {
    font-size: clamp(1rem, 3vw, 1.2rem);
    padding: 0.3rem;
  }

  blockquote:before,
  blockquote:after {
    font-size: clamp(2rem, 6vw, 3rem);
    width: 1rem;
    height: 1rem;
  }

  blockquote:before {
    left: -1rem;
    top: -0.3rem;
  }

  blockquote:after {
    right: -1rem;
    bottom: 0.2rem;
  }
}
/* contact form */
/* Base styles for mobile */
.contact-container {
  width: 100%;
  /* margin: 0 10px; */
  background: rgba(38, 28, 17, 0.95);
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.contact-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c68937, #e8a855, #c68937);
  animation: shimmer 3s ease-in-out infinite;
  z-index: 10;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.contact-info-section {
  background: linear-gradient(to bottom, #2c2114, #1a150f);
  padding: 20px 15px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.contact-info-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(198, 137, 55, 0.1) 0%,
    transparent 50%
  );
  z-index: -1;
}

.contact-info-section .header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-info-section .header h2 {
  /* font-size: 1.5rem; */
  color: #c68937;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info-section .header p {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.6;
}

.contact-details .info-block {
  margin-bottom: 30px;
}

.contact-details .info-block h3 {
  /* font-size: 1.25rem; */
  color: #c68937;
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-details address {
  font-style: normal;
  line-height: 1.8;
  font-size: 1rem;
  color: #ffffff;
}

.hours-list {
  list-style: none;
  padding: 20px;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(198, 137, 55, 0.2);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list li:hover {
  background: rgba(198, 137, 55, 0.1);
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 5px;
}

.hours-list .day {
  font-weight: 500;
  color: #ffffff;
}

.hours-list .time {
  font-weight: 400;
  color: #c68937;
}

.hours-list .time.closed {
  color: #d25353;
  font-style: italic;
}

.map-section {
  margin-top: 30px;
}

.map-section h3 {
  font-size: 1.25rem;
  color: #c68937;
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(198, 137, 55, 0.3);
  transition: all 0.3s ease;
}

.map-container:hover {
  border-color: #c68937;
  box-shadow: 0 15px 40px rgba(198, 137, 55, 0.2);
  transform: translateY(-2px);
}

.map-container iframe {
  width: 100%;
  height: 200px;
  border: 0;
  filter: grayscale(20%) contrast(1.2);
  transition: filter 0.3s ease;
}

.map-container:hover iframe {
  filter: grayscale(0%) contrast(1);
}

.form-section {
  padding: 20px 15px;
  background: rgba(38, 28, 17, 0.95);
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.form-section h3 {
  /* font-size: 2rem; */
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.form-section > p {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 30px;
  opacity: 0.9;
  text-align: center;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #c68937;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wpcf7-form-control,
.form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 15px 20px;
  border: 2px solid rgba(198, 137, 55, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: inherit;
}

.wpcf7-form-control:focus,
.form-control:focus {
  outline: none;
  border-color: #c68937;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(198, 137, 55, 0.2);
  transform: translateY(-2px);
}

.wpcf7-form-control::placeholder,
.form-control::placeholder {
  color: #ffffff;
}

.wpcf7-textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23c68937' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 45px;
}
.wpcf7-select option {
  background: #261c11; /* Dark brown background */
  color: #ffffff; /* Light text */
  padding: 10px 15px; /* Comfortable padding */
}

.wpcf7-select option:hover {
  background: #c68937; /* Gold background on hover */
  color: #261c11; /* Dark text on hover */
}
.wpcf7-form-control-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.wpcf7-list-item input[type="checkbox"],
.wpcf7-list-item input[type="radio"] {
  width: auto !important;
  margin: 0;
  accent-color: #c68937;
  transform: scale(1.2);
}

.wpcf7-list-item-label {
  color: #ffffff !important;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: normal !important;
  cursor: pointer;
  margin: 0 !important;
}

.wpcf7-submit,
.submit-btn {
  background: linear-gradient(135deg, #c68937, #a67429);
  color: white;
  padding: 18px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(198, 137, 55, 0.3);
  width: 100%;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.wpcf7-submit::before,
.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.wpcf7-submit:hover,
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(198, 137, 55, 0.4);
}

.wpcf7-submit:hover::before,
.submit-btn:hover::before {
  left: 100%;
}

.wpcf7-submit:active,
.submit-btn:active {
  transform: translateY(-1px);
}

.wpcf7-spinner {
  border: 2px solid rgba(198, 137, 55, 0.3);
  border-top: 2px solid #c68937;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.wpcf7-response-output {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border: 2px solid;
}

.wpcf7-mail-sent-ok {
  background: rgba(40, 167, 69, 0.2);
  border-color: #28a745;
  color: #28a745;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: rgba(220, 53, 69, 0.2);
  border-color: #dc3545;
  color: #dc3545;
}

.wpcf7-not-valid {
  border-color: #dc3545 !important;
  background: rgba(220, 53, 69, 0.1) !important;
}

.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.error-message {
  display: none;
}

.hidden-fields-container {
  display: none;
}

.screen-reader-response {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
  .contact-container {
    /* margin: 0 auto; */
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-info-section,
  .form-section {
    padding: 30px 20px;
  }

  .contact-info-section .header h2 {
    font-size: 1.1rem;
  }

  .form-section h1 {
    font-size: 2.5rem;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .map-container iframe {
    height: 250px;
  }
}

/* Desktop screens */
@media (min-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr 1.5fr;
  }

  .contact-info-section,
  .form-section {
    padding: 40px;
  }
}

.wp-block-latest-posts__list .wp-block-latest-posts__featured-image {
  /* Set a fixed height for the container, adjust as needed */
  height: 200px;
  /* The image itself should fill the container */
  overflow: hidden;
  margin-bottom: 1rem;
}

.wp-block-latest-posts__list .wp-block-latest-posts__featured-image img {
  /* Make the image responsive and fill the container */
  width: 100%;
  height: 100%;

  /* Crucial: Scales and crops the image to cover the container */
  object-fit: cover;

  /* Optional: To prevent any issues with original width/height attributes */
  max-width: 100%;
  min-height: 0; /* Override any WordPress-specific height rules */
}

/* Scroll-to-top button styling */
#scroll-to-top {
  z-index: 99999;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #c68937;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-to-top:hover {
  background-color: #c68937;
}
