/* =============================================
   Fonts
   =========================================== */

   /*
    .cinzel-<uniquifier> {
      font-family: "Cinzel", serif;
      font-optical-sizing: auto;
      font-weight: <weight>;
      font-style: normal;
    }
    */

/* =============================================
   Base styles
   =========================================== */

html {
  font-size: 1.2em;
  line-height: 1.6;
  font-family: "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  height: 100%;
}

body { 
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
    color: #ffffff;
}

.cinzel-font {
  font-family: "Cinzel", serif;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ffffff;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

.hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

a {
  color: #ffffff;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cinzel", serif;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

h1 { font-size: 3.96rem; }   /* 3.6rem * 1.10 */
h2 { font-size: 3.135rem; }  /* 2.85rem * 1.10 */
h3 { font-size: 2.475rem; }  /* 2.25rem * 1.10 */
h4 { font-size: 2.0625rem; } /* 1.875rem * 1.10 */
h5 { font-size: 1.65rem; }   /* 1.5rem * 1.10 */
h6 { font-size: 1.4025rem; } /* 1.275rem * 1.10 */

/* Responsive heading sizes */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.625rem; }
  h4 { font-size: 1.375rem; }
  h5 { font-size: 1.25rem; }
  h6 { font-size: 1.125rem; }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.375rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.125rem; }
  h6 { font-size: 1rem; }
}

p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

header .container-fluid {
  align-items: center !important;
}

header h1 {
  font-size: 2em;
}

header h1 img {
  height: 2em;
  width: auto;
  display: block;
}

header h1 a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: inline-block;
  line-height: 1;
}

header h1 a:hover {
  opacity: 0.7;
  cursor: pointer;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
  z-index: 1001;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}

.mobile-menu-toggle .menu-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-family: "Cinzel", serif;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #ffffff;
  outline: none;
}

.mobile-menu-toggle.active i:before {
  content: "\f00d"; /* Font Awesome X icon */
}

header nav a,
header nav a:visited {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 1.25rem !important;
}

header nav a:hover,
header nav a:focus,
header nav a:active {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown-toggle-btn {
  display: none;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 10px;
  margin: 0;
  border: 1px solid #ffffff;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  min-width: 200px;
  z-index: 1000;
}

.sub-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.sub-menu a {
  display: block;
  padding: 0.5rem 0.5rem;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 1rem !important;
  transition: opacity 0.3s ease;
  text-align: center;
}

.sub-menu a:hover {
  opacity: 0.7;
  text-decoration: none !important;
}

/* Desktop Dropdown Hover - Only on desktop */
@media (min-width: 1221px) {
  .has-dropdown .nav-item-wrapper {
    display: flex;
    align-items: center;
  }
  
  /* Hide mobile dropdown toggle on desktop */
  .dropdown-toggle-mobile {
    display: none !important;
  }
  
  .menu-item-has-children > .nav-link::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.85em;
  }
  
  .menu-item-has-children > .nav-link:hover,
  .menu-item-has-children > .nav-link:focus,
  .menu-item-has-children > .nav-link:active {
    text-decoration: none !important;
  }
  
  /* Hide dropdown by default on desktop */
  .menu-item-has-children .sub-menu {
    display: none;
  }
  
  /* Show dropdown on hover */
  .menu-item-has-children:hover .sub-menu {
    display: block;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 1220px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255,255,255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8rem 0.75rem 0.75rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }
  
  header nav.active {
    right: 0;
  }
  
  header nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  header nav .nav-item {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.4s ease;
  }
  
  header nav.active .nav-item {
    transform: translateX(0);
    opacity: 1;
  }
  
  header nav.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
  header nav.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
  header nav.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
  header nav.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
  header nav.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
  
  header nav .nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: #f5f5f5 !important;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  header nav .nav-link:hover,
  header nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 1.5rem;
    color: #ffffff !important;
    text-decoration: none;
  }
  
  /* Mobile Dropdown */
  .menu-item-has-children {
    position: relative;
    display: block;
  }
  
  .menu-item-has-children > .nav-link {
    display: block;
    border-bottom: none;
    padding: 1.2rem 1rem;
    padding-right: 3.5rem;
    position: relative;
  }
  
  /* Dropdown toggle button */
  .menu-item-has-children .dropdown-toggle-mobile {
    position: absolute;
    right: 0.5rem;
    top: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
  }
  
  .menu-item-has-children .dropdown-toggle-mobile:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .menu-item-has-children .dropdown-toggle-mobile i {
    color: #ffffff;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
  }
  
  .menu-item-has-children.active .dropdown-toggle-mobile i {
    transform: rotate(180deg);
  }
  
  .menu-item-has-children .sub-menu {
    position: static;
    display: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
    min-width: auto;
    width: 100%;
  }
  
  .menu-item-has-children.active .sub-menu {
    display: block;
  }
  
  .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .sub-menu li:last-child {
    border-bottom: none;
  }
  
  .sub-menu a {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    text-align: left !important;
  }
  
  .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Overlay */
  body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
  }
  
  body.menu-open::after {
    opacity: 1;
    visibility: visible;
  }
  
  body.menu-open {
    overflow: hidden;
  }
}

