/* ==============================================
   PMV Portugal - Modern Professional Stylesheet
   Using Bootstrap-compatible custom styling
   ============================================== */

/* CSS Variables for consistent theming */
:root {
  --pmv-primary: #b45309;
  --pmv-primary-dark: #92400e;
  --pmv-primary-light: #d97706;
  --pmv-secondary: #1e3a5f;
  --pmv-dark: #1f2937;
  --pmv-light: #f9fafb;
  --pmv-cream: #fef7ed;
  --pmv-border: #e5e7eb;
  --pmv-text: #374151;
  --pmv-text-muted: #6b7280;
  --pmv-white: #ffffff;
  --pmv-gradient: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  --pmv-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --pmv-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --pmv-radius: 0.75rem;
  --pmv-transition: all 0.3s ease;
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--pmv-light);
  color: var(--pmv-text);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.5rem;
  color: var(--pmv-secondary);
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--pmv-gradient);
  border-radius: 2px;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--pmv-text);
}

/* Links */
a {
  color: var(--pmv-primary);
  text-decoration: none;
  transition: var(--pmv-transition);
}

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

/* Header Styles */
header {
  background: var(--pmv-white);
  box-shadow: var(--pmv-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

/* Language Switcher */
.lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.lang a,
.lang span {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: var(--pmv-transition);
}

.lang span {
  background: var(--pmv-primary);
  color: var(--pmv-white);
}

.lang a {
  color: var(--pmv-text-muted);
  border: 1px solid var(--pmv-border);
}

.lang a:hover {
  background: var(--pmv-cream);
  color: var(--pmv-primary);
  border-color: var(--pmv-primary);
}

/* Logo Row */
.logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.logo-row h1 {
  margin: 0;
  color: var(--pmv-secondary);
  font-size: 1.5rem;
}

.tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pmv-primary);
  font-weight: 600;
  margin-top: 0.25rem;
}

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

/* Section Styles */
main {
  min-height: calc(100vh - 300px);
}

.section {
  padding: 4rem 0;
}

.section:nth-of-type(odd) {
  background: var(--pmv-white);
}

.section:nth-of-type(even) {
  background: var(--pmv-cream);
}

/* Hero-like first section */
.section:first-of-type {
  background: linear-gradient(135deg, var(--pmv-cream) 0%, var(--pmv-white) 100%);
  padding: 5rem 0;
}

.section:first-of-type h2 {
  font-size: 1.875rem;
  color: var(--pmv-secondary);
}

/* Lists */
ul {
  padding-left: 0;
  list-style: none;
}

ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--pmv-gradient);
  border-radius: 50%;
}

ul li strong {
  color: var(--pmv-secondary);
}

/* Info Cards */
.contact-block,
.company-block {
  background: var(--pmv-white);
  padding: 1.5rem 2rem;
  border-radius: var(--pmv-radius);
  box-shadow: var(--pmv-shadow);
  border: 1px solid var(--pmv-border);
  margin-top: 1.5rem;
}

.contact-block p,
.company-block p {
  margin-bottom: 0.75rem;
}

.contact-block p:last-child,
.company-block p:last-child {
  margin-bottom: 0;
}

.contact-block strong,
.company-block strong {
  color: var(--pmv-secondary);
  min-width: 140px;
}

/* Small Text */
.small {
  font-size: 0.875rem;
  color: var(--pmv-text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pmv-border);
}

/* Footer */
footer {
  background: var(--pmv-secondary);
  color: var(--pmv-white);
  padding: 2rem 0;
  margin-top: auto;
}

footer .container {
  text-align: center;
}

footer a {
  color: var(--pmv-cream);
}

footer a:hover {
  color: var(--pmv-white);
}

.footer-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .lang {
    order: -1;
    align-self: flex-end;
  }

  .logo-row {
    flex-direction: column;
    text-align: center;
  }

  .logo-row img {
    height: 45px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h2::after {
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
  }

  .section {
    padding: 2.5rem 0;
  }

  .section:first-of-type {
    padding: 3rem 0;
  }

  .section:first-of-type h2 {
    font-size: 1.5rem;
  }

  .contact-block,
  .company-block {
    padding: 1.25rem;
  }

  .contact-block strong,
  .company-block strong {
    min-width: 100%;
    display: block;
    margin-bottom: 0.25rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .logo-row h1 {
    font-size: 1.25rem;
  }

  .tagline {
    font-size: 0.7rem;
  }

  h2 {
    font-size: 1.125rem;
  }

  body {
    font-size: 15px;
  }
}

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

.text-muted {
  color: var(--pmv-text-muted);
}

/* Print Styles */
@media print {
  header {
    position: static;
    box-shadow: none;
  }

  .section {
    padding: 1.5rem 0;
  }

  footer {
    background: var(--pmv-light);
    color: var(--pmv-dark);
  }
}
