/*
  Theme Name: SiteKrafter Pro
  Theme URI: https://sitekrafter.com
  Version: 6.0.2
  Template: Divi
  Author: Mak
  Author URI: https://diviuniversity.com
  Description: SiteKrafter Pro helps you build websites faster, with better structure, consistency, and scalability.
  Website: sitekrafter-pro
*/

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


html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0.4rem;
  object-fit: cover;
  vertical-align: middle;
}

.hidden {
  display: none;
}

/* ======================== */
/* RESETS & UTILITIES       */
/* ======================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  text-rendering: optimizelegibility;
}

/* Advanced Typography */
.richtext {
  font-feature-settings: 'liga' 1, 'kern' 1;
  font-kerning: normal;
  hanging-punctuation: first;
}

.richtext p + p {
  margin-top: 1.5em;
}

.richtext h2 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.richtext blockquote {
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: 2rem;
  margin-left: 0;
  margin-right: 0;
}

.richtext ul, .richtext ol {
  padding-left: 2.5rem;
}

.richtext li + li {
  margin-top: 0.5em;
}

.et_pb_text {
  margin: 0 !important;
}

.no-padding {
  padding: 0 !important;
}

button, .et_pb_button {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* =================== */
/* TYPOGRAPHY          */
/* =================== */

/* Heading Scale */

.sk h1 {
  font-size: clamp(2.88rem, calc(4.35vw + 1.49rem), 7.58rem);
  line-height: 1.1em; /* Tighter for large headings */
  letter-spacing: -1px;
  font-weight: 800; /* Extra Bold for primary heading */
}

.sk h2 {
  font-size: clamp(2.56rem, calc(2.89vw + 1.64rem), 5.68rem);
  line-height: 1.15em; /* Slightly tighter than original */
  font-weight: 700; /* Bold for secondary heading */
}

.sk h3 {
  font-size: clamp(2.28rem, calc(1.84vw + 1.69rem), 4.26rem);
  line-height: 1.2em; /* Kept from original */
  font-weight: 700; /* Bold */
}

.sk h4 {
  font-size: clamp(2.02rem, calc(1.09vw + 1.68rem), 3.2rem);
  line-height: 1.25em; /* Slightly more spacing than original */
  font-weight: 600; /* Semi-bold */
}

.sk h5 {
  font-size: clamp(1.8rem, calc(0.55vw + 1.62rem), 2.4rem);
  line-height: 1.3em; /* More spacing for smaller headings */
  font-weight: 600; /* Semi-bold */
}

.sk h6 {
  font-size: clamp(1.6rem, calc(0.19vw + 1.54rem), 1.8rem);
  line-height: 1.35em; /* Most spacing for smallest headings */
  font-weight: 600; /* Semi-bold to maintain hierarchy at smallest size */
}


/* Text Elements */
.sk p, .sk a, .sk li {
  font-size: clamp(1.6rem, calc(0.19vw + 1.54rem), 1.8rem);
  line-height: clamp(2.38rem, calc(2.38rem + ((1vw - 0.48rem) * 0.3386)), 2.8rem);
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-wrap: pretty;
}

/* Content Container */
.sk-content {
  font-size: clamp(1.6rem, calc(0.19vw + 1.54rem), 1.8rem);
  line-height: clamp(2.38rem, calc(2.38rem + ((1vw - 0.48rem) * 0.3386)), 2.8rem);
  max-width: 70ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: pretty;
}

/* Pre-header styles */
.pre-header {
  letter-spacing: 0.2em; /* Reduced from 1em for better readability */
  text-transform: uppercase;
  font-size: 1.28rem; /* Adjusted to match your 62.5% base font size */
}

.pre-header-b {
  letter-spacing: 0.2em; /* Reduced from 1em for better readability */
  text-transform: uppercase;
  font-size: 1.28rem; /* Adjusted to match your 62.5% base font size */
  display: inline-block; /* Allows the element to size to content */
  padding: 0.5em 1em; /* Balanced padding for pill shape */
  border: 1px solid rgba(0, 0, 0, 0.12); /* Light grey border with opacity */
  border-radius: 100px; /* Large value creates pill shape */
  font-weight: 500; /* Medium weight for better visibility */
  line-height: 1; /* Tighter line height for contained text */
  color: rgba(0, 0, 0, 0.75); /* Slightly muted text for pre-header */
  background-color: rgba(0, 0, 0, 0.03); /* Very subtle background */
  margin-bottom: 0.75em; /* Space between pre-header and main heading */
}


/* ===================== */
/* CUSTOM HEADINGS       */
/* ===================== */

.heading-5xl {
  font-size: clamp(9.54rem, calc(20.07vw + 4.84rem), 28.8rem);
  letter-spacing: -1px;
  line-height: clamp(7.2rem, calc(7.2rem + ((1vw - 0.48rem) * 6.2)), 12rem);
  text-wrap: balance;
}

.heading-4xl {
  font-size: clamp(7.63rem, calc(12.55vw + 4.27rem), 20.36rem);
  letter-spacing: -1px;
  line-height: clamp(7.2rem, calc(7.2rem + ((1vw - 0.48rem) * 6.2)), 12rem);
  text-wrap: balance;
}

.heading-3xl {
  font-size: clamp(6.1rem, calc(7.84vw + 3.76rem), 14.4rem);
  letter-spacing: -1px;
  line-height: clamp(7.2rem, calc(7.2rem + ((1vw - 0.48rem) * 6.2)), 12rem);
  text-wrap: balance;
}

.heading-2xl {
  font-size: clamp(4.88rem, calc(4.9vw + 3.31rem), 10.18rem);
  letter-spacing: -1px;
  line-height: clamp(6rem, calc(6rem + ((1vw - 0.48rem) * 5)), 10rem);
  text-wrap: balance;
}

.heading-xl {
  font-size: clamp(3.91rem, calc(3.05vw + 2.93rem), 7.2rem);
  letter-spacing: -1px;
  line-height: clamp(5rem, calc(5rem + ((1vw - 0.48rem) * 4)), 8.5rem);
  text-wrap: pretty;
}

.heading-l {
  font-size: clamp(3.5rem, calc(3.5rem + ((1vw - 0.48rem) * 2.8217)), 6rem);
  line-height: clamp(4.2rem, calc(4.2rem + ((1vw - 0.48rem) * 3.386)), 7.2rem);
  letter-spacing: -1px;
  text-wrap: pretty;
}

.heading-m {
  font-size: clamp(2.4rem, 2.2vw, 3rem);
  letter-spacing: 0px;
  line-height: 1.3;
  text-wrap: balance;
}

.heading-s {
  font-size: clamp(1.8rem, 1.6vw, 2.4rem);
  letter-spacing: 0px;
  line-height: 1.4;
  text-wrap: balance;
}


/* ================== */
/* TEXT UTILITIES     */
/* ================== */
/* Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }

/* Alignment */
.left { text-align: left !important; }
.center { text-align: center !important; }
.right { text-align: right !important; }
.justify { text-align: justify !important; }

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  /* No width specified - will take the natural width of its content */
}

