/* ===================================================
   Shevella Trapp Realtor — Main Stylesheet
   =================================================== */

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --brand-red:   #9e0005;
  --dark-navy:   #111727;
  --deep-navy:   #0a0b24;
  --white:       #ffffff;
  --black:       #000000;
  --border:      #d3dce8;
  --bg-light:    #f4f7fa;
  --card-shadow: 0 2px 18px 0 rgba(110, 130, 218, 0.17);

  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Work Sans', sans-serif;
  --font-button:  'Roboto', sans-serif;
  --font-detail:  'Heebo', sans-serif;

  --container-max: 1080px;
  --section-pad:   75px;
  --transition:    all 0.4s ease-in-out;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== BASE ===== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--black);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: capitalize;
  color: var(--dark-navy);
}
h1 { font-size: 66px; font-weight: 800; line-height: 1.1; }
h2 { font-size: 42px; font-weight: 800; line-height: 1.3; }
h3 { font-size: 32px; font-weight: 700; line-height: 1.4; }
h4 { font-size: 24px; font-weight: 800; line-height: 1.5; }
h5 { font-size: 16px; font-weight: 800; line-height: 1.6; text-transform: uppercase; }

/* ===== LAYOUT ===== */
.container {
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.section {
  padding: var(--section-pad) 0;
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 15px 0;
}
#site-header.scrolled {
  background-color: var(--white);
  box-shadow: 0 0 1px 0 rgba(0,0,0,0.3);
}
.header-inner {
  display: grid;
  grid-template-columns: 20% 75%;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}
.nav-menu a {
  font-family: var(--font-button);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
}
.nav-menu a:hover { color: rgba(255, 255, 255, 0.75); }
.nav-menu a.active { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Scrolled state — restore brand colors */
#site-header.scrolled .site-logo { color: var(--brand-red); }
#site-header.scrolled .nav-menu a { color: var(--dark-navy); }
#site-header.scrolled .nav-menu a:hover { color: var(--brand-red); }
#site-header.scrolled .nav-menu a.active { color: var(--brand-red); text-decoration: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  justify-content: flex-end;
  align-items: flex-end;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
#site-header.scrolled .nav-toggle span { background-color: var(--dark-navy); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--white);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: var(--font-button);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark-navy);
  transition: color 0.3s;
}
.nav-overlay a:hover { color: var(--brand-red); }
.nav-close {
  position: absolute;
  top: 25px; right: 25px;
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
  color: var(--dark-navy);
  line-height: 1;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background-image: url('../images/downtown_rome_ga_hero_jbryant.jpg');
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(158, 0, 5, 0.5),
    rgba(158, 0, 5, 0.3),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 70px;
}
.hero h2 {
  font-size: 70px;
  color: var(--white);
  width: 60%;
  font-weight: 800;
  line-height: 1.1;
  text-transform: capitalize;
  font-family: var(--font-heading);
}
.hero--short { height: 50vh; }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: var(--section-pad) 0;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testimonials-header {
  text-align: center;
  width: 70%;
  max-width: 700px;
  margin: 0 auto 40px;
}
.sub-label {
  display: block;
  color: var(--brand-red);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.testimonials-header h3 { margin-bottom: 15px; }
.testimonials-header p {
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  color: var(--black);
}

/* Slider */
.slider-wrapper {
  width: 80%;
  max-width: var(--container-max);
  overflow: hidden;
  position: relative;
}
.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}
.testimonial-card {
  min-width: 100%;
  padding: 15px;
}
.testimonial-inner {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 60px;
}
.quote-icon {
  position: absolute;
  top: 15%; right: 10%;
  font-size: 50px;
  color: rgba(110, 130, 218, 0.17);
}
.testimonial-photo-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: -70px;
  padding-top: 10px;
}
.testimonial-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 4px solid var(--white);
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
}
.testimonial-name {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-navy);
  text-transform: capitalize;
}
.testimonial-text {
  font-size: 15px;
  color: var(--black);
  line-height: 1.8;
}
.slider-arrows {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}
.slider-arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--dark-navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.slider-arrow:hover { background-color: var(--brand-red); }

