/* ============================================
   YachayRA — Main Stylesheet
   Plain HTML + CSS, no frameworks
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Raleway:wght@600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --primary:       #2A6B6E;
  --primary-light: #4DB0B1;
  --primary-dark:  #1E4D4F;
  --secondary:     #C0392B;
  --secondary-dark:#A93226;
  --dark:          #1A1A2E;
  --light-bg:      #F8F9FA;
  --white:         #FFFFFF;
  --text:          #2C3E50;
  --text-muted:    #6C757D;
  --text-light:    #ADB5BD;
  --border:        #E0E0E0;

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Raleway', 'Inter', sans-serif;

  --container-max: 1140px;
  --container-padding: 1.5rem;
  --section-padding: 5rem 0;
  --section-padding-sm: 3rem 0;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.125rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p + p { margin-top: 1rem; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--dark);
  padding: 0 1.5rem;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.navbar-brand:hover {
  color: var(--primary-light);
}

.navbar-brand span {
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.938rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  background-color: var(--primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navbar scroll shadow */
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero h1 span {
  color: var(--primary-light);
}

.hero .subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* Page hero (smaller, for inner pages) */
.hero-page {
  padding: 8rem 0 3.5rem;
}

.hero-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero-page .subtitle {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-light);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 107, 110, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--light-bg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ============================================
   CARD GRID
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--white);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

.card .card-link:hover {
  gap: 0.75rem;
  color: var(--primary-dark);
}

/* ============================================
   SERVICE DETAIL BLOCKS
   ============================================ */
.service-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block .card-icon {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.service-block h3 {
  margin-bottom: 0.75rem;
}

.service-block p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-block ul {
  list-style: none;
  padding: 0;
}

.service-block ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

.service-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-light);
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card .project-context {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: rgba(42, 107, 110, 0.1);
  color: var(--primary);
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card .team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-card .team-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.team-social a:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-item div {
  padding-top: 0.25rem;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.contact-item span,
.contact-item a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-social a:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(77, 176, 177, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .btn {
  width: 100%;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

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

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 0.25rem;
}

.footer-contact-info p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-contact-info a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-info a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   APPROACH / STATS SECTION
   ============================================ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.approach-item {
  padding: 2rem;
}

.approach-item .approach-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.approach-item h4 {
  margin-bottom: 0.5rem;
}

.approach-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero h1 { font-size: 2.75rem; }
  .hero-page h1 { font-size: 2.125rem; }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
    --container-padding: 1.25rem;
  }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--dark);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0.25rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.open {
    display: block;
  }

  /* Hero */
  .hero {
    padding: 7rem 0 3.5rem;
  }

  .hero h1 {
    font-size: 2.125rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  .hero-page {
    padding: 6rem 0 2.5rem;
  }

  /* Grids */
  .card-grid,
  .team-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  /* Service blocks */
  .service-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Buttons */
  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
