/* ==========================================================================
   Albania eVisa — Modern Design Layer (css/modern.css)
   Loaded after style.min.css on every page. Restyles the shared chrome
   (typography, buttons, forms, tables, cards, footer, feedback widgets)
   without touching markup, ids, names, JS hooks or content.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --alb-primary: #1d7b95;
  --alb-primary-dark: #15606f;
  --alb-primary-deep: #0f4550;
  --alb-ink: #12313a;
  --alb-accent: #e8a13c;
  --alb-accent-dark: #c9852a;

  --alb-canvas: #f6fafb;
  --alb-surface: #ffffff;
  --alb-line: #d8e6ec;
  --alb-line-soft: #e9f1f4;

  --alb-text: #24333b;
  --alb-muted: #5c707a;

  --alb-success: #1e8e5a;
  --alb-danger: #c0392b;
  --alb-warning: #b97e14;
  --alb-info: #1d7b95;

  --alb-radius-sm: 8px;
  --alb-radius: 12px;
  --alb-radius-lg: 16px;

  --alb-shadow-xs: 0 1px 2px rgba(18, 49, 58, .06);
  --alb-shadow-sm: 0 1px 3px rgba(18, 49, 58, .08), 0 4px 14px rgba(18, 49, 58, .06);
  --alb-shadow-md: 0 2px 6px rgba(18, 49, 58, .10), 0 12px 32px rgba(18, 49, 58, .10);
  --alb-ring: 0 0 0 3px rgba(29, 123, 149, .22);

  --alb-dur: .2s;
}

/* --------------------------------------------------------------------------
   2. Global chrome
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  background-color: var(--alb-canvas) !important;
  color: var(--alb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(29, 123, 149, .28);
  color: var(--alb-ink);
}
::-moz-selection {
  background: rgba(29, 123, 149, .28);
  color: var(--alb-ink);
}

/* Refined scrollbars (WebKit) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #b9cdd6;
  border-radius: 8px;
  border: 3px solid var(--alb-canvas);
}
::-webkit-scrollbar-thumb:hover { background: #9fb9c4; }

/* Accessibility focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: none !important;
  box-shadow: var(--alb-ring);
  border-radius: 6px;
}

/* Links — calm by default, clear on hover */
a { color: var(--alb-primary-dark); text-decoration: none; transition: color var(--alb-dur) ease; }
@media (hover:hover) and (pointer:fine) {
  a:hover { color: var(--alb-primary-deep); text-decoration: underline; text-underline-offset: 3px; }
}
a.text-white, .footer-top a { color: #e6f1f5; }

/* Headings — tighter, calmer */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
h1.menu_head {
  color: var(--alb-ink) !important;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
h1, .h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem) !important; }
h2, .h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem) !important; }
h3, .h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem) !important; }
h4, .h4 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem) !important; }

p { line-height: 1.65; color: var(--alb-text); }
small, .small { color: var(--alb-muted); }
.lead { font-size: 1.15rem; font-weight: 400; color: var(--alb-muted); line-height: 1.6; }

mark, .mark {
  background: rgba(232, 161, 60, .35);
  color: inherit;
  padding: .1em .25em;
  border-radius: 4px;
}

/* hr + subtle separators */
hr { border-color: var(--alb-line-soft); }

/* Section eyebrow titles (site pattern) */
.section-title {
  color: var(--alb-ink) !important;
  letter-spacing: .02em;
}
.section-title::before { background: var(--alb-primary) !important; height: 3px; }
.after:after, .after1:after { background-color: var(--alb-accent); }

/* --------------------------------------------------------------------------
   3. Buttons — one modern CTA language across the site
   -------------------------------------------------------------------------- */
.btn,
button[type="button"],
button[type="submit"] {
  border-radius: 10px;
  font-weight: 600;
  transition: background-color var(--alb-dur) ease, color var(--alb-dur) ease,
              border-color var(--alb-dur) ease, box-shadow var(--alb-dur) ease,
              transform .12s ease;
}
@media (hover:hover) and (pointer:fine) {
  .btn:not(:disabled):hover,
  button[type="button"]:not(:disabled):hover,
  button[type="submit"]:not(:disabled):hover {
    box-shadow: var(--alb-shadow-sm);
  }
}
.btn:active, button[type="submit"]:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; box-shadow: none !important; }

