/* =========================================================
   GLOBAL RESET & BASE STYLES
   ========================================================= */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Root HTML */
html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Body */
body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #222222;
  overflow-x: hidden;
}

/* React root */
#root {
  width: 100%;
  min-height: 100vh;
}


.seo-content {
  max-width: 1400px;   /* increase width */
  margin: 60px auto;   /* more spacing top/bottom */
  padding: 0 clamp(20px, 4vw, 60px);
}

.seo-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  color: inherit;
}

p {
  margin: 0;
}


.page-title{
  font-size: clamp(28px, 5vw, 52px);
}


/* Fluid typography */
:where(h1){
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.2;
}

h2 {
  font-size: clamp(22px, 4vw, 36px);
}

h3 {
  font-size: 20px;
}

p,
li {
  font-size: 16px;
  line-height: 1.6;
}

/* spans must inherit */
span {
  font-size: inherit;
  line-height: inherit;
}

/* =========================================================
   LINKS & BUTTONS
   ========================================================= */

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #1e40ff;
  outline-offset: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS SYSTEM
   ========================================================= */

/* MOBILE FIRST - Base styles are for mobile */

/* TABLET - 768px and up */
@media (min-width: 768px) {
  /* Tablet styles */
}

/* DESKTOP - 1024px and up */
@media (min-width: 1024px) {
  /* Desktop styles */
}

/* LARGE DESKTOP - 1200px and up */
@media (min-width: 1200px) {
  /* Large desktop styles */
}

/* MOBILE BREAKPOINTS - max-width */

/* MOBILE LARGE - Below 768px */
@media (max-width: 767px) {
  /* Large mobile styles */
}

/* MOBILE - Below 600px */
@media (max-width: 599px) {
  /* Small mobile styles */
}

/* TABLET - Below 1024px */
@media (max-width: 1023px) {
  /* Tablet and below styles */
}

/* =========================================================
   COMMON RESPONSIVE PATTERNS
   ========================================================= */

/* Grid layouts - switch to single column on mobile */
@media (max-width: 767px) {
  .responsive-grid-2 {
    grid-template-columns: 1fr !important;
  }

  .responsive-grid-3 {
    grid-template-columns: 1fr !important;
  }

  .responsive-grid-4 {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .responsive-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .responsive-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Container padding adjustments */
@media (max-width: 767px) {
  .responsive-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (min-width: 768px) {
  .responsive-container {
    padding-left: clamp(20px, 3vw, 40px) !important;
    padding-right: clamp(20px, 3vw, 40px) !important;
  }
}

/* Zoom stability - prevent layout shifts */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Ensure containers don't overflow during zoom */
body {
  width: 100%;
  overflow-x: hidden;
}

#root {
  width: 100%;
}


/* Touch-friendly controls */
button,
input,
select,
textarea {
  min-height: 44px;
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

textarea {
  resize: vertical;
}

/* =========================================================
   CONTAINERS (USE INSIDE COMPONENTS)
   ========================================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(12px, 3vw, 40px);
}

@media (min-width: 1024px) {
  .container {
    padding-inline: clamp(16px, 3vw, 48px);
  }
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
