/* MedAlfa - Clean Styles */

/* ==================== */
/* CSS Variables */
/* ==================== */
:root {
  --brand-color: #992c37;
  --brand-dark: #212226;
  --teal: #027496;
  --white: #fff;
  --gray-light: #f5f5f5;
  --gray: #333;
  --max-width: 1200px;
  --header-height: 80px;
  --mobile-header-height: 60px;
}

/* ==================== */
/* Reset & Base */
/* ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

/* ==================== */
/* Layout */
/* ==================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
}

/* ==================== */
/* Header */
/* ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

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

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

.header__nav {
  display: flex;
  align-items: center;
}

.header__nav ul {
  display: flex;
  gap: 40px;
}

.header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  padding: 10px 0;
  position: relative;
  transition: color 0.3s;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--brand-color);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-color);
  transition: width 0.3s;
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

/* Header spacer */
.header-spacer {
  height: var(--header-height);
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(153,44,55,0.7) 0%, rgba(2,116,150,0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__title {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  opacity: 0.9;
}

/* ==================== */
/* Section */
/* ==================== */
.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--gray-light);
}

.section--dark {
  background: var(--brand-dark);
  color: var(--white);
}

.section__title {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
}

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

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card__content {
  padding: 25px;
}

.card__title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--gray);
}

.card__date {
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
}

.card__text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ==================== */
/* Contact Info */
/* ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.contact-item h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--brand-color);
}

.contact-item p {
  margin-bottom: 8px;
}

.contact-item a {
  color: var(--teal);
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--brand-color);
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
  background: linear-gradient(90deg, var(--brand-dark) 24%, var(--brand-color) 100%);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo img {
  max-width: 200px;
  margin-bottom: 20px;
}

.footer__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer__text {
  font-size: 14px;
  line-height: 1.8;
}

.footer__text a {
  transition: opacity 0.3s;
}

.footer__text a:hover {
  opacity: 0.8;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
}

.footer__credits {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__credits img {
  height: 25px;
}

/* ==================== */
/* Buttons */
/* ==================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

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

.btn--primary:hover {
  background: #7a2430;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--brand-color);
}

/* ==================== */
/* Mobile Menu */
/* ==================== */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--brand-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 80vw;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s;
  padding-top: 80px;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer ul {
  padding: 0;
}

.mobile-drawer li {
  border-bottom: 1px solid #eee;
}

.mobile-drawer a {
  display: block;
  padding: 18px 20px;
  font-size: 16px;
  color: var(--gray);
}

.mobile-drawer a:hover,
.mobile-drawer a.active {
  background: var(--gray-light);
  color: var(--brand-color);
}

/* ==================== */
/* Responsive */
/* ==================== */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--mobile-header-height);
  }

  .header__nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero__title {
    font-size: 32px;
  }

  .section {
    padding: 50px 0;
  }

  .section__title {
    font-size: 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo img {
    margin: 0 auto 20px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
  }

  .hero__title {
    font-size: 26px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* ==================== */
/* Utilities */
/* ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
