/* =============================================================
   CEBYT Krkonoše – Joomla 5 Template Stylesheet
   tpl_cebyt v1.0.0
   ============================================================= */

/* ---------------------------------------------------------------
   1. FONTS
--------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES
--------------------------------------------------------------- */
:root {
  /* Brand colors (converted from OKLCH) */
  --cebyt-primary:           #2C3E6B;   /* dark navy blue */
  --cebyt-primary-hover:     #233259;
  --cebyt-accent:            #0E897A;   /* teal */
  --cebyt-accent-hover:      #0A6B5E;
  --cebyt-secondary:         #EFF0F5;   /* light gray bg */
  --cebyt-background:        #F8F9FD;   /* near-white page bg */
  --cebyt-foreground:        #1A1E2E;   /* near-black text */
  --cebyt-card:              #FFFFFF;
  --cebyt-muted:             #6B7280;   /* secondary text */
  --cebyt-border:            #E2E4EF;
  --cebyt-footer-bg:         #12172A;   /* darkest footer */

  /* Typography */
  --cebyt-font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --cebyt-font-serif:  'Playfair Display', Georgia, serif;

  /* Spacing */
  --cebyt-section-py:  6rem;
  --cebyt-section-py-lg: 8rem;

  /* Misc */
  --cebyt-radius:      0.5rem;
  --cebyt-radius-lg:   0.75rem;
  --cebyt-shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --cebyt-shadow-card-hover: 0 8px 32px rgba(0,0,0,.12);
  --cebyt-transition:  0.3s ease;
  --cebyt-header-h:    72px;
}

/* ---------------------------------------------------------------
   3. RESET & BASE
--------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--cebyt-font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cebyt-foreground);
  background-color: var(--cebyt-background);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   4. LAYOUT UTILITIES
--------------------------------------------------------------- */
.container-xl {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 992px) {
  .container-xl {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.d-none        { display: none !important; }
.d-lg-flex     { display: none; }
.w-100         { width: 100%; }
.text-center   { text-align: center; }

@media (min-width: 992px) {
  .d-lg-none  { display: none !important; }
  .d-lg-flex  { display: flex !important; }
}

/* ---------------------------------------------------------------
   5. TYPOGRAPHY HELPERS
--------------------------------------------------------------- */
.cebyt-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cebyt-accent);
  margin-bottom: 1rem;
}

.cebyt-eyebrow-inv {
  color: rgba(255,255,255,0.7);
}

.cebyt-section-title {
  font-family: var(--cebyt-font-serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--cebyt-foreground);
  margin: 0 0 1.5rem;
}

.cebyt-title-inv {
  color: #fff;
}

.cebyt-section-desc {
  font-size: 1.125rem;
  color: var(--cebyt-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.cebyt-section-header {
  margin-bottom: 4rem;
}

/* ---------------------------------------------------------------
   6. BUTTONS
--------------------------------------------------------------- */
.cebyt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: var(--cebyt-font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--cebyt-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--cebyt-transition), color var(--cebyt-transition), border-color var(--cebyt-transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.cebyt-btn-primary {
  background-color: var(--cebyt-primary);
  color: #fff;
  border-color: var(--cebyt-primary);
}
.cebyt-btn-primary:hover {
  background-color: var(--cebyt-primary-hover);
  border-color: var(--cebyt-primary-hover);
  color: #fff;
}

.cebyt-btn-outline {
  background-color: transparent;
  color: var(--cebyt-foreground);
  border-color: var(--cebyt-border);
}
.cebyt-btn-outline:hover {
  background-color: var(--cebyt-secondary);
  color: var(--cebyt-foreground);
}

/* Inverted (on dark hero) */
.cebyt-btn-primary-inv {
  background-color: #fff;
  color: var(--cebyt-primary);
  border-color: #fff;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}
.cebyt-btn-primary-inv:hover {
  background-color: rgba(255,255,255,0.9);
  color: var(--cebyt-primary);
}

.cebyt-btn-link-inv {
  background: none;
  color: #fff;
  border-color: transparent;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}
.cebyt-btn-link-inv:hover {
  color: rgba(255,255,255,0.8);
}

.cebyt-btn-icon {
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   7. LOGO
--------------------------------------------------------------- */
.cebyt-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
}

.cebyt-logo-main {
  font-family: var(--cebyt-font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cebyt-primary);
}

.cebyt-logo-sub {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cebyt-muted);
}

.cebyt-logo-inv .cebyt-logo-main { color: #fff; }
.cebyt-logo-inv .cebyt-logo-sub  { color: rgba(255,255,255,0.6); }

/* ---------------------------------------------------------------
   8. HEADER
--------------------------------------------------------------- */
.cebyt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(248, 249, 253, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cebyt-border);
  height: var(--cebyt-header-h);
}

.cebyt-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cebyt-nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .cebyt-nav-links {
    display: flex;
  }
}

.cebyt-nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cebyt-muted);
  transition: color var(--cebyt-transition);
  text-decoration: none;
}
.cebyt-nav-link:hover { color: var(--cebyt-foreground); }

