/* =============================================
   COMMON.CSS - Shared styles across all pages
   ============================================= */
/* ----------------- CSS Variables ----------------- */

:root {
  --primary-light-color: #ff8b3e;
  --primary-color: #ff6600;
  --primary-dark-color: #c85000;

  --secondary-light-color: #1368ca;
  --secondary-color: #0057b8;
  --secondary-dark-color: #084182;

  --bg-color: #fcfcfc;

  --text-color: #333333;
  --text-color-inverted: #fcfcfc;

  --box-shadow-sm: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  --box-shadow-md: rgba(0, 0, 0, 0.1) 0 2px 4px;
  --box-shadow-lg: rgba(0, 0, 0, 0.1) 0 4px 12px;

  --padding-sm: 0.25rem;
  --padding-md: 0.5rem;

  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
}

/* ----------------- Global Reset ----------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background: #ffffff;
  color: #1a1a1a;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ----------------- Typography Scale ----------------- */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}
h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.3;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}
h4 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.35;
  font-weight: 500;
  color: #333333;
  margin-bottom: 0.5rem;
}
h5 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.4;
  font-weight: 500;
  color: #333333;
  margin-bottom: 0.5rem;
}
h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
  font-weight: 400;
  color: #666666;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----------------- Header ----------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1a1a1a;
  text-decoration: none;
}

.logo span {
  color: #ff6600;
  font-weight: 800;
}

.logo svg {
  width: 50px;
  height: 50px;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ----------------- Hamburger Menu ----------------- */
.menu-container {
  position: relative;
}

.hamburger {
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.3s;
  z-index: 101;
}

.hamburger span {
  width: 1.25rem;
  height: 0.125rem;
  background: #ff6600;
  transition: all 0.3s;
}

.hamburger:hover {
  background: #fff5ed;
  border-color: #ff6600;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 3rem;
  right: 0;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 10rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.625rem);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #333333;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  font-weight: 500;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: #fff5ed;
  color: #ff6600;
  outline: none;
}

.nav-dropdown a.active {
  background: #fff5ed;
  color: #ff6600;
  font-weight: 600;
}

/* ----------------- Buttons ----------------- */
.btn-nav {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 2px solid #ff6600;
  color: #ff6600;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-nav:hover,
.btn-nav:focus-visible {
  background: #ff6600;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
  outline: none;
}

/* CSS */
.btn {
  align-items: center;
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-sm);

  cursor: pointer;

  display: inline-flex;
  justify-content: center;
  position: relative;

  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  min-height: 3rem;

  text-decoration: none;
  transition: all 250ms;

  -webkit-user-select: none;
  user-select: none;

  touch-action: manipulation;
  vertical-align: baseline;

  width: auto;

  font-size: 1rem;
  padding: var(--padding-sm) var(--padding-md);
}

.btn:hover,
.btn:focus {
  box-shadow: var(--box-shadow-lg);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  box-shadow: var(--border-radius-md);
  transform: translateY(0);
}

.btn--md {
}

.btn--primary {
  background-color: var(--primary-color);
  color: var(--text-color-inverted);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--primary-light-color);
}

.btn--primary:active {
  background-color: var(--primary-dark-color);
}

.btn--outline {
  background-color: var(--bg-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn--outline:hover,
.btn--outline:focus {
  border-color: var(--primary-light-color);
  background-color: var(--primary-light-color);
  color: var(--text-color-inverted);
}

.btn--outline:active {
  border-color: var(--primary-dark-color);
  background-color: var(--primary-dark-color);
  color: var(--text-color-inverted);
}

.btn--secondary {
  background-color: var(--secondary-color);
  color: var(--text-color-inverted);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: var(--secondary-light-color);
}
.btn--secondary:active {
  background-color: var(--secondary-dark-color);
}

.btn-primary {
  padding: 1rem 2.5rem;
  background: #ff6600;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.2);
  text-decoration: none;
  display: inline-block;
}

.btn-primary.full-width {
  width: 100%;
  text-align: center;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ff8533;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
  outline: none;
}

.btn-secondary {
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid #0057b8;
  color: #0057b8;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #0057b8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 87, 184, 0.3);
  outline: none;
}

.btn-tertiary {
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid #00a862;
  color: #00a862;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-tertiary:hover,
.btn-tertiary:focus-visible {
  background: #00a862;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 168, 98, 0.3);
  outline: none;
}

/* ----------------- Highlights ----------------- */
.highlight {
  font-weight: 800;
  color: #ff6600;
}

.highlight2 {
  font-weight: 800;
  color: #0066cc;
}

/* ----------------- Footer ----------------- */
footer {
  border-top: 2px solid #e0e0e0;
  padding: 2.5rem;
  text-align: center;
  color: #666666;
  font-size: 0.875rem;
  background: #fafafa;
}

footer a {
  color: #ff6600;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

footer a:hover,
footer a:focus-visible {
  color: #ff8533;
  outline: none;
}

/* ----------------- Mobile / Responsive ----------------- */
@media (max-width: 900px) {
  header {
    padding: 1rem 1.5rem;
  }

  .logo svg {
    width: 40px;
    height: 40px;
  }

  .logo span {
    font-size: 1.25rem;
  }

  nav {
    gap: 0.75rem;
  }

  .btn-nav {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem 1rem;
  }

  .logo span {
    display: none;
  }
}
