/*
Theme Name: Sonara Firm
Theme URI: 
Author: Rinarski
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sonara-firm
Tags: 
*/

body {
  background-color: var(--wp--preset--color--offwhite);
}
html {
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
}

/* Font style */
.font-bold{
  font-weight: 600;
}
/* Customs */
  .border-right{
    border-right: 2px solid var(--wp--preset--color--lightgray);
  }
  .border-right-mbl{
    border-right: 2px solid var(--wp--preset--color--lightgray);
  }
  .border-bottom{
    border-bottom: 2px solid var(--wp--preset--color--lightgray);
  }
  .bg-offset {
  background-color: #E4E6DC; /* olive green or any color */
  padding: 2rem;
  height: 30vh;
  width: 100vw;
  z-index: 1;
  position: absolute;
  margin-top: 8%;
}
  .desc-box{
    width: 20vw!important;
  }

/* HERO WORD ROTATOR */
.word-rotator {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  color: var(--wp--preset--color--offwhite);
  position: relative;
  height: 8rem;
  overflow: hidden;
  font-size: var(--wp--preset--font-size--hero-text);
  line-height: 4rem;
  margin-top: 20%;

  /* Performance optimization */
  contain: layout paint style;
}

.word-rotator .word {
  margin-top: 4rem;
  position: absolute;
  opacity: 0;
  width: 100%;
  max-width: 100vw;
  transform: translateY(100%);
  animation: wordFade 9s infinite;

  /* GPU optimization */
  will-change: transform, opacity;
}

.word-rotator .word:nth-child(1) {
  animation-delay: 0s;
}
.word-rotator .word:nth-child(2) {
  animation-delay: 3s;
}
.word-rotator .word:nth-child(3) {
  animation-delay: 6s;
}

