/* Theme vars */
:root {
  --primary: #3b1c5e;  /* brand purple */
  --black: #000000;
  --white: #ffffff;
  --gray-border: #d9d9d9;
  --gray-light: #f2f2f2;
}

/* Global */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--white);
  overflow: auto; /* Enable scroll */
}

/* Sticky scrolling quote strip */
.quote-strip {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.25rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-border);
  z-index: 1100; /* sits above header */
  @media (max-width: 768px) {
    display: none;
  }
}

.quote-track {
  display: inline-block;
  white-space: nowrap;
  animation: scrollQuotes 20s linear infinite;
}
.quote-track span { margin-right: 3rem; }

@keyframes scrollQuotes {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* Header base */
.site-header {
  position: sticky;
  top: 24px; /* sits just below quote strip */
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #d9d9d9;
  z-index: 1000;
  @media (max-width: 768px) {
    top: 0;
  }
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
}

/* Branding */
.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.company-name {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #3b1c5e;
}
.tagline {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #555;
  margin-top: 0.2rem;
  letter-spacing: 0.3px;
  font-style: italic;
}

/* Navigation (desktop) */
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus { color: #3b1c5e; }

/* Hamburger button */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: none; /* hidden on desktop */
}

/* Mobile view */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block; /* show hamburger */
    color: #333;
  }

  .nav-links {
    display: none; /* hidden until toggled */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    padding: 16px;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 14px;
  }
  

  .nav-links.active { display: block; }

  .company-name { font-size: 1rem; }
  .tagline { font-size: 0.75rem; }
}

/* Split screen layout */
.split-screen {
  display: flex;
  height: calc(75vh - 80px);
  background: var(--black);
}

.panel {
  flex: 1;
  min-height: calc((75vh - 80px) / 2);
  position: relative;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

/* Backgrounds */
.panel--interiors {
  background-image: url("images/interiors-bg.jpg");
}
.panel--doors {
  background-image: url("images/doors-windows-bg.jpg");
}

/* Overlay */
.panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* Content */
.panel__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 760px;
}
.text-overlay {
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 8px;
  color: #fff;
}
.panel__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.panel__subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.panel__cta {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #3b1c5e;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.panel__cta:hover {
  background-color: #2a1444;
}

/* Announcement overlay */
.announcement-overlay.top-left {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}
.announcement-image {
  width: 160px;
  max-width: 100%;
  animation: subtleBlink 2s infinite;
}
@keyframes subtleBlink {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Hover cue */
.panel:hover {
  transform: scale(1.01);
}

/* Responsive tweaks */
@media (max-width: 760px) {
  .split-screen {
    display: block; /* stack panels vertically */
    min-height: auto;
    flex-direction: column;
    padding: 1rem;
  }
  .text-overlay {
    padding: 1.2rem;
  }
  .panel__title {
    font-size: 1.4rem;
  }
  .panel__subtitle {
    font-size: 0.95rem;
  }
  .panel__cta {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
  }
  .announcement-image {
    width: 80px;
  }
}

/* About us Section */
.about-section {
  background: var(--gray-light);
  padding: 1rem; /* more breathing room */
}

.about-section .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

.about-container {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  min-width: 300px;
}
.about-image img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.about-text {
  flex: 2;
  min-width: 300px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  text-align: justify;
}
.about-text p {
  margin-bottom: 1.2rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column; /* stack image above text */
    gap: 1.5rem;
    text-align: center;
  }

  .about-image img {
    max-height: 300px; /* prevent overly tall image */
    object-fit: cover;
  }

  .about-text {
    font-size: 0.95rem;
    text-align: left; /* keep text readable */
  }

  .about-section .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
}


/* Services Section */
.services-section {
  background: var(--gray-light);
  color: var(--black);
  padding: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
}

/* Accordion */
.accordion {
  max-width: 80%;
  margin: 0 auto;
  border: 1px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--primary);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.accordion-header:hover {
  background: var(--primary);
  color: var(--white);
}

.accordion-header:hover .toggle-btn i {
  color: var(--white);
}

.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--primary);
  transition: color 0.3s ease;
  font-weight: 600;
}

.toggle-btn:hover {
  color: var(--white);
}

.accordion-content {
  max-height: 0;
  background: var(--white);
  color: var(--black);
  transition: max-height 0.4s ease;
  overflow: hidden;
}

.accordion-item.active .accordion-content {
  max-height: 600px;
  padding: 1rem;
  overflow-y: auto;
}

/* Scrollbar styling */
.accordion-content::-webkit-scrollbar {
  width: 8px;
}
.accordion-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.accordion-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
.accordion-content::-webkit-scrollbar-thumb:hover {
  background: #2a1444;
}

/* Fenestration list */
.fenestration-list {
  margin-top: 1rem;
  padding-left: 1rem;
  list-style: none;
}
.fenestration-list li {
  margin-bottom: 0.25rem;
  color: var(--primary);
  font-weight: 500;
}

/* Sub-title */
.sub-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 1rem;
  text-align: center;
}

