/**
 * Web-Smith Theme - Minimal CSS
 * Elementor handles colors, fonts, buttons globally
 */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Site Layout */
.ws-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ws-site-main {
  flex: 1;
}

.elementor-page .ws-site-main {
  padding: 0;
}

/* Container */
.ws-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header - Fallback */
.ws-site-header {
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}
.ws-site-header .ws-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.ws-header-sticky {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
}

.ws-site-branding .custom-logo-link img {
  max-height: 60px;
  width: auto;
}

.ws-site-title {
  font-size: 24px;
  font-weight: 700;
}

.ws-main-navigation ul {
  display: flex;
  align-items: center;
  gap: 24px;
}
@media (max-width: 768px) {
  .ws-main-navigation ul {
    display: none;
  }
}

.ws-main-navigation a {
  display: block;
  padding: 8px 0;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.ws-main-navigation a:hover {
  opacity: 0.7;
}

.ws-main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 200px;
  padding: 16px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
}
.ws-main-navigation li:hover > .sub-menu {
  display: flex;
}

.ws-menu-toggle {
  display: none;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
@media (max-width: 768px) {
  .ws-menu-toggle {
    display: block;
  }
}
.ws-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  margin: 5px 0;
}

/* Footer - Fallback */
.ws-site-footer {
  padding: 48px 0;
}
.ws-site-footer a {
  transition: opacity 0.15s ease;
}
.ws-site-footer a:hover {
  opacity: 0.7;
}

.ws-footer-content ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.ws-footer-copyright {
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
}
.ws-footer-copyright p {
  margin: 0;
}

/* Section spacing */
.ws-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (max-width: 768px) {
  .ws-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Utilities */
.ws-text-center { text-align: center; }
.ws-mb-sm { margin-bottom: 16px; }
.ws-mb-md { margin-bottom: 24px; }
.ws-mb-lg { margin-bottom: 32px; }
.ws-mb-xl { margin-bottom: 48px; }

@media (max-width: 768px) {
  .ws-hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .ws-hide-desktop { display: none !important; }
}

/* WordPress Alignment */
.alignwide,
.alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Form 7 */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
}
.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px;
  border-radius: 4px;
}

/* Sticky Header - Minimal (style in Elementor with Custom CSS) */
.ws-sticky-header--active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.ws-sticky-header-placeholder {
  visibility: hidden;
  pointer-events: none;
}

/* WordPress Admin Bar Offset */
.admin-bar .ws-sticky-header--active {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .ws-sticky-header--active {
    top: 46px;
  }
}

/* Screen Reader */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.screen-reader-text:focus {
  background-color: #f5f5f5;
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: 5px;
  padding: 16px 24px;
  top: 5px;
  width: auto;
  z-index: 100000;
}