/* COUNTER STYLES */
.counter-wrapper {
  font-size: 2rem;
  font-family: sans-serif;
  text-align: center;
}
.counter-inner {
  display: inline-block;
  border-bottom: 1px solid #B2A99A;
  padding-bottom: 0.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ANIMATION KEYFRAMES */
@keyframes wordFade {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  10% {
    opacity: 1;
    transform: translateY(0%);
  }
  30% {
    opacity: 1;
    transform: translateY(0%);
  }
  40% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

/* CUSTOM CHECKLIST */
ul.custom-checklist {
  list-style-type: none;
  padding-left: 0;
  font-size: 1rem;
  font-family: 'Gibson';
}

ul.custom-checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
}

ul.custom-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  background-image: url('http://localhost/wp-content/uploads/2025/05/check-1.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* BUTTON STYLES */
.home-cta {
  background-color: var(--wp--preset--color--charcoalgray);
  border-radius: 3rem;
  border: 2px solid var(--wp--preset--color--charcoalgray);
  color: var(--wp--preset--color--offwhite);
  width: 50%;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}
.home-cta:hover {
  background-color: var(--wp--preset--color--offwhite);
  color: var(--wp--preset--color--charcoalgray);
  border: 2px solid var(--wp--preset--color--charcoalgray);
}
.home-cta-light{
  color: var(--wp--preset--color--charcoalgray);
  background-color: var(--wp--preset--color--offwhite);
  border-radius: 3rem;
  border: 2px solid var(--wp--preset--color--charcoalgray);
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
  width: 25%;
}
.home-cta-light:hover{
  color: var(--wp--preset--color--offwhite);
  background-color: var(--wp--preset--color--charcoalgray);
}
.home-cta-outline{
  color: var(--wp--preset--color--offwhite);
  background-color: black;
  border: 2px solid var(--wp--preset--color--offwhite);
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
  border-radius: 3rem;
  width: 25%;
}
.home-cta-outline:hover{
  background-color: var(--wp--preset--color--offwhite);
  color: black;
}
/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 767px) {
  .word-rotator {
    font-size: 1.5rem;
    margin-top: 80%;
  }
  .word-rotator .word {
    margin-top: 2rem;
  }
  .home-cta-light,
  .home-cta,
  .home-cta-rectangle,
  .home-cta-outline{
    width: 50%;
  }
  .half-width{
    width: 75% !important;
  }
  .bg-offset {
    margin-top: 10%;
    height: 30%;
}
  .top-margin{
    margin-top: 60%;
  }
  .border-right{
    border-right:none;
    border-bottom: 2px solid var(--wp--preset--color--charcoalgray);
  }
  .border-right-mbl{
    border:none;
  }
    .form-row.two-cols {
    flex-direction: column!important;
  }
  .desc-box{
    width: 70vw!important;
  }
}
/* Accordion */
 .acc-title{
        font-size: 1.4rem;
    }
    .custom-accordion {
        max-width: 800px;
        margin-top: 2rem;
    }
    .accordion-item {
        border-bottom: 1px solid #ccc;
    }

    .accordion-header {
        width: 100%;
        background: none;
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        border: none;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .accordion-header:hover {
        background: var(--wp--preset--color--olivegreen);
    }

    .accordion-header .icon {
        font-size: 1rem;
        transition: transform 0.3s ease;
    }

    .accordion-item.active .accordion-header .icon {
        transform: rotate(45deg);
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: 0.5s ease, background-color 1s ease;
        background-color: transparent;
        padding: 0 1rem;
        font-size: 1rem;

    }

    .accordion-item.active .accordion-content {
        max-height: 500px;
        padding: 2rem;
        background-color: #D6DFD5;
        animation: fadeHighlight 1s forwards;
    }

    @keyframes fadeHighlight {
        0% { background-color: #D6DFD5; }
        100% { background-color: transparent; }
    }

  /* Nav bar */
.sonara-nav .current-menu-item > a,
.sonara-nav .current_page_item > a {
  color: var(--wp--preset--color--gray) !important;
}
/* Default link style with smooth hover */
.sonara-nav li a {
  transition: all 0.3s ease;
  color: var(--wp--preset--color--gray);
  border-bottom: 2px solid transparent;
}
/* Hover effect */
.sonara-nav li a:hover {
  color: var(--wp--preset--color--gray)!important;
  border-bottom: 2px solid var(--wp--preset--color--orange);
}

/* Animation Classes */
@keyframes floatInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float-in-up {
  animation: floatInUp 0.8s ease-out forwards;
}

.hover-overlay {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.hover-overlay img {
  display: block;
  height: auto;
  transition: transform 0.3s ease;
}

/* Animated overlay */
.hover-overlay::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #d6dfd5cb; 
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 1;
  border-radius: 1rem;
}

/* Show overlay on hover */
.hover-overlay:hover::after {
  transform: translateX(0);
  opacity: 1;
}
.image-hover-zoom-blur {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border-radius: 10px;
}

.image-hover-zoom-blur img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.image-hover-zoom-blur:hover img {
  transform: scale(1.1);
  filter: blur(2px);
}

/* forms */
.corporate-contact-form {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  font-family: inherit;
  padding-top: 1rem;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-row.two-cols {
  flex-direction: row;
  gap: 1rem;
  width: 100%;
}

.input-wrap {
  position: relative;
  flex: 1;
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 0.75rem 0.25rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: var(--wp--preset--color--offwhite);
  outline: none;
  transition: border-color 0.3s;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--wp--preset--color--charcoalgray);
}

.input-wrap label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1rem;
  color: #6C6C6C;
  background-color: var(--wp--preset--color--offwhite);
  padding: 0 0.25rem;
  transition: 0.2s ease;
  pointer-events: none;
}

.input-wrap input:focus + label,
.input-wrap input:not(:placeholder-shown) + label,
.input-wrap textarea:focus + label,
.input-wrap textarea:not(:placeholder-shown) + label {
  top: -0.6rem;
  font-size: .8rem;
  color: var(--wp--preset--color--charcoalgray);
}

.corporate-contact-form button {
  width: 100%;
  padding: 1rem 2rem;
  background-color: var(--wp--preset--color--charcoalgray);
  color: var(--wp--preset--color--offwhite);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.corporate-contact-form button:hover {
  background-color: var(--wp--preset--color--offwhite);
  color: var(--wp--preset--color--charcoalgray);
  border: 1px solid var(--wp--preset--color--charcoalgray);
}
/* News Letter */
.newsletter-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--wp--preset--color--offwhite);
  height: 3.25rem;
}

.newsletter-wrap input {
  flex: 1;
  padding: 0 1rem;
  border: none;
  font-size: 1rem;
  outline: none;
  background: transparent;
}

.newsletter-wrap button {
  background-color: var(--wp--preset--color--charcoalgray);
  color: white;
  border: none;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-wrap button svg {
  height: 100%;
  width: auto;
}

.newsletter-wrap button:hover {
  background-color: #444;
}
