/* =========================================
   GLOBAL RESET
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #f3f4f6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* =========================================
   PAGE BACKGROUND
========================================= */

.page-bg {
  background: #f3f4f6;
  min-height: 100vh;
}

/* =========================================
   HEADER
========================================= */

.site-header {
  width: 100%;
  background: #7f1d1d;
  border-bottom: 4px solid #e5e7eb;
  box-shadow: 0 2px 8px #0002;

  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1280px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  position: relative;

  min-height: 82px;
}

/* =========================================
   LOGO
========================================= */

.logo-wrap {
  position: absolute;
  left: 16px;

  width: 58px;
  height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  border-radius: 7px;
  border: 1px solid #eee;

  overflow: hidden;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.logo-wrap img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}

.logo-wrap:hover {
  transform: scale(1.04);
  box-shadow: 0 3px 10px #0003;
}

/* =========================================
   HEADER TITLE
========================================= */

.header-title {
  text-align: center;
  padding: 0 70px;
}

.header-title h1 {
  color: #fff;

  font-size: 30px;

  margin: 0;

  font-weight: 700;

  line-height: 1.2;
}

.header-title p {
  color: #fecaca;

  font-size: 14px;

  margin: 5px 0 0;

  line-height: 1.4;
}

/* =========================================
   HERO SECTION
   FIRST SCREENSHOT STYLE
========================================= */

.hero {
  width: calc(100% - 40px);
  max-width: 1335px;

  margin: 26px auto 0;

  background: #7f1d1d;

  color: #fff;

  text-align: center;

  padding: 72px 20px;

  min-height: 296px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 36px;

  margin: 0 0 16px;

  line-height: 1.2;
}

.hero p {
  font-size: 18px;

  margin: 0 0 24px;

  line-height: 1.5;
}

/* =========================================
   HERO ACTION BUTTONS
========================================= */

.hero-actions {
  display: flex;

  justify-content: center;

  gap: 24px;

  flex-wrap: wrap;
}

/* =========================================
   COMMON BUTTON
========================================= */

