/* ================================================================
   CĂMINUL PENTRU PERSOANE VÂRSTNICE PERIȘ — Shared Styles
   ================================================================ */

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

:root {
  --cream:       #FDF6EE;
  --warm-bg:     #FBF0E0;
  --sand:        #F0E0C4;
  --sand-light:  #FAF0DF;
  --terracotta:  #C2714F;
  --terra-dark:  #A05A38;
  --terra-light: #E8956C;
  --amber:       #D4832A;
  --amber-light: #F0B060;
  --sage:        #7A9E7E;
  --sage-dark:   #5C7D5F;
  --brown:       #6B4226;
  --brown-dark:  #3A2218;
  --text-dark:   #3A2E27;
  --text-mid:    #6B5744;
  --text-light:  #9B836C;
  --white:       #FFFFFF;
  --shadow-sm:   0 2px 8px rgba(106,66,38,.10);
  --shadow-md:   0 6px 24px rgba(106,66,38,.14);
  --shadow-lg:   0 16px 48px rgba(106,66,38,.20);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --transition:  .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 17px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5 {
  font-family: 'Georgia', serif;
  line-height: 1.3;
  color: var(--brown);
}

a { color: var(--terracotta); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terra-dark); }
img { max-width: 100%; display: block; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--brown-dark);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-family: Arial, sans-serif;
  padding: 8px 0;
  border-bottom: 2px solid var(--terracotta);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: var(--amber-light); }
.topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.topbar-sep { margin-left: auto; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(106,66,38,.12);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--terracotta), var(--amber));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(194,113,79,.35);
}
.logo-icon img { width: 36px; height: 36px; object-fit: contain; filter: brightness(0) invert(1); }
.logo-icon svg { color: white; width: 26px; height: 26px; }
.logo-text strong {
  display: block;
  font-size: 15.5px;
  font-family: Georgia, serif;
  color: var(--brown);
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  font-family: Arial, sans-serif;
}
/* Navbar: ascunde icon-ul și afișează doar textul */
.navbar .logo-icon { display: none; }
.navbar .logo { gap: 0; }
.navbar .logo-text strong { font-size: 17px; color: var(--brown-dark); }
.navbar .logo-text span { font-size: 12.5px; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: var(--sand-light);
  color: var(--terracotta);
}
.nav-links > li > a .chevron {
  width: 12px; height: 12px;
  transition: transform var(--transition);
}
.nav-links > li:hover > a .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  border: 1px solid var(--sand);
  overflow: hidden;
}
.nav-links > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-family: Arial, sans-serif;
  font-size: 13.5px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--sand-light);
  transition: background var(--transition);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--warm-bg); color: var(--terracotta); }
.dropdown-icon { display: none; }

/* CTA button */
.nav-cta {
  background: linear-gradient(135deg, var(--terracotta), var(--amber)) !important;
  color: var(--white) !important;
  border-radius: 9px !important;
  box-shadow: 0 3px 10px rgba(194,113,79,.3) !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--terra-dark), var(--terracotta)) !important;
  color: var(--white) !important;
  box-shadow: 0 5px 16px rgba(194,113,79,.4) !important;
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--brown);
}

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58,34,24,.75) 0%, rgba(106,66,38,.55) 100%);
}
.page-hero-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 0 24px;
}
.page-hero-content h1 {
  color: white;
  font-size: clamp(26px, 4vw, 42px);
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: 10px;
}
.page-hero-breadcrumb {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero-breadcrumb a:hover { color: var(--amber-light); }

/* ===== SECTION BASE ===== */
section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: var(--sand);
  color: var(--terracotta);
  font-family: Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 16px;
  color: var(--brown);
}
.section-lead {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 660px;
  margin-bottom: 52px;
  line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--terracotta), var(--amber));
  color: white;
  box-shadow: 0 4px 14px rgba(194,113,79,.35);
}
.btn-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(194,113,79,.45);
}
.btn-secondary {
  background: white;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}
.btn-secondary:hover {
  background: var(--terracotta);
  color: white;
  transform: translateY(-2px);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.6);
  color: white;
  background: transparent;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  color: white;
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(194,113,79,.1);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-accent { border-top: 4px solid var(--terracotta); }

/* Service icon */
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-terra  { background: linear-gradient(135deg, #FDE8DB, #F5C4A7); }
.icon-sage   { background: linear-gradient(135deg, #DDEEDE, #B5D6B8); }
.icon-amber  { background: linear-gradient(135deg, #FEF0D0, #F5D48A); }
.icon-brown  { background: linear-gradient(135deg, #EDE0D4, #D4B89A); }
.icon-blue   { background: linear-gradient(135deg, #D8EAF5, #A8C8E8); }
.icon-rose   { background: linear-gradient(135deg, #FDDCE0, #F5AABC); }

/* Check list */
.check-list {
  list-style: none;
  margin-top: 14px;
}
.check-list li {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  color: var(--terracotta);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Arrow list */
.arrow-list {
  list-style: none;
}
.arrow-list li {
  font-family: Arial, sans-serif;
  font-size: 14.5px;
  color: var(--text-mid);
  padding: 5px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}
.arrow-list li::before {
  content: '→';
  color: var(--terracotta);
  flex-shrink: 0;
}

/* ===== FORMS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: .02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: Arial, sans-serif;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(194,113,79,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== FOOTER ===== */
footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,.65);
  padding: 64px 24px 0;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p {
  font-family: Arial, sans-serif;
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  margin-top: 18px;
  line-height: 1.75;
  max-width: 300px;
}
.footer-logo-text strong { color: #FFD08A !important; }
.footer-logo-text span { color: rgba(255,255,255,.45) !important; }
.footer-col h4 {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
  font-family: Arial, sans-serif;
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: #FFD08A; }
.footer-bottom {
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: #FFD08A; }
.footer-accent-line {
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--amber), var(--terra-light));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  section { padding: 56px 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 16px;
    gap: 4px;
    z-index: 300;
  }
  .nav-links.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--warm-bg);
    border-radius: var(--radius-sm);
    margin-top: 4px;
  }
  .nav-hamburger { display: flex; }
  .navbar { position: relative; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { height: 220px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .topbar-inner > *:not(:first-child) { display: none; }
}
