/*
 * Brassital Srl website stylesheet
 *
 * This file defines the look and feel of the Brassital corporate site.  A
 * restrained palette of gold, dark grey and off‑white ties into the
 * company's new identity and conveys quality and tradition.  Flexbox and
 * CSS grid provide a responsive layout that adapts gracefully from
 * desktop to mobile devices.  Icons from Font Awesome add visual cues
 * without relying on unnecessary external images, while our own
 * photography (see the images folder) illustrates manufacturing
 * processes, products and the head office.
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  /* Colour palette derived from the company logo */
  --primary-colour: #B08A42;   /* warm gold */
  --primary-colour-dark: #8A6A32;
  --secondary-colour: #333333; /* dark charcoal for text */
  --light-bg: #f5f5f5;         /* soft neutral background */
  --text-colour: #555555;      /* standard body copy */
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-colour);
  line-height: 1.6;
  background-color: white;
}

/* Global container to centre content */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Language switcher in the header */
.language-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

.language-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.language-switch a:hover {
  border-color: var(--primary-colour);
}


/* Hide Google Translate default UI elements */
#google_translate_element {
  display: none;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
.goog-te-gadget-icon {
  display: none !important;
}

.goog-te-gadget {
  color: transparent;
}

body {
  top: 0 !important;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 50px;
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin-left: 30px;
}

.navbar ul li:first-child {
  margin-left: 0;
}

.navbar ul li a {
  text-decoration: none;
  color: var(--secondary-colour);
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: var(--primary-colour);
}

/* Hero section */
.hero {
  margin-top: 80px;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-colour);
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--primary-colour-dark);
}

/* Generic section styling */
.section {
  padding: 80px 0;
  /* prevent anchors from being hidden behind the fixed header */
  scroll-margin-top: 90px;
}

.section:nth-of-type(even) {
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--secondary-colour);
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background-color: var(--primary-colour);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Content rows for two‑column layouts */
.content-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.content-row .text {
  flex: 1;
}

.content-row .image {
  flex: 1;
  text-align: center;
}

.content-row .image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 50%;
}

/* Stylised icon circle for cards without photos */
.card .icon {
  width: 80px;
  height: 80px;
  background-color: rgba(176, 138, 66, 0.1);
  border: 2px solid var(--primary-colour);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-colour);
  margin: 0 auto 20px;
  text-transform: uppercase;
}

.card i {
  font-size: 50px;
  color: var(--primary-colour);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--secondary-colour);
}

.card p {
  font-size: 1rem;
  color: var(--text-colour);
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial {
  background: white;
  padding: 30px;
  max-width: 350px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  font-style: italic;
}

.testimonial::before {
  content: '\201C';
  font-size: 40px;
  color: var(--primary-colour);
  position: absolute;
  top: -20px;
  left: 10px;
}

.testimonial p {
  margin: 0;
}

.testimonial .author {
  margin-top: 15px;
  font-weight: 600;
  color: var(--secondary-colour);
  font-style: normal;
}

/* Contact section */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.contact-form {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background-color: var(--primary-colour);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.contact-details {
  flex: 1;
}

.contact-details h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-colour);
}

.contact-details p {
  margin: 8px 0;
  font-size: 1rem;
}

.contact-details i {
  color: var(--primary-colour);
  margin-right: 10px;
}

/* Footer */
footer {
  background: var(--secondary-colour);
  color: white;
  padding: 40px 0;
}

footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  font-size: 0.9rem;
}

footer h4 {
  margin-bottom: 15px;
  color: var(--primary-colour);
  font-size: 1.1rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 8px;
}

footer ul li a {
  color: #dddddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: var(--primary-colour);
}

footer p {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #bbb;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .navbar ul li {
    margin-left: 20px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .content-row {
    flex-direction: column;
  }
  .contact-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .navbar ul li {
    margin-left: 10px;
  }
  .hero-content {
    padding: 100px 20px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
}