/* Deutche Rigas Accounting Service - Main Stylesheet */
:root {
  --primary: #0f2537;
  --primary-light: #1e415e;
  --accent: #c59b27;
  --accent-hover: #a8821d;
  --bg-light: #f5f7fa;
  --text-dark: #1d2939;
  --text-muted: #475467;
  --white: #ffffff;
  --border: #d0d5dd;
  --shadow: 0 10px 25px rgba(15, 37, 55, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  background-color: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand-badge {
  background: var(--accent);
  color: var(--primary);
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: #e4e7ec;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--white);
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.active {
  background: var(--accent);
  color: var(--primary);
}

.btn-portal {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-portal:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--primary);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  opacity: 0.42;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(15, 37, 55, 0.92) 0%, rgba(15, 37, 55, 0.55) 100%);
}

.hero-content {
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  color: #d0d5dd;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-top-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--accent);
}

.service-icon {
  width: 46px;
  height: 46px;
  background: #f0f4f8;
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.96rem;
}

.service-list {
  list-style: none;
  border-top: 1px solid #eaecf0;
  padding-top: 14px;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 5px 0 5px 18px;
  position: relative;
}

.service-list li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* About & Riga Gallery */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.riga-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--border);
}

.gallery-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Client Authorization & Contact Grid */
.portal-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.card-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.card-box h3 {
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.card-box .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.form-row-inline a {
  color: var(--primary-light);
  text-decoration: none;
}

.status-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}

.status-banner.success {
  display: block;
  background-color: #ecfdf3;
  color: #027a48;
  border: 1px solid #a6f4c5;
}

.status-banner.error {
  display: block;
  background-color: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.contact-details {
  list-style: none;
  margin-top: 20px;
}

.contact-details li {
  padding: 12px 0;
  border-bottom: 1px solid #eaecf0;
  font-size: 0.95rem;
}

.contact-details strong {
  display: inline-block;
  width: 110px;
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: #98a2b3;
  padding: 40px 0 28px;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  margin-top: 20px;
}

/* Modal for Portal Login */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 37, 55, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  border-radius: 10px;
  width: 100%;
  max-width: 440px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

@media (max-width: 860px) {
  .about-grid,
  .portal-contact-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .nav-links {
    display: none;
  }
}