img { 
    max-width: 100%;
    height: auto;
}

footer { 
  margin-top: auto;
  padding-top: 15rem;
  background-size: cover;
}

.footer-bottom { 
    margin-top: 1rem;
    padding-top: 1rem;
    color: #ffffff;
}

footer nav a,
footer nav a:visited {
  color: #ffffff !important;
  text-decoration: none;
}

footer nav a:hover,
footer nav a:focus,
footer nav a:active {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Footer mobile styling */
@media (max-width: 768px) {
  footer {
    padding-top: 8rem;
    padding-bottom: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column !important;
    text-align: center;
    padding: 2rem 1rem !important;
    gap: 1.5rem !important;
  }
  
  .footer-bottom > div {
    width: 100%;
  }
  
  .footer-bottom span {
    font-size: 0.875rem;
    line-height: 1.6;
    display: block;
  }
  
  footer nav ul {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center;
  }
  
  footer nav li {
    width: 100%;
    text-align: center;
  }
  
  footer nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem !important;
  }
}

/* Banner Section */
.banner-section {
  position: relative;
  min-height: 600px;
}

.banner-section .container-fluid {
  position: relative;
  height: 600px;
}

/* Homepage eco-energy section responsive */
@media (max-width: 768px) {
  .container .row .col-3,
  .container .row .col-9 {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .container .row .col-3 {
    margin-bottom: 2rem;
    justify-content: center !important;
  }
  
  .container .row .col-3 img {
    max-width: 200px;
  }
  
  .container .row .col-9 h2 {
    text-align: center;
  }
  
  .container .row .col-9 p {
    text-align: center;
  }
  
  .container .row .col-9 .text-end {
    text-align: center !important;
  }
}

/* Scale banner height down on smaller screens */
@media (max-width: 1400px) {
  .banner-section { min-height: 480px; }
  .banner-section .container-fluid { height: 480px; }
}

/* Scale banner height down on smaller screens */
@media (max-width: 1200px) {
  .banner-section { min-height: 380px; }
  .banner-section .container-fluid { height: 380px; }
}

@media (max-width: 768px) {
    .banner-section { min-height: 330px; }
    .banner-section .container-fluid { height: 330px; }
}

@media (max-width: 576px) {
  .banner-section { min-height: 290px; }
  .banner-section .container-fluid { height: 290px; }
}

@media (max-width: 420px) {
  .banner-section { min-height: 240px; }
  .banner-section .container-fluid { height: 240px; }
}

.banner-section img {
  position: absolute;
  cursor: pointer;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  max-width: 340px;
  width: auto;
  height: auto;
  transition: transform .18s ease, width .18s ease, max-width .18s ease;
}

.banner-section img.large { max-width: 380px; }
.banner-section img { max-width: 360px; }

@media (max-width: 1400px) {
  .banner-section img { max-width: 259px; }
  .banner-section img.large { max-width: 280px; }
}

/* Scaling points for smaller screens */
@media (max-width: 1200px) {
  .banner-section img { max-width: 258px; } /* ~10% larger than 234px */
  .banner-section img.large { max-width: 270px; } /* ~10% larger than 288px */
}

@media (max-width: 768px) {
  /* switch to viewport-based sizing for better fluidity on tablets (slightly larger) */
  .banner-section img { max-width: 210px; width: 34vw; }
  .banner-section img.large { max-width: 230px; width: 38vw; }
}

@media (max-width: 576px) {
  /* phone */
  .banner-section img { max-width: 140px; width: 40vw; }
  .banner-section img.large { max-width: 155px; width: 42vw; }
}


/* Fallback static layout when animation is disabled */
.banner-section.static-layout img {
  position: relative;
  display: inline-block;
  margin: 10px;
  transform: none !important;
  left: auto !important;
  top: auto !important;
}

.banner-section.static-layout .container-fluid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: auto;
  min-height: 550px;
}

