@import url('../vendor/css/all.min.css'); 

/* --- Local Figtree Font --- */
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 900; /* Defines the range of weights this variable font supports */
  font-style: normal;
}

@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 900; /* Defines the range of weights for the italic version */
  font-style: italic;
}

/* --- CSS Variables (GOLD STANDARD THEME) --- */
:root {
    --primary-colour: #1a1a1a;   /* A very dark, near-black for headers and footer */
    --secondary-colour: #F5BD02; /* The vibrant gold */
    --dark-grey: #333333;       /* For primary body text */
    --medium-grey: #6c757d;     /* For secondary text and borders */
    --light-grey: #f8f9fa;      /* For alternating section backgrounds */
    --white: #ffffff;
    --Background-grey: #CFCFCF;
}

/* --- Global Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Figtree', sans-serif; /* Changed 'Poppins' to 'Figtree' */
    color: var(--dark-grey);
    line-height: 1.6;
    background-color: var(--white);
}

/* --- Layout & Helpers --- */
.container {
  max-width: auto;
  margin: auto;
  /* Adjust the values in calc() to your liking */
  padding: 0 calc(1rem + 2vw); /* Example: 16px base + 2% of viewport width */
  max-height: auto;
}


section { padding: 60px 0; }
section:nth-child(even) { background-color: #ededed; }

.page-header {
    background: url('../images/page-header-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 42px 0;
    text-align: center;
}


.page-header h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 0;
}
.text-center { text-align: center; }
.cta-button-container { text-align: center; margin-top: 40px; }


/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 600; margin-bottom: 20px; color: var(--primary-colour); }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; }
h3 { font-size: 1.4rem; color: var(--dark-grey); }
h4 { font-size: 1.8rem; text-align: center; }
p { margin-bottom: 15px; color: var(--medium-grey); text-align: justify;font-size: 1rem;}


.black-paragraph {
  color: var(--primary-colour)
}

.left-heading {
  text-align: left;
}

.center-heading {
  text-align: center;
}

/* --- Navigation Bar --- */
.navbar {
    background: var(--white);
    color: var(--dark-grey);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
}
.navbar .logo {
    text-decoration: none;
}
.navbar .logo {
    position: absolute; /* Takes the logo out of the normal flow */
    top: 15px;          /* Adjust to move the logo down from the top edge */
    z-index: 1001;      /* Ensures the logo is on top of other elements */
}

.navbar .logo img {
    height: 30px;      /* This is your desired logo size */
    transition: transform 0.3s ease; 
}

/* ADDED: Rule to enlarge the logo on hover */
.navbar .logo:hover img {
    transform: scale(1.05); /* Enlarge the logo by 10% */
}
.navbar nav {
    margin-left: auto; 
}
.navbar .nav-links {
    list-style: none;
    display: flex;
}
.navbar .nav-links li { margin-left: 30px; }
.navbar .nav-links li a {
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.navbar .nav-links li a:hover { color: var(--secondary-colour); }

/* --- Mobile Hamburger Menu --- */
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero1.png') no-repeat center center/cover;
    color: var(--white);
    height: 95vh;
    
    /* Grid layout */
    display: grid;
    grid-template-columns: 2fr 1fr; /* Creates 2 columns: left is 2/3, right is 1/3 */
    align-items: center; /* Vertically centers the content */
    padding: 0 5vw; /* Adds some space on the sides using viewport width */
}
.hero h1 {
    color: var(--white);
    font-size: 3.55rem;
    text-align: left; /* Aligns the heading to the left */
}
.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 20px auto 30px 0;
    color: rgba(255,255,255,0.9);
    text-align: justify;
}



.btn {
    display: inline-block; padding: 12px 28px; border-radius: 5px;
    text-decoration: none; font-weight: 600; transition: all 0.3s ease;
    margin: 5px; border: 2px solid transparent;
}
.btn-primary { 
    background: var(--secondary-colour); 
    color: var(--primary-colour);
}
.btn-primary:hover { 
    background: #E0AC02;
    transform: translateY(-2px); 
}
.btn-secondary { 
    background: transparent; 
    color: var(--white); 
    border-color: var(--white); 
}
.btn-secondary:hover { 
    background: var(--white); 
    color: var(--primary-colour); 
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px auto 0 auto; /* Top margin and horizontal centering */
  max-width: 1100px;         /* Limit width to 1100px */
  width: 100%;
  padding: 0 20px;           /* Add side padding to prevent flush edge */
  box-sizing: border-box;   /* Ensures padding stays within the max-width */
}