/* Primary (bootstrap .btn-primary) → brand teal */
.btn-primary {
  background-color: var(--alb-primary) !important;
  border-color: var(--alb-primary) !important;
  color: #fff !important;
}
a.btn-primary:hover, a.btn-primary:focus,
button.btn-primary:hover, button.btn-primary:focus {
  background-color: var(--alb-primary-dark) !important;
  border-color: var(--alb-primary-dark) !important;
  color: #fff !important;
}
.btn-outline-primary {
  color: var(--alb-primary-dark) !important;
  border-color: var(--alb-primary) !important;
  background: transparent !important;
}
a.btn-outline-primary:hover, a.btn-outline-primary:focus,
button.btn-outline-primary:hover, button.btn-outline-primary:focus {
  background-color: var(--alb-primary) !important;
  border-color: var(--alb-primary-dark) !important;
  color: #fff !important;
}

/* Legacy site CTA (.btn-custom + red) → deep brand teal, white text */
.btn-custom {
  color: #fff !important;
  background-color: var(--alb-primary-deep) !important;
  border-color: var(--alb-primary-deep) !important;
}
a.btn-custom:focus, a.btn-custom:hover,
button.btn-custom:focus, button.btn-custom:hover {
  color: #fff !important;
  background-color: var(--alb-primary-dark) !important;
  border-color: var(--alb-primary-dark) !important;
}

/* Site CTAs historically ship as .btn.btn-danger (legacy) → deep brand ink */
.btn-danger {
  background-color: var(--alb-primary-deep) !important;
  border-color: var(--alb-primary-deep) !important;
}
a.btn-danger:hover, a.btn-danger:focus,
button.btn-danger:hover, button.btn-danger:focus {
  background-color: var(--alb-primary-dark) !important;
  border-color: var(--alb-primary-dark) !important;
  color: #fff !important;
}
.btn-success {
  background-color: var(--alb-success) !important;
  border-color: var(--alb-success) !important;
}
a.btn-success:hover, a.btn-success:focus,
button.btn-success:hover, button.btn-success:focus {
  background-color: #176f47 !important;
  border-color: #176f47 !important;
}
.btn-warning {
  background-color: var(--alb-accent) !important;
  color: var(--alb-ink) !important;
  border-color: var(--alb-accent) !important;
}

/* Link-style buttons */
.btn-link {
  font-weight: 600;
  color: var(--alb-primary-dark) !important;
}

/* --------------------------------------------------------------------------
   4. Forms — calm, modern controls with clear states
   -------------------------------------------------------------------------- */
