/* ==========================================
   SHARED PAGE STYLES - AHC Website
   ========================================== */

/* Hero Badge - shared across pages */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 56, 133, 0.1);
  color: var(--ahc-blue);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 56, 133, 0.2);
}

.hero-badge i {
  color: var(--ahc-gold);
}

/* Text Gradient - shared across pages */
.text-gradient {
  background: linear-gradient(135deg, var(--ahc-blue) 0%, var(--ahc-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text colors */
.text-green {
  color: var(--ahc-green);
}

.text-gold {
  color: var(--ahc-gold);
}

/* ==========================================
   PAGE HERO - Common styles
   ========================================== */
.page-hero {
  background: linear-gradient(135deg, var(--off-white) 0%, var(--light-blue) 100%);
  padding: 100px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.page-hero .hero-subtitle {
  font-size: 20px;
  color: var(--dark-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================
   TECHNOLOGY PAGE
   ========================================== */

/* Content Block */
.content-block {
  max-width: 800px;
  margin: 0 auto 48px;
}

.content-block p {
  font-size: 17px;
  line-height: 1.8;
}

/* Problem Grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.problem-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.problem-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: rgba(200, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #c00;
}

.large-particles {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.large-particles span {
  width: 18px;
  height: 18px;
  background: #999;
  border-radius: 50%;
}

.large-particles span:nth-child(2) {
  width: 14px;
  height: 14px;
}

.large-particles span:nth-child(3) {
  width: 20px;
  height: 20px;
}

.problem-card h4 {
  color: var(--ahc-blue);
  margin-bottom: 12px;
}

.problem-card p {
  color: var(--dark-gray);
  font-size: 15px;
  margin: 0;
}

/* Nano Hero Visual - AI Generated Image */
.nano-solution {
  overflow: hidden;
}

.nano-hero-visual {
  padding: 40px 0 60px;
}

.nano-image-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 34, 85, 0.2);
}

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

.nano-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 34, 85, 0.8), transparent);
}

.nano-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-icon {
  width: 32px;
  height: 32px;
  background: var(--ahc-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.badge-text {
  font-weight: 600;
  color: var(--ahc-blue);
  font-size: 14px;
}

/* Nano Features Below Image */
.nano-features {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.nano-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-gray);
}

.feature-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.core-dot {
  background: radial-gradient(circle at 30% 30%, #ffdd66, var(--ahc-gold));
  box-shadow: 0 0 10px rgba(255, 192, 0, 0.5);
}

.shell-dot {
  background: radial-gradient(circle at 30% 30%, rgba(0, 56, 133, 0.4), var(--ahc-blue));
  box-shadow: 0 0 10px rgba(0, 56, 133, 0.3);
}

.size-dot {
  background: linear-gradient(135deg, var(--ahc-blue), var(--ahc-gold));
  box-shadow: 0 0 10px rgba(0, 56, 133, 0.3);
}

.nano-feature strong {
  color: var(--ahc-blue);
}

/* Nano Description */
.nano-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.nano-description p {
  font-size: 17px;
  line-height: 1.8;
}

/* Benefits Grid with Visual Cards */
.benefits-grid-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.benefit-card-visual {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 56, 133, 0.15);
}

.benefit-image-wrapper {
  height: 200px;
  overflow: hidden;
}

.benefit-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.benefit-card-visual:hover .benefit-image {
  transform: scale(1.05);
}

.benefit-content {
  padding: 24px;
}

.benefit-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--ahc-blue);
}

.benefit-content p {
  color: var(--dark-gray);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Split Content */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.facility-visual {
  background: var(--light-blue);
  border-radius: 16px;
  padding: 60px;
  position: relative;
  text-align: center;
}

.facility-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: var(--ahc-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--white);
}

.facility-badge {
  display: inline-block;
  background: var(--ahc-green);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.facility-elements {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
}

.element {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ahc-blue);
}

.split-text h2 {
  margin-bottom: 24px;
}

.split-text p {
  font-size: 17px;
  line-height: 1.8;
}

/* CTA Content - Shared */
.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */

/* Story Content */
.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-content h2 {
  text-align: center;
  margin-bottom: 32px;
}

.story-content p {
  font-size: 17px;
  line-height: 1.9;
}

/* Quote Block */
.quote-block {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 48px;
}

.quote-text {
  font-family: Georgia, serif;
  font-size: 36px;
  font-style: italic;
  color: var(--ahc-gold);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Approach Content */
.approach-content {
  max-width: 800px;
  margin: 0 auto;
}

.approach-content h2 {
  text-align: center;
  margin-bottom: 32px;
}

.approach-content p {
  font-size: 17px;
  line-height: 1.9;
}

/* Facility Section */
.facility-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.facility-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 34, 85, 0.15);
}

.facility-image {
  width: 100%;
  height: auto;
  display: block;
}

.facility-section .facility-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ahc-blue);
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.facility-section .facility-badge i {
  color: var(--ahc-green);
}

.facility-text h2 {
  margin-bottom: 24px;
}

.facility-text p {
  font-size: 17px;
  line-height: 1.8;
}

/* Global Section */
.global-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.global-text h2 {
  margin-bottom: 24px;
}

.global-text p {
  font-size: 17px;
  line-height: 1.8;
}

.global-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 34, 85, 0.15);
}

.global-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.feature-block {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--ahc-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 24px;
}

.feature-block h3 {
  margin-bottom: 20px;
}

.feature-block p {
  font-size: 16px;
  line-height: 1.8;
}

