/*
Author: Edwin Henriquez
Date: 04/05/2026
File Name: styles.css
*/
/* 
   RESET (removes default spacing)
 */
body, header, nav, main, footer, h1, div, img, ul, figure, figcaption, section, article, aside {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* 
   GLOBAL PAGE STYLING
 */
body {
    font-family: Arial, sans-serif; /* main font */
    background: #0b0b0f; /* dark background */
    color: white;
}

/* Main wrapper container */
#container {
    width: 90%;
    max-width: 950px;
    margin: auto;
}

/* 
   HEADER SECTION
 */
header {
    text-align: center;
    padding: 25px;
    border-bottom: 2px solid gold;
}

.header-logos {
    width: 100%;
    max-width: 400px; /* keeps it from getting too huge */
    display: block;
    margin: 0 auto 15px auto; /* center + space below */
}

header {
    text-align: center;
    padding: 20px;
}

/* tagline under title */
.tagline {
    color: gold;
    letter-spacing: 1px;
}

/* 
   NAVIGATION BAR
 */
nav ul {
    list-style: none;
    text-align: center;
    background: #111;
}

/* each nav item */
nav li {
    display: inline-block;
}

/* nav links */
nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
}

/* hover + active state */
nav a:hover,
nav .active {
    background: gold;
    color: black;
}

/* text overlay on hero images */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* 
   INTRO SECTION
 */
.intro {
    position: relative; 
    /* needed for overlay positioning */

    background-image: url("../images/background_IMG_aboutSection.png");
    /* background image for mission section */

    background-size: cover;
    /* makes image fill area */

    background-position: center;
    /* keeps image centered */

    background-repeat: no-repeat;
    /* prevents repeating image */

    padding: 50px 30px;
    /* space inside section */

    margin: 20px auto;
    /* space outside section */

    color: white;
    /* text color */

    text-align: center;
    /* centers text */

    border-radius: 10px;
    /* rounded corners */

    overflow: hidden;
    /* keeps overlay inside */
}

/* dark overlay for readability */
.intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* keeps text above overlay */
.intro h2,
.intro p {
    position: relative;
    z-index: 1;
}

.intro h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: gold;
}

.intro p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* map styles */

.map-container {
    width: 100%;
    margin: 30px 0;
    border-top: 2px solid gold;
    border-bottom: 2px solid gold;
    border-radius: 0; /* removes boxed look */
    overflow: hidden;
}

/* make map larger */
.map-container iframe {
    width: 100%;
    height: 500px; /* bigger width */
    border: 0;
}

/* 
   GRID (CAR SHOWCASE)
 */
.grid {
    display: grid;
    gap: 20px;
    padding: 20px;
}

/* each car card */
.frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

/* car image */
.frame img {
    width: 100%;
    transition: 0.8s ease;
}

/* overlay text on image */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    text-align: center;
    padding: 12px;
}

/* hover zoom effect */
.frame:hover img {
    transform: scale(1.1);
}

.frame:hover {
    transform: translateY(-5px);
}

/* 
   CONTACT INFO SECTION
 */
/* layout wrapper */
.contact-wrapper {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* fix hero image */
.contact-img {
    background-size: cover;
}

/* contact info box */
.contact-info {
    background: #111;
    border-left: 4px solid gold;
    border-radius: 10px;
    padding: 25px;
}

.contact-info h3 {
    color: gold;
    margin-bottom: 10px;
}

/* form container */
.form-container {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    margin: 30px auto;
    border: 1px solid #222;
}

/* form layout */
.form-grid {
    display: grid;
    gap: 20px;
}

/* fieldsets */
fieldset {
    border: 1px solid #333;
    padding: 20px;
    border-radius: 10px;
}

legend {
    color: gold;
    padding: 0 10px;
}

/* labels */
label {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #ccc;
}

/* inputs */
input,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    background: #0b0b0f;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
}

/* focus effect */
input:focus,
textarea:focus {
    outline: none;
    border: 1px solid gold;
}

/* checkbox fix */
input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* button */
.btn {
    background: gold;
    color: black;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn:hover {
    background: #d4af37;
    transform: scale(1.05);
}

/* spacing */
main {
    padding: 20px 0;
}

/* nav polish */
nav a {
    transition: all 0.3s ease;
}

nav a:hover {
    letter-spacing: 1px;
}
/* 
   FOUNDER BIO CONTAINER
 */
.founder-bio {
    position: relative;              /* allows image to be positioned inside */
    background: #111;
    color: white;
    padding: 20px;
    margin: 20px auto;
    border-left: 4px solid gold;
    border-radius: 70px;
    max-width: 800px;
}

/* 
   FOUNDER IMAGE (TOP RIGHT)
 */
.founder-img {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 40%;
    border: 3px solid gold;
}

/* 
   TEXT SPACING ADJUSTMENT
 */
.founder-bio h2 {
    margin-bottom: 10px;
}

.founder-bio p {
    margin-right: 140px; /* prevents text from going under image */
    line-height: 1.6;
}

/* 
   FOOTER
 */
footer {
    text-align: center;
    padding: 20px;
    border-top: 2px solid gold;
    margin-top: 30px;
    color: #aaa;
}

/*  CAR PAGE STYLES */

.car-page {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    padding: 20px;
}

.car-title {
    grid-column: span 2;
    text-align: center;
    font-size: 2.5em;
    color: gold;
    margin-bottom: 10px;
}

.car-main-img {
    grid-column: span 2;
/*    width: 100%;*/
    border-radius: 10px;
    margin-bottom: 20px;
}

.car-section {
    background: #111;
    padding: 20px;
    border-left: 4px solid gold;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.car-section:hover {
    transform: translateY(-5px);
}

.car-section h2 {
    color: gold;
    margin-bottom: 10px;
}

.car-section p {
    line-height: 1.6;
}

/* SIDEBAR */
.car-specs {
    background: #111;
    padding: 20px;
    border: 2px solid gold;
    border-radius: 10px;
    height: fit-content;
}

.car-specs h2 {
    color: gold;
    margin-bottom: 10px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .car-page {
        grid-template-columns: 1fr;
    }

    .car-title,
    .car-main-img {
        grid-column: span 1;
    }
}

/* 
   RESPONSIVE DESIGN
 */

/* tablet */
@media screen and (min-width: 630px), print{
	/* Tablet Viewport: Style rule for form element */
    form {
        width: 70%;
        margin: 0 auto;
		background-image: url("../images/FormBackGroundIMG.jpg")
    }
	
	h2{
		text-align: center;
	}
    
}

/* desktop */
@media (min-width: 1000px) {

    /* Desktop layout: 3 columns grid */
    .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

}