.cebyt-nav-cta {
  align-items: center;
}
.cebyt-nav-cta ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cebyt-nav-cta ul a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cebyt-muted);
  text-decoration: none;
  transition: color var(--cebyt-transition);
}
.cebyt-nav-cta ul a:hover {
  color: var(--cebyt-foreground);
}

/* Hamburger */
.cebyt-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--cebyt-foreground);
}

@media (min-width: 992px) {
  .cebyt-hamburger { display: none; }
}

.cebyt-hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.cebyt-hamburger-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--cebyt-transition), opacity var(--cebyt-transition);
}

/* Mobile Menu */
.cebyt-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background-color: rgba(248, 249, 253, 0.98);
  backdrop-filter: blur(8px);
}

.cebyt-mobile-menu.open {
  display: flex;
}

.cebyt-mobile-menu-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--cebyt-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,.08);
}

@media (max-width: 400px) {
  .cebyt-mobile-menu-inner { max-width: 100%; }
}

.cebyt-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.cebyt-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cebyt-foreground);
  border-radius: var(--cebyt-radius);
  transition: background-color var(--cebyt-transition);
}
.cebyt-mobile-close:hover { background-color: var(--cebyt-secondary); }

.cebyt-mobile-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cebyt-mobile-link {
  display: block;
  padding: 0.875rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cebyt-foreground);
  border-radius: var(--cebyt-radius);
  transition: background-color var(--cebyt-transition);
  text-decoration: none;
}
.cebyt-mobile-link:hover { background-color: var(--cebyt-secondary); }

.cebyt-mobile-cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cebyt-border);
}

/* ---------------------------------------------------------------
   9. HERO SECTION
--------------------------------------------------------------- */
.cebyt-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay */
.cebyt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(44, 62, 107, 0.72);
  z-index: 1;
}

.cebyt-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.cebyt-hero-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.cebyt-hero-title {
  font-family: var(--cebyt-font-serif);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 2rem;
  text-wrap: balance;
}

.cebyt-hero-desc {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.9);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.cebyt-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.cebyt-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.cebyt-scroll-dot {
  width: 4px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ---------------------------------------------------------------
   10. SERVICES SECTION
--------------------------------------------------------------- */
.cebyt-services {
  padding: var(--cebyt-section-py) 0;
}

@media (min-width: 992px) {
  .cebyt-services { padding: var(--cebyt-section-py-lg) 0; }
}

.cebyt-services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cebyt-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cebyt-services-grid { grid-template-columns: repeat(3, 1fr); }
}

.cebyt-service-card {
  position: relative;
  background: var(--cebyt-card);
  border: 1px solid var(--cebyt-border);
  border-radius: var(--cebyt-radius-lg);
  padding: 2rem;
  overflow: hidden;
  box-shadow: var(--cebyt-shadow-card);
  transition: box-shadow var(--cebyt-transition), transform var(--cebyt-transition);
}

.cebyt-service-card:hover {
  box-shadow: var(--cebyt-shadow-card-hover);
  transform: translateY(-4px);
}

