/*
 * Stylesheet for Cocobear AI.
 *
 * This design adopts a clean, modern aesthetic with a bright teal
 * accent complemented by a warm orange.  Layouts are responsive
 * with clear typography and generous whitespace.  Sections slide
 * into view as the user scrolls.
 */

:root {
  --primary-color: #00797b;    /* Deep teal drawn from the logo */
  --secondary-color: #e6703b;  /* Warm orange accent */
  --light-background: #f9fafb; /* Very light grey for page sections */
  --card-background: #ffffff;  /* White cards */
  --text-color: #21394e;       /* Dark blue-grey for headings and body */
  --muted-color: #617a8a;      /* Muted grey-blue for secondary text */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  background: var(--light-background);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.3rem;
}
.logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px;
}
.nav a:hover,
.nav a.active {
  color: var(--primary-color);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  color: var(--card-background);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.hero-content {
  max-width: 700px;
  padding: 20px;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.cta-button {
  display: inline-block;
  background: var(--card-background);
  color: var(--primary-color);
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.cta-button:hover {
  background: var(--secondary-color);
  color: var(--card-background);
}

/* Sections */
.section {
  padding: 120px 0;
  background: var(--light-background);
  color: var(--text-color);
}
.section:nth-of-type(even) {
  background: #eef4f7;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
}
.section p {
  max-width: 800px;
  margin-bottom: 40px;
  font-size: 1rem;
  color: var(--muted-color);
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card {
  flex: 1;
  min-width: 250px;
  background: var(--card-background);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 600;
}
.card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted-color);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #d3dde5;
  border-radius: 4px;
  font-size: 1rem;
  background: var(--card-background);
  color: var(--text-color);
  resize: vertical;
}
.contact-form input:disabled,
.contact-form textarea:disabled {
  opacity: 0.6;
}
.contact-form button {
  padding: 12px;
  border: none;
  background: var(--primary-color);
  color: var(--card-background);
  border-radius: 4px;
  font-size: 1rem;
  cursor: not-allowed;
  opacity: 0.6;
}
.contact-form small {
  font-size: 0.8rem;
  color: var(--muted-color);
}
.contact-form a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--card-background);
  text-align: center;
  padding: 30px 0;
}
footer p {
  font-size: 0.9rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: var(--primary-color);
  color: var(--card-background);
  padding: 10px 14px;
  border-radius: 50%;
  display: none;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.back-to-top:hover {
  background: var(--secondary-color);
}

/* Scroll reveal */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav ul {
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    background: var(--card-background);
    width: 200px;
    transform: translateX(100%);
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
  }
  .nav ul.open {
    transform: translateX(0);
  }
  .nav a {
    padding: 15px;
    display: block;
    color: var(--text-color);
  }
  .mobile-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cards {
    flex-direction: column;
  }
}