/* Base styles */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles */
:root {
  --brand-50: #fef2f2;
  --brand-600: #dc2626;
  --brand-700: #b91c1c;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9fafb;
}

/* Layout utilities */
.max-w-7xl {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header styles */
header {
  background-color: var(--brand-50);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

/* Adjust the spacing in the header container */
header .max-w-7xl {
  max-width: 100%;  /* Use full width instead of 95% */
  margin: 0 auto;   /* Center the container */
  padding: 0 2rem;  /* Add some padding on the sides */
}

.logo-container {
 display: flex;
  align-items: center;
  gap: 1rem;        /* Reduced gap from 1.5rem */
  text-decoration: none;
  margin-right: 1rem; /* Reduced from 3rem */
}

.logo-image {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
}

.logo-text h1 {
  color: var(--brand-600);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.logo-text p {
  color: #4b5563;
  font-size: 1rem;
  margin: 0;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;     /* Reduced from 1.5rem */
}

@media (min-width: 768px) {
  nav {
    display: flex;
    align-items: center;
     gap: 0.75rem;
  }
}

nav a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.4rem 0.5rem; /* Reduced from 0.5rem 0.75rem */
  font-size: 1.1rem;      /* Reduced from 1.25rem */
  white-space: nowrap;
  font-weight: 600;       /* Changed from bold to 600 */
}

/* Add this to create spacing between logo and nav items */
nav a:first-child {
  margin-left: 1rem; /* Add some space after the logo */
}

/* Make sure the nav items are properly aligned */
.flex.items-center.justify-between {
  display: flex;
  justify-content: space-between;  /* Use space-between to push nav to the right */
  width: 100%;
}

nav a:hover {
  color: var(--brand-600);
  font-size: 1.15rem;  
}

nav a.active {
  color: var(--brand-600);
}

/* Main content */
main {
  flex: 1;
  padding: 3rem 0;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 3rem;
}

/*Renting Page CSS*/
.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #2563eb;
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}


/* Content sections */
.content-section {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/*Contact form - prevent Textbox overflow*/
input, select, textarea {
  width: 100%;
  box-sizing: border-box;
}
.section-header [data-lucide] {
  width: 2rem;
  height: 2rem;
  color: #2563eb;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0;
}

/* Contact info list */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: #4b5563;
  margin: 0;
}

.info-item a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}

.info-item a:hover {
  color: #1d4ed8;
}

/* Office hours */
.office-hours {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.office-hours h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.hours-grid {
  display: table;
  width: 100%;
  border-spacing: 0;
}

.hours-row {
  display: table-row;
}

.hours-row span {
  display: table-cell;
  padding: 0.25rem 0;
}

.hours-row span:first-child {
  font-weight: 500;
  color: #4b5563;
  padding-right: 2rem;
}

.hours-row span:last-child {
  text-align: right;
  color: #111827;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.input-with-icon {
  position: relative;
}

.input-with-icon [data-lucide] {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
}

.input-with-icon input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.input-with-icon input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: white;
  transition: all 0.2s;
}

select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 8rem;
  transition: all 0.2s;
}

textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Grid layouts */
.grid-cols-1 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  width: fit-content;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-primary:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

.btn [data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer */
footer {
  background-color: #111827;
  color: #d1d5db;
  padding: 3rem 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

footer h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: white;
}

.copyright {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Icons */
[data-lucide] {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* Utility classes */
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.font-semibold { font-weight: 600; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.items-center { align-items: center; }
.flex { display: flex; }