.cebyt-service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cebyt-service-number {
  font-family: var(--cebyt-font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(107, 114, 128, 0.25);
  line-height: 1;
}

.cebyt-service-icon {
  color: var(--cebyt-accent);
  flex-shrink: 0;
}

.cebyt-service-title {
  font-family: var(--cebyt-font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cebyt-foreground);
  margin: 0 0 0.75rem;
}

.cebyt-service-desc {
  font-size: 0.9375rem;
  color: var(--cebyt-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.cebyt-service-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cebyt-service-features li {
  font-size: 0.875rem;
  color: var(--cebyt-muted);
  padding-left: 1rem;
  position: relative;
}

.cebyt-service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--cebyt-accent);
}

/* Accent underline on hover */
.cebyt-service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: var(--cebyt-accent);
  transition: width var(--cebyt-transition);
}

.cebyt-service-card:hover::after {
  width: 100%;
}

/* ---------------------------------------------------------------
   11. ABOUT SECTION
--------------------------------------------------------------- */
.cebyt-about {
  padding: var(--cebyt-section-py) 0;
  background-color: var(--cebyt-secondary);
}

@media (min-width: 992px) {
  .cebyt-about { padding: var(--cebyt-section-py-lg) 0; }
}

.cebyt-about-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 992px) {
  .cebyt-about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.cebyt-about-image-col {
  position: relative;
}

.cebyt-about-image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--cebyt-radius-lg);
}

.cebyt-about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cebyt-about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background-color: var(--cebyt-accent);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--cebyt-radius-lg);
  text-align: center;
}

@media (max-width: 991px) {
  .cebyt-about-badge {
    right: 1rem;
    bottom: -1rem;
  }
}

.cebyt-about-badge-year {
  font-family: var(--cebyt-font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.cebyt-about-badge-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}

.cebyt-about-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--cebyt-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.cebyt-about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cebyt-border);
}

.cebyt-stat-value {
  font-family: var(--cebyt-font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--cebyt-foreground);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.cebyt-stat-label {
  font-size: 0.8125rem;
  color: var(--cebyt-muted);
}

/* ---------------------------------------------------------------
   12. VALUES / ACCORDION SECTION
--------------------------------------------------------------- */
.cebyt-values {
  padding: var(--cebyt-section-py) 0;
}

@media (min-width: 992px) {
  .cebyt-values { padding: var(--cebyt-section-py-lg) 0; }
}

.cebyt-values-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .cebyt-values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.cebyt-values-desc {
  font-size: 1.0625rem;
  color: var(--cebyt-muted);
  line-height: 1.75;
  margin-top: 1.5rem;
}

/* Accordion */
.cebyt-accordion {
  display: flex;
  flex-direction: column;
}

.cebyt-accordion-item {
  border-bottom: 1px solid var(--cebyt-border);
}

.cebyt-accordion-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--cebyt-font-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--cebyt-foreground);
  gap: 1rem;
  transition: color var(--cebyt-transition);
}

.cebyt-accordion-btn:hover { color: var(--cebyt-primary); }

.cebyt-accordion-chevron {
  flex-shrink: 0;
  color: var(--cebyt-muted);
  transition: transform var(--cebyt-transition);
}

.cebyt-accordion-btn.active .cebyt-accordion-chevron {
  transform: rotate(180deg);
}

.cebyt-accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--cebyt-transition);
  overflow: hidden;
}

.cebyt-accordion-content.open {
  grid-template-rows: 1fr;
}

