/* RAR Consultancy & Management – Block services website */
:root {
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-accent: #c4a747;
  --color-accent-hover: #a88b2d;
  --color-text: #2d3748;
  --color-text-muted: #4a5568;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-border: #e2e8f0;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #1a202c;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #1a202c;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.site-logo a {
  color: inherit;
  text-decoration: none;
}

.site-logo a:hover {
  text-decoration: none;
  color: var(--color-primary-light);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  text-decoration: none;
}


.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* Main content */
.main-content {
  min-height: calc(100vh - var(--header-height) - 200px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 4rem 1.5rem 4.5rem;
  text-align: left;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.92) 0%, rgba(44, 82, 130, 0.88) 50%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 0;
}

.hero--image {
  background-image: url("../images/hero-block-maintenance.jpg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: block;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.hero p {
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
  opacity: 0.95;
  max-width: 600px;
}

.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-meta span::before {
  content: "•";
  margin-right: 0.4rem;
}

.hero-visual {
  position: relative;
  align-self: center;
}

.hero-visual-card {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  max-width: 340px;
  backdrop-filter: blur(8px);
}

.hero-visual-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e5e7eb;
}

.hero-visual-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.92;
}

.hero-visual-image {
  position: absolute;
  inset: auto 0 -3.2rem auto;
  max-width: 260px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Split layout sections */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.split-section--reversed {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.15fr);
}

.split-section__image {
  position: relative;
}

.split-section__image img {
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.split-section__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(15, 23, 42, 0.88);
  color: #f9fafb;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-section__content h2 {
  margin-top: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.25rem;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: #fff;
}

.block-image-placeholder {
  margin: 1rem 0 2rem;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border: 1px dashed var(--color-border);
  background: var(--color-bg-alt);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Service cards (home) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.service-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.service-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-accent);
}

.service-card a:hover {
  color: var(--color-accent-hover);
}

/* Content sections (services, about) */
.content-block h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 2rem 0 0.75rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block h3 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 1.5rem 0 0.5rem;
}

.content-block ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
}

.content-block li {
  margin-bottom: 0.35rem;
}

.content-block p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

/* CTA box */
.cta-box {
  background: var(--color-primary);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
}

.cta-box h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.25rem;
}

.cta-box p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-box a,
.cta-box .phone,
.cta-box .email {
  color: var(--color-accent);
  font-weight: 600;
}

.cta-box a:hover {
  color: #fff;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.contact-info p {
  margin: 0 0 0.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.contact-form button:hover {
  background: var(--color-primary-light);
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.site-footer a {
  color: var(--color-accent);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  margin: 0 0.75rem;
}

.site-footer small {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* Page title */
.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav ul {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    display: none;
  }

  .main-nav.is-open ul {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 0;
  }
}
