/*
Theme Name: Calvosa
Theme URI: https://test.calvosaorganization.com
Template: Divi
Author: Calvosa Organization
Description: Custom theme for Calvosa Organization.
Version: 1.0.0
Text Domain: calvosa
*/

:root {
  --sand: #f4efe7;
  --ink: #141414;
  --forest: #0f3a3f;
  --forest-dark: #0a2a2e;
  --warm-gray: #e9e2d8;
  --muted: #6c6c6c;
}

body {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  letter-spacing: 0.01em;
}

h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: 0.08em;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: #000;
  border-bottom: none;
  position: relative;
  overflow: visible;
  z-index: 1030;
}

.site-header .navbar {
  background: #000;
  overflow: visible;
  min-height: clamp(88px, 11vw, 128px);
  padding-top: 0;
  padding-bottom: 0;
}

.site-header .container {
  position: relative;
}

.site-header .navbar-brand {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: min(46vw, 280px);
  padding: 0;
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  z-index: 2;
}

.site-header .custom-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  filter: none;
}

.site-header .nav-link {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: #fff;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header .navbar-nav > .menu-item > .nav-link {
  font-weight: 700;
}

.site-header .btn-calvosa {
  font-weight: 700;
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.site-header .btn-calvosa:hover,
.site-header .btn-calvosa:focus {
  background: var(--forest-dark);
  color: #fff;
  border-color: var(--forest-dark);
}

.site-header .navbar-nav {
  gap: 0.75rem;
}

.site-header .nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.site-header .menu-item-has-children {
  position: relative;
}

.site-header .sub-menu {
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.site-header .sub-menu .menu-item {
  padding: 0;
}

.site-header .sub-menu a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-header .sub-menu a:hover,
.site-header .sub-menu a:focus {
  color: var(--forest);
}

.site-header .menu-item-has-children:hover > .sub-menu,
.site-header .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 0.15rem;
}

.btn-calvosa {
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 1.5rem;
  border: 1px solid #fff;
}

.btn-calvosa:hover {
  background: var(--warm-gray);
  border-color: var(--warm-gray);
  color: var(--ink);
}

.btn-calvosa-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-calvosa-light:hover {
  background: var(--warm-gray);
  border-color: var(--warm-gray);
  color: var(--ink);
}

.hero-section {
  position: relative;
  min-height: 70vh;
  max-height: 1000px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 1) 100%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  width: 100%;
  padding: 6rem 0 3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: 0.06em;
  margin-bottom: 0;
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-sub {
  margin-top: 0.5rem;
  font-size: 0.28em;
  letter-spacing: 0.28em;
}

.page-hero {
  background: linear-gradient(180deg, #0f3a3f 0%, #0a2a2e 100%);
  color: #fff;
}

.page-banner {
  position: relative;
  line-height: 0;
  overflow: hidden;
}

.page-banner__img {
  display: block;
  width: 100%;
  height: clamp(280px, 47vw, 620px);
  object-fit: cover;
  object-position: center center;
}

.page-banner--video {
  background: #000;
}

.page-banner__video {
  display: block;
  width: 100%;
  max-height: min(62vw, 720px);
  background: #000;
}

.page-title {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.page-title--banner {
  color: #fff;
  max-width: 14ch;
}

.page-hero--featured {
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.page-title--featured {
  color: #d39d30;
}

.page-content-section {
  background: var(--sand);
}

.page-entry--standard {
  max-width: 960px;
}

.prose-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.prose-content p,
.prose-content ul,
.prose-content ol {
  margin-bottom: 1.1rem;
}

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

.page-entry--builder .entry-content {
  background: var(--sand);
}

.page-entry--builder .et_pb_section:first-child {
  margin-top: 0;
}

.intro-section {
  background: #000;
  color: #f7f2ea;
}

.intro-image {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.intro-kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  margin-bottom: 1rem;
  color: #f7f2ea;
}

.intro-title {
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.intro-text {
  color: rgba(247, 242, 234, 0.8);
  line-height: 1.8;
}

.gallery-placeholder {
  line-height: 0;
}

.gallery-placeholder img {
  display: block;
}

.portfolio-section {
  background: #000;
  color: #f7f2ea;
}

.section-title {
  text-transform: uppercase;
  margin-bottom: 0;
}

.portfolio-card {
  background: transparent;
}

.portfolio-link {
  display: block;
}

.portfolio-media {
  position: relative;
}

.portfolio-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(247, 242, 234, 0.85);
  text-shadow: 0 1px 0 rgba(20, 20, 20, 0.45);
  pointer-events: none;
}

.portfolio-caption {
  padding: 1rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.portfolio-caption .portfolio-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.portfolio-caption .portfolio-location {
  color: inherit;
  margin-top: 0.2rem;
  display: block;
  font-size: 0.9rem;
}

.feature-section {
  background: #000;
  color: #f7f2ea;
  background-image: var(--feature-bg, none);
  background-size: cover;
  background-position: center;
}

.feature-panel {
  background: rgba(244, 239, 231, 0.9);
  color: var(--ink);
  padding: 8rem 2.5rem;
}


.feature-panel .feature-title {
  color: var(--ink);
}

.feature-panel .feature-text {
  color: var(--ink);
}

.feature-title {
  text-transform: uppercase;
}

.feature-text {
  color: rgba(247, 242, 234, 0.8);
  line-height: 1.8;
}

.feature-image {
  min-height: 320px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

.about-section {
  background: #000;
  color: #f7f2ea;
}

.about-shell {
  background: #000;
  padding: 1.25rem;
}

.about-row {
  background-image: var(--about-row-bg, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.about-panel {
  position: relative;
  padding: 6.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  overflow: hidden;
}

.about-kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  margin-bottom: 1.25rem;
  color: rgba(20, 20, 20, 0.75);
}

.about-title {
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.about-text {
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 0;
}

.about-panel .btn-calvosa {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.about-panel .btn-calvosa:hover {
  background: var(--forest-dark);
  border-color: var(--forest-dark);
  color: #fff;
}

.about-panel h2,
.about-panel p {
  text-shadow: none;
}

.about-media {
  min-height: 420px;
}

.about-media img {
  display: block;
}

.testimonials-section {
  background: #000;
  color: #f7f2ea;
  position: relative;
  overflow: hidden;
  padding-bottom: 10rem;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--testimonial-bg, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 260px auto;
  opacity: 0.68;
  filter: brightness(0.72);
  pointer-events: none;
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

.testimonial-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.testimonials-section .carousel {
  position: relative;
}

.testimonial-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #f7f2ea;
  font-size: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testimonial-content {
  max-width: 720px;
}


.testimonial-quote {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.testimonial-name {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.testimonial-location {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(247, 242, 234, 0.7);
  margin-bottom: 0;
}

.process-section {
  background: #000;
  color: #f7f2ea;
}

.process-image {
  min-height: 320px;
}

.process-panel {
  background: #000;
  color: #f7f2ea;
}

.process-kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  margin-bottom: 1rem;
  color: #fff;
}

.process-text {
  color: #f7f2ea;
  line-height: 1.8;
}

.site-footer {
  background: #000;
  color: #f7f2ea;
  padding: 3.5rem 0 2rem;
}

.site-footer .footer-brand {
  font-family: "Playfair Display", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.3rem;
}

.site-footer .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-footer .custom-logo {
  max-height: 84px;
  width: auto;
  height: auto;
}

.site-footer p {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-contact p {
  color: #fff;
  letter-spacing: 0.14em;
  font-size: 0.65rem;
}

.footer-links a {
  color: #fff;
  display: inline-block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact-org {
  font-weight: 700;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  border-radius: 0;
  color: #fff;
  text-decoration: none;
}

.footer-social-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.footer-socials a:hover {
  color: #fff;
}

.portfolio-index-section {
  background: linear-gradient(180deg, #fff 0%, #f6f2eb 100%);
}

.portfolio-index-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.portfolio-index-kicker {
  margin-bottom: 0.85rem;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.portfolio-index-heading {
  margin-bottom: 0.9rem;
  color: #d39d30;
  text-transform: uppercase;
  text-align: center;
}

.portfolio-index-copy {
  margin: 0;
  color: #5b5b5b;
  line-height: 1.8;
}

.portfolio-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.25rem;
}

.portfolio-index-card {
  min-width: 0;
}

.portfolio-index-card__link {
  display: block;
}

.portfolio-index-card__media {
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.portfolio-index-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.portfolio-index-card__footer {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.portfolio-index-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.8rem 1.4rem;
  background: #d39d30;
  border: 1px solid #d39d30;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.portfolio-index-card__link:hover .portfolio-index-card__image,
.portfolio-index-card__link:focus-visible .portfolio-index-card__image {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.portfolio-index-card__link:hover .portfolio-index-card__button,
.portfolio-index-card__link:focus-visible .portfolio-index-card__button {
  background: #b7861f;
  border-color: #b7861f;
  transform: translateY(-2px);
}

.contact-page-section {
  background: linear-gradient(180deg, #f8f4ee 0%, #f1ebe1 100%);
}

.contact-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-page-intro {
  padding-top: 0.5rem;
}

.contact-page-kicker {
  margin-bottom: 0.8rem;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.contact-page-heading {
  margin-bottom: 1rem;
  color: #d39d30;
  text-transform: uppercase;
}

.contact-page-copy {
  margin-bottom: 1.5rem;
  color: #4f4f4f;
  line-height: 1.8;
}

.contact-page-details {
  display: grid;
  gap: 0.45rem;
}

.contact-page-details p {
  margin: 0;
  color: #18363d;
  line-height: 1.5;
}

.contact-page-details a {
  color: inherit;
}

.contact-page-form-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

.contact-page-form-card .calvosa-contact-form {
  max-width: none !important;
}

.contact-page-form-card .cctf-field {
  margin-bottom: 1rem;
}

.contact-page-form-card input,
.contact-page-form-card select,
.contact-page-form-card textarea {
  border: 1px solid rgba(20, 20, 20, 0.16) !important;
  border-radius: 0 !important;
  padding: 0.85rem 0.9rem !important;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  color: #1f1f1f;
}

.contact-page-form-card button[type="submit"] {
  background: var(--forest) !important;
  color: #fff !important;
  border: 1px solid var(--forest) !important;
  border-radius: 0 !important;
  padding: 0.9rem 1.6rem !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-page-form-card button[type="submit"]:hover,
.contact-page-form-card button[type="submit"]:focus {
  background: var(--forest-dark) !important;
  border-color: var(--forest-dark) !important;
}

@media (max-width: 991px) {
  .portfolio-index-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 980px) {
  .contact-page-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .portfolio-index-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-index-intro {
    margin-bottom: 2rem;
  }
}

.footer-meta {
  margin-top: 2rem;
  border-top: 1px solid rgba(247, 242, 234, 0.15);
  padding-top: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer-meta-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-meta-link {
  color: #fff;
  text-decoration: none;
}

.footer-meta-sep {
  color: rgba(247, 242, 234, 0.4);
}

.footer-meta-link:hover {
  color: #fff;
}

@media (max-width: 991.98px) {
  .site-header .custom-logo-link {
    position: static;
    transform: none;
    width: min(46vw, 174px);
    max-width: calc(100% - 76px);
  }

  .site-header .navbar-toggler {
    margin-left: auto;
    position: relative;
    z-index: 3;
  }

  .site-header .navbar-collapse {
    flex-basis: 100%;
  }

  .site-header .nav-link {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }

  .site-header .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: transparent;
  }

  .site-header .sub-menu a {
    padding-left: 0;
  }

  body.wp-child-theme-calvosa .site-header .navbar-collapse .sub-menu a.nav-link {
    color: #fff !important;
  }

  body.wp-child-theme-calvosa .site-header .navbar-collapse .sub-menu a.nav-link:hover,
  body.wp-child-theme-calvosa .site-header .navbar-collapse .sub-menu a.nav-link:focus {
    color: rgba(255, 255, 255, 0.8) !important;
  }

  .btn-calvosa {
    margin-top: 0.75rem;
  }

  .hero-overlay {
    padding: 4.5rem 0;
  }

  .testimonial-shell {
    flex-direction: column;
  }

  .about-panel {
    padding: 4.25rem 1.75rem;
  }

  .about-media {
    min-height: 320px;
  }
}
