/* ============================================
   TRENDAWAY AGENCY — Global Styles
   ============================================ */

/* ——— Typography ——— */
h1 {
  font-size: var(--font-hero);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

h2 {
  font-size: var(--font-page-heading);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-heading);
  color: var(--text-primary);
}

h3 {
  font-size: var(--font-section-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--line-height-heading);
  color: var(--text-primary);
}

h4 {
  font-size: var(--font-card-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--line-height-heading);
  color: var(--text-primary);
}

h5 {
  font-size: var(--font-body-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--line-height-heading);
  color: var(--text-primary);
}

h6 {
  font-size: var(--font-body);
  font-weight: var(--weight-semibold);
  line-height: var(--line-height-heading);
  color: var(--text-primary);
}

p {
  font-size: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: var(--line-height-body);
  color: var(--text-secondary);
}

p.lead {
  font-size: var(--font-body-lg);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

a {
  color: var(--gold-primary);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--gold-secondary);
}

a:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

ul,
ol {
  font-size: var(--font-body);
  color: var(--text-secondary);
}

ul li::marker,
ol li::marker {
  color: var(--gold-primary);
}

small {
  font-size: var(--font-small);
  color: var(--text-muted);
}

/* ——— Layout Utilities ——— */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad-x);
  padding-right: var(--container-pad-x);
}

.section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

.section-sm {
  padding-top: var(--section-spacing-sm);
  padding-bottom: var(--section-spacing-sm);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

/* ——— Section Label ——— */
.section-label {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

/* ——— Section Divider ——— */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
  margin: 20px auto;
  border: none;
}

.section-header--left .section-divider {
  margin-left: 0;
}

/* ——— Buttons ——— */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: var(--weight-semibold);
  font-family: inherit;
  border-radius: var(--btn-radius);
  transition: all var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  color: var(--text-on-gold);
  border: none;
  box-shadow: 0 4px 16px rgba(242, 182, 61, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(242, 182, 61, 0.35);
  color: var(--text-on-gold);
}

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

.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 1.5px solid var(--border-gold);
}

.btn-secondary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

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

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-large {
  padding: 16px 36px;
  font-size: 17px;
}

/* ——— Form Elements ——— */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  background-color: var(--background-card);
  border: 1px solid var(--border-default);
  border-radius: var(--input-radius);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(242, 182, 61, 0.1);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #E74C3C;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
  font-size: 13px;
  color: #E74C3C;
  margin-top: 6px;
}

/* ——— Utility Classes ——— */
.text-gold { color: var(--gold-primary); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: var(--weight-light); }
.font-regular { font-weight: var(--weight-regular); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.mt-5 { margin-top: 48px; }
.mb-5 { margin-bottom: 48px; }

/* ——— 12-Column Grid System ——— */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

.gap-sm { gap: 16px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 32px; }
.gap-xl { gap: 48px; }

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

/* ——— Flex Utilities ——— */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

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

.hidden { display: none !important; }
.invisible { visibility: hidden; }
.opacity-0 { opacity: 0; }
