/* ============================
   Smart Contact Page Template
   Author: CodeX Tech
   ============================ */

:root {
  --primary-color: #F8B301;
  --secondary-color: #FAFAFA;
  --accent-color: #f8b201b4;
  --background-color: #FAFAFA;
  --text-color: #222222;
  --subtext-color: #666666;
  --button-text: #FAFAFA;
  --font-family: 'Poppins', sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 750px;
  padding: 20px;
  margin: auto;
}

/* =====================================
 Hero Cover Background
===================================== */
.hero {
  width: 100%;
  height: 180px; /* shorter height */
  background-image: url("../images/cover.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Optional overlay for contrast */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  
}

/* =====================================
   Logo Frame - Overlapping the Banner
===================================== */
.logo-frame {
  position: absolute;
  bottom: -65px; /* overlap hero background halfway */
  width: 130px;
  height: 130px;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* =====================================
   Hero Text (now moved below banner)
===================================== */
.hero-text {
  margin-top: 90px; /* creates space below the overlapped logo */
  text-align: center;
}

.hero-text h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1rem;
  color: #222222;
}


/* ============================
   Social Buttons
============================ */
.links {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  background-color: var(--primary-color);
  color: var(--button-text);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  padding: 14px;
  width: 100%;
  max-width: 750px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--text-color);
}

/* ============================
   Address Section
============================ */
.address {
  margin: 40px 0;
}

.address h3 {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 8px;
}

.address p {
  margin-bottom: 20px;
  color: var(--subtext-color);
}

.map-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-container iframe {
  width: 100%;
  max-width: 750px;
  height: 380px;
  border: 0;
  border-radius: 10px;
}

/* ============================
   Footer
============================ */
footer {
  border-top: 1px solid #222222;
  padding: 20px;
  font-size: 14px;
  color: var(--subtext-color);
  margin-top: 40px;
  text-align: center;
}

/* Footer link styling */
footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px dashed transparent;
}

/* Hover state */
footer a:hover {
  color: var(--text-color);
  border-bottom: 1px dashed var(--accent-color);
}

/* Active (click) state */
footer a:active {
  color: var(--accent-color);
  opacity: 0.8;
  transform: scale(0.98);
}

/* ============================
   Responsive
============================ */
@media (max-width: 768px) {
  h1 {
    font-size: 22px;
  }
  .logo-frame {
    width: 100px;
    height: 100px;
  }
  .btn {
    font-size: 14px;
  }
  .map-container iframe {
    height: 300px;
  }
}