/* Mission Block */
.mission-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission-block h2 {
  margin-bottom: 24px;
}

.mission-text {
  font-size: 22px;
  line-height: 1.7;
  font-style: italic;
  color: var(--dark-gray);
}

/* ==========================================
   SPECIES PAGE
   ========================================== */

/* Intro Content */
.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content p {
  font-size: 17px;
  line-height: 1.8;
}

/* Species Grid Large */
.species-grid-large {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.species-card-large {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid var(--border-gray);
}

.species-card-large:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 56, 133, 0.15);
  border-color: var(--ahc-blue);
}

.species-card-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.species-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.species-card-large:hover .species-image {
  transform: scale(1.05);
}

.species-icon-overlay {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 12px;
  border: 2px solid var(--ahc-blue);
  transition: all 0.3s ease;
}

.species-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.species-card-large:hover .species-icon-overlay {
  background: var(--ahc-blue);
  transform: scale(1.1);
  border-color: var(--ahc-gold);
}

.species-card-large:hover .species-icon-img {
  filter: brightness(0) invert(1);
}

.species-card-content {
  padding: 32px;
}

.species-card-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--ahc-blue);
}

.species-card-content p {
  color: var(--dark-gray);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-link {
  color: var(--ahc-blue);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.species-card-large:hover .card-link {
  gap: 12px;
  color: var(--ahc-green);
}

/* Additional Species */
.additional-species {
  max-width: 600px;
  margin: 0 auto;
}

.species-card-small {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.species-card-small:hover {
  transform: translateX(8px);
  border-color: var(--ahc-blue);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.species-icon-small {
  width: 65px;
  height: 65px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px;
  border: 2px solid var(--ahc-blue);
}

.species-icon-img-small {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.species-card-text {
  flex: 1;
}

.species-card-text h4 {
  color: var(--ahc-blue);
  margin-bottom: 4px;
}

.species-card-text p {
  color: var(--dark-gray);
  font-size: 14px;
  margin: 0;
}

.species-card-small .arrow {
  font-size: 20px;
  color: var(--ahc-blue);
  transition: transform 0.3s ease;
}

.species-card-small:hover .arrow {
  transform: translateX(4px);
}

/* Cross Species */
.cross-species {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cross-species h2 {
  margin-bottom: 24px;
}

.cross-species p {
  font-size: 17px;
  line-height: 1.8;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .page-hero h1 {
    font-size: 40px;
  }
  
  .problem-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .nano-image-container {
    max-width: 800px;
  }
  
  .nano-features {
    gap: 32px;
  }
  
  .benefits-grid-visual {
    grid-template-columns: 1fr;
  }
  
  .split-content {
    grid-template-columns: 1fr;
  }
  
  .facility-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .global-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .quote-text {
    font-size: 28px;
  }
  
  .species-grid-large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 60px 0 40px;
  }
  
  .page-hero h1 {
    font-size: 32px;
  }
  
  .nano-features {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .nano-feature {
    font-size: 14px;
  }
  
  .benefits-grid-visual {
    gap: 24px;
  }
  
  .benefit-image-wrapper {
    height: 160px;
  }
  
  .facility-visual {
    padding: 40px 20px;
  }
  
  .quote-text {
    font-size: 24px;
  }
  
  .feature-block {
    padding: 30px 24px;
  }
  
  .mission-text {
    font-size: 18px;
  }
  
  .species-card-visual {
    height: 160px;
  }
  
  .species-icon-overlay {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .species-card-content {
    padding: 24px;
  }
  
  .species-card-small {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  
  .species-card-small .arrow {
    display: none;
  }
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

/* Contact Page Hero with Background Image */
.page-hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
  padding: 120px 0 100px;
}

.page-hero[style*="background-image"] h1 {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-hero[style*="background-image"] .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero[style*="background-image"] .hero-badge {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

/* Intro Text */
.intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-text p {
  font-size: 17px;
  line-height: 1.8;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact Form */
.contact-form-container {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.contact-form-container h2 {
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--ahc-blue);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ahc-blue);
  box-shadow: 0 0 0 3px rgba(0, 56, 133, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--light-gray);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

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

.btn-submit {
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  margin-top: 8px;
}

.form-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
  font-weight: 500;
}

.form-message.success {
  background: var(--light-green);
  color: #006600;
}

.form-message.error {
  background: #ffe6e6;
  color: #cc0000;
}

.form-message i {
  font-size: 20px;
}

/* Contact Info */
.contact-info h2 {
  margin-bottom: 32px;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ahc-blue);
  flex-shrink: 0;
}

.info-content h4 {
  color: var(--ahc-blue);
  margin-bottom: 4px;
  font-size: 16px;
}

.info-content p {
  color: var(--dark-gray);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.info-content a {
  color: var(--ahc-blue);
  font-weight: 500;
  font-size: 15px;
}

.info-content a:hover {
  color: var(--ahc-green);
}

/* Why Contact */
.why-contact {
  margin-top: 40px;
  padding: 30px;
  background: var(--light-blue);
  border-radius: 12px;
}

.why-contact h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.why-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--dark-gray);
  font-size: 15px;
}

.why-contact li i {
  color: var(--ahc-green);
  font-size: 14px;
}

/* Contact Page Responsive */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-hero[style*="background-image"] {
    padding: 60px 0 40px;
  }
  
  .contact-form-container {
    padding: 30px 24px;
  }
  
  .info-card {
    padding: 16px;
  }
  
  .why-contact {
    padding: 24px 20px;
  }
}