.form-control,
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], input[type="date"],
select, textarea {
  border-radius: var(--alb-radius-sm);
  border-color: #c7d8df;
  background-color: #fff;
  color: var(--alb-text);
  font-size: 16px; /* prevent iOS zoom */
}
.form-control:hover:not(:disabled):not([readonly]),
input[type="text"]:hover:not(:disabled):not([readonly]),
select:hover:not(:disabled):not([readonly]),
textarea:hover:not(:disabled):not([readonly]) { border-color: #a9c2cc; }
.form-control:focus,
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="password"]:focus, input[type="number"]:focus, input[type="date"]:focus,
select:focus, textarea:focus {
  border-color: var(--alb-primary) !important;
  box-shadow: var(--alb-ring) !important;
  outline: none !important;
}
.form-control::placeholder,
input::placeholder, textarea::placeholder { color: #8ba0aa; opacity: 1; }
.form-control:disabled, .form-control[readonly],
input:disabled, select:disabled {
  background-color: #eef4f6 !important;
  color: var(--alb-muted);
}

label { font-weight: 600; color: var(--alb-ink); }

/* Native control tint */
input[type="checkbox"], input[type="radio"] { accent-color: var(--alb-primary); }

/* Bootstrap legacy bg tints → neutral/brand tokens */
.bg-primary { background-color: var(--alb-primary) !important; }
.bg-secondary { background-color: var(--alb-ink) !important; }
.bg-info { background-color: var(--alb-primary) !important; }
.bg-success { background-color: var(--alb-success) !important; }
.bg-warning { background-color: rgba(232, 161, 60, .18) !important; color: var(--alb-ink); }
.bg-danger { background-color: rgba(192, 57, 43, .10) !important; color: var(--alb-danger); }

/* Semantic text utilities */
.text-secondary { color: var(--alb-muted) !important; }
.text-success { color: var(--alb-success) !important; }
.text-danger, .text-red { color: var(--alb-danger) !important; }
.text-warning { color: #8a5c10 !important; }
.text-primary { color: var(--alb-primary-dark) !important; }

/* Validation / inline error styling (JS adds these classes) */
.field-error,
.input-error,
.is-invalid,
.invalid {
  border-color: var(--alb-danger) !important;
}
.field-error:focus, .input-error:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .18) !important;
}
.was-validated :valid { border-color: #b6d6c5 !important; }
.was-validated :invalid { border-color: var(--alb-danger) !important; box-shadow: 0 0 0 3px rgba(192,57,43,.14) !important; }

/* Alerts */
.alert {
  border-radius: var(--alb-radius);
  border-width: 1px;
  border-style: solid;
  padding: .9rem 1.1rem;
  font-size: .95rem;
  box-shadow: var(--alb-shadow-xs);
}
.alert-success { background: #e9f7f0 !important; color: #14603d !important; border-color: #bfe5d2; }
.alert-danger, .alert-error { background: #fdeeec !important; color: #8c2a20 !important; border-color: #f2c8c2; }
.alert-warning { background: #fdf4e3 !important; color: #7c5510 !important; border-color: #f0d9ac; }
.alert-info { background: #e8f3f7 !important; color: #14505f !important; border-color: #c4dfe9; }

/* Badges */
.badge {
  font-weight: 600;
  border-radius: 999px;
  padding: .35em .75em;
}
.badge-primary { background-color: rgba(29,123,149,.12) !important; color: var(--alb-primary-dark) !important; }
.badge-success { background-color: rgba(30,142,90,.12) !important; color: #14603d !important; }
.badge-danger { background-color: rgba(192,57,43,.10) !important; color: var(--alb-danger) !important; }

/* --------------------------------------------------------------------------
   5. Cards, modals, dropdowns
   -------------------------------------------------------------------------- */
.card {
  border-radius: var(--alb-radius);
  border-color: var(--alb-line);
  box-shadow: var(--alb-shadow-xs);
}
.card-header {
  background: #f2f8fa;
  border-bottom-color: var(--alb-line-soft);
  color: var(--alb-ink);
  font-weight: 600;
}

.modal-content {
  border-radius: var(--alb-radius-lg);
  border: none;
  box-shadow: var(--alb-shadow-md);
}
.modal-header { border-bottom-color: var(--alb-line-soft); }
.modal-footer { border-top-color: var(--alb-line-soft); }
.modal-backdrop.show { opacity: .55; }

.dropdown-menu {
  border-radius: var(--alb-radius);
  border-color: var(--alb-line);
  box-shadow: var(--alb-shadow-md);
  padding: .4rem 0;
}
.dropdown-item {
  color: var(--alb-ink);
  font-size: .95rem;
  padding: .55rem 1rem;
  border-radius: 8px;
  margin: .1rem .4rem;
  width: calc(100% - .8rem);
}
@media (hover:hover) and (pointer:fine) {
  .dropdown-item:hover { background: #eef6f9; color: var(--alb-primary-deep); }
}
.dropdown-item.active, .dropdown-item:active { background: rgba(29,123,149,.12); color: var(--alb-primary-dark); }

/* Carousel chrome */
.post-carousel .owl-nav .owl-prev, .post-carousel .owl-nav .owl-next {
  background: var(--alb-primary) !important;
  color: #fff !important;
  border-radius: 50% !important;
  box-shadow: var(--alb-shadow-sm);
}
.testimonial-carousel .owl-dot.active { background: var(--alb-primary) !important; }

/* --------------------------------------------------------------------------
   6. Tables — refined, scannable
   -------------------------------------------------------------------------- */
.table { color: var(--alb-text); margin-bottom: 1rem; font-size: .95rem; }
.table th, .table td { border-top-color: var(--alb-line-soft); padding: .8rem .75rem; }
.table thead th {
  background: #eef6f9;
  color: var(--alb-ink);
  font-weight: 700;
  border-bottom: 2px solid var(--alb-line);
  white-space: nowrap;
}
.table-striped tbody tr:nth-of-type(odd) { background-color: #f6fafb; }
.table-hover tbody tr:hover { background-color: #edf6f9 !important; color: var(--alb-ink); }
.table .thead-dark th { background-color: var(--alb-primary-deep); border-color: rgba(255,255,255,.15); }

/* Wrappers that scroll on mobile get clipped corners */
.table-responsive { border-radius: var(--alb-radius); overflow-x: auto; }

/* Bordered tables keep their modern line color */
.table-bordered { border-color: var(--alb-line-soft); }
.table-bordered th, .table-bordered td { border-color: var(--alb-line-soft); }

/* --------------------------------------------------------------------------
   7. Navigation helpers, breadcrumbs, lists, quotes
   -------------------------------------------------------------------------- */
.breadcrumb ul { background: #eef6f9; border: 1px solid var(--alb-line-soft); border-radius: 10px; padding: .55rem 1rem; }
.breadcrumb-item { color: var(--alb-muted) !important; font-size: 14px; border-radius: 6px; }
.breadcrumb-item a { color: var(--alb-primary-dark); font-weight: 600; }
.breadcrumb-item.active { color: var(--alb-ink) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: #9fb4be; content: "/"; padding-left: 8px; }

ul li, ol li { line-height: 1.6; }
.list-unstyled li, .list-inline-item { font-size: inherit; }

blockquote, .blockquote { border-left: 4px solid var(--alb-primary); background: #f2f8fa; border-radius: 0 var(--alb-radius) var(--alb-radius) 0; padding: 1rem 1.25rem; color: var(--alb-ink); }
.blockquote-footer { color: var(--alb-muted); }

/* Accordion (index/FAQ blocks) — light, crisp */
.accordion_t {
  background: #fff !important;
  color: var(--alb-ink) !important;
  border-bottom-color: var(--alb-line-soft) !important;
  font-weight: 600;
  position: relative;
}
@media (hover:hover) and (pointer:fine) {
  .accordion_t:hover { background: #f4fafc !important; }
}
.accordion_t:after { color: var(--alb-primary); font-size: 18px; }
.active_t { color: var(--alb-primary-dark) !important; background: #fff8ef !important; }
.panel_t { background: #fbfdfe !important; }

/* Nav link helper (legacy navbar pages) */
.navbar-light .navbar-nav .nav-link { color: var(--alb-ink); font-weight: 600; }
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link.active { color: var(--alb-primary-dark); }

/* --------------------------------------------------------------------------
   8. Footer — deep, layered brand finish
   -------------------------------------------------------------------------- */
.footer-top, .bg-img {
  background: linear-gradient(165deg, #0d3745 0%, #0f4550 55%, #0c2e39 100%) !important;
}
.footer-top a { font-weight: 500; }
@media (hover:hover) and (pointer:fine) {
  .footer-top a:hover { color: #fff !important; text-decoration-color: var(--alb-accent); text-underline-offset: 4px; }
}
.footer-branding {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .06em;
  color: #fff !important;
}
.link-highlight { color: var(--alb-accent) !important; }
.footer-social-section::after { border-top-color: rgba(255,255,255,.28); }

/* Back-to-top (#up legacy button + .back-to-top fallback) */
#up, .back-to-top {
  background-color: var(--alb-primary-deep) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: var(--alb-shadow-md);
  border-radius: 50% !important;
}
@media (hover:hover) and (pointer:fine) {
  #up:hover, .back-to-top:hover {
    background-color: var(--alb-primary-dark) !important;
    transform: translateY(-2px);
  }
}

/* Mobile sticky apply pill — color finish only (position/animation owned by JS/style.css) */
.apply_btn_fix {
  background-color: var(--alb-accent) !important;
  color: var(--alb-ink) !important;
  border: none !important;
  font-weight: 700;
  box-shadow: var(--alb-shadow-md);
}

/* --------------------------------------------------------------------------
   9. Images, media, misc surfaces
   -------------------------------------------------------------------------- */
img { max-width: 100%; }
img.round-circle, .rounded-circle img { border-radius: 50%; }
.img-fluid { box-shadow: none; }

.figure-img, .card-img-top, .n_img_sec, .card-img {
  border-radius: var(--alb-radius) !important;
}
.card-img-top { object-fit: cover; }

pre, code, kbd { border-radius: 8px; font-size: .875em; }
code { background: #eef4f6; color: var(--alb-primary-deep); }
kbd { background: var(--alb-ink); }

/* Utility polish */
.shadow { box-shadow: var(--alb-shadow-sm) !important; }
.shadow-sm { box-shadow: var(--alb-shadow-xs) !important; }
.border { border-color: var(--alb-line) !important; }
.bg-light { background-color: #f2f7f9 !important; }

/* --------------------------------------------------------------------------
   10. Responsive refinements
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .container, .container-fluid { padding-right: 14px; padding-left: 14px; }
  .btn { padding: .55rem 1.05rem; }
  .modal-dialog { margin-top: 24px !important; }
  table.table { display: block; overflow-x: auto; white-space: nowrap; }
  /* keep text tidy */
  h1.menu_head { font-size: 26px !important; }
}

@media (max-width: 575.98px) {
  .row { margin-right: -10px; margin-left: -10px; }
  [class*="col-"], [class^="col"] { padding-right: 10px; padding-left: 10px; }
  .d-lg-flex, .flex-md-row { flex-wrap: wrap; }
}

/* Large display screens — keep content centred & readable */
@media (min-width: 1800px) {
  body { font-size: 17px; }
}
