/*
 * Global Stylesheet for Prime Insurance Partners, LLC
 *
 * This file defines a modern, trustworthy visual aesthetic using a palette
 * of greens, charcoals and white. Color variables are defined at the
 * root level for easy customization. If you wish to change the brand
 * colors simply modify the values below. All other selectors reference
 * these variables so the site remains consistent.
 */

/* CSS Custom Properties for global colors */
:root {
  --primary: #2b7a78;       /* deep green teal – primary brand color */
  --secondary: #17252a;     /* dark charcoal – used for headings and footer */
  --accent: #3aafa9;        /* medium green – used for buttons and highlights */
  --neutral: #def2f1;       /* light mint – used for backgrounds */
  --white: #ffffff;         /* pure white */
  --error: #e74c3c;         /* red for form validation */
  --success: #2ecc71;       /* green for success messages */
  --font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-family);
  color: var(--secondary);
  background-color: var(--neutral);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout containers */
header {
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

nav li {
  margin: 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
}

footer {
  background: var(--secondary);
  color: var(--white);
  padding: 2rem 1rem;
}

footer .columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

footer a {
  color: var(--accent);
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero .cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button-primary {
  background: var(--primary);
  color: var(--white);
}

.button-primary:hover {
  background: var(--accent);
}

.button-secondary {
  background: var(--secondary);
  color: var(--white);
}

.button-secondary:hover {
  background: var(--primary);
}

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

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

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

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

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

/* Testimonials */
.testimonial {
  background: var(--white);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 1.5rem;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--secondary);
  font-weight: bold;
}

/* Form styles */
form {
  background: var(--white);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

form .form-group {
  margin-bottom: 1rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form select,
form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  margin-top: 1rem;
}

.quote-steps {
  display: none;
}

.quote-steps.active {
  display: block;
}

.error-message {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.success-message {
  background: var(--success);
  color: var(--white);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--white);
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}