/* ============================================================
   RESPONSIVE REDESIGN — My Coolest Home
   Overrides & Modern Enhancements
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Global resets --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Montserrat', sans-serif;
  background: #f8f9fc;
  color: #444;
  overflow-x: hidden;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-top {
  height: 56px;
  background: linear-gradient(90deg, #0040cc, #0050ef);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.navbar-top .site-brand {
  height: 56px;
  padding: 0 10px;
}

.navbar-top .site-brand a h1 {
  font-size: 19px;
  line-height: 56px;
  font-weight: 700;
}

.navbar-top .triangle-border {
  border-top-width: 56px;
  border-right-width: 26px;
}

.side-nav-left i,
.side-nav-right i {
  line-height: 56px;
}

/* ============================================================
   SLIDER
   ============================================================ */
.slider {
  margin-top: 56px !important;
  height: 250px !important;
}

.slider .slides {
  height: 250px !important;
}

.slider .slides li::before {
  background-color: #000;
  opacity: 0.6;
}

.slider-content {
  top: 28% !important;
}

.slider-content h2 {
  font-size: 17px;
  letter-spacing: 1px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.slider-content h4 {
  font-size: 12px;
  color: rgba(255,255,255,.9);
}

.slider-content .button-default {
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-top: 12px;
  background: linear-gradient(135deg, #fbc02d, #f9a825);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(251,192,45,.4);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 32px 0;
}

.bg-second {
  background: #f2f4f8;
}

.section-head h4 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #111;
  text-transform: uppercase;
}

.section-head .underline {
  background: linear-gradient(90deg, #0050ef, #4d8bff);
  width: 40px;
  height: 3px;
  border-radius: 2px;
}

.section-head .underline2 {
  background: #fbc02d;
  width: 15px;
  height: 3px;
  border-radius: 2px;
}

/* ============================================================
   PROPERTY CARDS
   ============================================================ */
.real-estate .content {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  margin-bottom: 14px;
  background: #fff;
}

.real-estate .content:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,80,239,.16);
}

.real-estate .content img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.real-estate .content:hover img {
  transform: scale(1.05);
}

.real-estate .sub-content {
  padding: 10px 12px 14px;
}

.real-estate .sub-content h5 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 18px;
}

.real-estate .sub-content span {
  font-size: 11px;
  color: #888;
}

.real-estate .content .price {
  background: linear-gradient(135deg, #fbc02d, #f9a825);
  border-radius: 0 0 0 8px;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  color: #333;
}

.real-estate .content .offer-type span {
  background: rgba(0,80,239,.85);
  border-radius: 0 4px 0 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 1px 5px;
}

/* ============================================================
   WHO WE ARE
   ============================================================ */
.who-we-are {
  background: linear-gradient(
    135deg,
    rgba(0, 50, 180, 0.93) 0%,
    rgba(0, 15, 70, 0.97) 100%
  ),
  url(../img/bg.jpg) center/cover no-repeat;
}

.who-we-are .head {
  border-left: 4px solid #fbc02d;
  padding-left: 14px;
  margin-bottom: 24px;
}

.who-we-are h4 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.who-we-are p {
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  font-size: 13px;
}

.who-we-are .content {
  border-left: 3px solid rgba(251,192,45,.5);
  padding-left: 12px;
  margin-bottom: 16px;
}

.who-we-are .content i {
  font-size: 22px;
  color: #fbc02d;
  margin-bottom: 6px;
}

.who-we-are .content h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.who-we-are .content p {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin: 0;
}

/* ============================================================
   TEAM / AGENT CARDS
   ============================================================ */
.page-team {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  margin-bottom: 14px;
  transition: box-shadow 0.22s, transform 0.22s;
  background: #fff;
}

.page-team:hover {
  box-shadow: 0 8px 24px rgba(0,80,239,.14);
  transform: translateY(-3px);
}

.page-team img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.team-details {
  padding: 12px 10px;
  background: #fff;
}

.team-details h5 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 3px;
}

.team-details span {
  font-size: 11px;
  color: #666;
  display: block;
  margin: 3px 0;
  line-height: 1.4;
}

/* ============================================================
   ABOUT US PAGE
   ============================================================ */
.about-us {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  padding: 24px 18px;
  margin: 16px auto;
  max-width: 100%;
  line-height: 1.7;
}

.about-us h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0050ef;
  margin-bottom: 14px;
  text-align: center;
}

.about-us p {
  font-size: 13px;
  color: #555;
}

.about-us ul {
  padding-left: 18px;
}

.about-us li {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.about-us strong {
  color: #0050ef;
  font-weight: 700;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.pages-head h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #111;
}

.contact-us .contact-form {
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

input:not([type]),
input[type=text],
input[type=email],
input[type=tel],
input[type=number],
input[type=search] {
  border-radius: 8px;
  border: 1.5px solid #e0e0e0 !important;
  background: #fafafa;
  font-size: 13px;
  height: 44px;
  padding: 0 14px;
  transition: border 0.2s, box-shadow 0.2s;
}

input:not([type]):focus:not([readonly]),
input[type=text]:focus:not([readonly]),
input[type=email]:focus:not([readonly]),
input[type=tel]:focus:not([readonly]),
input[type=number]:focus:not([readonly]) {
  border: 1.5px solid #0050ef !important;
  box-shadow: 0 0 0 3px rgba(0,80,239,.1) !important;
  background: #fff;
}

textarea.materialize-textarea {
  border-radius: 8px;
  border: 1.5px solid #e0e0e0 !important;
  background: #fafafa;
  font-size: 13px;
  padding: 12px 14px;
}

textarea.materialize-textarea:focus:not([readonly]) {
  border: 1.5px solid #0050ef !important;
  box-shadow: 0 0 0 3px rgba(0,80,239,.1) !important;
  background: #fff;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button-default {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 8px;
  padding: 8px 18px;
  transition: all 0.2s ease;
}

.button-default:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,80,239,.3);
  opacity: 1 !important;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  margin-bottom: 14px;
  transition: transform 0.22s, box-shadow 0.22s;
}

