/* C:\Users\Abrofood\.gemini\antigravity\scratch\abrofood\assets\css\style.css */

/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
  --primary-color: #e63946;  /* Red for Abrofood */
  --primary-hover: #b71c1c; /* Keeping original hover for now, or should it be derived from new primary? */
  --secondary-color: #f1faee;
  --text-dark: #1f2937; /* Renamed from --text-color */
  --text-light: #6b7280; /* Renamed from --text-muted */
  --bg-color: #ffffff;
  --bg-light: #f3f4f6;
  --white: #ffffff; /* Keeping original --white */
  --border-color: #e5e7eb;
  --success: #10b981; /* Keeping original --success */
  --warning: #f59e0b; /* Keeping original --warning */
  --danger: #ef4444; /* Keeping original --danger */
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  /* Minangkabau Colors */
  --marawa-black: #111827;
  --marawa-red: #da251d;
  --marawa-yellow: #fecb00;
}

/* Minangkabau Utilities */
.minang-bg {
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20L20 0ZM20 4L4 20L20 36L36 20L20 4Z' fill='%23da251d' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.marawa-strip {
    height: 8px;
    width: 100%;
    background: linear-gradient(to right, var(--marawa-black) 33.33%, var(--marawa-red) 33.33%, var(--marawa-red) 66.66%, var(--marawa-yellow) 66.66%);
    position: sticky;
    top: 0;
    z-index: 1001;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.primary-navigation a {
  color: var(--text-dark);
  font-weight: 500;
}

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

.nav-highlight {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-highlight:hover {
  background-color: var(--primary-hover);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ==========================================================================
   Main Content Layouts
   ========================================================================== */
.main-content {
  flex-grow: 1;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

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

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

.btn-secondary:hover {
  background-color: #f3f4f6;
  color: var(--text-dark);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #1a1a1a;
  color: #e5e7eb;
  padding-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--white);
}

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

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #9ca3af;
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: #9ca3af;
}

.contact-info i {
  color: var(--primary-color);
  margin-top: 5px;
}

.footer-bottom {
  background-color: #111;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

/* ==========================================================================
   Forms & Cards (For Careers)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e0f2fe;
  color: #0369a1;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

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

/* ==========================================================================
   Minang & Spice Ornaments
   ========================================================================== */
.motif-divider {
  width: 100%;
  height: 35px;
  background: url('../images/motif-border.png') center/contain repeat-x;
  margin: 2rem 0;
}

.ornament-container {
  position: relative;
  overflow: hidden;
}

.spice-corner {
  position: absolute;
  width: 300px;
  height: 300px;
  background: url('../images/spice-corner.png') center/contain no-repeat;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.spice-corner.top-left {
  top: -80px;
  left: -80px;
  transform: rotate(15deg);
}

.spice-corner.bottom-right {
  bottom: -80px;
  right: -80px;
  transform: rotate(-165deg);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    gap: 1.5rem;
    display: none;
  }
  
  .primary-navigation[data-visible="true"] {
    display: flex;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
}
