:root {
  --primary: #1c5d99; /* Adriatic blue */
  --secondary: #6a8d3a; /* Olive green */
  --accent: #c76b3c; /* Terracotta */
  --light: #f5f3ef;
  --dark: #2d2d2d;
  --max-width: 1100px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}


header.header-bg {
  background: linear-gradient(135deg, var(--primary), #153f66);
  color: #ffffff;
  padding: 1.5rem 1rem 4rem;
}



/* Background image layer 
header.header-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/pics/abruzzo-map.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25; 
  z-index: 0;
}
*/


/* Gradient overlay layer 
header.header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), #153f66);
  opacity: 0.92; 
  z-index: 1;
}
*/


/* Ensure header content stays above both layers 
header.header-bg > .container,
header.header-bg nav,
header.header-bg .hero {
  position: relative;
  z-index: 2;
}
*/

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.nav-links a {
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 34rem;
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
}

.hero-list {
  margin-bottom: 1.5rem;
  list-style: none;
}

.hero-list li::before {
  content: "• ";
  color: var(--accent);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Global button styles */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

/* Primary button: solid Adriatic blue */
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #153f66;
}

/* Secondary button: light on light backgrounds (cards, sections) */
.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--light);
}


.hero-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.95rem;
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.hero-card ul {
  list-style: none;
  margin-top: 0.4rem;
}

.hero-card li {
  margin-bottom: 0.25rem;
}

main section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.96rem;
  opacity: 0.85;
  max-width: 40rem;
  margin-bottom: 1.8rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--light);
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid #e0ddd8;
  font-size: 0.96rem;
}

.card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.card ul {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
}

.badge-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #d1cbbf;
  background: #434ab3;
}

.badge-primary {
  background: rgba(101, 105, 107, 0.1);
  border-color: rgba(28,93,153,0.2);
  color: var(--primary);
}

.badge-secondary {
  background: rgba(137, 135, 139, 0.1);
  border-color: rgba(106,141,58,0.25);
  color: var(--secondary);
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.pill-list span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #f0ede8;
  font-size: 0.85rem;
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid #ddd6c9;
  padding: 1.4rem 1.5rem;
}

.pricing-card h3 {
  margin-bottom: 0.4rem;
}

.price {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-card ul {
  padding-left: 1.1rem;
  margin-bottom: 0.75rem;
  font-size: 0.94rem;
}

.muted {
  font-size: 0.88rem;
  opacity: 0.8;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.about-highlight {
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
  margin-bottom: 1rem;
}

.languages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.languages-list .lang {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d5cfc3;
  background: #f7f4f0;
  font-size: 0.9rem;
}

.testimonial-card {
  background: #faf7f3;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  border: 1px dashed #d5cfc3;
  font-size: 0.95rem;
  font-style: italic;
}

.testimonial-card .name {
  margin-top: 0.6rem;
  font-weight: 600;
  font-style: normal;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: start;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

input, textarea, select {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid #d0cbc1;
  padding: 0.55rem 0.6rem;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

footer {
  background: var(--dark);
  color: #e9e4dd;
  padding: 1.5rem 0;
  font-size: 0.88rem;
}

footer .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-layout,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pricing-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  header.header-bg {
    padding-bottom: 3rem;
  }
}

/* Fix low-contrast buttons inside service cards */
#services .card .btn-primary {
  background: #005bbb;      /* deep blue */
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  border-radius: 4px;
  text-align: center;
}

#services .card .btn-primary:hover {
  background: #004999;
}
#services .card .btn-primary {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
/* Fix low-contrast buttons in the Services preview */
#services .card .btn-secondary {
  background-color: #005bbb;   /* strong blue */
  color: #fff !important;      /* force white text */
  border: none;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
}

#services .card .btn-secondary:hover {
  background-color: #004999;
}


/* FINAL GLOBAL SECONDARY BUTTON STYLE */
a.btn-secondary,
button.btn-secondary {
  background-color: #005bbb;
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s ease;
}

a.btn-secondary:hover,
button.btn-secondary:hover {
  background-color: #004999;
}

/* Background image for Relocation & Bureaucracy tile */
.card-relocation {
  background-image: url('/pics/bureaucracy navigation.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Dark overlay for readability */
  position: relative;
  color: #ffffff;
}

.card-relocation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* adjust darkness here */
  border-radius: var(--radius);
}

.card-relocation > * {
  position: relative;
  z-index: 2;
}

/* Make the button readable on dark background */
.card-relocation .btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.card-relocation .btn-secondary:hover {
  background: var(--light);
}

/* Background image for Property Services tile */
.card-property {
  background-image: url('/pics/property & maintenance.jpg'); /* update filename */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Dark overlay for readability */
  position: relative;
  color: #ffffff;
}

.card-property::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* adjust darkness here */
  border-radius: var(--radius);
}

.card-property > * {
  position: relative;
  z-index: 2;
}

/* Make the button readable on dark background */
.card-property .btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.card-property .btn-secondary:hover {
  background: var(--light);
}

.card-legal {
  background-image: url('/pics/Legal and Real Estate.jpg');
  background-size: cover;
  background-position: center;
}

.card-construction {
  background-image: url('/pics/construction-bg.jpg');
  background-size: cover;
  background-position: center;
}

.card-legal,
.card-construction {
  position: relative;
  color: #fff;
}

.card-legal::before,
.card-construction::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* same overlay as other tiles */
  z-index: 0;
}

.card-legal > *,
.card-construction > * {
  position: relative;
  z-index: 1;
}

.card-construction {
  background-image: url("/pics/construction-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* Two‑column hero layout with image on the right */
.hero-with-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Left side text */
.hero-with-image .hero-text {
  flex: 1;
  min-width: 280px;
}

/* Right side image */
.hero-with-image .hero-image img {
  width: 320px;        /* adjust as needed */
  max-width: 100%;
  border-radius: 12px; /* optional, matches your card style */
  display: block;
}

.hero-with-image .hero-image img {
  opacity: 0.72;
}

.hero-photo {
  margin-bottom: 1.5rem;
}

.hero-photo img {
  width: 180px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
  display: block;
}