.pricing:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,80,239,.15);
}

.pricing-head {
  background: linear-gradient(135deg, #0050ef, #0030a0);
  color: #fff;
  padding: 18px 10px;
}

.pricing-head h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-head span {
  font-size: 26px;
  font-weight: 800;
  color: #fbc02d;
}

.pricing ul li {
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(135deg, #002fa0 0%, #001455 100%);
  padding: 28px 0 18px;
}

.about-us-foot {
  text-align: center;
  color: #fff;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 14px;
}

.about-us-foot h6 {
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-shadow: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  background: none !important;
}

.about-us-foot span {
  background: linear-gradient(90deg, #FFA500, #FFD700) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.about-us-foot p {
  color: rgba(255,255,255,.65);
  font-size: 12px;
  margin: 0;
}

/* Footer address block */
.footer-address {
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-address p {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.2px;
}

.footer-address p .fa-map-marker {
  color: #fbc02d;
  margin-right: 6px;
  font-size: 15px;
}

.copyright {
  text-align: center;
  padding: 0;
}

.copyright span {
  color: rgba(255,255,255,.4);
  font-size: 11px;
}

/* ============================================================
   SIDE NAV
   ============================================================ */
.side-nav-panel-left .collapsible {
  background: linear-gradient(180deg, #0050ef 0%, #002fa0 100%);
}

.side-nav-panel {
  background: transparent;
}

.side-nav {
  border-right: none;
  box-shadow: 4px 0 20px rgba(0,0,0,.2);
}

/* ============================================================
   TABLET — min-width: 600px
   ============================================================ */
@media (min-width: 600px) {

  .slider {
    height: 320px !important;
  }
  .slider .slides {
    height: 320px !important;
  }
  .slider-content h2 {
    font-size: 24px;
  }
  .slider-content h4 {
    font-size: 14px;
  }

  .real-estate .content img {
    height: 190px;
  }

  .page-team img {
    height: 160px;
  }

  .section {
    padding: 44px 0;
  }

  .section-head h4 {
    font-size: 18px;
  }

  .about-us {
    padding: 30px 24px;
  }

  .about-us h2 {
    font-size: 22px;
  }

  .contact-us .contact-form {
    padding: 28px 22px;
  }
}


/* ============================================================
   DESKTOP — min-width: 900px
   ============================================================ */
@media (min-width: 900px) {

  body {
    font-size: 14px;
  }

  /* --- Navbar --- */
  .navbar-top {
    height: 64px;
  }
  .navbar-top .site-brand {
    height: 64px;
    padding: 0 20px;
  }
  .navbar-top .site-brand a h1 {
    font-size: 26px;
    line-height: 64px;
  }
  .navbar-top .triangle-border {
    border-top-width: 64px;
    border-right-width: 36px;
  }
  .side-nav-left i,
  .side-nav-right i {
    line-height: 64px;
  }

  /* --- Slider --- */
  .slider {
    margin-top: 64px !important;
    height: 480px !important;
  }
  .slider .slides {
    height: 480px !important;
  }
  .slider-content {
    top: 38% !important;
  }
  .slider-content h2 {
    font-size: 38px;
    letter-spacing: 2px;
  }
  .slider-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .slider-content .button-default {
    font-size: 14px;
    padding: 10px 28px;
  }

  /* --- Container --- */
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .section {
    padding: 60px 0;
  }

  .section-head h4 {
    font-size: 22px;
  }

  /* --- Property cards: 4-up grid --- */
  .real-estate .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -6px;
  }
  .real-estate .col.s6 {
    width: 25%;
    flex: 0 0 25%;
    padding: 0 6px;
  }
  .real-estate .content img {
    height: 200px;
  }

  /* --- Who we are: 4-col --- */
  .who-we-are .row {
    display: flex;
    flex-wrap: wrap;
  }
  .who-we-are .col.s6 {
    width: 25%;
    flex: 0 0 25%;
  }
  .who-we-are h4 {
    font-size: 20px;
  }
  .who-we-are p {
    font-size: 14px;
  }

  /* --- Agent cards: 4-col --- */
  .page-team img {
    height: 200px;
  }

  /* --- Pages offset --- */
  .pages {
    margin-top: 64px !important;
  }

  /* --- About us --- */
  .about-us {
    max-width: 760px;
    padding: 36px 32px;
  }

  /* --- Contact form --- */
  .contact-us .contact-form {
    max-width: 560px;
    margin: 0 auto;
    padding: 36px 32px;
  }

  /* --- Footer: horizontal layout --- */
  .footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }
  .about-us-foot {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    text-align: left;
    flex: 1 1 200px;
  }
  .footer-address {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    flex: 1 1 200px;
    text-align: center;
  }
  .copyright {
    flex: 1 1 120px;
    text-align: right;
  }

  /* --- Pricing: 4-up --- */
  .pricing-table .row {
    display: flex;
    flex-wrap: wrap;
  }
}


/* ============================================================
   WIDE DESKTOP — min-width: 1200px
   ============================================================ */
@media (min-width: 1200px) {

  .slider {
    height: 560px !important;
  }
  .slider .slides {
    height: 560px !important;
  }
  .slider-content h2 {
    font-size: 46px;
  }
  .slider-content h4 {
    font-size: 20px;
  }

  .real-estate .content img {
    height: 220px;
  }

  .container {
    max-width: 1200px;
  }
}