/* --- General Service/Process Card Styles (Unified for Consistency) --- */

.service-card, .process-card {
  position: relative;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  text-align: center;
  text-decoration: none;
}

/* Dark Overlay on Cards */
.service-card::before, .process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: 1;
  transition: background-color 0.3s ease;
}

/* Content within Cards (Initial and Hover States) */
.service-card .card-content,
.service-card .learn-more {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 15px;
  color: white; /* Ensure text is white */
}

/* Ensure headings inside are white */
.service-card .card-content h3,
.service-card .learn-more h3,
.service-card .learn-more p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.6rem;
}

/* Styling for the hidden hover content */
.service-card .learn-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  position: absolute;
}

/* --- HOVER BEHAVIOR --- */

/* Change overlay color on hover */
.service-card:hover::before {
  background-color: rgba(245, 189, 2, 0.85); /* Gold overlay */
}

/* Hide initial content on hover */
.service-card:hover .card-content {
  opacity: 0;
  visibility: hidden;
}

/* Show hover content on hover */
.service-card:hover .learn-more {
  opacity: 1;
  visibility: visible;
}

/* --- Specific Card Background Images --- */

/* Managed IT Services Card */
.managed-it-services-card {
  background-image: url('/images/onsitesupport.jpg');
}

/* ITAD Card */
.itad-card {
  background-image: url('/images/itad.jpg');
}

/* Cameras Card */
.cameras-card {
  background-image: url('/images/cameras2.jpg');
}

/* Link Styling */
.service-card-link {
    text-decoration: none; /* Removes underline from links */
}