/* Button Grid Section */
.row.g-4 a {
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.row.g-4 a:hover {
  transform: translateY(-10px);
  filter: brightness(1.1);
}

.row.g-4 a:hover img {
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

.row.g-4 a img {
  transition: box-shadow 0.3s ease;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .row.g-4 {
    row-gap: 2rem !important;
  }
}

section.border-top-bottom {
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Team Slider Section */
.team-slider-section h2 {
  text-align: left;
  margin-bottom: 2rem;
}

.team-slider {
  position: relative;
  min-height: 400px;
}

.team-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.team-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}

.team-content {
  margin-bottom: 1.5rem;
}

.team-content p {
  margin: 0;
  line-height: 1.8;
}

.team-full {
  margin-top: 1rem;
}

.team-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.read-more-btn {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: "Cinzel", serif;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
  display: inline-block;
  width: fit-content;
}

.read-more-btn:hover {
  opacity: 0.7;
}

.text-end a,
section a[href*="/services/"],
section a[href*="/about/"],
section a[href*="/philosophy/"] {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: "Cinzel", serif;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.text-end a:hover,
section a[href*="/services/"]:hover,
section a[href*="/about/"]:hover,
section a[href*="/philosophy/"]:hover {
  opacity: 0.7;
}

.slider-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-btn {
  background: none;
  border: none;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.slider-btn img {
  width: 35px;
  height: 35px;
  display: block;
}

.slider-counter {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  min-width: 50px;
  text-align: center;
}

@media (max-width: 768px) {
  .team-slider {
    min-height: 500px;
  }
  
  .slider-nav {
    justify-content: center;
  }
}


/* Capabilities Section */
.capabilities-section {
  color: #ffffff;
}

.capabilities-section h2 {
  margin-bottom: 2rem;
}

.capability-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #ffffff;
  font-size: 1.3225em;
  font-family: "Cinzel", serif;
}

.capabilities-section .capability-item:first-of-type {
  border-top: 1px solid #ffffff;
}

.capability-name {
  font-weight: 500;
}

.capability-number {
  font-weight: 300;
  opacity: 0.7;
}
/* Marquee Section */
.marquee-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 180px;
  margin: 0;
  background: transparent;
  margin: 75px 0;
}

@media screen and (max-width: 768px) {
  .marquee-section {
    margin: 25px 0;
  }
}

.marquee-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}

.marquee-text {
  color: #ffffff;
  font-family: "Cinzel", serif;
  font-size: 10rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-right: 4rem;
  display: inline-block;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

.ferrari-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.ferrari-overlay img {
  max-width: 250px;
  width: 50vw;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .marquee-section {
    height: 140px;
  }
  
  .marquee-text {
    font-size: 3rem;
    margin-right: 3rem;
  }
  
  .ferrari-overlay img {
    max-width: 180px;
  }
}

@media (max-width: 576px) {
  .marquee-section {
    height: 100px;
  }
  
  .marquee-text {
    font-size: 2rem;
    margin-right: 2rem;
  }
  
  .ferrari-overlay img {
    max-width: 120px;
  }
}

/* company Section */
.company-section {
  color: #ffffff;
}

.company-section h2 {
  margin-bottom: 2rem;
}

.company-section table {
  width: 100%;
  border-collapse: collapse;
}

.company-section tr {
  border-bottom: 1px solid #ffffff;
}

.company-section tr:first-child {
  border-top: 1px solid #ffffff;
}

.company-section td {
  padding: 1.5rem 0;
  font-size: 1.3225em;
  text-align: left;
}

.company-section td:first-child {
  font-weight: 700;
  padding-right: 2rem;
  width: 20%;
  white-space: nowrap;
  vertical-align: top;
}

.company-section td:nth-child(2) {
  font-size: 1rem;
}

.company-section td span {
  line-height: 2.2;
}

.company-section td:last-child {
  text-align: right;
  font-weight: 300;
  opacity: 0.7;
  padding-left: 2rem;
  width: 25%;
  white-space: nowrap;
  vertical-align: top;
}

@media (max-width: 768px) {
  .company-section table,
  .company-section tbody,
  .company-section tr,
  .company-section td {
    display: block;
    width: 100%;
  }
  
  .company-section tr {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  
  .company-section tr:last-child {
    margin-bottom: 0;
  }
  
  .company-section td {
    padding: 0.5rem 0;
    white-space: normal;
  }
  
  .company-section td:first-child {
    font-size: 0.9rem;
    padding-right: 0;
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .company-section td:nth-child(2) {
    margin-bottom: 0.5rem;
  }
  
  .company-section td:last-child {
    text-align: left;
    padding-left: 0;
    font-size: 0.85rem;
    width: 100%;
  }
}

/* Services Section */
.service-item {
  border-top: 1px solid #ffffff;
  padding: 2rem 0;
}

.row:last-of-type .service-item {
  border-bottom: 1px solid #ffffff;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.service-header h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 2.475rem;
}

.service-label {
  font-family: "Cinzel", serif;
  font-size: 1.3225em;
  font-weight: 300;
  opacity: 0.7;
  white-space: nowrap;
}

.service-item p {
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .service-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .service-label {
    font-size: 0.85rem;
  }
}

/* Philosophy Header Section */
.philosophy-header .philosophy-title-img {
  width: 480px;
  max-width: calc(100vw - 200px);
  margin-top: -15px;
}

@media (max-width: 768px) {
  .philosophy-header .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .philosophy-header .philosophy-title-img {
    width: 100%;
    max-width: 400px;
    margin-top: 1rem;
    margin-left: 0 !important;
  }
}

@media (max-width: 576px) {
  .philosophy-header .philosophy-title-img {
    max-width: 100%;
  }
}

/* =============================================
   Team Testimonials Section
   =========================================== */

.team-testimonials-section {
  background-color: transparent;
}

.testimonial-item {
  margin-bottom: 5rem;
}

.testimonial-profile {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
}

.testimonial-header h3 {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: "Cinzel", serif;
}

.testimonial-role {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 400;
}

.testimonial-quote {
  color: #ffffff;
  font-size: 1rem;
  display: block;
  margin-top: 0.5rem;
}

.accordion-trigger {
  cursor: pointer;
  padding: 1.25rem 0;
  border-bottom: 1px solid #ffffff;
  user-select: none;
  transition: opacity 0.2s ease;
}

.accordion-trigger:hover {
  opacity: 0.8;
}

.accordion-trigger .accordion-title {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 500;
}

.accordion-trigger .accordion-icon {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  min-width: 24px;
  text-align: center;
}

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

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
  padding: 0;
  opacity: 0;
}

.accordion-content.active {
  max-height: 800px;
  padding: 1.5rem 0;
  opacity: 1;
}

.accordion-content p {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .testimonial-profile {
    max-width: 150px;
    margin: 0 auto 1rem;
  }
  
  .testimonial-header {
    text-align: center;
  }
  
  .testimonial-header h3 {
    font-size: 1.5rem;
  }
  
  .accordion-trigger .accordion-title {
    font-size: 1rem;
  }
}

/* =============================================
   Contact Form Section
   =========================================== */

/* Gravity Forms styling */
.contact-form-section .gform_wrapper {
    max-width: 100%;
}

.contact-form-section .gform_wrapper .gform_body {
    max-width: 100%;
}

.contact-form-section .gfield_label,
.contact-form-section .gsection_title {
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-family: "Cinzel", serif;
    letter-spacing: 0.02em;
}

.contact-form-section .gform-field-label--type-sub {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.8rem;
}

.contact-form-section .gfield_required {
    color: #e74c3c;
    font-size: 0.85em;
}

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section input[type="tel"],
.contact-form-section input[type="url"],
.contact-form-section select,
.contact-form-section textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0 !important;
    transition: all 0.3s ease;
}

.contact-form-section input[type="text"]:focus,
.contact-form-section input[type="email"]:focus,
.contact-form-section input[type="tel"]:focus,
.contact-form-section input[type="url"]:focus,
.contact-form-section select:focus,
.contact-form-section textarea:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    outline: none !important;
}

.contact-form-section input::placeholder,
.contact-form-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.contact-form-section select option {
    background: #1a1a1a;
    color: #fff;
}

.contact-form-section input[type="checkbox"],
.contact-form-section input[type="radio"] {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.contact-form-section input[type="checkbox"]:checked,
.contact-form-section input[type="radio"]:checked {
    background-color: #4a7c59 !important;
    border-color: #4a7c59 !important;
}

.contact-form-section .gfield_description,
.contact-form-section .gfield_label + .gfield_description,
.contact-form-section .instruction {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
}

.contact-form-section .gform_wrapper .gform_footer input[type="submit"],
.contact-form-section .gform_wrapper .gform_page_footer input[type="submit"] {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    padding: 1rem 3rem !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    font-family: "Cinzel", serif !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-section .gform_wrapper .gform_footer input[type="submit"]:hover,
.contact-form-section .gform_wrapper .gform_page_footer input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.contact-form-section .gform_wrapper .gfield_error {
    background: rgba(231, 76, 60, 0.25) !important;
    border: 2px solid rgba(231, 76, 60, 0.6) !important;
    padding: 1.5rem !important;
    border-radius: 0 !important;
    margin-bottom: 2rem !important;
}

.contact-form-section .gform_wrapper .gfield_error .gfield_label {
    color: #ff6b6b !important;
    font-weight: 700 !important;
}

.contact-form-section .gform_wrapper .gfield_error input,
.contact-form-section .gform_wrapper .gfield_error textarea,
.contact-form-section .gform_wrapper .gfield_error select {
    border-color: rgba(231, 76, 60, 0.8) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.contact-form-section .gform_wrapper .validation_error {
    color: #fff !important;
    border: 2px solid rgba(231, 76, 60, 0.7) !important;
    background: rgba(231, 76, 60, 0.3) !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 0 !important;
    margin-bottom: 2rem !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
}

.contact-form-section .gform_validation_errors {
    background: rgba(231, 76, 60, 0.4) !important;
    border: 2px solid rgba(231, 76, 60, 0.8) !important;
    border-radius: 0 !important;
    padding: 1.5rem 2rem !important;
    margin-bottom: 2rem !important;
}

.contact-form-section .gform_validation_errors h2,
.contact-form-section .gform_submission_error {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
}

.contact-form-section .gform_validation_errors ol {
    margin: 0 !important;
    padding-left: 1.5rem !important;
}

.contact-form-section .gform_validation_errors li {
    margin-bottom: 0.75rem !important;
}

.contact-form-section .gform_validation_error_link {
    color: #fff !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    font-size: 1rem !important;
}

.contact-form-section .gform_validation_error_link:hover {
    opacity: 0.8 !important;
}

.contact-form-section .gform_wrapper .validation_message {
    color: #ff6b6b !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-top: 0.5rem !important;
}

.contact-form-section .gform_confirmation_wrapper {
    color: #fff !important;
}

.contact-form-section .gform_confirmation_message {
    background: rgba(74, 124, 89, 0.1) !important;
    border: 1px solid rgba(74, 124, 89, 0.3) !important;
    color: #fff !important;
    padding: 1.5rem !important;
    border-radius: 4px !important;
}

/* Contact info sidebar */
.contact-info-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 2rem 1.5rem;
}

.contact-info-box .info-heading {
    font-size: 0.875rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-family: "Cinzel", serif;
}

.contact-info-box .phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    font-family: "Cinzel", serif;
}

.contact-info-box .business-hours {
    font-size: 0.9rem;
    color: #8e8280;
    line-height: 1.8;
}

.contact-info-box .address-text {
    color: #fff;
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-info-box p {
    color: #fff;
    line-height: 1.8;
    margin-bottom: 0;
}

/* =============================================
   Single Post / Article Page
   =========================================== */

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-date {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.post-category {
    font-size: 0.9rem;
}

.post-category a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-category a:hover {
    opacity: 0.7;
}

.entry-content {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.8;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h2 {
    font-size: 2rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.entry-content ul li {
    list-style-type: disc;
}

.entry-content ol li {
    list-style-type: decimal;
}

.entry-content a {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.entry-content a:hover {
    opacity: 0.7;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
}

.entry-content blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.entry-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: #ffffff;
}

.entry-content pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.post-navigation {
    margin-top: 3rem;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.post-navigation a {
    color: #ffffff;
    text-decoration: none;
    display: block;
}

.post-navigation .nav-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-family: "Cinzel", serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.post-navigation .nav-title {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.25rem;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
}
