/* ========================================
   CONCOREZZO - Landing Page Styles
   ======================================== */

/* CSS Variables */
:root {
  /* Core palette - Italian inspired with blue primary */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(214, 32%, 15%);

  /* Blue from logo */
  --primary: hsl(201, 65%, 42%);
  --primary-foreground: hsl(0, 0%, 100%);

  /* Italian flag colors */
  --italian-green: hsl(154, 100%, 27%);
  --italian-red: hsl(354, 73%, 46%);
  --italian-white: hsl(0, 0%, 100%);

  /* UI colors */
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(214, 32%, 15%);
  --secondary: hsl(210, 20%, 96%);
  --secondary-foreground: hsl(214, 32%, 15%);
  --muted: hsl(210, 20%, 96%);
  --muted-foreground: hsl(215, 16%, 47%);
  --accent: hsl(201, 65%, 95%);
  --accent-foreground: hsl(201, 65%, 30%);
  --border: hsl(214, 20%, 90%);
  --input: hsl(214, 20%, 90%);
  --ring: hsl(201, 65%, 42%);

  /* Custom tokens */
  --hero-overlay: linear-gradient(
    135deg,
    hsla(201, 65%, 20%, 0.85) 0%,
    hsla(201, 65%, 35%, 0.7) 100%
  );
  --section-divider: linear-gradient(
    90deg,
    hsl(154, 100%, 27%) 0%,
    hsl(0, 0%, 100%) 50%,
    hsl(354, 73%, 46%) 100%
  );
  --shadow-elegant: 0 4px 20px -4px hsla(201, 65%, 42%, 0.15);
  --shadow-card: 0 8px 30px -8px hsla(214, 32%, 15%, 0.1);

  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: hsla(0, 0%, 100%, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 48px;
  width: auto;
}

.logo2 {
  height: 248px;
  width: auto;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-link-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  transition: opacity 0.2s ease;
}

.nav-link-primary:hover {
  opacity: 0.9;
  color: var(--primary-foreground);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("hero-packaging.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 0;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  color: hsla(0, 0%, 100%, 0.9);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-text p {
    font-size: 1.25rem;
  }
}

.italian-flag-accent {
  display: flex;
  width: 96px;
  height: 4px;
  margin: 0 auto 2rem;
}

.italian-flag-accent span,
.italian-flag-bar span {
  flex: 1;
}

.flag-green {
  background-color: var(--italian-green);
}

.flag-white {
  background-color: var(--italian-white);
}

.flag-red {
  background-color: var(--italian-red);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-hero {
  background-color: var(--primary-foreground);
  color: var(--primary);
  box-shadow: var(--shadow-elegant);
}

.btn-hero:hover {
  opacity: 0.9;
  box-shadow: 0 8px 30px -8px hsla(0, 0%, 100%, 0.3);
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-full {
  width: 100%;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator-inner {
  width: 24px;
  height: 40px;
  border: 2px solid hsla(0, 0%, 100%, 0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator-dot {
  width: 4px;
  height: 12px;
  background-color: hsla(0, 0%, 100%, 0.5);
  border-radius: 2px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========================================
   SECTIONS - General
   ======================================== */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 640px;
  margin: 0 auto;
}

.italian-divider {
  height: 3px;
  width: 128px;
  margin: 0 auto 1.5rem;
  background: var(--section-divider);
}

.italian-divider-left {
  margin: 0 0 1.5rem 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.section-about {
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-elegant);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.section-services {
  background-color: var(--secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.services-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.services-intro {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-item {
  display: flex;
  gap: 1rem;
}

.service-check {
  flex-shrink: 0;
  color: var(--italian-green);
  margin-top: 2px;
}

.service-text h4 {
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.service-text p {
  color: var(--muted-foreground);
}

.services-card-wrapper {
  position: relative;
}

.services-card {
  background-color: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}

.services-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.benefit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.benefit-dot-green {
  background-color: var(--italian-green);
}

.benefit-dot-white {
  background-color: var(--italian-white);
  border: 1px solid var(--border);
}

.benefit-dot-red {
  background-color: var(--italian-red);
}

.benefit-dot-primary {
  background-color: var(--primary);
}

.services-card-decoration {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 100%;
  height: 100%;
  background-color: hsla(201, 65%, 42%, 0.1);
  border-radius: var(--radius);
  z-index: 0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.section-contact {
  background-color: var(--background);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-item strong {
  display: block;
  font-weight: 500;
  color: var(--foreground);
}

.contact-item span {
  color: var(--muted-foreground);
}

.contact-form-wrapper {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px hsla(201, 65%, 42%, 0.15);
}

.form-group textarea {
  resize: none;
}

.btn .btn-loading {
  display: none;
}

.btn.is-loading .btn-text {
  display: none;
}

.btn.is-loading .btn-loading {
  display: inline;
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--foreground);
  color: var(--primary-foreground);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  border-radius: 4px;
  background-color: var(--primary-foreground);
  padding: 4px;
}

.footer-brand-text strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.footer-brand-text span {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-copyright p {
  opacity: 0.7;
  font-size: 0.875rem;
}

.footer-copyright span {
  opacity: 0.5;
  font-size: 0.875rem;
}

.footer-accent {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
}

.italian-flag-bar {
  display: flex;
  width: 100%;
  height: 4px;
}

.italian-flag-bar span {
  opacity: 0.6;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elegant);
  padding: 1rem 1.5rem;
  z-index: 200;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.toast-title {
  display: block;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   UTILITIES
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
