@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_18pt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_18pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter_24pt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


@layer base {
  *{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  html {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #EAEAEA;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    color: #FFFFFF;
  }

  h1 { font-size: 3rem; font-weight: 700; }
  h2 { font-size: 2.5rem; margin-bottom: 2rem; color: #D4AF37; }
  h3 { font-size: 1.75rem; margin-bottom: 1rem; }
  h4 { font-size: 1.25rem; }

  p {
    margin-bottom: 1rem;
    color: #BDBDBD;
  }

  a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  a:hover {
    color: #FFFFFF;
  }

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

  section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .cta-button {
    display: inline-block;
    background-color: #D4AF37;
    color: #121212;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #D4AF37;
  }

  .cta-button:hover {
    background-color: #c09f52;
    color: #121212;
    transform: translateY(-2px);
  }

  .cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: #D4AF37;
    padding: 10px 26px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #D4AF37;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .cta-button-secondary:hover {
    background-color: #D4AF37;
    color: #121212;
  }

  /* Header & Navigation */
  header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a2a;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  nav a strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
  }

  nav .nav-logo img {
    height: 150px; /* Set the desired visual height for the logo */
    width: auto;  /* Maintain aspect ratio */
    display: block; /* Removes extra space below the image */
    margin-top: -30px; /* Pulls the logo up */
    margin-bottom: -30px; /* Allows content below to slide under the logo */
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .main-nav {
    display: flex;
    gap: 2rem;
  }

  nav ul a {
    font-weight: 500;
    color: #EAEAEA;
  }

  nav ul li {
    position: relative;
  }

  nav ul .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    border-radius: 5px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    flex-direction: column;
    gap: 0;
  }

  nav ul .dropdown:hover .dropdown-menu {
    display: block;
  }

  nav ul .dropdown-menu li {
    width: 100%;
  }

  nav ul .dropdown-menu li a {
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
  }

  nav ul .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #1a1a1a;
    border-radius: 5px;
    padding: 0.5rem 0;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    flex-direction: column;
    gap: 0;
  }

  nav ul .dropdown-menu li:hover .submenu {
    display: block;
  }

  .arrow-down::after { content: ' ▼'; font-size: 0.6em; }
  .arrow-right::after { content: ' ▶'; font-size: 0.6em; }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .phone-number {
    font-weight: 500;
  }

  .hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
  }

  /* Hero Section */
  .hero {
    max-width: none; /* Override the 1200px max-width from the 'section' tag */
    padding-left: 0; /* Remove side padding to allow full-width background */
    padding-right: 0; /* Remove side padding to allow full-width background */
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url('/images/luxury-glazing-hero.jpg') no-repeat center center/cover;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero h1 {
    max-width: 800px;
    animation: floatIn 1s ease-out forwards;
    opacity: 0; /* Start hidden */
  }

  .hero p {
    font-size: 1.25rem;
    color: #EAEAEA;
    margin: 1rem 0 2rem;
    animation: floatIn 1s ease-out 0.3s forwards;
    opacity: 0; /* Start hidden */
  }

  .hero .cta-button {
    animation: floatIn 1s ease-out 0.6s forwards;
    opacity: 0; /* Start hidden */
  }

  /* Services Section */
  #services {
    perspective: 1500px;
  }
  #services h2 {
    text-align: center;
  }
  .services-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure cards stay on one line */
    align-items: stretch; /* Make all cards the same height */
  }
  .service-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    /* min-width: 320px; removed to allow flex: 1 to distribute width evenly */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .service-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 20px 30px rgba(0,0,0,0.4);
  }
  .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
  }
  .service-card h3 {
    color: #D4AF37;
    font-size: 1.5rem;
  }
  .service-card p {
    color: #BDBDBD;
    margin-bottom: 1.5rem;
    min-height: 48px; /* Ensures cards align even with different text lengths */
  }
  .service-card ul {
    text-align: left;
  }
  .service-card ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
  }
  .service-card ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: bold;
  }
  .service-card ul li a {
    color: #EAEAEA;
  }

  /* CTA Banner */
  .cta-banner {
    background-color: #1a1a1a;
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 4rem; /* Adds space between the banner and the next section/footer */
  }
  .cta-banner h3 {
    font-size: 2rem;
    color: #D4AF37;
  }

  /* Why Choose Us Section */
  #why-choose-us { perspective: 1500px; }
  #why-choose-us h2 { text-align: center; }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }
  .feature-item {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #D4AF37;
    transition: transform 0.3s ease;
  }
  .feature-item:hover {
    transform: translateZ(20px);
  }

  /* Portfolio Section */
  #portfolio {
    perspective: 1500px;
  }
  #portfolio h2 { text-align: center; }
  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 350px; /* Enforce a uniform height */
  }
  .gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 8px; /* Ensure image corners are rounded */
  }
  .gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0));
    color: #FFFFFF;
    padding: 3rem 1.5rem 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2; /* Ensure caption is above the overlay */
  }
  .gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1; /* Position overlay between image and caption */
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .gallery-item:hover img {
    transform: scale(1.05) brightness(0.8);
    filter: brightness(0.8);
  }
  /* Remove default height from direct img children if any remain */
  .gallery > img {
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    width: 100%;
  }
  .gallery-item:hover::after,
  .gallery-item:hover figcaption {
    opacity: 1;
  }
  #portfolio-gallery h3, .portfolio-category h3 {
    color: #D4AF37;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
  }
  #portfolio .cta-button-secondary {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
  }

  /* Service Area Section */
  #service-area h2 { text-align: center; }
  .area-columns {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
  }
  #service-area ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
  }
  #service-area ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #D4AF37;
  }

  /* FAQ Section */
  #faq h2 { text-align: center; }

  .faq-container {
    max-width: 800px;
    margin: 0 auto;
  }

  .faq-item {
    border-bottom: 1px solid #2a2a2a;
  }

  .faq-question {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    text-align: left;
    width: 100%;
    font-size: 1.25rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
  }

  .faq-question:hover span[itemprop="name"] {
    color: #D4AF37;
  }

  .faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
  }

  .faq-icon::before,
  .faq-icon::after {
    content: '';
    position: absolute;
    background-color: #D4AF37;
    transition: transform 0.3s ease;
  }

  .faq-icon::before { /* Horizontal bar */
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
  }

  .faq-icon::after { /* Vertical bar */
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
  }

  .faq-question.active .faq-icon::after {
    transform: rotate(90deg);
  }

  .faq-question.active .faq-icon::before {
    transform: rotate(180deg);
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
  }

  .faq-answer[itemprop="text"] {
    padding-bottom: 1.5rem;
  }


  /* Footer */
  footer {
    background-color: #0a0a0a;
    color: #BDBDBD;
    padding: 4rem 2rem 1rem;
  }
  .footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 3rem;
    gap: 3rem;
  }
  .footer-about p:first-of-type {
    margin-top: 2rem; /* Add extra space after the description */
  }
  .footer-about { flex-basis: 50%; }
  .footer-links { flex-basis: 25%; }
  .footer-links h4 {
    margin-bottom: 1rem;
  }
  .footer-links li {
    margin-bottom: 0.75rem;
  }
  .footer-bottom {
    text-align: center;
    border-top: 1px solid #2a2a2a;
    padding-top: 1.5rem;
    font-size: 0.9rem;
  }

  /* Animation Keyframes */
  @keyframes floatIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Contact Page Specific Styles */
  .contact-wrapper {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
  }

  .contact-details {
    flex: 1;
  }

  .contact-info-item {
    margin-bottom: 1.5rem;
  }

  .contact-info-item h4 {
    color: #D4AF37;
    margin-bottom: 0.25rem;
  }

  .contact-info-item p {
    margin-bottom: 0;
  }

  .contact-form-wrapper {
    flex: 1.5;
    background-color: #1a1a1a;
    padding: 2.5rem;
    border-radius: 8px;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #EAEAEA;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    color: #EAEAEA;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
  }

  #map-section {
    padding-top: 0;
  }

  #map-section h2 { text-align: center; }

  /* Portfolio Page Specific Styles */
  .portfolio-page .gallery {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }

  .portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .filter-btn {
    background-color: transparent;
    color: #BDBDBD;
    border: 1px solid #444;
    padding: 0.75rem 1.5rem;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
  }

  .filter-btn:hover {
    background-color: #2a2a2a;
    color: #FFFFFF;
    border-color: #555;
  }

  .filter-btn.active {
    background-color: #D4AF37;
    color: #121212;
    border-color: #D4AF37;
    font-weight: 600;
  }

  .portfolio-page .gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  #portfolio-gallery .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
  }

  /* Hide h2/h3 on the new portfolio page structure */
  .portfolio-page h2,
  .portfolio-page h3 {
    display: none;
  }

  /* Privacy Policy Page Specific Styles */
  #privacy-content {
    background-color: #1a1a1a;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    margin-top: 6rem; /* Adds space between the hero and this container */
    margin-bottom: 6rem; /* Adds space between the hero and this container */
  }

  #privacy-content h2 {
    text-align: center;
    margin-bottom: 2rem;
  }

  #privacy-content h3 {
    color: #D4AF37;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
  }

  #privacy-content ul {
    list-style: none;
    padding-left: 0;
  }

  #privacy-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
  }

  #privacy-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: bold;
    font-size: 1.5rem;
    top: -4px;
  }
}