.cebyt-accordion-content > p {
  overflow: hidden;
  padding-bottom: 1.25rem;
  color: var(--cebyt-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ---------------------------------------------------------------
   13. CONTACT SECTION
--------------------------------------------------------------- */
.cebyt-contact {
  padding: var(--cebyt-section-py) 0;
  background-color: var(--cebyt-primary);
  color: #fff;
}

@media (min-width: 992px) {
  .cebyt-contact { padding: var(--cebyt-section-py-lg) 0; }
}

.cebyt-contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .cebyt-contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.cebyt-contact-intro {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.cebyt-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cebyt-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cebyt-contact-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.cebyt-contact-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.2rem;
}

.cebyt-contact-value {
  font-weight: 500;
  color: #fff;
}

/* Contact form card */
.cebyt-contact-form-wrap {
  background: var(--cebyt-card);
  border-radius: var(--cebyt-radius-lg);
  padding: 2rem;
}

.cebyt-contact-form-title {
  font-family: var(--cebyt-font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cebyt-foreground);
  margin: 0 0 1.5rem;
}

.cebyt-contact-form-note {
  color: var(--cebyt-muted);
  font-size: 0.875rem;
}

/* Joomla contact/form module inside contact-form position */
.cebyt-contact .com-contact__form label,
.cebyt-contact .contact-form label {
  display: block;
  font-size: 0.875rem;
  color: var(--cebyt-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.cebyt-contact .com-contact__form input,
.cebyt-contact .com-contact__form textarea,
.cebyt-contact .contact-form input,
.cebyt-contact .contact-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--cebyt-border);
  border-radius: var(--cebyt-radius);
  font-family: var(--cebyt-font-sans);
  font-size: 0.9375rem;
  color: var(--cebyt-foreground);
  background: var(--cebyt-card);
  transition: border-color var(--cebyt-transition);
  outline: none;
}

.cebyt-contact .com-contact__form input:focus,
.cebyt-contact .com-contact__form textarea:focus,
.cebyt-contact .contact-form input:focus,
.cebyt-contact .contact-form textarea:focus {
  border-color: var(--cebyt-primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 107, 0.12);
}

.cebyt-contact .com-contact__form button[type="submit"],
.cebyt-contact .contact-form button[type="submit"],
.cebyt-contact .com-contact__form input[type="submit"],
.cebyt-contact .contact-form input[type="submit"] {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--cebyt-primary);
  color: #fff;
  border: none;
  border-radius: var(--cebyt-radius);
  font-family: var(--cebyt-font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--cebyt-transition);
}

.cebyt-contact .com-contact__form button[type="submit"]:hover,
.cebyt-contact .contact-form button[type="submit"]:hover,
.cebyt-contact .com-contact__form input[type="submit"]:hover,
.cebyt-contact .contact-form input[type="submit"]:hover {
  background-color: var(--cebyt-primary-hover);
}

/* ---------------------------------------------------------------
   14. FOOTER
--------------------------------------------------------------- */
.cebyt-footer {
  background-color: var(--cebyt-footer-bg);
  color: rgba(255,255,255,0.7);
}

.cebyt-footer .container-xl {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

@media (min-width: 992px) {
  .cebyt-footer .container-xl {
    padding-top: 4rem;
  }
}

.cebyt-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 576px) {
  .cebyt-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .cebyt-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.cebyt-footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin-top: 1rem;
}

.cebyt-footer-heading {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 1rem;
}

.cebyt-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cebyt-footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--cebyt-transition);
  text-decoration: none;
}
.cebyt-footer-links a:hover { color: #fff; }

.cebyt-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

@media (min-width: 576px) {
  .cebyt-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.cebyt-footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ---------------------------------------------------------------
   15. INNER PAGE LAYOUT
--------------------------------------------------------------- */
.cebyt-inner-page {
  padding-top: calc(var(--cebyt-header-h) + 3rem);
  padding-bottom: 4rem;
  min-height: calc(100vh - 300px);
}

.cebyt-inner-wrap {
  margin-top: 0;
}

.cebyt-inner-full {
  max-width: 860px;
  margin: 0 auto;
}

.cebyt-inner-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .cebyt-inner-with-sidebar {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
  }
}

.cebyt-component-area {
  /* Joomla article content styles */
  line-height: 1.75;
}

.cebyt-component-area h1,
.cebyt-component-area h2,
.cebyt-component-area h3 {
  font-family: var(--cebyt-font-serif);
  color: var(--cebyt-foreground);
  line-height: 1.3;
}

.cebyt-component-area a {
  color: var(--cebyt-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cebyt-component-area img {
  border-radius: var(--cebyt-radius);
  max-width: 100%;
  height: auto;
}

.cebyt-sidebar {
  /* Sidebar modules */
}

.cebyt-content-top,
.cebyt-content-bottom {
  margin-bottom: 2rem;
}

/* ---------------------------------------------------------------
   16. ERROR PAGE
--------------------------------------------------------------- */
.cebyt-error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--cebyt-background);
}

.cebyt-error-inner {
  text-align: center;
  max-width: 480px;
}

.cebyt-error-inner .cebyt-logo {
  justify-content: center;
  margin-bottom: 2rem;
}

.cebyt-error-code {
  font-family: var(--cebyt-font-serif);
  font-size: 6rem;
  font-weight: 300;
  color: var(--cebyt-border);
  line-height: 1;
  margin: 0 0 1rem;
}

.cebyt-error-message {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cebyt-foreground);
  margin-bottom: 0.75rem;
}

