/* OfotLab Modern Design - Color Scheme & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Arimo:wght@400;500;700&display=swap');

:root {
  --primary-green: #2d6a4f;
  --dark-green: #1b4332;
  --light-green: #52b788;
  --accent-gold: #d4a373;
  --bg-light: #fafaf5;
  --white: #ffffff;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --border-light: #e0e0d8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Arimo', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.8;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Header & Navigation */
header, .site-header {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-green);
}

.header-container, .header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-green);
  letter-spacing: 2px;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary-green);
  letter-spacing: 1px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  margin-left: 0.5rem;
}

nav, .main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.logo-name {
  font-family: 'Raleway', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-green);
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary-green);
  letter-spacing: 1px;
  display: block;
}

nav a, .main-nav a, nav .dropdown > button, nav .dropdown > a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-green);
  padding: 0.5rem 0;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

nav a:hover, .main-nav a:hover, nav .dropdown > button:hover, nav .dropdown > a:hover {
  color: var(--light-green);
}

nav a::after, nav .dropdown > button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

nav a:hover::after, nav .dropdown > button:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown > button::after {
  content: '▼';
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.dropdown:hover > button::after,
.dropdown.active > button::after {
  transform: rotate(180deg);
}

.dropdown-menu, .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  min-width: 280px;
  margin-top: 0.5rem;
  overflow: hidden;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
  display: block;
}

.dropdown-menu a, .dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  transition: background-color 0.2s ease, color 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover, .dropdown-content a:hover {
  background-color: var(--bg-light);
  color: var(--primary-green);
  border-left-color: var(--accent-gold);
}

/* Hamburger Menu */
.hamburger, .menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-green);
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--primary-green);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background-color: rgba(82, 183, 136, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 3.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section */
section {
  padding: 4rem 2rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  display: inline-block;
  border-bottom: 3px solid var(--accent-gold);
  padding-bottom: 0.5rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: var(--bg-light);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.card p {
  flex-grow: 1;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-link {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-green);
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.card-link:hover {
  background-color: var(--light-green);
  color: var(--white);
}

/* Special Card Styles */
.card-accent {
  border-top: 4px solid var(--accent-gold);
  background: linear-gradient(135deg, var(--white) 0%, rgba(212, 163, 115, 0.05) 100%);
}

.card-accent h3 {
  color: var(--accent-gold);
}

/* YouTube Embed */
.youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Text Section */
.text-section {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.text-section h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.text-section h3:first-child {
  margin-top: 0;
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-green);
  transition: all 0.3s ease;
}

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

.contact-card h4 {
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0.5rem 0;
  color: var(--text-dark);
  word-break: break-word;
}

/* Footer */
footer {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  border-top: 3px solid var(--accent-gold);
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-info a {
  color: var(--accent-gold);
}

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

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
}

/* Page Intro & Content Sections (subpages) */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-intro {
  padding: 2rem 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 2rem;
}

.page-intro h1 {
  color: var(--dark-green);
}

.content-section {
  margin-bottom: 2rem;
}

/* Package Cards (service pages) */
.package-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-green);
}

.package-card h2, .package-card h3 {
  color: var(--primary-green);
}

.package-subtitle {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1rem;
}

.package-price, .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.1), rgba(45, 106, 79, 0.05));
  border-radius: 8px;
  display: inline-block;
}

/* Tables */
.parameters-table, table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.parameters-table th, table th {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
}

.parameters-table td, table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.parameters-table tr:nth-child(even), table tr:nth-child(even) {
  background-color: rgba(250, 250, 245, 0.8);
}

.parameters-table tr:hover, table tr:hover {
  background-color: rgba(82, 183, 136, 0.08);
}

/* Alert/Warning boxes */
.alert, .warning, .info-box {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.alert-danger, .warning-danger {
  background-color: #fff5f5;
  border-left: 4px solid #e74c3c;
  color: #c0392b;
}

.alert-warning {
  background-color: #fff8e1;
  border-left: 4px solid #f39c12;
}

.alert-info, .info-box {
  background-color: #e8f5e9;
  border-left: 4px solid var(--primary-green);
}

/* Button Styles */
.btn, .button, .download-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-green);
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
}

.btn:hover, .button:hover, .download-btn:hover {
  background-color: var(--light-green);
  color: var(--white);
  transform: translateY(-2px);
}

/* Product images in subpages */
.product-image, .content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin: 1rem 0;
}

/* Image grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.image-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* Site Footer alias */
.site-footer {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  border-top: 3px solid var(--accent-gold);
  margin-top: 4rem;
}

.site-footer a {
  color: var(--accent-gold);
}

.site-footer a:hover {
  color: var(--light-green);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: var(--white);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
}

.cta-section h2, .cta-section h3 {
  color: var(--white);
}

.cta-section a {
  color: var(--accent-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

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

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

  .header-container {
    padding: 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo-subtitle {
    font-size: 0.55rem;
  }

  nav, .main-nav {
    display: none;
  }

  nav.active, .main-nav.open, nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--white);
    padding: 1rem 2rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--primary-green);
  }

  nav.active a, .main-nav.open a, nav.active .dropdown > button, nav.active .dropdown > a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .hamburger, .menu-toggle {
    display: flex;
  }

  .dropdown-menu, .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background-color: var(--bg-light);
    margin-top: 0.5rem;
    border-radius: 0;
  }

  .dropdown.active .dropdown-menu,
  .dropdown:hover .dropdown-content,
  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-menu a, .dropdown-content a {
    padding-left: 2rem;
    font-size: 0.9rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .text-section {
    padding: 1.5rem;
  }

  .footer-info {
    flex-direction: column;
    gap: 1rem;
  }

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

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

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

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .card-image {
    height: 200px;
  }

  section {
    padding: 1.5rem 1rem;
  }
}

/* Language Switcher */
.lang-switch {
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  font-size: 0.75rem;
  font-family: 'Raleway', sans-serif;
}

.lang-switch a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  font-weight: 600;
}

.lang-switch a.active {
  color: var(--primary-green);
  border-bottom: 2px solid var(--accent-gold);
}

.lang-switch a:hover {
  color: var(--primary-green);
}
