/* ============================================
   Automatifan.rs - Main Stylesheet
   Converted from WordPress/Astra Theme
   ============================================ */

/* CSS Variables - Design System */
:root {
  /* Colors */
  --color-primary: #c69c6d;
  --color-primary-hover: #939393;
  --color-dark-blue: #000d44;
  --color-dark-bg: #0c0c0c;
  --color-dark-bg-alt: #26100b;
  --color-text-primary: #54595f;
  --color-text-secondary: #7a7a7a;
  --color-text-light: #ededed;
  --color-white: #ffffff;
  --color-bg-light: #ffffff;
  --color-bg-gradient-start: #ffffff;
  --color-bg-gradient-end: #dddddd;
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-size-base: 15px;
  --font-size-site-title: 35px;
  --font-size-h1: 40px;
  --font-size-h2: 30px;
  --font-size-h3: 25px;
  --font-size-h4: 20px;
  --font-size-h5: 18px;
  --line-height-base: 1.8em;
  
  /* Spacing */
  --spacing-section: 100px;
  --spacing-section-small: 50px;
  --container-max-width: 1140px;
  --container-padding: 20px;
  
  /* Shadows */
  --shadow-button: 6px 8px 10px rgba(122, 122, 122, 0.28);
  
  /* Transitions */
  --transition-base: 0.3s ease;
}

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

html {
  font-size: 93.75%; /* 15px base */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2em;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 900;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 900;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 600;
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

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

a:hover,
a:focus {
  color: var(--color-text-primary);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: 3px;
  padding: 15px 45px;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  transition: background-color var(--transition-base);
  text-align: center;
}

.btn:hover,
.btn:focus {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Header */
.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--container-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.site-logo img {
  max-width: 130px;
  height: auto;
}

.site-title {
  font-size: var(--font-size-site-title);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  display: inline-block;
}

.nav-menu a {
  color: var(--color-text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  display: inline-block;
  cursor: pointer;
}

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

.nav-menu .has-submenu {
  position: relative;
}

.nav-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 200px;
  z-index: 1000;
}

.nav-menu .has-submenu:hover .submenu {
  display: block;
}

.nav-menu .submenu li {
  margin: 0;
}

.nav-menu .submenu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text-primary);
}

.nav-menu .submenu a:hover {
  background-color: #f5f5f5;
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-primary);
  padding: 0.5rem;
  z-index: 1001;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 60vh;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--color-white);
  padding: 0 var(--container-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3.7vw;
  font-weight: 700;
  line-height: 1.1em;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.hero-content h2 {
  color: var(--color-white);
  font-size: 2.9vw;
  font-weight: 700;
  line-height: 1.1em;
  margin-bottom: 1rem;
}

.hero-content p {
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  font-weight: 500;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 129px;
  fill: var(--color-bg-light);
  display: block;
  z-index: 1;
  pointer-events: none;
  line-height: 0;
}

.hero-shape path {
  width: 100%;
  height: 100%;
}

/* Content Sections */
.content-section {
  padding: var(--spacing-section) 0;
}

.section-title {
  font-size: var(--font-size-h1);
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-size: var(--font-size-h1);
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.divider {
  width: 33%;
  margin: 1.5rem 0;
  border: none;
  border-top: 2px solid rgba(0, 0, 0, 0.34);
  position: relative;
}

.divider::before,
.divider::after {
  content: '//';
  position: absolute;
  top: -10px;
  color: rgba(0, 0, 0, 0.34);
  font-size: 20px;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider.center {
  margin: 1.5rem auto;
}

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

/* ============================================
   Product cards – unified style (product-feature-card)
   Used on: index, automati, tople-napitke, hladne-napitke, kancelarije, products
   No overlay – links/buttons always work. Good contrast for readability.
   ============================================ */
.product-feature-card {
  background-color: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
  position: relative;
}

.product-feature-card:hover {
  box-shadow: 0 12px 40px rgba(16, 45, 94, 0.15);
  border-color: var(--color-primary);
}

/* Ensure links and buttons receive clicks (no overlay) */
.product-feature-card a,
.product-feature-card .btn {
  position: relative;
  z-index: 2;
}

/* Contrast: dark text on white card */
.product-feature-card h3 {
  color: var(--color-dark-blue);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-feature-card p {
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  color: var(--color-text-primary);
  font-size: 14px;
  line-height: 1.6;
}

.product-feature-card li {
  padding: 0.25rem 0;
  color: var(--color-text-primary);
}

.product-feature-card img {
  width: 80%;
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

/* Legacy product-card: same visual as product-feature-card for products.html */
.product-card {
  background-color: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  padding: 30px;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  margin: 0;
}

.product-card::before {
  content: none;
  display: none;
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(16, 45, 94, 0.15);
  border-color: var(--color-primary);
}

.product-card .product-card-content {
  position: relative;
  z-index: 2;
}

.product-card h3 {
  color: var(--color-dark-blue);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.product-card p {
  color: var(--color-text-primary);
  text-align: left;
  line-height: 1.6;
}

.product-card img {
  width: 65%;
  height: auto;
  margin-bottom: 1.5rem;
}

.product-card a,
.product-card .btn {
  position: relative;
  z-index: 2;
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  background: linear-gradient(180deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
  padding: 60px 0;
}

.contact-card {
  padding: 70px 40px;
  text-align: center;
  border-right: 1px solid rgba(84, 89, 95, 0.25);
}

.contact-card:last-child {
  border-right: none;
}

.contact-icon {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-icon-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.contact-icon-social a {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.contact-icon-social a:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.contact-icon-social img {
  display: block;
  width: 40px;
  height: 40px;
}

.contact-icon-social a:hover img {
  opacity: 0.75;
}

/* Contact card labels - high visibility (dark color on light background) */
.contact-cards .contact-card h3,
.contact-cards .contact-card .contact-card-label,
.contact-card-label,
.contact-card h3 {
  color: #000d44 !important;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: #2c2c2c;
  font-size: 1.1em;
  font-weight: 500;
  line-height: 1.6em;
}

.contact-card p a {
  color: var(--color-dark-blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.contact-card p a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.contact-social-links a {
  display: inline-block;
  margin: 0.25em 0;
}

/* Footer */
.site-footer {
  background-color: var(--color-dark-bg);
  color: var(--color-text-light);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 41px;
  }
  
  .hero-content h2 {
    font-size: 41px;
  }
  
  .section-heading {
    font-size: 35px;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    border-right: none;
    border-bottom: 1px solid rgba(84, 89, 95, 0.25);
    padding: 40px;
  }
  
  .contact-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    gap: 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    display: block;
    border-bottom: 1px solid #eee;
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
  }
  
  .nav-menu .submenu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 1rem;
  }
  
  .nav-menu .has-submenu:hover .submenu,
  .nav-menu.active .has-submenu .submenu {
    display: block;
  }
  
  .hero-section {
    min-height: 50vh;
    max-height: 500px;
    background-attachment: scroll;
  }
  
  .hero-content {
    text-align: left;
    padding: 2rem var(--container-padding);
  }
  
  .hero-content h1,
  .hero-content h2 {
    font-size: 2.2em;
  }
  
  .hero-content p {
    font-size: var(--font-size-base);
  }
  
  .btn {
    width: 100%;
    max-width: 100%;
  }
  
  .content-section {
    padding: 50px 0;
  }
  
  .section-heading {
    font-size: 2em;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-card,
  .product-feature-card {
    padding: 1.5rem;
  }
  
  .contact-card {
    padding: 30px 20px;
  }
  
  .container {
    padding: 0 20px;
  }
}
