/* 
 * Qualification Verification Provider Website
 * Main Stylesheet
 */

/* ===== VARIABLES ===== */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #94a3b8;
  --primary: #0d9488;
  --primary-foreground: #ffffff;
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-600: #0d9488;
  --teal-800: #115e59;
  --teal-900: #134e4a;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  height: 1.5rem;
  width: 1.5rem;
  color: var(--teal-600);
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}

.mobile-menu-button svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
  
  .mobile-menu-button {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.mobile-menu nav a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
  width: 100%;
  padding: 3rem 0;
  background-image: linear-gradient(to bottom, var(--teal-50), white);
}

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

@media (min-width: 1024px) {
  .hero-section {
    padding: 8rem 0;
  }
}

.hero-container {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-description {
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image-container {
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 28rem;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: linear-gradient(to top, rgba(13, 148, 136, 0.7), transparent);
  padding: 1rem;
}

.hero-image-text {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== SECTION STYLES ===== */
.section {
  width: 100%;
  padding: 3rem 0;
  background-color: white;
}

.section.teal-bg {
  background-color: var(--teal-50);
}

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

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  max-width: 700px;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .section-description {
    font-size: 1.25rem;
  }
}

.subsection {
  margin-top: 4rem;
}

.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ===== COMPONENTS ===== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  height: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-lg {
  height: 3rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
}

.btn-primary:hover {
  background-color: #0f766e;
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--muted);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
}

.btn-icon svg {
  margin-right: 0.5rem;
  height: 1rem;
  width: 1rem;
}

.btn-full {
  width: 100%;
}

/* Cards */
.card {
  background-color: var(--background);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-content {
  padding: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.service-icon {
  height: 2.5rem;
  width: 2.5rem;
  color: var(--teal-600);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.service-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Two Column Layout */
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.content-block {
  margin-bottom: 1.5rem;
}

.content-block-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.content-block-text {
  color: var(--muted-foreground);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.value-icon {
  height: 1.25rem;
  width: 1.25rem;
  color: var(--teal-600);
  margin-top: 0.25rem;
}

.value-content h4 {
  font-weight: 600;
}

.value-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-image-container {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-weight: 700;
}

.team-position {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.team-bio {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Accordion */
.accordion {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 500;
  cursor: pointer;
}

.accordion-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  padding: 1rem;
  max-height: 500px;
}

/* Contact Form */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact-info-icon {
  height: 1.25rem;
  width: 1.25rem;
  color: var(--teal-600);
}

.contact-map {
  height: 16rem;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.input,
.textarea {
  display: flex;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}

.input:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

/* ===== FOOTER ===== */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border);
  background-color: var(--teal-900);
  color: white;
  padding: 2rem 0;
}

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

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

.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  height: 1.5rem;
  width: 1.5rem;
  color: white;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--teal-100);
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-contact-icon {
  height: 1rem;
  width: 1rem;
  color: var(--teal-100);
}

.footer-contact-text {
  font-size: 0.875rem;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid var(--teal-800);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.flex-center {
  display: flex;
  justify-content: center;
}

.gap-4 {
  gap: 1rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Form validation styles */
.border-red-500 {
  border-color: #ef4444 !important;
}

.bg-red-50 {
  background-color: #fef2f2 !important;
}
