@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Roboto+Slab:wght@400;600;700&display=swap');

:root {
  --primary: #005541; /* Pantone 3308 C */
  --primary-light: #007a5d;
  --primary-dark: #003025;
  --text-dark: #4d4d4d; /* Pantone 70% Black */
  --text-light: #ffffff;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --footer-bg: #1a1a1a;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px rgba(0,0,0,0.15);
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 110px; /* Offset for top-bar + navbar */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif; /* Semi-serif for premium industrial feel */
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

p {
  margin-bottom: var(--spacing-sm);
}

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

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

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

/* Pill Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 50px; /* Pill shape */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

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

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

.btn-dark {
  background: var(--text-dark);
  color: var(--text-light);
}
.btn-dark:hover {
  background: black;
  color: var(--text-light);
}

/* Top Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary); /* using official color */
  color: white;
  z-index: 1001;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.top-bar .social-icons {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}
.top-bar .social-icons a {
  color: white;
  font-size: 1rem;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 30px; /* below top bar */
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border-bottom: 2px solid #eaeaea;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.navbar-brand {
  font-family: 'Roboto Slab', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.nav-cta {
  margin-left: 1rem;
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--primary-dark);
  color: var(--text-light);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0,48,37,0.8), rgba(0,48,37,0.5)),
              url('https://images.unsplash.com/photo-1540915637213-90d1f70a1a06?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  color: var(--text-light);
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
  animation: slideUp 1s ease 0.2s both;
}

.hero p.subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  color: #f0f0f0;
  font-family: 'Inter', sans-serif;
  animation: slideUp 1s ease 0.4s both;
}

.hero .btn {
  animation: slideUp 1s ease 0.6s both;
}

/* Section General */
section {
  padding: var(--spacing-xl) 0;
}

/* Flanked Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--primary-dark);
}
.section-title::before, .section-title::after {
  content: "";
  height: 2px;
  background-color: var(--primary);
  flex: 1;
  max-width: 150px;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  align-items: center;
}

/* Cards & Products */
.card {
  background: var(--bg-white);
  padding: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  overflow: hidden;
  border: 1px solid #eaeaea;
}

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

.card .card-img {
  width: 100%;
  height: 200px;
  background-color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.card .card-body {
  padding: var(--spacing-md);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-dark);
}

/* Market Sectors (Circular Icons) */
.sector-wrapper {
  text-align: center;
}
.sector-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  font-size: 3rem;
  color: var(--primary);
  transition: var(--transition);
  background: var(--bg-white);
}
.sector-wrapper:hover .sector-icon {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Filosofia Block (Overlapped Card) */
.filosofia-section {
  background-color: var(--primary);
  padding: 6rem 0;
  position: relative;
  margin-top: 4rem;
}
.filosofia-card {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-top: -10rem; /* Pull up to overlap */
  position: relative;
  z-index: 10;
}
.filosofia-card-img {
  background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=800') center/cover;
  min-height: 400px;
}
.filosofia-card-body {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Pre-Footer Action Block */
.pre-footer {
  background: var(--primary-light);
  padding: var(--spacing-md) 0;
  text-align: center;
}
.pre-footer h2 {
  color: white;
  margin-bottom: var(--spacing-sm);
  font-size: 2rem;
  font-weight: 700;
}
.pre-footer .btn {
  background: var(--text-dark);
  color: white;
  border: 2px solid var(--text-dark);
}
.pre-footer .btn:hover {
  background: transparent;
  color: var(--text-dark);
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: #ccc;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  font-size: 0.9rem;
}

footer .grid-3 {
  margin-bottom: var(--spacing-md);
}

footer h3 {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

footer a {
  color: #ccc;
  display: block;
  margin-bottom: 0.8rem;
}

footer a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid #333;
  font-size: 0.8rem;
  color: #888;
}

/* Form Styles */
.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  margin-bottom: var(--spacing-sm);
  border: 1px solid #ccc;
  border-radius: 50px; /* pill shape for inputs */
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 85, 65, 0.1);
}

textarea.form-control {
  border-radius: 20px;
  resize: vertical;
  min-height: 150px;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
  color: white;
}

/* Image Wrapper */
.img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.img-wrapper img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 3rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .filosofia-card { grid-template-columns: 1fr; margin-top: -5rem; }
  .filosofia-card-img { min-height: 250px; }
  .filosofia-card-body { padding: 2rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    flex-direction: column;
    background: var(--bg-white);
    width: 100%;
    text-align: center;
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
  }
  .nav-links.active { left: 0; }
  .menu-btn { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
  .section-title::before, .section-title::after { max-width: 50px; }
  .top-bar { display: none; } /* Hide on small mobile to save space */
  body { padding-top: 70px; }
  .navbar { top: 0; }
}