.btn {
  display: inline-block;

  border: 0;

  text-decoration: none;

  padding: 10px 24px;

  border-radius: 8px;

  font-weight: 700;

  cursor: pointer;

  font-size: 15px;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* =========================================
   WHITE BUTTON
========================================= */

.btn.white {
  background: #fff;
  color: #7f1d1d;
}

.btn.white:hover {
  background: #fee2e2;
}

/* =========================================
   RED BUTTON
========================================= */

.btn.red {
  background: #7f1d1d;
  color: #fff;
}

.btn.red:hover {
  background: #991b1b;
}

/* =========================================
   PRIMARY BUTTON
========================================= */

.btn.primary {
  background: linear-gradient(90deg, #ef4444, #b91c1c);

  color: #fff;
}

.btn.primary:hover {
  background: linear-gradient(90deg, #dc2626, #991b1b);

  box-shadow: 0 4px 10px #0003;
}

/* =========================================
   SECONDARY BUTTON
========================================= */

.btn.secondary {
  background: #fff;

  border: 1px solid #d1d5db;

  color: #374151;
}

.btn.secondary:hover {
  background: #f9fafb;
}

/* =========================================
   ABOUT SECTION
========================================= */

.about {
  width: calc(100% - 40px);
  max-width: 1335px;

  margin: 0 auto;

  padding: 40px 20px;

  text-align: center;

  background: #fef2f2;
}

.about h2,
.work h2 {
  color: #7f1d1d;

  font-size: 26px;

  margin: 0 0 16px;
}

.about p {
  max-width: 768px;

  margin: auto;

  line-height: 1.6;

  color: #4b5563;
}

/* =========================================
   WORK SECTION
========================================= */

.work {
  width: calc(100% - 40px);
  max-width: 1335px;

  margin: 0 auto;

  background: #fff;

  padding: 40px 20px;
}

.work h2 {
  text-align: center;

  margin-bottom: 40px;
}

/* =========================================
   CARDS
========================================= */

.cards {
  max-width: 1180px;

  margin: auto;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 32px;
}

.card {
  background: #fef2f2;

  padding: 24px;

  border-radius: 8px;

  box-shadow: 0 3px 10px #0002;

  border-top: 4px solid #7f1d1d;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  min-height: 320px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);

  box-shadow: 0 8px 18px #0003;
}

.card h3 {
  color: #7f1d1d;

  font-size: 21px;

  margin: 0 0 12px;
}

.card p {
  line-height: 1.5;

  color: #4b5563;
}

.card ul {
  color: #4b5563;

  line-height: 1.7;

  margin-bottom: 20px;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  width: calc(100% - 40px);
  max-width: 1335px;

  margin: 40px auto 0;

  background: #991b1b;

  color: #fff;

  border-top: 4px solid #e5e7eb;
}

.footer-grid {
  max-width: 1280px;

  margin: auto;

  padding: 24px;

  display: grid;

  grid-template-columns: 1fr 2fr 1fr;

  gap: 24px;

  align-items: center;
}

/* =========================================
   FOOTER LOGO
========================================= */

.footer-logo {
  display: flex;

  align-items: center;

  justify-content: center;
}

.footer-logo a {
  width: 80px;
  height: 80px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #fff;

  border-radius: 8px;

  border: 1px solid #eee;

  overflow: hidden;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}

.footer-logo a:hover {
  transform: scale(1.04);

  box-shadow: 0 4px 12px #0003;
}

/* =========================================
   FOOTER LINKS
========================================= */

.footer-links {
  text-align: center;
}

.footer-links a {
  color: #fff;

  text-decoration: none;

  margin: 0 8px;

  font-size: 14px;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fecaca;
}

.footer-links p,
.footer-contact p {
  font-size: 14px;
}

/* =========================================
   FOOTER CONTACT
========================================= */

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

/* =========================================
   DONATION MODAL
========================================= */

.modal-backdrop {
  position: fixed;

  inset: 0;

  background: #0008;

  z-index: 100;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.donation-modal {
  background: #fff;

  border-radius: 10px;

  box-shadow: 0 20px 50px #0005;

  width: 100%;

  max-width: 700px;

  max-height: 90vh;

  overflow: auto;
}

/* =========================================
   MODAL HEADER
========================================= */

.modal-header {
  background: #7f1d1d;

  color: #fff;

  padding: 16px 24px;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

.modal-header h2 {
  margin: 0;

  font-size: 21px;
}

.close-btn {
  background: none;

  border: 0;

  color: #fff;

  font-size: 30px;

  cursor: pointer;

  line-height: 1;
}

.close-btn:hover {
  color: #fecaca;
}

/* =========================================
   FORM BODY
========================================= */

.form-body {
  padding: 24px;
}

.form-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 24px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;

  font-weight: 700;

  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;

  border: 1px solid #d1d5db;

  border-radius: 6px;

  padding: 10px;

  font: inherit;

  background: #fff;

  color: #1f2937;
}

.field textarea {
  min-height: 100px;

  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #f87171;

  border-color: #ef4444;
}

/* =========================================
   RADIO BUTTONS
========================================= */

.radio-row {
  display: flex;

  gap: 18px;

  flex-wrap: wrap;

  padding-top: 8px;
}

.radio-row label {
  font-weight: 400;

  cursor: pointer;
}

/* =========================================
   FORM DIVIDER
========================================= */

.form-body hr {
  border: 0;

  border-top: 1px solid #e5e7eb;

  margin: 8px 0 22px;
}

/* =========================================
   FORM ACTIONS
========================================= */

.actions {
  display: flex;

  justify-content: flex-end;

  gap: 16px;

  padding-top: 8px;
}

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

/* =========================================
   FORM PAGE
========================================= */

.form-page {
  padding: 50px 20px;
}

.form-card {
  max-width: 1000px;

  margin: auto;

  background: #fff;

  border-radius: 8px;

  box-shadow: 0 5px 18px #0002;

  padding: 32px;
}

.form-card h2 {
  text-align: center;

  margin: 0 0 24px;

  color: #7f1d1d;
}

/* =========================================
   RESULT PAGE
========================================= */

.result-page {
  min-height: 60vh;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 40px;
}

.result-card {
  background: #fff;

  padding: 36px;

  border-radius: 10px;

  box-shadow: 0 5px 20px #0002;

  text-align: center;

  max-width: 650px;

  width: 100%;
}

.result-card .btn {
  margin-top: 16px;
}

/* =========================================
   ERROR
========================================= */

.error-text {
  color: #dc2626;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    text-align: center;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {
  /* Header */

  .header-inner {
    min-height: 70px;

    padding: 10px 12px;
  }

  .logo-wrap {
    width: 48px;
    height: 48px;

    left: 10px;
  }

  .header-title {
    padding: 0 58px;
  }

  .header-title h1 {
    font-size: 21px;

    line-height: 1.2;
  }

  .header-title p {
    font-size: 11px;

    margin-top: 3px;
  }

  /* Main Sections */

  .hero,
  .about,
  .work {
    width: 100%;

    margin-left: 0;
    margin-right: 0;
  }

  /* Hero */

  .hero {
    margin-top: 20px;

    padding: 50px 20px;

    min-height: 280px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    gap: 12px;
  }

  /* About */

  .about {
    padding: 40px 20px;
  }

  /* Cards */

  .cards {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  /* Footer */

  .footer-grid {
    grid-template-columns: 1fr;

    text-align: center;

    gap: 18px;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-logo a {
    width: 70px;
    height: 70px;
  }

  /* Forms */

  .form-grid {
    grid-template-columns: 1fr;

    gap: 0;
  }

  /* Modal */

  .modal-backdrop {
    padding: 8px;
  }

  .form-body {
    padding: 18px;
  }

  .modal-header {
    padding: 14px 18px;
  }

  .modal-header h2 {
    font-size: 19px;
  }

  /* Form */

  .form-page {
    padding: 30px 14px;
  }

  .form-card {
    padding: 22px 16px;
  }

  /* Result */

  .result-page {
    padding: 30px 16px;
  }

  .result-card {
    padding: 28px 20px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {
  .logo-wrap {
    width: 42px;
    height: 42px;

    left: 8px;
  }

  .header-inner {
    min-height: 64px;
  }

  .header-title {
    padding: 0 48px;
  }

  .header-title h1 {
    font-size: 17px;
  }

  .header-title p {
    font-size: 9px;

    margin-top: 2px;
  }

  /* Hero */

  .hero {
    margin-top: 15px;

    padding: 40px 16px;

    min-height: 250px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

  /* Buttons */

  .btn {
    width: 100%;

    text-align: center;
  }

  .hero-actions {
    width: 100%;

    flex-direction: column;

    gap: 10px;
  }

  /* Sections */

  .about,
  .work {
    padding: 32px 16px;
  }

  .about h2,
  .work h2 {
    font-size: 23px;
  }

  /* Card */

  .card {
    padding: 20px;

    min-height: auto;
  }

  /* Form Actions */

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }
}
