/* 
 * main.css - imle.vet
 * Professional, responsive, and mobile-friendly styles.
 */

/* 1. Font Setup (Inter Variable) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/web/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/web/InterVariable-Italic.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  font-style: italic;
}

/* 2. Base Styles */
:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --accent-color: #005a8d; /* Professional Navy Blue */
  --accent-hover: #00446a;
  --font-family: "Inter", system-ui, -apple-system, sans-serif;
  --spacing: 1.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: #ffffff;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
}

/* 3. Layout */
.page-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing);
  position: relative;
}

.page-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.42;
  background-image: url("../img/bg-landing-mobile.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .page-wrapper::before {
    background-image: url("../img/bg-landing-desktop.webp");
  }
}

main {
  width: 100%;
  max-width: 1000px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal-content {
  text-align: left;
  align-items: flex-start;
  max-width: 800px;
  padding: 2rem;
}

.legal-content h1 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.legal-content section {
  margin-bottom: 2rem;
  width: 100%;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content a:not(.btn) {
  color: var(--accent-color);
  text-decoration: none;
}

.legal-content a:not(.btn):hover {
  text-decoration: underline;
}

.brand-logo {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  color: #000000; /* Fallback */
  background: linear-gradient(180deg, #999999 0%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  display: inline-block;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

/* 4. Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  min-height: 4rem;
  padding: 1.25rem 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, #0077b6 0%, var(--accent-color) 100%);
  border-radius: 8px;
  transition: background-color 0.2s ease;
  text-align: center;
  cursor: pointer;
  border: none;
  /* 3D Effect: Outer shadow (bottom-right) and Inner highlight (top-left) */
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3),
    inset 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.btn:hover,
.btn:focus {
  background: linear-gradient(180deg, #0088cc 0%, var(--accent-hover) 100%);
  outline: 3px solid rgba(0, 90, 141, 0.3);
  outline-offset: 2px;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2),
    inset 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 5. Responsive Adjustments */
@media (min-width: 480px) {
  .button-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
  }

  .btn {
    flex: 0 1 280px;
    width: 280px;
  }
}

/* 6. Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

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