/*
Theme Name: Diana Valigura
Theme URI: https://dianavaligura.com
Author: Diana Valigura
Author URI: https://dianavaligura.com
Description: Clean WordPress theme for Diana Valigura website
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: diana-valigura
Tags: clean, minimal, responsive
*/

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fixel Display font-face will be added via PHP in functions.php */

body {
  font-family: "Fixel Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Headings - Tenor Sans */
h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.post-title {
  font-family: "Tenor Sans", sans-serif;
}

/* Container */
.container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header */
.site-header {
  padding: 20px 0;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  --header-height: 80px;
}

/* Adjust header position when admin bar is present */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-header.header-empty {
  padding: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-top: 17px;
  gap: 15px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

/* Back to Home Button */
.back-to-home-btn {
  background: hsl(0deg 0% 100% / 76%);
  border: 1px solid #967361;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #967361;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
  border-radius: 23px;
  white-space: nowrap;
  margin-right: auto;
}

.back-to-home-btn:hover {
  color: #967361;
  background: #ffffff8e;
  border-color: #967361;
  text-decoration: none;
}

.back-to-home-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Hamburger Menu */
.hamburger-menu-toggle {
  background: hsl(0deg 0% 100% / 76%);
  border: 1px solid #967361;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #967361;
  transition: all 0.3s ease;
  z-index: 1001;
  position: relative;
  border-radius: 0;
}

.hamburger-menu-toggle:hover {
  color: #967361;
  background: #ffffff5e;
  border-color: #967361;
}

.hamburger-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hamburger-line-top {
  top: 6px;
}

.hamburger-line-middle {
  top: 11px;
}

.hamburger-line-bottom {
  top: 16px;
}

.hamburger-menu-toggle.active .hamburger-line-top {
  top: 11px;
  transform: translateX(-50%) rotate(45deg);
}

.hamburger-menu-toggle.active .hamburger-line-middle {
  opacity: 0;
}

.hamburger-menu-toggle.active .hamburger-line-bottom {
  top: 11px;
  transform: translateX(-50%) rotate(-45deg);
}

.hamburger-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  padding-top: 30px;
}

/* Adjust menu position when admin bar is present */
.admin-bar .hamburger-menu {
  top: 32px;
  height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .hamburger-menu {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

.hamburger-menu.active {
  right: 0;
}

.hamburger-menu-content {
  padding: 0 30px 30px;
}

.hamburger-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hamburger-menu-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #eee;
}

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

.hamburger-menu-list a {
  display: block;
  padding: 15px 0;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.hamburger-menu-list a:hover {
  color: #ca998f;
}

/* Sub-menu (second level) styles */
.hamburger-menu-list .sub-menu,
.hamburger-menu-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 20px;
  border-left: 2px solid #eee;
  margin-top: 5px;
  margin-bottom: 5px;
}

.hamburger-menu-list .sub-menu li,
.hamburger-menu-list ul li {
  border-bottom: none;
  margin: 0;
  padding: 0;
}

.hamburger-menu-list .sub-menu li:last-child,
.hamburger-menu-list ul li:last-child {
  border-bottom: none;
}

.hamburger-menu-list .sub-menu a,
.hamburger-menu-list ul a {
  padding: 12px 0;
  font-size: 16px;
  color: #666;
  position: relative;
  padding-left: 15px;
}

.hamburger-menu-list .sub-menu a::before,
.hamburger-menu-list ul a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ca998f;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.hamburger-menu-list .sub-menu a:hover,
.hamburger-menu-list ul a:hover {
  color: #ca998f;
  padding-left: 15px;
}

.hamburger-menu-list .sub-menu a:hover::before,
.hamburger-menu-list ul a:hover::before {
  opacity: 1;
}

/* Third level and deeper sub-menus */
.hamburger-menu-list .sub-menu .sub-menu,
.hamburger-menu-list ul ul {
  padding-left: 25px;
  margin-left: 15px;
  border-left-color: #f0f0f0;
}

.hamburger-menu-list .sub-menu .sub-menu a,
.hamburger-menu-list ul ul a {
  font-size: 15px;
  padding: 10px 0;
  padding-left: 15px;
}

.hamburger-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.hamburger-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Ensure content sections can be overlapped by header and menu */
.site-main,
#main {
  position: relative;
  z-index: 1;
}

/* Remove top padding from first section to allow header overlap */
.site-main > *:first-child,
#main > *:first-child {
  margin-top: 0;
  padding-top: 0;
}

/* Elementor sections - allow header overlap */
.elementor-section:first-of-type,
.elementor-location-header + .elementor-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.elementor-top-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.site-title {
  font-size: 2em;
  font-weight: bold;
  margin: 0;
}

.site-title a {
  text-decoration: none;
  color: #333;
}

/* Main content */
.site-main {
  padding: 40px 0;
  margin-top: 0;
}

/* Posts */
.post {
  margin-bottom: 40px;
}

.post-title {
  font-size: 2em;
  margin-bottom: 10px;
}

