/* 
   F3 Innovations Landing Page Style
   Theme: Sage Green / Modern Professional
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&family=Pathway+Gothic+One&family=Roboto+Condensed:wght@300;400;700&family=Roboto:wght@300;400;500;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  --primary-green: #8A9A5B;       /* Sage Green */
  --primary-hover: #73824c;
  --dark-green: #33995F;          /* Accent Green */
  --dark-accent: #454839;         /* Charcoal/Green Blend */
  --text-dark: #2F2F2F;
  --text-light: #FFFFFF;
  --bg-light: #F9FBFA;            /* Warm off-white */
  --bg-white: #FFFFFF;
  --bg-muted: #F0F4F2;
  --border-color: #E2E8E5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-heading: 'Roboto Condensed', sans-serif;
  --font-body: 'Mulish', sans-serif;
  --font-accent: 'Pathway Gothic One', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--text-light);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: var(--text-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--bg-white);
  color: var(--primary-green);
  border-color: var(--bg-white);
}

.btn-white:hover {
  background-color: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
  transform: translateY(-2px);
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.sticky {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  transition: var(--transition-smooth);
}

header.sticky .container {
  height: 75px;
}

.logo img {
  height: 50px;
  transition: var(--transition-smooth);
}

header.sticky .logo img {
  height: 42px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  color: var(--text-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-green);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  background-color: var(--bg-muted);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(138, 154, 91, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  top: -10vw;
  right: -10vw;
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 24px;
}

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

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-dark);
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-white);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: var(--transition-smooth);
}

.hero-visual:hover .hero-image-wrapper {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background-color: var(--bg-white);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.hero-badge .icon-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(138, 154, 91, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-weight: bold;
}

.hero-badge .badge-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-dark);
}

.hero-badge .badge-text p {
  font-size: 0.85rem;
  color: var(--text-dark);
  opacity: 0.6;
}

/* --- Section Headers --- */
.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .tag {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--primary-green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-dark);
  opacity: 0.7;
}

/* --- AI Agent Section --- */
.ai-agent-section {
  background-color: var(--bg-white);
  position: relative;
}

.ai-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ai-feature-item {
  display: flex;
  gap: 20px;
}

.ai-feature-item .feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.ai-feature-item:hover .feature-icon {
  background-color: var(--primary-green);
  color: var(--text-light);
}

.ai-feature-item h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.ai-feature-item p {
  color: var(--text-dark);
  opacity: 0.75;
}

.ai-console-wrapper {
  background-color: var(--bg-muted);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-console-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
}

.ai-console-header {
  margin-bottom: 24px;
}

.ai-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(51, 153, 95, 0.15);
  color: var(--dark-green);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ai-status-indicator .dot {
  width: 8px;
  height: 8px;
  background-color: var(--dark-green);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

.ai-console-header h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.ai-console-header p {
  font-size: 0.95rem;
  opacity: 0.7;
}

.ai-widget-embed-box {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: var(--bg-white);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px dashed var(--primary-green);
  margin-bottom: 24px;
}

/* Custom layout for embedded ElevenLabs ConvAI widget inside the container */
elevenlabs-convai {
  width: 100%;
}

.ai-console-footer {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- Team Gallery Section --- */
.team-gallery-section {
  background-color: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 30px;
  align-items: stretch;
}

.gallery-item {
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.gallery-item.large {
  grid-column: span 1;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.gallery-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.gallery-item.large .gallery-image {
  height: 380px;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary-green);
  color: var(--text-light);
  padding: 6px 14px;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  border-radius: 4px;
  letter-spacing: 1px;
}

.gallery-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.gallery-content p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 16px;
}

.gallery-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.gallery-link::after {
  content: '→';
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-link::after {
  transform: translateX(4px);
}

/* --- Services & Core Values --- */
.services-section {
  background-color: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-5px);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(138, 154, 91, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.service-card p {
  opacity: 0.75;
  margin-bottom: 24px;
}

.service-card ul {
  list-style: none;
}

.service-card ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.service-card ul li::before {
  content: '✓';
  color: var(--dark-green);
  font-weight: bold;
}

/* --- Contact & CTA Section --- */
.contact-section {
  background-color: var(--bg-muted);
  position: relative;
}

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

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info p {
  opacity: 0.75;
  margin-bottom: 40px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: center;
}

.info-item .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 1.2rem;
}

.info-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
  opacity: 0.7;
}

.contact-form-wrapper {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(138, 154, 91, 0.15);
}

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

/* --- Footer --- */
footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.footer-logo img {
  height: 48px;
}

.social-links {
  display: flex;
  list-style: none;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.social-links a:hover {
  background-color: var(--primary-green);
  color: var(--text-light);
  border-color: var(--primary-green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.7;
}

.footer-bottom-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

/* --- Animations --- */
@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item.large {
    grid-column: span 2;
  }
  .gallery-item.large .gallery-image {
    height: 320px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section-padding {
    padding: 70px 0;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 30px 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  header.sticky .nav-links {
    top: 75px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .ai-container {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.large {
    grid-column: span 1;
  }
  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
  }
}
