/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: #0A0A0C;
  color: #D1C7BD;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: #FF5500;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #FF8C42;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #D1C7BD;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 12px;
}

h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

h5 {
  font-size: 1rem;
  margin-bottom: 8px;
}

h6 {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

small {
  font-size: 0.875rem;
}

caption,
.caption {
  font-size: 0.75rem;
}

blockquote {
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 2px solid #2A2A2E;
  font-style: italic;
}

blockquote:last-child {
  margin-bottom: 0;
}

/* ===== CONTENT LISTS ===== */
.content-list {
  margin-bottom: 16px;
  padding-left: 0;
}

.content-list:last-child {
  margin-bottom: 0;
}

.content-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.content-list li:last-child {
  margin-bottom: 0;
}

.content-list ul,
.content-list ol {
  margin-top: 8px;
  margin-bottom: 0;
}

.content-list--unordered li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 2px;
  background-color: #FF5500;
}

.content-list--ordered {
  counter-reset: item;
}

.content-list--ordered li {
  counter-increment: item;
}

.content-list--ordered li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #FF5500;
  font-weight: 600;
}

/* ===== CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding-block: 64px;
}

.section--compact {
  padding-block: 32px;
}

.section--spacious {
  padding-block: 96px;
}

/* ===== SURFACES ===== */
.surface {
  background-color: #16161A;
  border: 1px solid #2A2A2E;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.surface--flat {
  box-shadow: none;
}

.surface--elevated {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.surface--sharp {
  border-radius: 0;
}

.surface--slight-round {
  border-radius: 4px;
}

.surface--padded-sm {
  padding: 16px;
}

.surface--padded-lg {
  padding: 32px;
}

.surface > :last-child {
  margin-bottom: 0;
}

/* ===== DIVIDERS ===== */
.divider {
  height: 1px;
  border: none;
  background: linear-gradient(
    to right,
    transparent,
    #2A2A2E 20%,
    #2A2A2E 80%,
    transparent
  );
  margin-block: 24px;
}

.divider--strong {
  background: linear-gradient(
    to right,
    transparent,
    #FF5500 20%,
    #FF5500 80%,
    transparent
  );
  height: 2px;
}

.divider--vertical {
  width: 1px;
  height: auto;
  min-height: 24px;
  background: linear-gradient(
    to bottom,
    transparent,
    #2A2A2E 20%,
    #2A2A2E 80%,
    transparent
  );
  margin-block: 0;
  margin-inline: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background-color: #FF5500;
  color: #0A0A0C;
  border-color: #FF5500;
}

.btn--primary:hover {
  background-color: #FF8C42;
  border-color: #FF8C42;
  color: #0A0A0C;
  box-shadow: 0 0 16px rgba(255, 140, 66, 0.35);
}

.btn--secondary {
  background-color: transparent;
  color: #D1C7BD;
  border-color: #2A2A2E;
}

.btn--secondary:hover {
  border-color: #FF8C42;
  color: #FF8C42;
  box-shadow: 0 0 12px rgba(255, 140, 66, 0.2);
}

.btn--ghost {
  background-color: transparent;
  color: #D1C7BD;
  border-color: transparent;
}

.btn--ghost:hover {
  color: #FF8C42;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn--full {
  width: 100%;
}

/* ===== FORMS ===== */
label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #D1C7BD;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: #0A0A0C;
  border: 1px solid #2A2A2E;
  border-radius: 4px;
  color: #D1C7BD;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input::placeholder,
textarea::placeholder {
  color: rgba(209, 199, 189, 0.5);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #FF5500;
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.25);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D1C7BD' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-hint {
  font-size: 0.75rem;
  color: rgba(209, 199, 189, 0.6);
  margin-top: 4px;
}

.form-error {
  font-size: 0.75rem;
  color: #FF5500;
  margin-top: 4px;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid #FF5500;
  outline-offset: 2px;
}

/* ===== IMAGES ===== */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-cover--hero {
  aspect-ratio: 16 / 9;
}

.img-cover--card {
  aspect-ratio: 4 / 3;
}

.img-cover--square {
  aspect-ratio: 1 / 1;
}

.img-cover--portrait {
  aspect-ratio: 3 / 4;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.5);
  pointer-events: none;
}

.media-frame--sharp {
  border-radius: 0;
}

.media-frame--slight-round {
  border-radius: 4px;
}

.media-frame--round {
  border-radius: 8px;
}

