/*
 * Main stylesheet for seguridad.com.uy
 *
 * This file defines the look and feel of the ABC ACTIVAS SRL website.  The
 * design uses a simple grid layout with responsive behaviour to ensure the
 * site looks great on both desktop and mobile devices.  Colours have been
 * chosen to echo the corporate palette of the ABC logo (dark navy and gold)
 * while maintaining sufficient contrast for accessibility.  Typography is
 * handled via the Google Font ‘Montserrat’ for a modern, professional
 * appearance.
 */

/* CSS custom properties for easy theming */
:root {
  --color-primary: #002b5c;    /* dark navy blue reminiscent of ABC logo */
  --color-secondary: #f9a825;  /* golden accent */
  --color-light: #ffffff;
  --color-dark: #0a192f;
  --color-text: #333333;
  --font-base: 'Montserrat', sans-serif;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
}

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

a:hover {
  text-decoration: underline;
}

header {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

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

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav li a {
  color: var(--color-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav li a:hover,
nav li a:focus {
  color: var(--color-secondary);
}

/* Hero section */
.hero {
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/hero-security.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-light);
  padding: 4rem 0;
  text-align: center;
}

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

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

.btn-primary {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-dark);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #e88e0c;
  color: var(--color-dark);
}

/* Sections */
section {
  padding: 3rem 0;
}

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

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

.service-card {
  background-color: var(--color-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-card p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Administration page listing */
.admin-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit {
  background-color: var(--color-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}

.benefit h3 {
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.benefit p {
  font-size: 0.95rem;
}

/* Contact form */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info,
.contact-form {
  flex: 1 1 300px;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.contact-info p {
  margin-bottom: 0.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-weight: 500;
}

form input,
form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

form textarea {
  height: 150px;
  resize: vertical;
}

form button {
  align-self: flex-start;
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover,
form button:focus {
  background-color: var(--color-secondary);
  color: var(--color-dark);
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 2rem 0;
  margin-top: 3rem;
}

footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

footer .footer-col {
  flex: 1 1 200px;
}

footer h4 {
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: var(--color-light);
  transition: color 0.3s ease;
}

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

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  nav ul {
    gap: 0.75rem;
  }
}