/*
Theme Name: DodaSolutions Sourcing
Theme URI: https://dolasolutions.com/
Author: Antigravity
Author URI: https://dolasolutions.com/
Description: B2B Sourcing, Manufacturing, Inspection & Quality Services in China Landing Page Theme. Fully modular with ACF fields for homepage sections, header, footer, and Contact Form 7.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: dolasolutions
*/

:root {
  --terra-accent: #123d2e;
  --cacao-text: #123d2e;
  --cream-bg: #faf7ee;
  --pdf-forest: #123d2e;
  --pdf-gold: #b9913b;
  --pdf-cream: #faf7ee;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream-bg) !important;
  color: var(--cacao-text);
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 0;
  padding: 0;
}

body.bg-white {
  background-color: #faf7ee !important;
}

.font-editorial-serif {
  font-family: "DM Serif Display", Georgia, serif;
  letter-spacing: -0.02em;
}

/* ========================================================
   Sticky Header & Fix for WordPress Admin Bar
   ======================================================== */
header.site-header {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  height: 84px;
  background-color: rgba(255, 254, 250, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ddd8c7;
  transition: top 0.2s ease;
}

/* Khi đăng nhập admin bar WordPress xuất hiện */
body.admin-bar header.site-header {
  top: 32px !important;
}

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

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed !important;
  }
}

/* Catalog crop and matrix hover zoom */
.catalog-crop {
  overflow: hidden;
  position: relative;
  background-color: #f0ebdd;
}

.catalog-img-target {
  width: 400%;
  height: 200%;
  max-width: none;
  position: absolute;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-img-custom {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .catalog-img-target,
.group:hover .catalog-img-custom {
  transform: scale(1.04);
}

/* Grid Positions for 4x2 matrix images */
.crop-pos-0 { top: 0%; left: 0%; }
.crop-pos-1 { top: 0%; left: -100%; }
.crop-pos-2 { top: 0%; left: -200%; }
.crop-pos-3 { top: 0%; left: -300%; }
.crop-pos-4 { top: -100%; left: 0%; }
.crop-pos-5 { top: -100%; left: -100%; }
.crop-pos-6 { top: -100%; left: -200%; }
.crop-pos-7 { top: -100%; left: -300%; }

/* Background and color overrides */
.bg-white {
  background-color: #fffefa;
}

.bg-white\/95 {
  background-color: rgba(255, 254, 250, 0.95);
}

body a.bg-brand-copper,
body button.bg-brand-copper,
body a.bg-brand-orange,
body button.bg-brand-orange,
body a.bg-brand-maroon,
body button.bg-brand-maroon,
body .bg-brand-copper {
  color: #123d2e !important;
}

body .text-brand-copper,
body .text-brand-orange,
body .text-brand-maroon,
body .text-amber-accent {
  color: #80601d !important;
}

body .bg-brand-navy .text-brand-copper,
body .bg-brand-navyDark .text-brand-copper,
body .bg-slate-900 .text-brand-copper,
body .bg-slate-900 .text-brand-orange,
body .bg-brand-navy .text-brand-maroon {
  color: #d6b66b !important;
}

img[alt="Blue relief map cover"] {
  filter: hue-rotate(295deg) saturate(0.65);
}

/* Material symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* Contact Form 7 custom styling matching design */
.wpcf7-form p {
  margin-bottom: 1.25rem;
}

.wpcf7-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #123d2e;
  margin-bottom: 0.375rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #faf7ee;
  border: 1px solid #ddd8c7;
  border-radius: 0;
  color: #123d2e;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #123d2e;
  box-shadow: 0 0 0 1px #123d2e;
}

.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #123d2e;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
  background-color: #0d2c21;
}

.wpcf7-response-output {
  margin: 1rem 0 !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid #ddd8c7 !important;
  background: #faf7ee !important;
  font-size: 0.875rem !important;
}

.wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