/* Window grid */
.window-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
.window-card {
  background: var(--white);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.window-card:hover {
  transform: translateY(-5px);
}
.window-card img {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 2px solid var(--primary);
}
.window-card h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.window-card ul {
  padding: 0;
  margin: 1rem;
  text-align: left;
}
.window-card ul li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

/* Divider */
.section-divider {
  border-top: 3px solid var(--primary);
  margin: 2rem 0;
  opacity: 0.6;
}

/* Doors section */
.door-section {
  margin-top: 1rem;
  text-align: center;
}
.door-image {
  width: 100%;
  max-height: 475px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--primary);
  margin-bottom: 1rem;
}
.door-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  text-align: justify;
  padding: 0 1rem;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .window-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .accordion {
    max-width: 95%;
  }
  .accordion-header {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
  .sub-title {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
  }
  .window-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .window-card img {
    height: 200px;
  }
  .door-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .door-image {
    max-height: 300px;
  }
  .door-description {
    font-size: 0.95rem;
    text-align: left;
    padding: 0;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  .accordion-header {
    font-size: 0.9rem;
  }
  .window-card h4 {
    font-size: 1rem;
  }
  .window-card ul li {
    font-size: 0.85rem;
  }
}

/*Gallery Section*/
.gallery-section {
  background: var(--gray-light);
  padding: 1rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* Desktop layout */
.gallery-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-item {
  position: relative;
  flex: 1;
  max-width: 220px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--primary);
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Overlay on last image */
.overlay-item .overlay-text {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  background: rgba(42, 20, 68, 0.7);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0,0,0,0.9);
  overflow: auto;
  text-align: center;
  padding-top: 60px;
  justify-content: center; 
  align-items: center;
  
}

#lightboxContent img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  display: flex; 
  justify-content: center;
  align-items: center;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s;
  user-select: none;
}
.prev { left: 0; }
.next { right: 0; }
.prev:hover, .next:hover { color: var(--primary); }

/* 🔑 Mobile-only redesign */
@media (max-width: 768px) {
  .gallery-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
  }

  .gallery-item {
    flex: unset;
    max-width: 100%;
  }

  .gallery-item img {
    height: 160px;
  }

  .overlay-item .overlay-text {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }

  /* Hide extra images on mobile */
  .desktop-only {
    display: none;
  }
}

.contact-info {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

.contact-info {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

/* Section background spans full width */
.contact-section {
  width: 100%;
  background: var(--gray-light);
  padding: 2rem 0 4rem 0;
}

/* Inner container restricted and centered */
.contact-container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
}

/* Grid layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.mobile-address{
    display: none;
}

/* Cards */
.contact-address,
.contact-getintouch {
  background: #fff;
  color: #333;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
}

.contact-address h3,
.contact-getintouch h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-address p,
.contact-getintouch p {
  margin: 0.5rem 0;
}

.contact-address p strong,
.contact-getintouch p strong {
  font-weight: 600; /* 🔑 Bold only the labels */
}

/* Lightbox overlay */
.contact-lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* Header styling */
.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.lightbox-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

/* Intro text styling */
.lightbox-intro {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #555;
  text-align: left;
}

/* Close button */
.close-btn {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}
.close-btn:hover {
  color: var(--primary);
}

/* Material-style form fields */
.mat-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mat-field {
  position: relative;
}
.mat-field input,
.mat-field textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ccc;
  padding: 0.5rem 0;
  font-size: 1rem;
  background: transparent;
  outline: none;
  font-family: "Poppins", sans-serif;
}
.mat-field label {
  position: absolute;
  top: 0.5rem;
  left: 0;
  color: #777;
  transition: 0.3s ease;
  pointer-events: none;
}
.mat-field input:focus + label,
.mat-field input:valid + label,
.mat-field textarea:focus + label,
.mat-field textarea:valid + label {
  top: -1rem;
  font-size: 0.85rem;
  color: var(--primary);
}
.mat-field .underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}
.mat-field input:focus ~ .underline,
.mat-field textarea:focus ~ .underline {
  width: 100%;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Button */
.mdc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.mdc-button:hover {
  background: #2a1444;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.mdc-button__ripple {
  position: absolute;
  border-radius: inherit;
  inset: 0;
  background: rgba(255,255,255,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mdc-button:active .mdc-button__ripple {
  opacity: 1;
}

/* 🔑 Mobile responsiveness */
@media (max-width: 768px) {
  .contact-container {
    width: 95%;
  }

  .desktop-only{
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr; /* stack vertically */
  }

  /* Hide separate address card */
  .contact-address {
    display: none;
  }

  /* Show phone/email/address inside Get in Touch card */
  .contact-getintouch {
    text-align: left;
    padding: 1.25rem;
  }

  .mobile-address{
    text-align: left;
  }

  .contact-getintouch h3 {
    margin-bottom: 1rem;
  }

  /* Ensure only labels are bold */
  .contact-getintouch p strong {
    font-weight: 600; /* labels bold */
  }

  .contact-getintouch p {
    display: block; /* keep values visible */
    font-weight: normal; /* values normal */
  }

  .mdc-button {
    width: 100%;
  }

  .lightbox-content {
    width: 95%;
    padding: 1.25rem;
  }
}


@media (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
  }

  .contact-section {
    padding: 1rem 0 3rem 0;
  }

  .lightbox-content {
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem
  }

  .close-btn {
    font-size: 1.25rem;
  }
}

/* Thin Sticky Footer with Fade-in */
/* Simple Footer with Fade-in */
.site-footer {
  position: relative;          /* no longer fixed */
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary);  /* brand purple */
  color: var(--white);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.6rem 0;
  border-top: 1px solid var(--gray-border);
  z-index: 1;

  /* Fade-in effect */
  opacity: 0;
  animation: fadeInFooter 1.2s ease forwards;
}

.site-footer p {
  margin: 0;
  white-space: normal;     /* allow wrapping */
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
  padding: 0 1rem;
}

/* Keyframes for fade-in */
@keyframes fadeInFooter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 🔑 Mobile responsiveness */
@media (max-width: 768px) {
  .site-footer {
    font-size: 0.9rem;
    padding: 0.8rem 0;
  }
}

@media (max-width: 480px) {
  .site-footer {
    font-size: 1rem;
    padding: 1rem 0;
  }
}