/* ===== SOCIAL / FOLLOW SECTION ===== */
.social-section {
  padding: var(--section-pad) 0;
}
.social-inner {
  display: flex;
  flex-direction: row;
  gap: 5%;
  align-items: flex-start;
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.social-left {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.social-left h2 { font-size: 32px; }
.social-left p { font-size: 15px; }
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}
.social-icon-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--brand-red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background-color 0.3s;
}
.social-icon-link:hover { background-color: var(--dark-navy); }
.social-right {
  width: 60%;
  min-height: 400px;
  background-color: var(--bg-light);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== ABOUT — WHY CHOOSE ===== */
.why-choose-section { padding: var(--section-pad) 0; }
.why-choose-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 5%;
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Image column */
.about-image-col {
  width: 35%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.about-image-bg {
  position: absolute;
  top: -20px; left: 0;
  width: 200px;
  height: 300px;
  background-color: var(--deep-navy);
  border-top-right-radius: 50px;
  z-index: 1;
}
.about-headshot {
  width: 94%;
  height: 620px;
  object-fit: cover;
  border-top-right-radius: 50px;
  position: relative;
  z-index: 2;
  align-self: flex-end;
}

/* Content column */
.about-content-col {
  width: 65%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.about-content-col h2 { margin-bottom: 10px; }

/* Icon boxes */
.icon-boxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}
.icon-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}
.icon-box-icon {
  width: 75px;
  min-width: 75px;
  height: 75px;
  background-color: var(--deep-navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 30px;
}
.icon-box-content h4 {
  font-size: 24px;
  color: var(--dark-navy);
  margin-bottom: 4px;
}
.icon-box-content p {
  font-family: var(--font-detail);
  font-size: 15px;
  color: var(--black);
  line-height: 1.8;
}
.icon-divider {
  border: none;
  border-top: 1px dashed var(--border);
}

/* ===== BIOGRAPHY ===== */
.biography-section { padding: 0 0 var(--section-pad); }
.biography-inner {
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-divider {
  border: none;
  border-top: 1px dashed var(--border);
  width: 80%;
  margin: 0 auto;
}
.biography-inner h4 {
  font-size: 26px;
  font-weight: 900;
}
.biography-text p + p { margin-top: 1em; }
.biography-text p {
  font-size: 15px;
  line-height: 1.9;
}

/* ===== CONTACT ===== */
.contact-section { padding: var(--section-pad) 0; }
.contact-inner {
  width: 80%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.contact-info-icon {
  width: 55px;
  min-width: 55px;
  height: 55px;
  background-color: var(--brand-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
}
.contact-info-text h4 { font-size: 18px; margin-bottom: 2px; }
.contact-info-text p, .contact-info-text a {
  font-family: var(--font-detail);
  font-size: 15px;
  color: var(--black);
}
.contact-info-text a:hover { color: var(--brand-red); }

.section-divider-full {
  border: none;
  border-top: 1px dashed var(--border);
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.contact-form { width: 100%; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}
.form-group label {
  font-family: var(--font-button);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark-navy);
}
.form-group input,
.form-group textarea {
  font-family: var(--font-detail);
  font-size: 15px;
  color: var(--black);
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  background: transparent;
  outline: none;
  width: 100%;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--brand-red); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%;
  padding: 18px;
  font-family: var(--font-button);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--dark-navy);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  letter-spacing: 0.5px;
}
.btn-submit:hover { background-color: var(--brand-red); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
  display: none;
  text-align: center;
  padding: 25px;
  background-color: #f0faf0;
  border-radius: 5px;
  color: #2d7a2d;
  font-weight: 600;
  font-size: 16px;
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  body { background-color: #141414; color: #fff; }
  h1, h2, h3, h4, h5, h6 { color: #fff; }
  p { color: #fff; }
  #site-header.scrolled { background-color: #141414; }
  .nav-overlay { background-color: #141414; }
  .nav-overlay a { color: #fff; }
  .nav-close { color: #fff; }
  .nav-toggle span { background-color: #fff; }
  .testimonial-name { color: #fff; }
  .icon-box-content h4 { color: #fff; }
  .testimonials-section { background-color: #141414; }
  img { opacity: 0.8; transition: opacity 0.3s; }
  img:hover { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  h1 { font-size: 46px; line-height: 1.3; }
  h2 { font-size: 36px; }
  h3 { font-size: 30px; }
  .header-inner { grid-template-columns: 47% 47%; }
  .hero h2 { font-size: 50px; width: 80%; }
  .why-choose-inner { flex-direction: column; }
  .about-image-col { width: 100%; align-items: center; }
  .about-headshot { height: 400px; width: 80%; align-self: center; }
  .about-image-bg { left: 10%; }
  .about-content-col { width: 100%; }
  .social-inner { flex-direction: column; }
  .social-left { width: 100%; }
  .social-right { width: 100%; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  h2 { font-size: 32px; }
  h3 { font-size: 26px; }
  h4 { font-size: 22px; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 478px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
  .hero { height: 50vh; }
  .hero-inner { display: flex; justify-content: center; }
  .hero h2 { font-size: 40px; width: 100%; text-align: center; }
  .icon-box { flex-direction: column; align-items: center; }
  .icon-box-content { text-align: center; font-family: 'Work Sans', sans-serif; }
  .contact-inner { width: 90%; }
}