/* Footer */
.site-footer {
  background-image: url('/images/footer.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: white;
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: flex-start;  /* Align left */
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}



/* --- In your global.css file --- */

.footer-grid {
  display: flex; /* Aligns columns in a row */
  width: 60%;
  gap: 70px;     /* This creates the consistent spacing you want BETWEEN the columns */
  min-width: 300px;
}

.footer-column {
  /*
    By leaving this empty (specifically, by REMOVING 'flex: 1'),
    each column will only be as wide as its content needs to be.
  */
  max-width: none;
}

.footer-column h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column p {
  color: #ccc;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding-left: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--secondary-colour);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--medium-grey);
  color: #ccc;
}

@media (max-width: 768px) {
  .five-box-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .box-3 {
    grid-row: auto;
  }
}

/* --- Responsive Design --- */
@media (max-width: 992px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; } h2 { font-size: 1.8rem; } .hero h1 { font-size: 2.8rem; }
    .partner-content, .contact-grid, .about-grid, .values-grid { grid-template-columns: 1fr; }
    .about-grid, .values-grid { gap: 40px; }
    .contact-info { text-align: center; }
    .value-card { min-height: auto; width: 100%; height: 280px; border-radius: 8px; padding: 40px 30px; }
    .value-card-front, .value-card-back { position: static; opacity: 1; height: auto; }
    .value-card-front { display: none; } .value-card-back { display: flex; }
    .process-step-onboarding, .process-step-request, .process-step-execution, .value-card-partnership, .value-card-reliable, .value-card-clarity, .value-card-excellence, .value-card-agility, .value-card-integrity { background-color: transparent; box-shadow: none; border: none !important; padding: 20px; display: flex; justify-content: center; align-items: center; text-align: center; }
    .process-step-onboarding .value-card-back, .process-step-request .value-card-back, .process-step-execution .value-card-back, .value-card-partnership .value-card-back, .value-card-reliable .value-card-back, .value-card-clarity .value-card-back, .value-card-excellence .value-card-back, .value-card-agility .value-card-back, .value-card-integrity .value-card-back { background: transparent; }
    .process-step-onboarding .value-card-back h4, .process-step-onboarding .value-card-back p, .process-step-request .value-card-back h4, .process-step-request .value-card-back p, .process-step-execution .value-card-back h4, .process-step-execution .value-card-back p, .value-card-partnership .value-card-back h4, .value-card-partnership .value-card-back p, .value-card-reliable .value-card-back h4, .value-card-reliable .value-card-back p, .value-card-clarity .value-card-back h4, .value-card-clarity .value-card-back p, .value-card-excellence .value-card-back h4, .value-card-excellence .value-card-back p, .value-card-agility .value-card-back h4, .value-card-agility .value-card-back p, .value-card-integrity .value-card-back h4, .value-card-integrity .value-card-back p { color: var(--white); text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
    .hamburger { display: block; margin-left: auto; }
    .navbar nav { position: static; }
    .navbar .nav-links { display: none; flex-direction: column; width: 100%; background: var(--white); position: absolute; top: 60px; left: 0; padding: 20px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .navbar .nav-links.active { display: flex; }
    .navbar .nav-links li { margin: 10px 0; text-align: center; }
    .service-card .card-content, .service-card .icon { opacity: 1 !important; }
}

/* --- Dropdown Menu Styles --- */

/* Parent container for the dropdown */
.navbar .nav-links .dropdown {
    position: relative;
}

/* The "Services" link that toggles the dropdown */
.navbar .nav-links .dropdown-toggle {
    display: flex;
    align-items: center;
}

/* The down-arrow icon */
.navbar .nav-links .dropdown-toggle i {
    margin-left: 6px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

/* The dropdown menu itself (hidden by default) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px; /* Adjust to align with "Services" text */
    background-color: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0; /* No margin */
    min-width: 240px;
    z-index: 1001;
    border-radius: 8px;
}

/* The links inside the dropdown menu */
.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    font-weight: 400;
    white-space: nowrap;
}


/* --- DESKTOP: Hover Behavior --- */
@media (min-width: 769px) {
    /* The core fix: create an invisible "bridge" below the nav link */
    .navbar .nav-links .dropdown {
        padding-bottom: 20px; /* This creates the hoverable space */
        margin-bottom: -20px; /* This pulls the next nav items back up */
    }

    /* Show the menu when hovering the entire dropdown area */
    .navbar .nav-links .dropdown:hover > .dropdown-menu {
        display: block;
    }

    /* Rotate the arrow icon on hover */
    .navbar .nav-links .dropdown:hover > .dropdown-toggle > i {
        transform: rotate(180deg);
    }
}


/* --- MOBILE: Click Behavior --- */
@media (max-width: 768px) {
    /* Reposition dropdown for the mobile menu flow */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background-color: #fdfdfd;
        padding-left: 30px; /* Indent items under "Services" */
        min-width: auto;
        border-top: 1px solid #eee;
        margin-bottom: 10px;
    }

    /* JavaScript will toggle this class to show/hide the menu */
    .dropdown-menu.show {
        display: block;
    }

    /* Rotate the arrow when the menu is active on mobile */
    .dropdown-toggle.active > i {
        transform: rotate(180deg);
    }
}


.nav-links li a:hover,
.nav-links li a.active {
    color: #F5BD02; /* This is a gold color */
}

/* Optional: Style for the dropdown toggle when active */
.dropdown .dropdown-toggle.active {
    color: #F5BD02;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr;
  gap: -100px;
  align-items: center;
  text-align: justify;
}

/* Target the first column (the .about-image div) */
.about-grid > :first-child {
  margin-top: 0px; /* Your desired margin for the first column */
  margin-bottom: 0px;
  text-align: center;
}

/* Target the second column (the .about-content div) */
.about-grid > :last-child {
  margin-top: 0px; /* Your desired margin for the second column */
  margin-bottom: 0px;
}

.about-image img {
  width: 67%;
  height: auto;
  border-radius: 8px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Creates two equal columns */
  gap: 40px;                     /* Adjust the space between the columns as needed */
  align-items: stretch;          
}

/* Target the first column (the .about-image div) */
.why-grid > :first-child {
  margin-top: 0px; /* Your desired margin for the first column */
  margin-bottom: 0px;
}

/* Target the second column (the .about-content div) */
.why-grid > :last-child {
  margin-top: 0px; /* Your desired margin for the second column */
  margin-bottom: 0px;
}
.why-grid > div {
  background: var(--white);          /* Gives the box a white background */
  padding: 45px 65px;                /* Adds space inside the box */
  border-radius: 8px;                /* Rounds the corners slightly */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Adds the shadow effect */

}


