* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  background:
    url("../davao-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */

.header {
  width: 100%;
  padding: clamp(1.25rem, 3vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  width: clamp(42px, 5vw, 64px);
  height: clamp(42px, 5vw, 64px);
  border-radius: 50%;
  background: #ff5a14;
  color: #130805;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.brand h1 {
  font-size: clamp(1rem, 2vw, 1.75rem);
  letter-spacing: clamp(0.25rem, 1vw, 0.55rem);
  font-weight: 500;
}

.brand p {
  margin-top: 0.4rem;
  color: #a8a8a8;
  font-size: clamp(0.55rem, 1vw, 0.75rem);
  letter-spacing: clamp(0.15rem, 0.6vw, 0.35rem);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
}

.nav a.active {
  color: #ff5a14;
  border-bottom: 2px solid #ff5a14;
  padding-bottom: 0.8rem;
}

.menu-btn {
  width: clamp(44px, 5vw, 64px);
  height: clamp(44px, 5vw, 64px);
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 20, 0.5);
  background: transparent;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

/* HERO */

.hero {
  flex: 1;
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* TEXT */

.eyebrow {
  color: #dddddd;
  letter-spacing: clamp(0.35rem, 1vw, 0.8rem);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.hero h2 {
  font-size: clamp(2.2rem, 7vw, 6rem);
  letter-spacing: clamp(0.25rem, 1.3vw, 0.9rem);
  font-weight: 300;
  line-height: 1.1;
}

.hero h2 span {
  color: #ff5a14;
  font-weight: 800;
}

.tagline {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  color: #cccccc;
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  letter-spacing: clamp(0.15rem, 0.7vw, 0.55rem);
}

/* SEARCH */

.search-bar {
  width: min(950px, 100%);
  height: clamp(72px, 9vw, 110px);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border: 2px solid #ff5a14;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.75);
  box-shadow:
    0 0 30px rgba(255, 90, 20, 0.28),
    inset 0 0 20px rgba(255, 90, 20, 0.08);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.search-icon {
  color: #dddddd;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-left: clamp(1.4rem, 4vw, 3rem);
  margin-right: clamp(1rem, 3vw, 2rem);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.search-bar input::placeholder {
  color: #8d8d8d;
}

.search-bar button {
  width: clamp(60px, 8vw, 92px);
  height: clamp(60px, 8vw, 92px);
  margin-right: 0.6rem;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8126, #df260d);
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  cursor: pointer;
}

/* CATEGORIES */

.categories {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.8rem, 2vw, 2rem);
  width: min(760px, 100%);
}

.categories a {
  text-decoration: none;
  color: white;
  min-height: clamp(84px, 10vw, 115px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  background: rgba(255, 255, 255, 0.03);
}

.categories a:hover {
  border-color: #ff5a14;
  box-shadow: 0 0 25px rgba(255, 90, 20, 0.25);
  transform: translateY(-4px);
}

.categories span {
  color: #ff5a14;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.categories p {
  margin-top: 0.7rem;
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

/* FOOTER */

.footer {
  margin-top: clamp(3rem, 8vw, 6rem);
}

.footer h3 {
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  letter-spacing: clamp(0.3rem, 1vw, 0.8rem);
  font-weight: 500;
}

.footer p {
  margin-top: 0.8rem;
  color: #cccccc;
  font-size: clamp(0.75rem, 1.3vw, 1rem);
  letter-spacing: clamp(0.1rem, 0.5vw, 0.3rem);
}

/* TABLETS */

@media (max-width: 1024px) {
  .nav {
    gap: 2rem;
  }

  .hero {
    justify-content: flex-start;
    padding-top: 5rem;
  }

  .categories {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* MOBILE */

@media (max-width: 768px) {
  body {
    background-position: center bottom;
  }

  .header {
    padding: 1.5rem;
  }

  .nav a {
    display: none;
  }

  .brand h1 {
    letter-spacing: 0.25rem;
  }

  .hero {
    width: 90%;
    padding-top: 4rem;
  }

  .hero h2 {
    letter-spacing: 0.25rem;
  }

  .tagline {
    line-height: 1.8;
  }

  .search-bar {
    height: 72px;
  }

  .search-icon {
    margin-left: 1.4rem;
    margin-right: 0.9rem;
  }

  .search-bar button {
    width: 58px;
    height: 58px;
    font-size: 2rem;
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .categories a:last-child {
    grid-column: span 2;
  }
}

/* SMALL PHONES */

@media (max-width: 430px) {
  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand h1 {
    font-size: 0.9rem;
  }

  .brand p {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .eyebrow {
    letter-spacing: 0.35rem;
  }

  .hero h2 {
    font-size: 2.3rem;
  }

  .tagline {
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
  }

  .search-bar {
    height: 64px;
  }

  .search-bar input {
    font-size: 0.9rem;
  }

  .search-icon {
    font-size: 1.8rem;
  }

  .search-bar button {
    width: 50px;
    height: 50px;
    font-size: 1.7rem;
  }

  .categories {
    grid-template-columns: 1fr;
  }

  .categories a:last-child {
    grid-column: span 1;
  }
}

/* LANDSCAPE PHONES */

@media (max-height: 520px) and (orientation: landscape) {
  .header {
    padding: 1rem 2rem;
  }

  .hero {
    padding: 1rem 0 2rem;
    justify-content: flex-start;
  }

  .footer {
    display: none;
  }

  .categories {
    margin-top: 1.5rem;
  }
}

/* ULTRA-WIDE SCREENS */

@media (min-width: 1600px) {
  .hero {
    width: min(1400px, 88%);
  }

  .search-bar {
    width: 1050px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* AUTHENTICATION: LOGIN AND SIGNUP */

.login-btn,
.submit,
.logout {
  border: 1px solid #ff5a14;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8126, #df260d);
  color: #ffffff;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  cursor: pointer;
}

.nav .login-btn {
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 90, 20, 0.22);
}

.nav form {
  margin: 0;
}

.welcome {
  color: #ff5a14;
  font-weight: 800;
}

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(3, 3, 7, 0.82);
  backdrop-filter: blur(10px);
}

.card {
  width: min(460px, 100%);
  margin: auto;
  padding: clamp(1.6rem, 5vw, 2.5rem);
  border: 1px solid rgba(255, 90, 20, 0.7);
  border-radius: 1.5rem;
  background: rgba(12, 12, 18, 0.96);
  color: #ffffff;
  text-align: left;
  box-shadow: 0 0 45px rgba(255, 90, 20, 0.28);
}

.card h2 {
  margin: 0 2rem 0.5rem 0;
  color: #ff5a14;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.card > p:not(.error):not(.switch) {
  color: #bdbdbd;
  line-height: 1.5;
}

.close {
  float: right;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

.close:hover,
.switch a:hover {
  color: #ff5a14;
}

.field {
  display: block;
  margin: 1.1rem 0;
  color: #dddddd;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

.field input {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.field input:focus {
  border-color: #ff5a14;
  box-shadow: 0 0 0 3px rgba(255, 90, 20, 0.16);
}

.submit {
  width: 100%;
  margin-top: 0.5rem;
}

.error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid #ff5a14;
  border-radius: 0.4rem;
  background: rgba(220, 38, 38, 0.18);
  color: #ffd4d4;
  line-height: 1.45;
}

.switch {
  margin-top: 1.25rem;
  color: #bdbdbd;
  text-align: center;
}

.switch a {
  color: #ff8126;
  font-weight: 800;
}

@media (max-width: 768px) {
  .nav .login-btn {
    display: inline-flex;
  }

  .welcome {
    display: none;
  }

  .card {
    padding: 1.5rem;
  }
}

/* LAPTOPS WITH SHORT VIEWPORTS (for example 1366 × 768) */

@media (min-width: 769px) and (max-height: 900px) {
  .header {
    padding: 1.5rem clamp(2rem, 3vw, 3rem);
  }

  .brand-icon {
    width: 52px;
    height: 52px;
  }

  .nav {
    gap: clamp(1.25rem, 3vw, 3rem);
  }

  .hero {
    justify-content: flex-start;
    padding: clamp(1.5rem, 3vh, 2.5rem) 0 2rem;
  }

  .eyebrow {
    margin-bottom: 0.75rem;
  }

  .hero h2 {
    font-size: clamp(3rem, 8.5vh, 5rem);
    line-height: 1.02;
  }

  .tagline {
    margin-top: 0.8rem;
    font-size: clamp(0.85rem, 1.8vh, 1.1rem);
  }

  .search-bar {
    height: 72px;
    margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
  }

  .search-bar button {
    width: 58px;
    height: 58px;
    font-size: 2rem;
  }

  .categories {
    margin-top: clamp(1.25rem, 3vh, 2rem);
  }

  .categories a {
    min-height: 82px;
  }

  .footer {
    margin-top: clamp(1.5rem, 3vh, 2.5rem);
  }
}

@media (min-width: 769px) and (max-height: 700px) {
  .header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero {
    padding-top: 0.75rem;
  }

  .hero h2 {
    font-size: clamp(2.5rem, 8vh, 4rem);
  }

  .search-bar {
    margin-top: 1.25rem;
  }

  .footer {
    display: none;
  }
}

/* Keep the primary signup action visible on desktop and mobile. */
.nav a.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid #ff5a14;
  color: #ffffff;
  letter-spacing: 0.2rem;
  white-space: nowrap;
}

/* CLEAN HOMEPAGE STRUCTURE */

.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;
}

.brand {
  color: inherit;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: clamp(1rem, 2vw, 1.75rem);
  letter-spacing: clamp(0.25rem, 1vw, 0.55rem);
  font-weight: 500;
}

.brand small {
  margin-top: 0.4rem;
  color: #a8a8a8;
  font-size: clamp(0.55rem, 1vw, 0.75rem);
  letter-spacing: clamp(0.15rem, 0.6vw, 0.35rem);
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 6rem);
  letter-spacing: clamp(0.25rem, 1.3vw, 0.9rem);
  font-weight: 300;
  line-height: 1.1;
}

.hero h1 span {
  color: #ff5a14;
  font-weight: 800;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  color: #ffffff;
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "⌄";
  margin-left: 0.45rem;
  color: #ff5a14;
}

.nav-menu-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 1rem);
  right: 0;
  min-width: 210px;
  padding: 0.6rem;
  border: 1px solid rgba(255, 90, 20, 0.45);
  border-radius: 0.8rem;
  background: rgba(5, 7, 11, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.nav-menu-panel a,
.nav-menu-panel button {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #ffffff;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.06rem;
  cursor: pointer;
}

.nav-menu-panel a:hover,
.nav-menu-panel button:hover {
  background: rgba(255, 90, 20, 0.14);
  color: #ff7a18;
}

.nav-menu-panel form {
  margin: 0;
}

.footer h2 {
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  letter-spacing: clamp(0.3rem, 1vw, 0.8rem);
  font-weight: 500;
}

@media (min-width: 769px) and (max-height: 900px) {
  .hero h1 {
    font-size: clamp(3rem, 8.5vh, 5rem);
    line-height: 1.02;
  }
}

@media (max-width: 768px) {
  .header {
    gap: 1rem;
  }

  .nav {
    gap: 0.9rem;
  }

  .nav > a:not(.login-btn) {
    display: none;
  }

  .nav-menu summary {
    letter-spacing: 0.12rem;
  }

  .nav-menu-panel {
    position: fixed;
    top: 82px;
    left: 1rem;
    right: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 4rem);
    letter-spacing: 0.2rem;
  }
}

@media (max-width: 430px) {
  .brand strong {
    font-size: 0.9rem;
    letter-spacing: 0.25rem;
  }

  .brand small {
    display: none;
  }

  .nav .login-btn {
    padding: 0.65rem 0.8rem;
    letter-spacing: 0.1rem;
  }
}

/* REFERENCE HOMEPAGE COMPOSITION */

body {
  background-color: #02050a;
  background-image:
    linear-gradient(90deg, rgba(1, 4, 9, 0.52), rgba(4, 4, 10, 0.12)),
    url("../davao-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page {
  min-height: 100vh;
  padding: clamp(1.8rem, 3vw, 3rem);
  background: transparent;
}

.header {
  padding: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.2rem;
}

.brand strong {
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  letter-spacing: 0.35rem;
}

.brand small {
  font-size: 0.52rem;
  letter-spacing: 0.25rem;
}

.nav {
  gap: clamp(1.8rem, 4vw, 4rem);
}

.nav > a {
  font-size: 0.62rem;
  letter-spacing: 0.3rem;
}

.nav > a.active {
  padding-bottom: 0.7rem;
}

.icon-menu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 90, 20, 0.68);
  border-radius: 50%;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.icon-menu summary::after {
  display: none;
}

.nav-menu-panel strong {
  display: block;
  padding: 0.7rem 0.85rem;
  color: #ff6b20;
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.nav-menu-panel hr {
  margin: 0.45rem;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.nav-menu-panel .menu-signup {
  color: #ff7a18;
}

.hero {
  width: min(960px, 92%);
  min-height: calc(100vh - 100px);
  padding: clamp(3rem, 12vh, 8rem) 0 2rem;
  justify-content: flex-start;
}

.eyebrow {
  margin-bottom: 1.15rem;
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  letter-spacing: clamp(0.5rem, 1vw, 0.85rem);
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3.2rem, 6.8vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: clamp(0.28rem, 1vw, 0.75rem);
}

.hero h1 span {
  display: block;
  margin-top: 0.2em;
}

.tagline {
  margin-top: 1.35rem;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  letter-spacing: clamp(0.25rem, 0.7vw, 0.55rem);
}

.search-bar {
  width: min(800px, 100%);
  height: 76px;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding: 0;
  border-width: 1px;
  background: rgba(5, 4, 9, 0.82);
  box-shadow: 0 0 28px rgba(255, 74, 12, 0.18);
}

.search-bar .search-icon {
  margin: 0 1.25rem 0 1.8rem;
  font-size: 2.15rem;
}

.search-bar button {
  width: 62px;
  height: 62px;
  margin-right: 6px;
  border-radius: 50%;
}

.categories {
  width: min(540px, 100%);
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  gap: 0.65rem;
}

.categories a {
  min-width: 0;
  min-height: 78px;
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(7, 8, 13, 0.55);
  backdrop-filter: blur(8px);
}

.categories span {
  font-size: 1.35rem;
}

.categories p {
  margin-top: 0.55rem;
  font-size: 0.55rem;
  letter-spacing: 0.12rem;
}

.footer {
  margin-top: 2rem;
  opacity: 0.72;
}

@media (min-width: 769px) and (max-height: 820px) {
  .hero {
    padding-top: clamp(2rem, 7vh, 4rem);
  }

  .hero h1 {
    font-size: clamp(3rem, 10vh, 5.2rem);
  }

  .search-bar {
    margin-top: 2rem;
  }

  .footer {
    display: none;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 1.25rem;
  }

  .nav > a {
    display: none;
  }

  .nav-menu-panel {
    top: 76px;
  }

  .hero {
    width: 100%;
    min-height: calc(100vh - 70px);
    padding-top: 12vh;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .search-bar {
    height: 66px;
  }

  .search-bar button {
    width: 54px;
    height: 54px;
  }

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

  .categories a:last-child {
    grid-column: 1 / -1;
  }
}
