/*
Theme Name: Trawell Child
Template: trawell
Version: 1.0.0
*/

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap");

:root{
  --blue: #3b82f6;
  --red: #ef4444;
  --gold: #f59e0b;

  --border: rgba(15,23,42,.10);
  --shadow: 0 10px 30px rgba(2,6,23,.06);

  --r-lg: 16px;
  --r-md: 12px;
}

/* ===== Base typography ===== */
body{
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4,h5,h6{
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a{ text-underline-offset: 3px; }

img{ border-radius: 14px; height:auto; }

/* ===== Layout width ===== */
.site,.wrap,.container{ max-width: 1120px; }

/* ==================================================
   BUTTONS (scope: content only)
   Nu atingem icon/search din header
================================================== */
.site-content a.wp-block-button__link,
.site-content .wp-block-button__link,
.site-content a.more-link,
.site-content .more-link,
.site-content a.read-more,
.site-content .read-more,
.site-content button,
.site-content input[type="submit"],
.site-content input[type="button"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.35rem;
  border-radius: 9999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
  color: #fff !important;
  transition: transform .2s ease, opacity .2s ease;
}

.site-content a.wp-block-button__link:hover,
.site-content .wp-block-button__link:hover,
.site-content a.more-link:hover,
.site-content .more-link:hover,
.site-content a.read-more:hover,
.site-content .read-more:hover,
.site-content button:hover,
.site-content input[type="submit"]:hover,
.site-content input[type="button"]:hover{
  transform: translateY(-1px);
  opacity: .95;
}

/* ===== Forms ===== */
.site-content input[type="text"],
.site-content input[type="email"],
.site-content input[type="tel"],
.site-content input[type="url"],
.site-content input[type="password"],
.site-content textarea,
.site-content select{
  width: 100%;
  padding: .75rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.site-content input:focus,
.site-content textarea:focus,
.site-content select:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
  border-color: rgba(59,130,246,.35);
}

/* ===== Cards (content + sidebar only) ===== */
.site-content article,
.site-content .post,
.site-content .type-post,
.sidebar .widget{
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,.92);
}

.site-content article:hover{
  transform: translateY(-2px);
}

/* ===== Footer protected ===== */
.site-footer,
.site-footer *{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* ==================================================
   HEADER + MENIU (safe)
   Doar stil, fara "last-child CTA" ca sa nu prinda search/contact
================================================== */
header,
#header,
.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

header nav a,
#header nav a,
.site-header nav a{
  border-radius: 10px;
  padding: .45rem .85rem;
  font-weight: 600;
  text-decoration: none;
}

header nav a:hover,
#header nav a:hover,
.site-header nav a:hover{
  background: rgba(59,130,246,.10);
  color: var(--blue);
}

/* CTA doar pentru linkuri de donații (nu search/icon) */
header nav a[href*="donat"],
header nav a[href*="dona"],
#header nav a[href*="donat"],
#header nav a[href*="dona"],
.site-header nav a[href*="donat"],
.site-header nav a[href*="dona"]{
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff !important;
  border-radius: 9999px;
  padding: .55rem 1.1rem;
}

/* ===== Mobile ===== */
@media (max-width: 768px){
  .site,.wrap,.container{ padding-left: 16px; padding-right: 16px; }
}
