/* Universal Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Page Background & Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2d3748;
    line-height: 1.7;
    min-height: 15vh;
    display: flex;
    flex-direction: column;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: rgb(12, 1, 1);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(247, 244, 244, 0.1);
}

header h1 {
    font-size: 2.2rem;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    color: #ffffff;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation Bar Styling */
nav {
    background-color: #1a1a90;
    display: flex;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(246, 244, 244, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

/* Descendant Selector for Nav Links */
nav a {
    color: #e8ebf0;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Pseudo-Class Selector for Hover Effect */
nav a:hover {
    background-color: #2a5298;
    color: white;
    transform: translateY(-2px);
}

/* Main Content Card Container */
main {
    max-width: 900px;
    margin: 40px auto;
    background: #e9e8ec;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    flex: 1;
    width: 90%;
}

/* Headings */
h1,
h2,
h3 {
    color: #1e3c72;
}

h2 {
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Class Selector for Bio Paragraphs */
.bio {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.8;
    background: #f7fafc;
    padding: 20px;
    border-left: 4px solid #2a5298;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e2e8f0;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
}

th {
    background-color: #dcddde;
    color: #1e3c72;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #466686;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 15px;
    font-weight: 600;
    color: #4a5568;
}

input,
textarea {
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}

button {
    margin-top: 20px;
    padding: 12px;
    background: linear-gradient(135deg, #05080e 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Image Borders */
/* Banner Container & Image Resizing */
/* Hero Section Side-by-Side Layout */
.hero-section {
    display: flex;
    align-items: right;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    /* Ensures it stacks nicely on mobile screens */
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-image {
    flex: 1;
    min-width: 280px;
    text-align: right;
}

/* Image Resizing */
.banner-img {
    width: 100%;
    max-width: 400px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* ID Selector for Footer */
#site-footer {
    background-color: #1a365d;
    color: #a0aec0;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.highlight {
    background-color: rgb(232, 232, 136);
    padding: 2px 5px;
}
img{
    float: right;
}
/* ==========================================
   PROJECT PART 3: STYLESHEET
   Author: Abdul Ibrahimi
   Project: Abdul Supplies
   ========================================== */

/* 1. Universal Selector (*) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Body & Global Text Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6; /* Clean, professional light background */
    color: #333333;
    line-height: 1.6;
}

/* 3. Navigation Bar Styling */
nav {
    background-color: #1b263b; /* Professional dark navy theme */
    padding: 1rem;
    text-align: center;
}

/* Descendant Selector for Nav Links */
nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline-block;
    margin: 0 15px; /* Adds clean spacing between items */
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Pseudo-class: Hover effect for navigation links */
nav ul li a:hover {
    color: #e0a96d; /* Warm accent color on hover */
    transform: scale(1.05); /* Grows slightly when hovered */
}

/* 4. Headings Styling */
h1, h2, h3 {
    color: #1b263b;
    margin-bottom: 1rem;
}

/* 5. Bio Class Paragraph Styling (for About Page) */
.bio {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    padding: 0 20px;
}

/* 6. Image Styling */
img {
    max-width: 100%;
    height: auto;
    border: 3px dashed #1b263b; /* Dashed border for extra flair */
    border-radius: 8px;
    margin: 10px 0;
}

/* 7. Footer ID Styling (#site-footer) */
#site-footer {
    background-color: #1b263b;
    color: #adb5bd;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 2rem;
}

/* ==========================================
   CUSTOM UNIQUE STYLE RULES (Required Rubric Item)
   ========================================== */

/* Custom Rule 1: Call-To-Action Button Highlight */
.cta-button {
    background-color: #2a9d8f;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    /* Reason: Added to draw user attention to primary e-commerce actions like purchasing parts or requesting quotes. */
}

/* Custom Rule 2: Subtle Card Container Shadow */
.card-container {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 15px auto;
    /* Reason: Added to give HVAC part descriptions and product cards a modern, raised card look for improved visual hierarchy. */
}

#quoteAlertBtn {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#quoteAlertBtn:hover {
    transform: scale(1.03);
}
/* Custom hidden class to hide elements until toggled */
.hidden {
    display: none;
}

/* Keeps the availability message hidden until toggled by JavaScript */
.hidden {
    display: none;
}

/* Professional button hover enhancement */
#quoteAlertBtn {
    transition: all 0.2s ease-in-out;
    font-weight: 600;
}

#quoteAlertBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}