/* ================== */
/* FLUID SECTIONS   */
/* ================== */
/* Responsive Sections */

/* Section Padding Based on Perfect Fourth Scale (1:1.33)
 *
 * Base value: 4rem (vertical), 2.5rem (horizontal)
 * Each step multiplies by 1.33 (4:3 ratio)
 */
  
/* Small Section: Base size */
.section-s {
  padding: clamp(4rem, 8vw, 5rem) clamp(2.5rem, 5vw, 3.125rem);
}

/* Medium Section: Base × 1.33 */
.section-m {
  padding: clamp(5.32rem, 10vw, 6.65rem) clamp(3.33rem, 6vw, 4.16rem); 
}

/* Large Section: Base × 1.33² (1.77) */
.section-l {
  padding: clamp(7.08rem, 12vw, 8.85rem) clamp(4.43rem, 7vw, 5.54rem);
}

/* Hero Section: Base × 1.33³ (2.35) */
.section-xl {
  padding: clamp(9.4rem, 14vw, 11.75rem) clamp(5.88rem, 8vw, 7.35rem);
}

/* Fullscreen section with centered content for Divi */
.fullscreen {
  min-height: 100vh !important;
  display: flex !important;
	 flex-direction: column !important;
  justify-content: center !important;
  
}


/* Flexbox System */
.flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.flexbox {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.flex > * {
  flex: 1;
  min-width: 300px; /* Reduced from 400px for better mobile compatibility */
}

@media (max-width: 767px) {
  .flex > * {
    min-width: 100%; /* Full width on mobile */
  }
}

@media (max-width: 1024px) {
  .flexbox { flex-direction: column; }
}

/* Gap Sizes */
.gap-xs { gap: clamp(0.25rem, 0.5vw, 0.5rem); }
.gap-s { gap: clamp(0.5rem, 1vw, 1rem); }
.gap-m { gap: clamp(1rem, 1.5vw, 1.5rem); }
.gap-l { gap: clamp(1.5rem, 2vw, 2rem); }
.gap-xl { gap: clamp(2rem, 3vw, 3rem); }


/* Shadow System */
.shadow-s {
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05),
              0px 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-m {
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05),
              0px 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow-l {
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.05),
              0px 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0px 20px 25px rgba(0, 0, 0, 0.05),
              0px 10px 10px rgba(0, 0, 0, 0.1);
}

