/* ============================================================
   VirgoTech — Main Stylesheet
   styles.css
   ============================================================ */


/* ───────────── GLOBAL RESET & BASE ───────────── */
*,
*::before,
*::after {
    box-sizing: border-box; /* prevents padding from expanding element widths */
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* enables smooth scrolling for all anchor links */
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.7;
}

.container {
    width: 80%;
    margin: 0 auto;
}


/* ───────────── HEADER & NAVIGATION ───────────── */
header {
    background-color: #1c1c1c;
    color: #fff;
    padding: 16px 0;
    position: sticky; /* keeps nav visible as user scrolls */
    top: 0;
    z-index: 100;
}

/* flex row: logo on the left, nav on the right */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo: image + brand name side by side */
header .logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

header .logo a img {
    height: 32px;
    width: auto;
    display: block;
}

header .logo a span {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* Nav links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #f9a825;
}


/* ───────────── HERO SECTION ───────────── */
#hero {
    background: url('../images/greentrees.png') center center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 150px 20px 100px;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* stacks h1, p, and button vertically and centered */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#hero h1 {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
}

#hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* shared CTA button style used in hero and contact */
.cta-btn {
    background-color: #f9a825;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.cta-btn:hover {
    background-color: #e6971f;
}


/* ───────────── ABOUT SECTION ───────────── */
.about {
    padding: 70px 0;
    background-color: #fff;
}

/* side-by-side layout: text left, image right */
.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1c1c1c;
}

.about-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

/* "Read More" inline text link */
.read-more-link {
    color: #f9a825;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.read-more-link:hover {
    border-bottom-color: #f9a825;
}

.about-image {
    flex-shrink: 0;
    width: 45%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}


/* ───────────── OUR VISION SECTION ───────────── */
.vision {
    padding: 70px 0;
    background-color: #1c1c1c; /* dark block breaks up the page and matches header/footer */
}

/* side-by-side layout: image left, text right */
.vision .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.vision-image {
    flex-shrink: 0;
    width: 45%;
}

.vision-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
    border-left: 5px solid #f9a825; /* gold accent ties into brand colour */
    display: block;
}

.vision-content {
    flex: 1;
}

.vision-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #f9a825;
    margin-bottom: 20px;
}

/* gold underline beneath the heading */
.vision-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #f9a825;
    margin-top: 10px;
}

.vision-content p {
    font-size: 15px;
    color: #ccc;
    line-height: 1.9;
}


/* ───────────── SERVICES SECTION ───────────── */
.services {
    background-color: #f4f4f4;
    padding: 60px 0;
}

.services h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1c1c1c;
}

/* three cards in a row */
.service-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    flex: 1; /* equal width without overflow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1c1c1c;
}

.service-card p {
    font-size: 14px;
    color: #666;
}


/* ───────────── PROJECTS SECTION ───────────── */
.projects {
    padding: 60px 0;
    background-color: #fff;
}

.projects h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1c1c1c;
}

/* three project cards in a row */
.project-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.project-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* consistent image height regardless of original dimensions */
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    display: block;
}

.project-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1c1c1c;
}

.project-card p {
    font-size: 14px;
    color: #666;
}


/* ───────────── CONTACT SECTION ───────────── */
.contact {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.contact h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1c1c1c;
}

.contact > .container > p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 15px;
}

/* centered, max-width form */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

.contact form input:focus,
.contact form textarea:focus {
    outline: none;
    border-color: #f9a825; /* gold highlight on focus */
}

.contact form textarea {
    height: 150px;
    resize: vertical;
}

/* submit button inherits .cta-btn but needs border: none since it's a <button> */
.contact form .cta-btn {
    border: none;
    cursor: pointer;
    padding: 14px;
    font-size: 16px;
}


/* ───────────── FOOTER ───────────── */
footer {
    background-color: #1c1c1c;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

footer p {
    color: #aaa;
}

footer .social-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

footer .social-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

footer .social-links li a:hover {
    color: #f9a825;
}