.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; margin-top: 40px; }
.contact-info p { font-size: 0.8
    rem; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: 'Poppins', sans-serif; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--secondary-colour); }
.btn-submit { width: 100%; background: var(--secondary-colour); color: var(--primary-colour); border: none; cursor: pointer; }
.btn-submit:hover { background: #E0AC02; }

/* --- Background Utility Class --- */
section.bg-secondary {
    background-color: var(--Background-grey);
}

.text-secondary {
  color: #F5BD02; 
}

/* Styles for the 'about us' section */
.why-grid h2 {
    font-size: 1.8rem; /* Adjust this value to your liking */
}

.why-grid p {
    font-size: 0.9rem; /* Adjust this value to your liking */
}

.iti {
  position: relative;
  display: inline-block;
}
.iti * {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}
.iti__hide {
  display: none;
}
.iti__v-hide {
  visibility: hidden;
}

.iti input, .iti input[type=text], .iti input[type=tel] {
  position: relative;
  z-index: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-right: 36px;
  margin-right: 0;
}
.iti__flag-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  padding: 1px;
}
.iti__selected-flag {
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 6px 0 8px;
}
.iti__arrow {
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #555;
}
.iti__arrow--up {
  border-top: none;
  border-bottom: 4px solid #555;
}
.iti__country-list {
  position: absolute;
  z-index: 2;
  list-style: none;
  text-align: left;
  padding: 0;
  margin: 0 0 0 -1px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  background-color: white;
  border: 1px solid #CCC;
  white-space: nowrap;
  max-height: 200px;
  overflow-y: scroll;
}
.iti__country-list--dropup {
  bottom: 100%;
  margin-bottom: -1px;
}
.iti__divider {
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid #CCC;
}
.iti__country {
  padding: 5px 10px;
  outline: none;
}
.iti__dial-code {
  color: #999;
}
.iti__country.iti__highlight {
  background-color: rgba(0, 0, 0, 0.05);
}
.iti__flag-box, .iti__country-name, .iti__dial-code {
  vertical-align: middle;
}
.iti__flag-box {
  display: inline-block;
  width: 20px;
}
.iti__country-name {
  margin-left: 5px;
}

.iti__flag {
  width: 20px;
  height: 15px;
  box-shadow: 0px 0px 1px 0px #888;
  
  /* --- NEW PATH --- */
  /* This path starts from the root of your project. */
  background-image: url(/img/flags.png);
  
  background-repeat: no-repeat;
  background-color: #DBDBDB;
  background-position: 20px 0;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    /* --- NEW PATH for high-res screens --- */
    background-image: url(/img/flags@2x.png);
  }
}

.iti--allow-dropdown input, .iti--allow-dropdown input[type=text], .iti--allow-dropdown input[type=tel] {
  padding-right: 6px;
  padding-left: 52px;
  margin-left: 0;
}
.iti--allow-dropdown .iti__flag-container:hover {
  cursor: pointer;
}
.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
  background-color: rgba(0, 0, 0, 0.05);
}
.iti--allow-dropdown input[disabled] + .iti__flag-container:hover,
.iti--allow-dropdown input[readonly] + .iti__flag-container:hover {
  cursor: default;
}
.iti--allow-dropdown input[disabled] + .iti__flag-container:hover .iti__selected-flag,
.iti--allow-dropdown input[readonly] + .iti__flag-container:hover .iti__selected-flag {
  background-color: transparent;
}
.iti--separate-dial-code .iti__selected-flag {
  background-color: rgba(0, 0, 0, 0.05);
}
.iti--separate-dial-code .iti__selected-dial-code {
  margin-left: 6px;
}
.iti--container {
  position: absolute;
  top: -1000px;
  left: -1000px;
  z-index: 1060;
  padding: 1px;
}
.iti--container:hover {
  cursor: pointer;}

/* --- NEW: Styles for the clickable "About Aubyte" h2 --- */
.about-title-link {
    text-decoration: none; /* Removes the default underline from the link */
    display: inline-block; /* Prevents the link from spanning the full width */
    text-align: center;
}

.about-title-link h2 {
    transition: color 0.3s ease; /* Adds a smooth color change effect */
}

.about-title-link:hover h2 {
    color: var(--secondary-colour); /* Changes the h2 color to gold on hover */
}

.about-text {
    text-align: center; /* Centers the child <a> tag */
}