.shadow-inset {
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-none { box-shadow: none; }

/* Border Radius */
.radius-xs { border-radius: clamp(0.4rem, calc(0vw + 0.4rem), 0.4rem); }
.radius-s { border-radius: clamp(0.6rem, calc(-0.19vw + 0.86rem), 0.8rem); }
.radius-m { border-radius: clamp(1rem, calc(-0.19vw + 1.26rem), 1.2rem); }
.radius-l { border-radius: clamp(1.6rem, calc(-0.37vw + 2.12rem), 2rem); }
.radius-xl { border-radius: clamp(2.6rem, calc(-0.56vw + 3.38rem), 3.2rem); }
.radius-full { border-radius: 999rem; }

/* ======================== */
/* COMPONENT STYLES         */
/* ======================== */

/* Notices */
.notice, .warning, .success, .error {
  font-size: 1.6rem;
  padding: 2rem;
  max-width: 65ch;
  border-radius: 0.4rem;
  line-height: 1.5;
  margin: 1rem 0;
}

.notice {
  background-color: #BDD1F2;
  border: 2px solid #8FBAFF;
}

.warning {
  background-color: #F7FFA0;
  border: 2px solid #DEF300;
}

.success {
  background-color: #9DFF98;
  border: 2px solid #65FF5D;
}

.error {
  background-color: #FF9F9F;
  border: 2px solid #FF6F6F;
}


/* ====================== */
/* INTERACTIVE STATES     */
/* ====================== */

.hover-dark:hover {
  filter: brightness(80%); /* Darkens the element by 20% */
  transition: filter 0.3s ease-in-out;
}

.hover-opacity:hover {
  opacity: 0.8; /* 80% opacity, 20% transparency */
  transition: opacity 0.3s ease-in-out;
}

.hover-border:hover {
  border: 1.5px solid #d3d3d3; /* Light grey border */
  border-radius: 0.4rem; /* Rounded corners */
  transition: border 0.1s ease-in-out;
}

.hover-scale:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.hover-shadow:hover{
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05),
              0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
  transition: box-shadow 0.3s ease-in-out;
}


/* ================== */
/* UTILITY CLASSES */
/* ================== */
/* Font Weights */
.font-100 {
  font-weight: 100;
}
.font-200 {
  font-weight: 200;
}
.font-300 {
  font-weight: 300;
}
.font-400 {
  font-weight: 400;
}
.font-500 {
  font-weight: 500;
}
.font-600 {
  font-weight: 600;
}
.font-700 {
  font-weight: 700;
}
.font-800 {
  font-weight: 800;
}
.font-900 {
  font-weight: 900;
}

/* Text Sizes - Fixed .text-xs */
.text-xs { font-size: clamp(1.01rem, calc(0.23vw + 0.93rem), 1.26rem); line-height: 1.4; }
.text-s { font-size: clamp(1.42rem, calc(-0.07vw + 1.44rem), 1.35rem); line-height: 1.5; }
.text-m { font-size: clamp(1.6rem, calc(0.19vw + 1.54rem), 1.8rem); line-height: 1.6; }
.text-l { font-size: clamp(1.8rem, calc(0.55vw + 1.62rem), 2.4rem); line-height: 1.6; }
.text-xl { font-size: clamp(2.02rem, calc(1.09vw + 1.68rem), 3.2rem); line-height: 1.6; }
.text-2xl { font-size: clamp(2.28rem, calc(1.84vw + 1.69rem), 4.26rem); line-height: 1.6; }
.text-3xl { font-size: clamp(2.56rem, calc(2.89vw + 1.64rem), 5.68rem); line-height: 1.6; }
.text-4xl { font-size: clamp(2.88rem, calc(4.35vw + 1.49rem), 7.58rem); line-height: 1.6; }