.service-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.service-content-wrapper.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-image {
    flex: 1;
    overflow: hidden; /* Ensures the image stays within the container's bounds */
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.feature-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item h3 svg {
    color: #D4AF37;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  section {
    padding: 5rem 1.5rem;
  }
}

@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    padding: 1rem 1.5rem;
    display: block;
    width: 100%;
  }

  .dropdown-menu {
    position: static !important;
    display: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    min-width: unset !important;
    padding-left: 1rem;
  }

  .dropdown:hover .dropdown-menu {
    display: block !important;
  }

  .submenu {
    position: static !important;
    display: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    min-width: unset !important;
    padding-left: 1rem;
  }

  .dropdown-menu li:hover .submenu {
    display: block !important;
  }

  .nav-cta {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #2a2a2a;
    margin-top: 1rem;
  }

  .hamburger-menu {
    display: block;
  }

  .services-container {
    flex-wrap: wrap;
  }

  .service-card {
    flex-basis: calc(50% - 1rem);
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .area-columns {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-about, .footer-links {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem;
  }

  .service-card {
    flex-basis: 100%;
  }

  .contact-wrapper {
    flex-direction: column;
  }

  .portfolio-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .service-content-wrapper {
    flex-direction: column;
    gap: 3rem;
  }

  .service-content-wrapper.reverse {
    flex-direction: column;
  }

  .portfolio-page .gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  section {
    padding: 4rem 1rem;
  }

  .hero {
    padding: 5rem 1rem;
  }

  .cta-banner h3 {
    font-size: 1.5rem;
  }

  .portfolio-page .gallery {
    grid-template-columns: 1fr;
  }
}