* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: #3b2717;

  background:
    url("../images/background.png") repeat,
    #f7f2eb;

  background-size: 600px;
}

button,
a {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
    width: 100%;
    min-height: 86px;

    display: flex;
    align-items: center;

    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

.menu-toggle-btn {
    position: static;
    flex: 0 0 auto;

    background: none;
    border: none;

    color: var(--primary);
    font-size: 1.6rem;

    cursor: pointer;

    padding: 1rem;
    margin: 0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    z-index: 950;
}

.menu-toggle-btn:hover {
    transform: scale(1.08);
}

.menu-toggle-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    display: block;
    width: auto;
    height: 80px;
    object-fit: contain;
}

.home-main {
  flex: 1;
  padding: 0 4px;
}

.home-scene {
  width: 100%;
  min-height: calc(100vh - 126px);

  background:
    linear-gradient(
      rgba(250, 245, 236, 0.45),
      rgba(250, 245, 236, 0.45)
    ),
    url("../images/home-background.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-top: 1px solid rgba(120, 72, 24, 0.25);
  border-bottom: 1px solid rgba(120, 72, 24, 0.25);
}
.footer {
  text-align: center;
  padding: 12px 20px 10px;
  font-size: 13px;
  color: #765b42;
}

.footer p {
  margin: 0 0 4px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #765b42;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .topbar {
    min-height: 76px;
    padding: 10px 14px;
  }

  .menu-button {
    font-size: 29px;
  }

  .brand-logo {
    width: 155px;
  }

  .home-scene {
    min-height: 500px;
    background-position: center;
  }
}

.card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  width: min(860px, 88%);
  margin: 0 auto;
  padding-top: 32px;
}

.home-card {
  min-height: 145px;
  padding: 16px 14px;
  border: 3px solid #c58a32;
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.94);
  color: #3b2717;
  box-shadow:
    0 8px 18px rgba(74, 45, 18, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.home-card:hover {
  transform: translateY(-5px);
  background: #fffdf8;
  box-shadow:
    0 13px 24px rgba(74, 45, 18, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.home-card:focus-visible {
  outline: 3px solid #6f4216;
  outline-offset: 4px;
}

.card-icon {
  margin-bottom: 14px;
  color: #a45f0c;
  font-size: 34px;
  line-height: 1;
}

.home-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.home-card p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 850px) {
  .card-row {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    padding-top: 55px;
  }
}

@media (max-width: 480px) {
  .card-row {
    grid-template-columns: 1fr;
    width: min(330px, 88%);
    padding-top: 35px;
    padding-bottom: 35px;
  }
}

.side-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #f8f1e7;
  box-shadow: 4px 0 12px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 24px;
}

.side-menu.open {
  left: 0;
}

.close-menu {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  margin-bottom: 30px;
}

.side-menu nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-menu nav a {
  text-decoration: none;
  color: #5b3713;
  font-size: 18px;
  font-weight: 600;
}

.side-menu nav a:hover {
  color: #a45f0c;
}

.subscription-notice {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);

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

  z-index: 3000;
}

.subscription-notice[hidden] {
  display: none;
}

.subscription-card {
  position: relative;

  width: min(430px, 90%);
  background: #f8f1e7;
  border-radius: 18px;
  padding: 32px;
  text-align: center;

  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.subscription-icon {
  font-size: 52px;
  margin-bottom: 16px;
}

.subscription-card h2 {
  margin: 0 0 14px;
  color: #5b3713;
}

.subscription-card p {
  margin-bottom: 24px;
  line-height: 1.6;
}

.subscribe-button {
  display: inline-block;

  padding: 12px 28px;

  background: #8b5a2b;
  color: white;

  text-decoration: none;
  border-radius: 999px;
  font-weight: bold;
}

.subscribe-button:hover {
  background: #6f431a;
}

.subscription-close {
  position: absolute;
  top: 14px;
  right: 18px;

  border: none;
  background: none;

  font-size: 28px;
  cursor: pointer;
}

/* ===============================
   Getting Started Card
   =============================== */

.getting-started-card {
    margin: 18px auto 14px;
    width: min(1100px, calc(100% - 32px));
    padding: 18px;
    border-radius: 20px;
}

.getting-started-card h3 {
    margin-bottom: 0.75rem;
    text-align: center;
}

.getting-started-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.getting-started-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 600;
    text-align: center;
}

.getting-started-steps span {
    padding: 8px 12px;
}

/* ==================================================
   HEADER ACTION BUTTONS
================================================== */

.site-header .floating-actions {
    position: static;

    margin-left: auto;
    margin-right: 16px;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;

    z-index: auto;
}

.action-btn {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    border-radius: 50%;

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

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 4px 15px rgba(60, 47, 47, 0.25);
    background: white;
    border: 2px solid var(--primary);
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 25px rgba(60, 47, 47, 0.35);
}

.upload-area {
    border: 2px dashed var(--primary-light);
}

.upload-area i {
    color: var(--primary-light);
}

@media (max-width: 700px) {

    .site-header {
        min-height: 72px;
    }

    .site-logo {
        height: 68px;
    }

    .menu-toggle-btn {
        padding: 0.75rem;
        font-size: 1.45rem;
    }

    .site-header .floating-actions {
        margin-right: 8px;
        gap: 7px;
    }

    .site-header .floating-actions .action-btn {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}

@media (max-width: 420px) {

    .site-header {
        min-height: 66px;
    }

    .site-logo {
        height: 62px;
    }

    .site-header .floating-actions {
        margin-right: 4px;
        gap: 5px;
    }

    .site-header .floating-actions .action-btn {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}
