/* globals.css */

/* Import Plus Jakarta Sans from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap');

/* Font definitions */
@font-face {
  font-family: 'Basement_Grotesque-Black';
  src: url('assets/fonts/BasementGrotesque-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Familjen_Grotesk';
  src: url('assets/fonts/FamiljenGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles */
body {
  font-family: 'Plus_Jakarta_Sans', Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  min-height: 100vh;
  background-color: #fff;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Support for fixed header */
header {
  z-index: 1000;
}

/* Accessibility improvements */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #15ab07;
  outline-offset: 2px;
}

button:hover,
a:hover {
  opacity: 0.9;
}

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

a:not([class]) {
  text-decoration: underline;
  text-decoration-skip-ink: auto;
}

ul[role="menubar"],
ul[role="menu"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
}

button:disabled,
input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive typography */
html {
  font-size: 16px;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

p {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

/* Navigation and branding styles */
.fince_pay {
  font-family: 'Basement_Grotesque-Black', 'Helvetica', sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
  background: linear-gradient(to right, #ff9933 55%, #15ab07 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  line-height: 1.2;
  animation: fadeIn 1s ease-out;
}



.accept_pay {
  font-family: 'Familjen_Grotesk', 'Helvetica', sans-serif;

  font-weight: bolder;
  font-size: clamp(1.75rem, 6vw, 4rem);
  color: #333;
  width: 100%;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

.fince_pay span {
  display: inline;
}

.home, .products, .blog, .contact, .about {
  font-family: "Plus Jakarta Sans";

  font-weight: normal;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  color: #272727;
  display: inline-block;
  line-height: 1.2;
  transition: transform 0.2s ease, color 0.2s ease;
}

.home:hover, .products:hover, .blog:hover, .contact:hover, .about:hover {
  transform: scale(1.05);
  color: #15ab07;
}

.login {
  font-family: 'Plus_Jakarta_Sans', 'Helvetica', sans-serif;
  font-weight: 500;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  color: #15ab07;
  display: inline-block;
  line-height: 1.2;
  transition: transform 0.2s ease;
}

.signup {
  font-family: 'Plus_Jakarta_Sans', 'Helvetica', sans-serif;
  font-weight: 500;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  color: #fff;
  display: inline-block;
  line-height: 1.2;
  transition: transform 0.2s ease;
}

.login:hover, .signup:hover {
  transform: scale(1.05);
}

/* Button animations */
button, a[href] {
  padding: 0.5rem 1rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

button:hover, a[href]:hover {
  transform: scale(1.05);
}

/* Card animations */
article {
  max-width: 100%;
  animation: slideIn 0.5s ease-out;
  animation-fill-mode: both;
}

article:nth-child(1) { animation-delay: 0.1s; }
article:nth-child(2) { animation-delay: 0.2s; }
article:nth-child(3) { animation-delay: 0.3s; }
article:nth-child(4) { animation-delay: 0.4s; }

/* Hero section image animations */
section:first-of-type img:not(.partner-logo) {
  animation: float 3s ease-in-out infinite;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes slideInNav {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fince_pay, .accept_pay, article, button, a[href], section:first-of-type img, nav ul.active {
    animation: none;
    transition: none;
  }
}

/* Responsive container padding */
@media (max-width: 640px) {
  .container {
    padding: 0 0.75rem;
  }
  .fince_pay {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
  }
  .home, .products, .blog, .contact, .about, .login, .signup {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
  }
}

/* Responsive navigation */
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  nav ul.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    animation: slideInNav 0.3s ease-out;
  }
  .home, .products, .blog, .contact, .about {
    font-size: 1.125rem;
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #e6e6e6;
  }
  .home:last-child, .products:last-child, .blog:last-child, .contact:last-child, .about:last-child {
    border-bottom: none;
  }
}

/* Breadcrumb styles */
.breadcrumb {
  font-family: 'Plus_Jakarta_Sans', 'Helvetica', sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: #6e6e6e;
  padding: 0.5rem 0;
  margin: 0.5rem 0;
}

.breadcrumb a {
  color: #15ab07;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #128a06;
  text-decoration: underline;
}

.breadcrumb span {
  color: #333;
  margin: 0 0.5rem;
}

/* Responsive breadcrumb */
@media (max-width: 640px) {
  .breadcrumb {
    font-size: clamp(0.625rem, 1.8vw, 0.75rem);
    padding: 0.25rem 0;
  }
  .breadcrumb a, .breadcrumb span {
    margin: 0 0.25rem;
  }
}

/* Responsive section padding */
section {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 3rem 0;
  }
}

/* Hero section responsiveness */
section:first-of-type .relative {
  max-width: 100%;
  overflow: visible;
}

/* section:first-of-type .absolute:not(.blur-3xl) {
  position: relative;
  margin: 1rem auto;
  width: 100%;
  max-width: 300px;
} */

@media (max-width: 640px) {
  /* section:first-of-type .absolute:not(.blur-3xl) {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0.5rem auto;
  } */
  section:first-of-type img:not(.partner-logo) {
    max-width: 80%;
    margin: 0 auto;
    display: block !important;
  }
  section:first-of-type .w-full.max-w-md {
    max-width: 90%;
  }
  section:first-of-type .rounded-3xl {
    transform: none !important;
  }
  .accept_pay br {
    display: none;
  }
}

/* Responsive grid layouts */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-cols-1.sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-cols-1.lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Footer responsiveness */
footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  footer .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  footer .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Blur effects */
.blur-3xl {
  filter: blur(1.5rem);
}

@media (min-width: 768px) {
  .blur-3xl {
    filter: blur(3rem);
  }
}

/* Gradient backgrounds */
.bg-gradient-to-b,
.bg-gradient-to-r {
  background-size: cover;
}

/* Adjust partner logos for mobile */
@media (max-width: 640px) {
  .flex-wrap.justify-center.gap-4 {
    gap: 1rem;
  }
  .flex-wrap.justify-center.gap-4 img {
    width: 80px;
    height: 40px;
  }
}

/* Adjust "Why Choose FincePay?" text for mobile */
section:nth-of-type(2) p {
  font-size: clamp(1rem, 4vw, 1.5rem);
  padding: 0 1rem;
}

/* Adjust card content for mobile */
article p {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

/* Ensure no overflow on mobile */
body, main {
  overflow-x: hidden;
}

/* Modern design enhancements */
button, a[href] {
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

a[href]:hover {
  background-color: rgba(21, 171, 7, 0.1);
}

section {
  transition: opacity 0.3s ease;
}

/* Improved hero section card styling */
section:first-of-type .rounded-3xl {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  section:first-of-type .rounded-3xl {
    padding: 1rem;
  }
}

/* Smooth hover effects for cards */
article {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}