/* Margins */
.margin-top-xs { margin-top: clamp(0.5rem, 1vw, 1rem) !important; }
.margin-bottom-xs { margin-bottom: clamp(0.5rem, 1vw, 1rem) !important; }
.margin-top-s { margin-top: clamp(1rem, 2vw, 1.5rem) !important; }
.margin-bottom-s { margin-bottom: clamp(1rem, 2vw, 1.5rem) !important; }
.margin-top-m { margin-top: clamp(2rem, 3vw, 3rem) !important; }
.margin-bottom-m { margin-bottom: clamp(2rem, 3vw, 3rem) !important; }
.margin-top-l { margin-top: clamp(4rem, 5vw, 6rem) !important; }
.margin-bottom-l { margin-bottom: clamp(4rem, 5vw, 6rem) !important; }
.margin-top-xl { margin-top: clamp(6rem, 7vw, 8rem) !important; }
.margin-bottom-xl { margin-bottom: clamp(6rem, 7vw, 8rem) !important; }

/* Paddings */
.padding-xs { padding: clamp(0.5rem, 1vw, 1rem) !important; }
.padding-s { padding: clamp(1rem, 2vw, 1.5rem) !important; }
.padding-m { padding: clamp(2rem, 3vw, 3rem) !important; }
.padding-l { padding: clamp(4rem, 5vw, 6rem) !important; }
.padding-xl { padding: clamp(6rem, 7vw, 8rem) !important; }

/* Background Colors */
.light { background-color: #e5e7eb; }
.lighter { background-color: #fafafa; }
.dark { background-color: #27272a; }
.darker { background-color: #09090b; }

/* Opacity Classes - Renamed for clarity */
.opacity-20 { opacity: 0.2 !important; }
.opacity-30 { opacity: 0.3 !important; }
.opacity-40 { opacity: 0.4 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-60 { opacity: 0.6 !important; }
.opacity-70 { opacity: 0.7 !important; }
.opacity-80 { opacity: 0.8 !important; }

/* Glass effect */
.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.4rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  color: #222222;
}

/* ================== */
/* ACCESSIBILITY      */
/* ================== */

/* General Focus Styles - Removed redundant transition */
:focus-visible {
  outline: 3px solid rgba(0, 123, 255, 0.8);
  outline-offset: 3px;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Skip Navigation */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 10px;
  background: #007bff;
  color: white;
  padding: 10px 15px;
  font-size: 1.4rem;
  text-decoration: none;
  border-radius: 5px;
  z-index: 1000;
  transition: top 0.3s ease-in-out;
}

.skip-nav:focus {
  top: 10px;
  outline: 3px solid yellow;
}

/* Button Styles */
.button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.button:focus,
.button:hover {
  background: #0056b3;
  outline: 3px solid rgba(255, 255, 255, 0.6);
}

/* Dropdown Navigation */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: #007bff;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: none;
  min-width: 150px;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #007bff;
  color: #fff;
}

.dropdown-toggle:focus + .dropdown-menu,
.dropdown-menu:focus-within {
  display: block;
}

/* Modal Accessibility */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  display: none;
  z-index: 1000;
}

.modal.open {
  display: block;
}

.modal:focus {
  outline: 3px solid #007bff;
}

/* Keyboard Navigation Enhancements */
.keyboard-nav :focus {
  outline: 3px solid rgba(0, 123, 255, 0.8);
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.keyboard-nav a:focus,
.keyboard-nav button:focus,
.keyboard-nav input:focus {
  outline: 3px solid rgba(0, 123, 255, 0.8);
}

/* Accessible Forms */
input, select, textarea {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1.4rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #007bff;
  outline: 3px solid rgba(0, 123, 255, 0.8);
}

/* Close Modal with Keyboard */
.close-btn {
  background: red;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.close-btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.6);
}

/* ================== */
/* EDITOR OVERRIDES */
/* ================== */
.et-db #et-boc .et-l .et-fb-modal--with-header-dropdown .et-fb-font-icon-filter,
.et-db #et-boc .et-l .et-fb-modal--with-header-dropdown .et-fb-options-filter {
  top: 0;
  margin-top: 0;
}