.post-title a {
  text-decoration: none;
  color: #333;
}

.post-meta {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.post-content {
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  background-color: #ca998f;
  padding: 20px 0;
  color: #fff;
  min-height: 76px;
  display: flex;
  width: 100%;
  align-items: center;
  font-size: 15px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.footer-copyright {
  flex: 0 0 auto;
}

.footer-copyright p {
  margin: 0;
  color: #fff;
}

.footer-links {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 200px;
}

.footer-social {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.liqpay-icon {
  display: flex;
  align-items: center;
  margin-right: 0;
}

.liqpay-icon img {
  height: 33px;
  width: auto;
  display: block;
  background: #fff;
}

.social-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
  align-items: center;
}

.social-links li {
  margin: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 0.8;
}

.social-links img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.footer-links {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 200px;
}

.footer-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  align-items: center;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.footer-menu a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #ca998f;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  padding: 0;
  box-shadow: 0 4px 12px rgba(202, 153, 143, 0.3);
  pointer-events: none;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  background-color: #b8877d;
  box-shadow: 0 6px 16px rgba(202, 153, 143, 0.4);
  transform: translateY(-2px);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover .scroll-to-top-icon {
  transform: translateY(-2px);
}

.scroll-to-top-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  z-index: 1;
}

.scroll-to-top-progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3;
}

.scroll-to-top-progress-fill {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.1s ease;
}

/* Elementor Text Editor Widget */
.elementor-widget-text-editor p {
  margin-bottom: 1em;
  margin-top: 0;
}

.elementor-widget-text-editor p:first-child {
  margin-top: 0;
}

.elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4,
.elementor-widget-text-editor h5,
.elementor-widget-text-editor h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.elementor-widget-text-editor h1:first-child,
.elementor-widget-text-editor h2:first-child,
.elementor-widget-text-editor h3:first-child,
.elementor-widget-text-editor h4:first-child,
.elementor-widget-text-editor h5:first-child,
.elementor-widget-text-editor h6:first-child {
  margin-top: 0;
}

.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 2em;
}

.elementor-widget-text-editor li {
  margin-bottom: 0.5em;
}

.elementor-widget-text-editor li:last-child {
  margin-bottom: 0;
}

.elementor-widget-text-editor blockquote {
  margin: 1.5em 0;
  padding-left: 1.5em;
  border-left: 3px solid #967361;
}

.elementor-widget-text-editor img {
  margin: 1em 0;
}

.elementor-widget-text-editor a {
  text-decoration: underline;
}

.elementor-widget-text-editor > *:first-child {
  margin-top: 0;
}

.elementor-widget-text-editor > *:last-child {
  margin-bottom: 0;
}

/* Contact Form 7 Styles */
.wpcf7-form {
  background-color: #f5f0e8;
  padding: 0;
  border-radius: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact form title styling - if title appears before form */
.wpcf7-form-container h2,
.wpcf7-form-container h1,
.contact-form-title {
  text-align: center;
  color: #967361;
  font-family: "Tenor Sans", sans-serif;
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 400;
}

.wpcf7-form p {
  margin-bottom: 20px;
}

.wpcf7-form p:last-of-type {
  margin-bottom: 0;
}

.wpcf7-form label {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 400;
  line-height: 1.5;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 0;
  font-size: 16px;
  font-family: "Fixel Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #333;
  background-color: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: #967361;
}

.wpcf7-text,
.wpcf7-email {
  height: auto;
  line-height: 1.5;
}

.wpcf7-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: "Fixel Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wpcf7-submit {
  background-color: transparent;
  border: 1px solid #ccc;
  color: #333;
  padding: 12px 30px;
  font-size: 16px;
  font-family: "Fixel Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  margin-top: 10px;
}

.wpcf7-submit:hover {
  background-color: #fff;
  border-color: #967361;
  color: #967361;
}

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

.wpcf7-spinner {
  display: inline-block;
  margin-left: 10px;
}

.wpcf7-response-output {
  margin-top: 20px;
  padding: 15px;
  border-radius: 0;
  font-size: 14px;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-aborted,
.wpcf7-response-output.wpcf7-spam,
.wpcf7-response-output.wpcf7-validation-errors {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

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

.wpcf7-form-control.wpcf7-not-valid {
  border-color: #dc3545;
}

.wpcf7-form-control.wpcf7-not-valid:focus {
  border-color: #dc3545;
}

/* Hide hidden fields container */
.wpcf7-form .hidden-fields-container {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .site-title {
    font-size: 1.5em;
  }

  .post-title {
    font-size: 1.5em;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-copyright,
  .footer-social,
  .footer-links {
    width: 100%;
    justify-content: center;
  }

  .footer-menu {
    flex-direction: column;
    gap: 10px;
  }

  .scroll-to-top {
    width: 48px;
    height: 48px;
    bottom: 90px;
    right: 20px;
  }

  .scroll-to-top-icon {
    width: 20px;
    height: 20px;
  }
}