.cebyt-error-desc {
  color: var(--cebyt-muted);
  margin-bottom: 2rem;
}

/* ---------------------------------------------------------------
   17. BODY OFFSET FOR FIXED HEADER
--------------------------------------------------------------- */
body.homepage > .cebyt-hero:first-of-type {
  /* Hero starts from top, overlaps header intentionally */
}

/* All non-hero content on homepage should have top offset already via sections */

/* ---------------------------------------------------------------
   18. JOOMLA OVERRIDES (common components)
--------------------------------------------------------------- */
/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--cebyt-border);
  border-radius: var(--cebyt-radius);
  color: var(--cebyt-foreground);
  font-size: 0.9rem;
  transition: background-color var(--cebyt-transition), border-color var(--cebyt-transition);
  text-decoration: none;
}

.pagination .page-item .page-link:hover {
  background-color: var(--cebyt-secondary);
  border-color: var(--cebyt-primary);
}

.pagination .page-item.active .page-link {
  background-color: var(--cebyt-primary);
  border-color: var(--cebyt-primary);
  color: #fff;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--cebyt-radius);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.alert-success { background-color: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger,
.alert-error    { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info     { background-color: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning  { background-color: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ---------------------------------------------------------------
   19. CLIENT LOGIN
--------------------------------------------------------------- */
.cebyt-client-login {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

.cebyt-client-login-card {
  width: 100%;
  max-width: 440px;
  background: var(--cebyt-card);
  border-radius: var(--cebyt-radius-lg);
  box-shadow: var(--cebyt-shadow-card);
  padding: 2.5rem 2rem;
}

.cebyt-client-login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cebyt-client-login-header h1 {
  font-family: var(--cebyt-font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--cebyt-primary);
  margin: 0 0 0.5rem;
}

.cebyt-client-login-header p {
  color: var(--cebyt-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.cebyt-client-login-form .control-group {
  margin-bottom: 1.25rem;
}

.cebyt-client-login-form .control-label label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cebyt-foreground);
  margin-bottom: 0.375rem;
}

.cebyt-client-login-form .form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--cebyt-border);
  border-radius: var(--cebyt-radius);
  font-size: 0.9375rem;
  transition: border-color var(--cebyt-transition);
}

.cebyt-client-login-form .form-control:focus {
  border-color: var(--cebyt-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 62, 107, .12);
}

.cebyt-client-login-remember {
  margin-bottom: 1.25rem;
}

.cebyt-client-login-submit {
  margin-bottom: 0.75rem;
}

.cebyt-client-login-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cebyt-border);
}

.cebyt-client-login-links a {
  color: var(--cebyt-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--cebyt-transition);
}

.cebyt-client-login-links a:hover {
  color: var(--cebyt-primary);
}

.cebyt-client-login .input-group {
  display: flex;
  position: relative;
}

.cebyt-client-login .input-group .form-control {
  flex: 1;
  border-radius: var(--cebyt-radius);
  padding-right: 2.75rem;
}

.cebyt-client-login .input-password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2.75rem;
  border: none;
  background: transparent;
  color: var(--cebyt-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

.cebyt-client-login .input-password-toggle:hover {
  color: var(--cebyt-primary);
}

.cebyt-client-login .input-password-toggle .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.cebyt-client-login .input-password-toggle [class^="icon-"] {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  background: currentColor;
  -webkit-mask-size: contain;  mask-size: contain;
  -webkit-mask-repeat: no-repeat;  mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
}

.cebyt-client-login .input-password-toggle .icon-eye {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.cebyt-client-login .input-password-toggle .icon-eye-slash {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------
   20. PRINT
--------------------------------------------------------------- */
@media print {
  .cebyt-header,
  .cebyt-footer,
  .cebyt-scroll-indicator,
  .cebyt-mobile-menu { display: none !important; }
  body { background: white; color: black; }
}
