/* ===================================
   Global Styles
   Whistol Website
   =================================== */

/* Import Google Fonts - Already loaded in head.php */

/* Body Base Styles */
html {
  max-width: 100vw;
  width: 100%;
}

body {
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll on all viewports */
* {
  box-sizing: border-box;
}

img:not(svg),
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-dark);
  margin-bottom: var(--spacing-4);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}

/* Paragraphs */
p {
  margin-bottom: var(--spacing-4);
  color: var(--text-gray);
}

/* Links */
a {
  color: var(--accent-orange-dark);
  transition: color var(--duration-base) var(--ease-in-out);
}

a:hover {
  color: var(--accent-orange-hover);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
  position: relative;
}

/* Section Spacing */
section {
  padding-top: var(--spacing-20);
  padding-bottom: var(--spacing-20);
  overflow-x: clip;
  max-width: 100vw;
}

/* Allow sticky positioning in specific sections */
section.service-process {
  overflow: visible;
}

/* Section Headers */
.section__header {
  text-align: center;
  margin-bottom: var(--spacing-16);
}

.section__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--text-dark);
  margin-bottom: var(--spacing-4);
}

.section__subtitle {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  margin-bottom: var(--spacing-2);
}

.section__desc {
  font-size: var(--text-lg);
  color: var(--text-gray);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons - Modern Rounded Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border-radius: 50px;
  transition: all var(--duration-base) var(--ease-in-out);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--accent-orange-dark);
  color: var(--text-white);
  border-color: var(--accent-orange-dark);
  box-shadow: 0 4px 14px rgba(232, 93, 36, 0.25);
}

.btn--primary:hover {
  background: var(--accent-orange-hover);
  color: var(--text-white);
  border-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 36, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232, 93, 36, 0.25);
}

.btn--secondary {
  background: transparent;
  color: var(--accent-orange-dark);
  border-color: var(--accent-orange-dark);
}

.btn--secondary:hover {
  background: var(--accent-orange-dark);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232, 93, 36, 0.2);
}

.btn--secondary:active {
  transform: translateY(0);
}

.btn--white {
  background: var(--bg-white);
  color: var(--accent-orange-dark);
  border-color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

.btn--white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn--white:active {
  transform: translateY(0);
}

/* Large Button Variant */
.btn--large {
  padding: 18px 40px;
  font-size: var(--text-lg);
  border-radius: 50px;
}

/* Small Button Variant */
.btn--small {
  padding: 10px 24px;
  font-size: var(--text-sm);
  border-radius: 50px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-1); }
.mt-2 { margin-top: var(--spacing-2); }
.mt-4 { margin-top: var(--spacing-4); }
.mt-6 { margin-top: var(--spacing-6); }
.mt-8 { margin-top: var(--spacing-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-1); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }

/* Hide elements for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Tablet Typography */
@media (max-width: 1024px) {
  h1 {
    font-size: var(--text-4xl);
    line-height: 1.2;
  }
  
  h2 {
    font-size: var(--text-3xl);
    line-height: 1.25;
  }
  
  h3 {
    font-size: var(--text-2xl);
    line-height: 1.3;
  }
}

/* Mobile Typography */
@media (max-width: 768px) {
  body {
    font-size: var(--text-base);
    line-height: 1.6;
  }

  h1 {
    font-size: var(--text-4xl);
    line-height: 1.15;
  }
  
  h2 {
    font-size: var(--text-3xl);
    line-height: 1.2;
  }
  
  h3 {
    font-size: var(--text-2xl);
    line-height: 1.25;
  }
  
  h4 {
    font-size: var(--text-xl);
    line-height: 1.3;
  }
  
  h5 {
    font-size: var(--text-lg);
    line-height: 1.4;
  }
  
  h6 {
    font-size: var(--text-base);
    line-height: 1.5;
  }
  
  .section__title {
    font-size: var(--text-3xl) !important;
    line-height: 1.2;
  }
  
  section {
    padding-top: var(--spacing-12);
    padding-bottom: var(--spacing-12);
  }
  
  /* Improved button sizing for mobile */
  .btn {
    padding: 14px 28px;
    font-size: var(--text-base);
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }
  
  .btn--large {
    padding: 16px 32px;
    font-size: var(--text-lg);
  }

  .btn--small {
    padding: 12px 24px;
    font-size: var(--text-sm);
  }
  
  /* Better paragraph spacing */
  p {
    margin-bottom: var(--spacing-4);
  }
}
