/*
Theme Name: TrofoTrading
Description: Ett modernt och responsivt WordPress-tema för Trofo Trading - catering och livsmedel i Kalmar
Author: Trofo Trading
Version: 1.0.0
Text Domain: trofotrading
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* CSS Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* WordPress Alignment Classes */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.header-content {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  display: inline-block;
  cursor: pointer;
}

.site-logo img {
  height: auto;
  transition: opacity 0.3s ease;
}

.site-logo img:hover {
  opacity: 0.8;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
  }
}

.nav-menu a {
  font-weight: 500;
  color: #374151;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #111827;
  text-decoration: none;
}

/* Special styling for Portalen menu item */
.nav-menu li:last-child a {
  background-color: #111827;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.nav-menu li:last-child a:hover {
  background-color: #1f2937;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #111827;
  color: #ffffff;
  border-color: #111827;
}

.btn-primary:hover {
  background-color: #1f2937;
  border-color: #1f2937;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: #374151;
  border-color: #d1d5db;
}

.btn-outline:hover {
  background-color: #f9fafb;
  text-decoration: none;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-white {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-white:hover {
  background-color: #ffffff;
  color: #111827;
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-image {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  text-align: center;
  color: #ffffff;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-bg-white {
  background-color: #ffffff;
}

.section-bg-gray {
  background-color: #f9fafb;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  font-size: 1rem;
  color: #6b7280;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-description {
    font-size: 1.25rem;
  }
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\\:gap-12 {
    gap: 3rem;
  }
}

.max-w-5xl {
  max-width: 64rem;
  margin: 0 auto;
}

.max-w-4xl {
  max-width: 56rem;
  margin: 0 auto;
}

/* Service Cards */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.service-icon {
  display: flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f3f4f6;
}

.service-icon svg {
  height: 2rem;
  width: 2rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.service-description {
  color: #6b7280;
}

/* Delivery Section */
.delivery-grid {
  display: block;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .delivery-grid {
    max-width: 900px;
  }
}

.delivery-content {
  text-align: center;
}

.delivery-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.delivery-description {
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.delivery-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.delivery-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.delivery-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.delivery-feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #374151;
}

.delivery-feature-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.delivery-feature-text p {
  color: #6b7280;
  line-height: 1.6;
}

/* About Section */
.about-grid {
  display: block;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .about-grid {
    max-width: 900px;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .about-title {
    font-size: 2.25rem;
  }
}

.about-description {
  color: #6b7280;
  font-size: 1rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .about-description {
    font-size: 1.25rem;
  }
}

.about-features {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}

.about-feature svg {
  height: 1rem;
  width: 1rem;
  color: #6b7280;
  flex-shrink: 0;
}

.about-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 400px) {
  .about-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Tabs */
.tabs-container {
  margin-top: 3rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  color: #6b7280;
}

.tab-button:hover {
  color: #374151;
}

.tab-button.active {
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  color: #111827;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
}

.tab-content-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tab-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.tab-description {
  color: #6b7280;
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tab-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.tab-list-item svg {
  height: 1.25rem;
  width: 1.25rem;
  color: #6b7280;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.tab-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
}

.tab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section */
.contact-grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f3f4f6;
}

.contact-icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.contact-text h3 {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-text p {
  color: #6b7280;
}

.map-container {
  padding-top: 1rem;
}

.map-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
}

.map-wrapper iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 0.5rem;
}

.contact-form {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.success-message {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.375rem;
  color: #166534;
}

/* FAQ Section */
.faq-container {
  margin-top: 4rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #6b7280;
}

/* Footer */
.site-footer {
  background-color: #111827;
  color: #ffffff;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-section img {
  height: auto;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #9ca3af;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-item svg {
  height: 1rem;
  width: 1rem;
  color: #9ca3af;
}

.footer-contact-item span {
  color: #9ca3af;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  background-color: #ffffff;
  color: #111827;
  font-size: 0.875rem;
}

.newsletter-input::placeholder {
  color: #9ca3af;
}

.newsletter-button {
  background-color: #6b7280;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-button:hover {
  background-color: #4b5563;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  color: #9ca3af;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.pt-12 {
  padding-top: 3rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

/* Utility Classes for Navigation */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

@media (min-width: 768px) {
  .md\\:flex {
    display: flex;
  }
  
  .md\\:hidden {
    display: none;
  }
}

/* Navigation Styles */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .about-title {
    font-size: 1.5rem;
  }
  
  .tab-title {
    font-size: 1.25rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
} 