/*Reset and basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    scroll-behavior: smooth;
    background-color: #fff;
    color: #333;
    padding-top: 120px;
}

/*Container*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Floating Top-Right Social Icons */
.social-top-right {
    position: fixed;
    top: 5px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 2000;
}

.social-top-right a {
    text-decoration: none;
    color: #2e7d32;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-top-right a:hover {
    color: #1b4d23;
    transform: scale(1.2);
}


/* HEADER */
.header {
    width: 100%;
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform .4s ease;
}
.header.hide {
    transform: translateY(-100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 80px;
}
.logo span {
    font-size: 1.6rem;
    color: #2e7d32;
    font-weight: bold;
}

.navbar {
    display: flex;
    justify-content: flex-end;
}
.navbar ul {
    display: flex;
    list-style: none;
    gap: 35px;
}
.navbar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: .3s;
}
.navbar ul li a:hover,
.navbar ul li a.active {
    color: #2e7d32;
}

/* HAMBURGER MENU */
.hamburger { /* moved to common.css */ }

@media (max-width: 768px) {
    /* mobile navbar behavior moved to common.css */

    .logo img { height: 60px; }
    .logo span { font-size: 1.2rem; }
}

/* Small phones (iPhone 12 - 390px) */
@media (max-width: 390px) {
    .logo img { height: 45px; }
    .logo span { font-size: 1rem; }
    .logo { gap: 8px; }
}


/* ===== Hero Section ===== */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
                url('Docs/contact-bg.jpg') center/cover no-repeat;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.contact-hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.7);
}

/* ===== Contact Section ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Contact Info Card */
.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info h2 {
    margin-bottom: 25px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 15px;
}

.contact-info i {
    color: #2e7d32; /* GREEN ICONS */
    margin-right: 10px;
}

/* Contact Form Card */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.contact-form h2 {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2e7d32;   /* GREEN FOCUS */
    box-shadow: 0 0 10px rgba(46,125,50,0.3);
    outline: none;
}

/* ===== Buttons ===== */
button, .btn {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);  /* GREEN BUTTON */
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.3);
}

button:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(27, 94, 32, 0.4);
}

/* ===== FOOTER ===== */
/* FOOTER */
.footer {
  background: #0a0f24;
  color: #fff;
  padding: 70px 0 20px;
  width: 100%;
}

.footer-container {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
}

.footer-col h3 {
  margin-bottom: 20px;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4cc9f0;
}

.footer-col p {
  line-height: 1.7;
}

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

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #4cc9f0;
}

/* CONTACT LIST */
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list i {
  color: #4cc9f0;
}

/* SOCIAL ICONS */
.social-icons a {
  color: #fff;
  margin-right: 12px;
  font-size: 22px;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: #4cc9f0;
}

/* BOTTOM */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}


/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .navbar ul {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* mobile navbar behavior moved to common.css; keep layout tweaks */

    .navbar.active ul {
        display: flex;
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
    }

    .navbar ul li a {
        padding: 15px 0;
        display: block;
        color: #333;
    }

    .logo img {
        height: 60px;
    }

    .logo span {
        font-size: 1.2rem;
    }
}