/* ===== OVERLAY ===== */
.overlay {
  position: relative;
}

.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.7);
  pointer-events: none;
  z-index: 1;
}

.overlay > * {
  position: relative;
  z-index: 2;
}

.overlay--light::before {
  background: rgba(10, 10, 12, 0.4);
}

.overlay--heavy::before {
  background: rgba(10, 10, 12, 0.85);
}

/* ===== FLEX UTILITIES ===== */
.flex {
  display: flex;
}

.flex--inline {
  display: inline-flex;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--nowrap {
  flex-wrap: nowrap;
}

.flex--column {
  flex-direction: column;
}

.flex--row {
  flex-direction: row;
}

.flex--align-start {
  align-items: flex-start;
}

.flex--align-center {
  align-items: center;
}

.flex--align-end {
  align-items: flex-end;
}

.flex--align-stretch {
  align-items: stretch;
}

.flex--justify-start {
  justify-content: flex-start;
}

.flex--justify-center {
  justify-content: center;
}

.flex--justify-end {
  justify-content: flex-end;
}

.flex--justify-between {
  justify-content: space-between;
}

.flex--justify-around {
  justify-content: space-around;
}

.flex--justify-evenly {
  justify-content: space-evenly;
}

.flex--gap-1 {
  gap: 4px;
}

.flex--gap-2 {
  gap: 8px;
}

.flex--gap-3 {
  gap: 12px;
}

.flex--gap-4 {
  gap: 16px;
}

.flex--gap-5 {
  gap: 24px;
}

.flex--gap-6 {
  gap: 32px;
}

.flex--gap-7 {
  gap: 48px;
}

.flex--gap-8 {
  gap: 64px;
}

.flex--grow {
  flex-grow: 1;
}

.flex--shrink-0 {
  flex-shrink: 0;
}

.flex--shrink-safe {
  flex-shrink: 1;
  min-width: 0;
}

.flex--basis-auto {
  flex-basis: auto;
}

.flex--basis-0 {
  flex-basis: 0;
}

/* ===== GRID UTILITIES ===== */
.grid {
  display: grid;
  gap: 24px;
}

.grid--gap-sm {
  gap: 16px;
}

.grid--gap-lg {
  gap: 32px;
}

.grid--gap-xl {
  gap: 48px;
}

.grid--auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid--auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--2-col {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-col {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-col {
  grid-template-columns: repeat(4, 1fr);
}

.grid--align-center {
  align-items: center;
}

.grid--align-start {
  align-items: start;
}

.grid--align-end {
  align-items: end;
}

.grid--justify-center {
  justify-items: center;
}

.grid--justify-start {
  justify-items: start;
}

.grid--justify-end {
  justify-items: end;
}

.grid > * {
  min-width: 0;
}

/* ===== VISUALLY HIDDEN ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background-color: #FF5500;
  color: #0A0A0C;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section {
    padding-block: 48px;
  }

  .section--spacious {
    padding-block: 64px;
  }

  .grid--4-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }

  .section {
    padding-block: 32px;
  }

  .section--spacious {
    padding-block: 48px;
  }

  .grid--3-col,
  .grid--4-col {
    grid-template-columns: 1fr;
  }

  .grid--2-col {
    grid-template-columns: 1fr;
  }

  .grid--auto-fill,
  .grid--auto-fit {
    grid-template-columns: 1fr;
  }

  .flex--column-mobile {
    flex-direction: column;
  }

  .flex--wrap-mobile {
    flex-wrap: wrap;
  }

  .flex--gap-7 {
    gap: 24px;
  }

  .flex--gap-8 {
    gap: 32px;
  }

  .surface {
    padding: 16px;
  }

  .surface--padded-lg {
    padding: 24px;
  }

  .btn {
    padding: 10px 20px;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 12px;
  }

  .section {
    padding-block: 24px;
  }

  .section--spacious {
    padding-block: 32px;
  }

  .grid--gap-lg {
    gap: 16px;
  }

  .grid--gap-xl {
    gap: 24px;
  }

  .flex--gap-6 {
    gap: 16px;
  }

  .flex--gap-5 {
    gap: 12px;
  }

  .surface {
    padding: 12px;
  }

  .surface--padded-lg {
    padding: 16px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .btn--lg {
    padding: 12px 20px;
    font-size: 0.875rem;
  }

  input,
  select,
  textarea {
    padding: 10px 12px;
    font-size: 0.875rem;
  }
}