/*
 * Global styles for the 2R S.R.L. company website.
 * This stylesheet defines a modern, professional look using a neutral
 * colour palette with subtle accents. Layouts are responsive and adjust
 * gracefully across screen sizes. Variables at the top make it easy to
 * tweak the colour scheme as needed.
 */

:root {
  /* Primary dark colour used for navigation and footer backgrounds */
  --primary-colour: #2c3e50;
  /* Secondary accent colour used for highlights and buttons */
  --secondary-colour: #2980b9;
  /* Text colour for body copy */
  --text-colour: #333333;
  /* Light background colour for alternating sections */
  --background-colour: #f7f8fa;
  /* Light grey for form borders and subtle separators */
  --light-grey: #e5e7eb;
}

/* Reset some default margins and apply a comfortable line height */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-colour);
  line-height: 1.6;
  background-color: #ffffff;
}

/* Container centers content and limits maximum width for readability */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation bar styling */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-colour);
  color: #ffffff;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav .logo img {
  /* Slightly larger height to accommodate the provided logo */
  height: 48px;
}

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

nav .nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav .nav-links a:hover {
  opacity: 0.8;
}

/* Language toggle buttons */
.lang-toggle button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 600;
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.lang-toggle button:hover,
.lang-toggle button.active {
  background-color: var(--secondary-colour);
}

/* Hero section with a gradient background */
.hero {
  background: linear-gradient(to bottom right, var(--primary-colour), var(--secondary-colour));
  color: #ffffff;
  text-align: center;
  padding: 4rem 1rem;
}

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

.hero p {
  font-size: 1.2rem;
  margin: 0.25rem 0;
}

/* Section styling */
.section {
  padding: 3rem 0;
}

.section.alt-bg {
  background-color: var(--background-colour);
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-colour);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--secondary-colour);
  font-size: 1.25rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-colour);
}

/* About section paragraphs */
#about p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Portfolio placeholder */
.instagram-feed {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Contact section */
.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.contact-form {
  flex: 1;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  display: inline-block;
  background-color: var(--secondary-colour);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.contact-form .btn:hover {
  background-color: var(--primary-colour);
}

/* Footer styling */
footer {
  background-color: var(--primary-colour);
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Media queries for larger layouts */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.3rem;
  }
  .contact-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
  .contact-info {
    flex-basis: 40%;
  }
  .contact-form {
    flex-basis: 60%;
  }
}