/* styles.css - updated for mobile toggles + arrows visible */
:root{
  --primary: #0D1B2A;
  --secondary: #1B263B;
  --neutral: #415A77;
  --light: #E0E1DD;
  --accent: #D4AF37;
  --container: 1180px;
  --gap: 20px;
  --transition: 180ms ease;
}

/* Reset & base */
*{box-sizing:border-box}
html,body{height:100%}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--primary);   /* SAME BLUE AS NAV + FOOTER */
  color: var(--light);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header{background:var(--primary);position:sticky;top:0;z-index:90;box-shadow:0 6px 18px rgba(2,7,12,0.35)}
.header-inner{display:flex;align-items:center;gap:var(--gap);padding:12px 0;min-height:64px}

/* Logo */
.header-logo{flex:0 0 auto;display:flex;align-items:center}
.brand-logo{height:60px;display:block}

/* Center nav */
.main-nav{flex:1 1 0;display:flex;justify-content:center}
.nav-list{list-style:none;margin:0;padding:0;display:flex;gap:24px;align-items:center}

/* Plain text nav items (no box) */
.nav-list a,
.drop-toggle{
  color:var(--light);           /* white text */
  text-decoration:none;
  padding:4px 0;
  background:transparent;
  border:none;
  font-weight:600;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  transition: color 160ms ease, transform 160ms ease;
}

/* Hover: text turns gold (no background) */
.nav-list a:hover,
.drop-toggle:hover{
  color:var(--accent);
  transform:none;
}

/* Arrow (desktop + mobile) */
.arrow{
  display:inline-block;
  font-size:12px;
  line-height:1;
  transform-origin:center;
  transition: transform 220ms var(--transition), color 160ms ease;
  color:var(--light);
  margin-left:4px;
}

/* Hover arrow nibble */
.drop-toggle:hover .arrow{
  transform: rotate(10deg);
  color:var(--accent);
}

/* When expanded (aria-expanded) rotate 180deg */
.drop-toggle[aria-expanded="true"] .arrow{
  transform: rotate(180deg);
  color:var(--accent);
}

/* Dropdown panel (desktop) */
.has-dropdown{position:relative}
.dropdown{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:calc(100% + 6px);
  background:var(--secondary);
  min-width:200px;
  padding:8px;
  border-radius:8px;
  box-shadow:0 8px 22px rgba(0,0,0,0.45);
  display:none;
}
.dropdown li{padding:6px 6px}
.dropdown li a{display:block;color:var(--light);font-weight:500;padding:6px;border-radius:6px}
.dropdown li a:hover{background:rgba(212,175,55,0.08);color:var(--accent)}
.has-dropdown:focus-within .dropdown, .has-dropdown:hover .dropdown{display:block}

/* Right actions (login) - hidden on mobile via media query */
.header-actions{flex:0 0 auto;display:flex;align-items:center;gap:12px}
.btn{border:0;padding:8px 14px;border-radius:8px;font-weight:700;cursor:pointer;font-size:14px}
.login-btn{background:transparent;color:var(--light);border:1px solid rgba(224,225,221,0.06);transition:background-color 180ms ease, color 180ms ease}
.login-btn:hover{background:var(--accent);color:var(--primary)}

/* Hamburger */
.hamburger{display:none;background:transparent;border:0;color:var(--light);padding:8px;margin-left:6px}
.hamburger-box{width:28px;height:18px;display:inline-block;position:relative}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after{display:block;position:absolute;height:2px;background:var(--light);left:0;right:0;border-radius:2px}
.hamburger-inner{top:50%;transform:translateY(-50%)}
.hamburger-inner::before{content:'';top:-8px}
.hamburger-inner::after{content:'';top:8px}

/* Mobile panel */
.mobile-panel{position:fixed;inset:0;background:var(--primary);padding:22px;z-index:120;overflow:auto}
.mobile-panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.mobile-logo{height: 60px;}
.close-btn{background:transparent;border:0;color:var(--light);font-size:28px;cursor:pointer}
.mobile-nav ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.mobile-nav a{color:var(--light);text-decoration:none;font-size:18px;font-weight:600}

/* MOBILE: mobile-drop-toggle button style and arrow visible */
.mobile-drop-toggle{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:transparent;
  border:none;
  color:var(--light);
  font-weight:700;
  padding:8px 6px;
  cursor:pointer;
}
.mobile-drop-toggle .arrow{color:var(--light);transition:transform 220ms var(--transition), color 160ms ease}
.mobile-drop-toggle[aria-expanded="true"] .arrow{transform:rotate(180deg);color:var(--accent)}

/* Mobile submenu */
.mobile-dropdown{
  display:none;
  padding-left:14px;
  margin-top:6px;
  flex-direction:column;
  gap:10px;
}
.mobile-dropdown a{font-weight:600;padding:6px 0}
.mobile-dropdown.show{display:flex}

/* Mobile login */
.mobile-login .login-btn{width:100%;padding:12px}
.mobile-login .login-btn:hover{background:var(--accent);color:var(--primary)}


/* Footer */
.site-footer{background:var(--secondary);color:var(--light);padding:40px 0;margin-top:60px}
.footer-top{display:flex;gap:30px;flex-wrap:wrap}
.footer-col{flex:1;min-width:200px}
.footer-col h4{margin-top:0}
.footer-col a{color:var(--light);text-decoration:none}
.footer-col a:hover{color:var(--accent)}
.footer-bottom{background:var(--primary);padding:12px;text-align:center;margin-top:20px}



/* ensure mobile dropdowns animate and show/hide reliably */
.mobile-dropdown { max-height: 0; overflow: hidden; transition: max-height 260ms ease, opacity 200ms ease; opacity: 0; display: block; }
.mobile-dropdown.show { max-height: 400px; opacity: 1; } /* adjust max-height if submenu longer */
.mobile-drop-toggle { -webkit-appearance: none; appearance: none; }


/* Responsive: hide desktop nav and desktop login on smaller screens */
@media (max-width: 980px){
  .nav-list{display:none}
  .hamburger{display:block}
  .header-logo{flex:0 0 auto}
  .main-nav{flex:1 1 0}
  .header-actions{display:none} /* hide login button from header on mobile */
}

/* Small screens */
@media (max-width:600px){
  .hero{padding:56px 14px}
  .hero h1{font-size:28px}
  .dropdown{left:auto;transform:none}
}



/* ---------- Broker Footer (Home1 palette + gold text) ---------- */
.broker-footer {
  background: var(--primary);       /* same as header/nav background */
  color: var(--accent);             /* gold text for headings & links */
  padding: 48px 0 18px;
  border-top: 1px solid rgba(224,225,221,0.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
  padding: 0 18px;
}

/* Brand */
.footer-brand .footer-logo { height: 68px; display:block; margin-bottom: 12px; }
.footer-desc {
  color: rgba(212,175,55,0.9); /* slightly subdued gold for body text */
  line-height: 1.6;
  max-width: 320px;
  margin-top: 6px;
  font-size: 15px;
}

/* Columns */
.footer-col h4 {
  color: var(--accent);
  font-size: 24px;
  margin: 6px 0 14px;
  font-weight: 800;
}
.footer-col ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.footer-col a {
  color: var(--accent);
  text-decoration: none;
  font-weight:600;
  transition: color 160ms ease, transform 160ms ease;
}
.footer-col a:hover { color: var(--light); transform: translateY(-2px) }

/* Newsletter */
.footer-news .muted { color: rgba(224,225,221,0.85); margin-bottom:10px; font-size:14px; }
.footer-news-form .input-row { display:flex; gap:8px; align-items:center; }
#footerNewsletterEmail {
  flex:1;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(224,225,221,0.06);
  background: rgba(224,225,221,0.02);
  color: var(--light);
  font-size:15px;
}
#footerNewsletterEmail::placeholder { color: rgba(224,225,221,0.65); }
.subscribe-btn {
  background: var(--accent);
  color: var(--primary);
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.footer-news-msg { margin-top:8px; color: rgba(224,225,221,0.95); min-height:18px; }

/* Social buttons */
.footer-socials { margin-top:12px; display:flex; gap:10px; }
.social-btn {
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:999px;
  background: rgba(224,225,221,0.06); color: var(--light); text-decoration:none; font-weight:700;
}

/* Footer bottom bar */
.footer-bottom { background: transparent; padding:14px 0 28px; margin-top:22px; border-top:1px solid rgba(224,225,221,0.03); }
.footer-bottom-inner { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0 18px; color: rgba(224,225,221,0.9); }
@media (max-width: 900px) {
  .footer-wrap { grid-template-columns: 1fr; gap:20px; }
  .footer-desc { max-width:100%; }
  .footer-bottom-inner { flex-direction:column; text-align:center; gap:8px; }
  .footer-brand .footer-logo { height: 56px; }
  #footerNewsletterEmail { width:100%; }
}




/* ---------- Hero: Search bar layout (dark + gold accent) ---------- */
.hero-search {
  padding: 64px 0;
  background: linear-gradient(180deg, rgba(13,27,42,1) 0%, rgba(19,33,46,1) 100%);
  color: var(--light);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 36px;
  align-items: center;
  padding: 28px 18px;
}
.hero-left h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  margin: 0 0 12px;
  color: var(--accent);
  line-height: 1.05;
  font-weight: 800;
}
.hero-sub {
  color: rgba(224,225,221,0.9);
  margin: 0 0 20px;
  max-width: 640px;
  font-size: 16px;
}

/* Search form */
.hero-search-form .row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.hero-search-form .field { display:flex; flex-direction:column; }
.hero-search-form .field input,
.hero-search-form .field select {
  min-width:0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(224,225,221,0.06);
  background: rgba(224,225,221,0.02);
  color: var(--light);
  font-size: 15px;
  outline: none;
}
.hero-search-form .field input::placeholder { color: rgba(224,225,221,0.6); }
.hero-search-form .field.wide { flex:1 1 420px; min-width:220px; }
.hero-search-form .field.small { width: 120px; min-width: 110px; }
.hero-search-form .field .search-btn,
.hero-search-form .field.action .search-btn,
.search-btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary);
  font-weight:700;
  border: 0;
  cursor: pointer;
}
.search-msg { margin-top:10px; font-size:14px; color: rgba(255,180,80,0.95); min-height:20px; }

/* Illustration placeholder */
.hero-right .hero-illustration{
  width:100%;
  height:320px;
  border-radius:12px;
  background-image: linear-gradient(120deg, rgba(212,175,55,0.08), rgba(224,225,221,0.02)), url('assets/images/home.webp');
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 36px rgba(2,7,12,0.5);
}

/* Small screens */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-right { order: -1; } /* illustration above on small screens */
  .hero-right .hero-illustration{ height:220px; margin-bottom:18px; }
  .hero-search-form .field.wide { min-width: 100%; }
  .hero-search-form .field.small { width: 140px; }
}

/* focus states */
.hero-search-form .field input:focus,
.hero-search-form .field select:focus{
  box-shadow: 0 6px 18px rgba(212,175,55,0.06);
  border-color: rgba(212,175,55,0.18);
}


/* Force dropdown OPTION text to be black (visible in native dropdown) */
.hero-search-form select option {
  color: #000 !important;     /* black text */
  /* white background for options list */
}


.hero-search-form .field select,
.hero-search-form .field input {
  color:white; 

}


/* Make request-a-callback link gold */
.muted-link {
  color: var(--accent) !important;
  text-decoration: none;
  font-weight: 600;
}

.muted-link:hover {
  color: var(--light);
}

/* Make the full hero note gold */
.hero-note {
  color: var(--accent);
  font-weight: 500;
}



/* ---------- ALIGN SEARCH BUTTON ---------- */
/* Make each field inline and vertically centered */
.hero-search-form .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center; /* ensures vertical centering of children */
}

/* change fields from column to row so select/input and button align */
.hero-search-form .field {
  display: flex;
  flex-direction: row;    /* <-- was column */
  align-items: center;    /* vertical center inside each field */
  gap: 8px;
}

/* Make the wide field take available space */
.hero-search-form .field.wide {
  flex: 1 1 420px;
  min-width: 220px;
}

/* Small fixed fields keep fixed width but are vertically centered */
.hero-search-form .field.small {
  flex: 0 0 120px; /* keeps consistent width but allows slight shrink */
  min-width: 110px;
}

/* Unified control heights and styles */
.hero-search-form .field input,
.hero-search-form .field select {
  height: 48px;           /* equal height */
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(224,225,221,0.06);
  background: rgba(224,225,221,0.02);
  font-size: 15px;
  color: var(--light);
  width: 100%;
  min-width: 0;           /* prevents overflow in flex */
  box-sizing: border-box;
}

/* Action cell: center the button */
.hero-search-form .field.action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* Make button same height and aligned */
.hero-search-form .search-btn {
  height: 48px;           /* matches inputs */
  padding: 0 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* small tweak if button text wraps on narrow screens */
.hero-search-form .search-btn { white-space: nowrap; }

/* ---------- RESPONSIVE: stack on small screens ---------- */
@media (max-width: 980px) {
  .hero-search-form .row {
    /* allow fields to wrap into multiple rows in natural order */
    align-items: stretch;
  }

  /* make wide input full width when wrapped */
  .hero-search-form .field.wide { flex-basis: 100%; min-width: 100%; }

  /* make small selects more flexible on small screens */
  .hero-search-form .field.small { flex: 0 0 40%; min-width: 140px; }

  /* make button full width when it sits on its own row */
  .hero-search-form .field.action { flex-basis: 100%; justify-content: flex-start; }
  .hero-search-form .search-btn { width: 140px; } /* keeps button visible; change to 100% if you prefer full width */
}

@media (max-width: 480px) {
  .hero-search-form .search-btn { width: 100%; }
  .hero-search-form .field.small { flex-basis: 100%; min-width: 100%; }
}




/* WHO WE ARE section */
.who { padding: 44px 18px; }
.who-grid { display: grid; grid-template-columns: 520px 1fr; gap: 32px; align-items: center; }

.who-visual { display:flex; align-items:center; justify-content:center; }
.who-img { width:100%; max-width:520px; border-radius:12px; box-shadow:0 18px 36px rgba(2,7,12,0.5); }

/* Content */
.who-content { padding: 8px 6px; }
.section-title { font-size:30px; color:var(--accent); margin:0 0 10px; font-weight:800; }
.who-lead { color: rgba(224,225,221,0.92); margin:0 0 16px; font-size:16px; line-height:1.6; max-width:720px; }

.who-features { list-style: none; padding:0; margin: 0 0 18px; display:flex; flex-direction:column; gap:10px; }
.who-features li { background: rgba(224,225,221,0.02); padding:12px 14px; border-radius:10px; border:1px solid rgba(224,225,221,0.03); color:var(--light); font-weight:600; }



.who-features strong { color:var(--accent); font-weight:800; }

/* CTAs */
.who-ctas { display:flex; gap:12px; margin-top:6px; }
@media (max-width: 980px){
  .who-grid { grid-template-columns: 1fr; }
  .who-visual { order: -1; margin-bottom:12px; }
  .who-img { max-width:100%; height:auto; }
}



/* CTA Buttons (About Page) */
.who-ctas .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: 
    background 220ms ease,
    color 220ms ease,
    box-shadow 280ms ease,
    transform 180ms ease;
}

/* Primary (Gold) */
.btn.primary {
  background: var(--accent);          /* Gold */
  color: var(--primary);              /* Dark blue text */
  border: none;
}

.btn.primary:hover {
  background: #eacb58;                /* Lighter gold hover */
  box-shadow: 0 6px 20px rgba(212,175,55,0.45);
  transform: translateY(-3px);
}

.btn.primary:active {
  transform: translateY(0);
}

/* Ghost button (Outline transparent) */
.btn.ghost {
  background: transparent;
  border: 2px solid rgba(212,175,55,0.25);  /* Gold faint */
  color: var(--accent);
}

.btn.ghost:hover {
  border-color: var(--accent);
  background: rgba(212,175,55,0.08);
  box-shadow: 0 4px 16px rgba(212,175,55,0.25);
  transform: translateY(-3px);
}

.btn.ghost:active {
  transform: translateY(0);
}




/* MAIN SECTION */
.about-section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* TEXT */
.about-content h2 {
  font-size: 40px;
  margin-bottom: 15px;
  color: #d4af37;
}

.about-content p {
  color: white;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
}

/* IMAGE */
.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0px 8px 30px rgba(0,0,0,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* 🔥 ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.9s ease-out;
}

.show {
  opacity: 1;
  transform: translate(0, 0);
}



/* ============================= */
/*       MISSION SECTION         */
/* ============================= */

.mission-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mission-card {
  background:gold;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
}

.mission-card h3 {
  font-size: 28px;
  color: #222;
  margin-bottom: 15px;
}

.mission-card p {
  color: #555;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .mission-section {
    grid-template-columns: 1fr;
  }
}



/* ============================= */
/*       WHY CHOOSE US           */
/* ============================= */

.why-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.why-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  object-fit: cover;
}

/* content */
.why-content h2 {
  font-size: 34px;
  margin-bottom: 12px;
  color: gold;
}

.why-content p {
  color:white;
  line-height: 1.7;
  margin-bottom: 18px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  display: grid;
  gap: 12px;
}

.why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  font-size: 15px;
  color: #333;
}

.tick {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  background: #e6f7ef;
  color: #0b8a4a;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

/* CTA button */
.cta-btn {
  display: inline-block;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, #2b8df7, #6a5cff);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(60,120,240,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(60,120,240,0.18);
}

/* Responsive */
@media (max-width: 992px) {
  .why-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .why-content .why-list li {
    justify-content: center;
    text-align: left;
  }

  .why-list li { padding-left: 12px; padding-right: 12px; }
}




/* ============================= */
/*          TEAM SECTION         */
/* ============================= */

.team-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

.team-title {
  font-size: 34px;
  margin-bottom: 40px;
  color: gold;
}

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

/* Team Card */
.team-card {
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

/* Image */
.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
}

/* Name + role */
.team-card h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 5px;
}

.team-card p {
  color: #777;
  margin-bottom: 15px;
}

/* Social Icons */
.team-social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.team-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #f1f1f1;
  border-radius: 10px;
  font-size: 16px;
  color: #333;
  transition: 0.2s;
}

.team-social a:hover {
  background: #2d75f7;
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}


.logo-marquee {
  padding: 15px 0;
  background:white;
  border-radius: 10px;
}

.logo-marquee img {
  width: 120px;          
  margin-right: 50px;    
  filter: grayscale(50%);
  transition: 0.3s ease;
}

.logo-marquee img:hover {
  filter: grayscale(0%);
  transform: scale(1.08);
}

/* Pause when hover */
.logo-marquee:hover {
  animation-play-state: paused;
}



.services-intro {
  padding: 80px 5%;
  background: #0d1b2a;
}

.services-intro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1;
  min-width: 320px;
}

.intro-text h5 {
  color: gold;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 10px;
}

.intro-text h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.intro-text p {
  color: gold;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.intro-highlights {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.highlight-box {
  background: #0d1b2a;
  padding: 20px 25px;
  border-radius: 12px;
  border: 1px solid #d8ecff;
  min-width: 200px;
  transition: 0.3s ease;
}

.highlight-box h3 {
  margin-bottom: 5px;
  font-size: 22px;
  color: gold;
}

.highlight-box p {
  color: white;
}

.highlight-box:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 25px rgba(0, 132, 255, 0.15);
}

.intro-image {
  flex: 1;
  min-width: 320px;
}

.intro-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}



/* =============================
   MEDIA QUERIES
   ============================= */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .services-intro {
    padding: 60px 5%;
  }

  .intro-text h2 {
    font-size: 30px;
  }

  .intro-text p {
    font-size: 16px;
  }

  .intro-highlights {
    gap: 15px;
  }

  .highlight-box {
    min-width: 180px;
    padding: 18px 20px;
  }
}

/* Mobile large (max-width: 768px) */
@media (max-width: 768px) {
  .services-intro-container {
    flex-direction: column;
    text-align: center;
  }

  .intro-text {
    order: 1;
  }

  .intro-image {
    order: 2;
  }

  .intro-text h2 {
    font-size: 28px;
  }

  .intro-text p {
    max-width: 100%;
  }

  .intro-highlights {
    justify-content: center;
  }
}

/* Mobile small (max-width: 480px) */
@media (max-width: 480px) {
  .intro-text h2 {
    font-size: 24px;
  }

  .highlight-box h3 {
    font-size: 18px;
  }

  .highlight-box {
    padding: 15px 18px;
    min-width: 150px;
  }

  .intro-text p {
    font-size: 15px;
  }
}




/* ==============================
   HERO INTRO SECTION
   ============================== */

.services-hero {
  padding: 100px 5%;
  background: #0d1a29;
}

.services-hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1.2;
  min-width: 320px;
}

.hero-left h5 {
  color: goldenrod;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hero-left h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: gold;
}

.hero-left p {
  color:white;
  max-width: 540px;
  line-height: 1.7;
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-block;
  background: gold;
  padding: 15px 28px;
  border-radius: 50px;
  color: black;
  font-weight: 600;
  transition: 0.3s ease;
  text-decoration: none;
}

.hero-btn:hover {
  background: black;
  color: gold;

}

.hero-right {
  flex: 1;
  min-width: 320px;
}

.hero-right img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* ==============================
   MEDIA QUERIES
   ============================== */

/* Tablets */
@media (max-width: 991px) {
  .hero-left h1 {
    font-size: 38px;
  }

  .hero-left p {
    font-size: 16px;
  }

  .services-hero {
    padding: 70px 5%;
  }
}

/* Mobile large */
@media (max-width: 768px) {
  .services-hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .hero-left p {
    margin: 0 auto 25px;
  }

  .hero-btn {
    padding: 13px 25px;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .hero-left h1 {
    font-size: 30px;
  }

  .hero-left p {
    font-size: 15px;
  }
}



/* ====== Services Grid Styles ====== */
/* Put this in your main CSS file (or a services-specific file) */

.services-section {
  padding: 80px 5%;
  background: #0d1a29;
  color: #0d1b2a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Head */
.services-head { text-align: center; margin-bottom: 42px; }
.services-head h5 {
  color: gold;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.services-head h2 {
  font-size: 32px;
  margin: 0 0 10px;
  font-weight: 700;
  color: gold;
}
.services-head .lead {
  color: white;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid */
.services-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr); /* desktop 3 columns */
  align-items: stretch;
}

/* Card */
.service-card {
  background: #0d1a29;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(13,27,42,0.06);
  border: 5px solid white;
  transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  will-change: transform;
  opacity: 0;
  transform: translateY(18px);
  animation: cardFadeUp .5s ease forwards;
}

/* Stagger animation using nth-child */
.service-card:nth-child(1){ animation-delay: .08s; }
.service-card:nth-child(2){ animation-delay: .16s; }
.service-card:nth-child(3){ animation-delay: .24s; }
.service-card:nth-child(4){ animation-delay: .32s; }
.service-card:nth-child(5){ animation-delay: .40s; }
.service-card:nth-child(6){ animation-delay: .48s; }

.service-card:focus,
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(13,27,42,0.12);
  outline: none;
}

/* Icon / media */
.service-media {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(1,162,255,0.08), rgba(1,162,255,0.02));
}
.service-media img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Text */
.service-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: gold;
}
.service-card p {
  margin: 0;
  color: white;
  line-height: 1.6;
  flex: 1;
}

/* Link / CTA */
.service-link {
  align-self: flex-start;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid black;
  background: transparent;
  color: gold;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
.service-link:hover,
.service-link:focus { background: rgba(1,162,255,0.06); transform: translateY(-2px); }

/* Animation keyframes */
@keyframes cardFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== MEDIA QUERIES ====== */

/* Laptop / Tablet landscape */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-section { padding: 64px 4%; }
  .services-head h2 { font-size: 28px; }
}

/* Tablet / Mobile large */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-card { padding: 20px; min-height: auto; }
  .services-head { text-align: left; }
  .services-head .lead { max-width: 680px; }
}

/* Small phones */
@media (max-width: 420px) {
  .services-section { padding: 40px 4%; }
  .services-head h2 { font-size: 22px; }
  .service-media { width: 56px; height: 56px; }
  .service-media img { width: 32px; height: 32px; }
  .service-card h3 { font-size: 18px; }
  .service-link { padding: 9px 12px; }
}


/* BIG IMAGE TOP STYLE */
.service-media {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}


@media (max-width: 480px) {
  .service-media {
    height: 160px;
  }
}




/* ===== FAQ ABOUT SECTION ===== */
.faq-about {
  padding: 60px 5%;
  background: #0d1a29;
}

.faq-about-container {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
}

.faq-about-img {
  flex: 1;
  min-width: 300px;
}

.faq-about-img img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.faq-about-text {
  flex: 1;
  min-width: 300px;
}

.faq-about-text h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: gold;
}

.faq-about-text p {
  font-size: 16px;
  line-height: 1.7;
  color: white;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 60px 5%;
  background: #0d1a29;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.features-head {
  text-align: center;
  margin-bottom: 30px;
}

.features-head h5 {
  color: gold;
  font-weight: 600;
  margin-bottom: 7px;
}

.features-head h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background:#0d1a29;
  border-radius: 14px;
  padding: 18px;
  border: 3px solid white;
  box-shadow: 0 10px 22px rgba(0,0,0,0.07);
}

/* ===== FAQ SECTION ===== */
.faq-page {
  padding: 80px 5%;
  background: #0d1a29;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 30px;
}

.faq-controls {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#faq-search {
  padding: 12px;
  width: 350px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #0d1a29;
}

.btn-ghost {
  padding: 10px 14px;
  border: 1px solid #bbb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.faq-q {
  width: 100%;
  border: none;
  background: #fff;
  padding: 18px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 22px;
  transition: transform .3s;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 18px 18px 18px;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .faq-about-container {
    flex-direction: column;
    text-align: center;
  }

  .faq-about-text h2 {
    font-size: 26px;
  }

  .faq-header h1 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  #faq-search {
    width: 100%;
  }

  .faq-q {
    font-size: 16px;
  }

  .faq-a {
    font-size: 14px;
  }
}



/* ======================
   STACKLY PRIVACY POLICY (ISOLATED)
   ====================== */

/* Wrapper */
.stacklypp-wrapper {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 20px;
}

.stacklypp-header {
  background: white;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

.stacklypp-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  color: #0d1b2a;
}

.stacklypp-subtext {
  color: black;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.stacklypp-header p {
  color: black;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 520px) {
  .stacklypp-header {
    padding: 20px;
  }
  .stacklypp-header h1 {
    font-size: 24px;
  }
}



/* Section */
.stacklypp-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 26px rgba(13,27,42,0.04);
  border: 1px solid rgba(0,0,0,0.05);
}

.stacklypp-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #0d1b2a;
}

.stacklypp-section p,
.stacklypp-section li {
  color: black;
  font-size: 15px;
  line-height: 1.7;
}

.stacklypp-section ul {
  padding-left: 18px;
  margin-top: 8px;
}

/* Footer */
.stacklypp-footer {
  text-align: center;
  margin: 20px 0 40px;
  color: #556270;
  font-size: 14px;
}

/* Links */
.stacklypp-section a {
  color: #01a2ff;
  text-decoration: none;
}

.stacklypp-section a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .stacklypp-header h1 {
    font-size: 24px;
  }
  .stacklypp-section h2 {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .stacklypp-header {
    padding: 18px;
  }
  .stacklypp-section {
    padding: 16px;
  }
  .stacklypp-header h1 {
    font-size: 20px;
  }
}



/* ==========================
   TESTIMONIALS SECTION
   ========================== */

.stackly-testi-section {
  padding: 70px 5%;
  background: #0d1a29;
}

.stackly-testi-wrapper {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.stackly-testi-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: gold;
}

/* Slider Container */
.stackly-testi-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Track */
.stackly-testi-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s ease;
}

/* Each Slide */
.stackly-testi-card {
  min-width: 320px;
  max-width: 340px;
  flex-shrink: 0;
  background: #0d1a29;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.07);
  border: 2px solid white;
}

/* ===== CIRCLE IMAGE ===== */
.stackly-testi-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 3px solid #01a2ff20; /* Light border */
}

.stackly-testi-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text */
.stackly-testi-text {
  font-size: 16px;
  line-height: 1.7;
  color: white;
  margin-bottom: 15px;
}

.stackly-testi-name {
  font-weight: 700;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .stackly-testi-card {
    min-width: 260px;
  }
}

@media (max-width: 480px) {
  .stackly-testi-title {
    font-size: 26px;
  }
  .stackly-testi-card {
    min-width: 240px;
    padding: 20px;
  }
  .stackly-testi-img {
    width: 60px;
    height: 60px;
  }
}




/* ===============================
   STACKLY PRICING (dark gold theme)
   =============================== */

/* Section */
.stackly-pricing-section {
  background: #0d1b2a;
  padding: 64px 5%;
  color: #d4af37; /* gold for main headings/text accents */
}

.stackly-pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Intro */
.stackly-pricing-kicker {
  color: #d4af37;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 0 0 8px;
}

.stackly-pricing-title {
  font-size: 36px;
  color: #d4af37;
  margin: 0 0 12px;
  font-weight: 800;
}

.stackly-pricing-sub {
  color: rgba(212,175,55,0.95);
  max-width: 820px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: #e5c983; /* softer gold for paragraphs */
}

/* Toggle */
.stackly-pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 28px;
  color: #fff;
  font-weight: 600;
}

.stackly-toggle-label,
.stackly-toggle-text { color: #ffffffcc; font-size: 14px; }

/* Switch */
.stackly-toggle-switch {
  width: 56px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  position: relative;
  border: 1px solid #ffffff33;
  cursor: pointer;
  display: inline-block;
  transition: background .25s ease, border-color .25s ease;
}
.stackly-toggle-thumb {
  width: 24px;
  height: 24px;
  background: #d4af37;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  transition: left .25s ease, transform .25s ease;
  box-shadow: 0 6px 18px rgba(212,175,55,0.18);
}

/* Checked state applied via [aria-checked="true"] */
.stackly-toggle-switch[aria-checked="true"] {
  background: rgba(212,175,55,0.12);
  border-color: #ffffff55;
}
.stackly-toggle-switch[aria-checked="true"] .stackly-toggle-thumb {
  left: calc(100% - 28px);
}

/* Grid */
.stackly-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* Card */
.stackly-plan-card {
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 12px;
  padding: 18px;
  overflow: visible;
  position: relative;
  transition: transform .36s cubic-bezier(.2,.9,.3,1), box-shadow .36s ease, background .36s ease;
  transform: translateY(0);
  will-change: transform;
  color: #fff;
}

/* Inner white border look */
.stackly-plan-card::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* Hover lift */
.stackly-plan-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(212,175,55,0.02));
}

/* Recommended badge */
.stackly-plan-reco {
  border: 1px solid #fff;
  box-shadow: 0 22px 50px rgba(212,175,55,0.08);
}
.stackly-plan-reco .stackly-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #d4af37;
  color: #0d1b2a;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(212,175,55,0.18);
  animation: stackly-badge-pulse 2.6s infinite;
  border: 2px solid #fff;
}

/* Pulse animation for badge */
@keyframes stackly-badge-pulse {
  0% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.03); opacity: .92; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Card head */
.stackly-plan-head { text-align: center; padding-top: 8px; }
.stackly-plan-name {
  font-size: 20px;
  color: #d4af37; /* gold */
  margin: 6px 0 2px;
  font-weight: 800;
}
.stackly-plan-subname { color: #ffffffcc; margin: 0 0 12px; font-weight: 600; }

/* Price */
.stackly-plan-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0;
}
.stackly-currency { color: #fff; font-size: 18px; }
.stackly-price-amount {
  font-size: 36px;
  color: #d4af37;
  font-weight: 900;
}
.stackly-price-period { color: #ffffffcc; font-size: 14px; }

/* Features */
.stackly-plan-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
  color: #ffffffcc;
  line-height: 1.6;
}
.stackly-plan-features li::before {
  content: "✓";
  display: inline-block;
  margin-right: 10px;
  color: #d4af37;
  font-weight: 800;
}

/* CTA */
.stackly-plan-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  transition: background .22s ease, color .22s ease, transform .12s ease;
}
.stackly-cta-primary {
  background: #d4af37;
  color: #0d1b2a;
  border-color: #fff;
}
.stackly-plan-cta:hover {
  transform: translateY(-4px);
}

/* Entrance animation */
.stackly-plan-card { opacity: 0; transform: translateY(18px); }
.stackly-plan-card.is-visible { animation: stackly-fadeUp 0.6s forwards; }

/* staggered fade */
@keyframes stackly-fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1000px) {
  .stackly-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stackly-pricing-title { font-size: 30px; }
}

@media (max-width: 640px) {
  .stackly-pricing-grid { grid-template-columns: 1fr; }
  .stackly-pricing-title { font-size: 26px; }
  .stackly-price-amount { font-size: 28px; }
}



/* ===============================
   STACKLY CTA SECTION (dark gold)
   =============================== */

.stackly-cta-section {
  background: #0d1b2a;
  padding: 80px 5%;
  text-align: center;
  border-top: 1px solid #ffffff33;
}

.stackly-cta-container {
  max-width: 900px;
  margin: auto;
  animation: stacklyFadeUp 0.8s ease forwards;
  opacity: 0;
}

.stackly-cta-title {
  color: #d4af37;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
}

.stackly-cta-sub {
  color: #e5c983;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Button */
.stackly-cta-button {
  display: inline-block;
  background: #d4af37;
  color: #0d1b2a;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 800;
  border-radius: 10px;
  border: 2px solid #fff;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}

.stackly-cta-button:hover {
  transform: scale(1.07);
  background: #e8c75a;
}

/* Small note */
.stackly-cta-note {
  color: #ffffffcc;
  margin-top: 18px;
  font-size: 14px;
}

/* Fade animation */
@keyframes stacklyFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .stackly-cta-title {
    font-size: 26px;
  }
  .stackly-cta-sub {
    font-size: 16px;
  }
}



/* ============================
   STACKLY BROKERAGE SOLUTIONS
   (isolated class names)
   ============================ */

/* Colors */
.stackly-brok-hero,
.stackly-brok-solutions,
.stackly-brok-process,
.stackly-brok-why,
.stackly-brok-cases,
.stackly-brok-tech,
.stackly-testi-section,
.stackly-brok-faq,
.stackly-brok-contact {
  background: #0d1b2a;
  color: #d4af37;
  padding: 48px 5%;
}

/* inner wrapper */
.stackly-brok-inner { max-width: 1200px; margin: 0 auto; }

/* HERO */
.stackly-brok-hero { display: flex; align-items: center; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
.stackly-brok-hero-left { flex: 1; }
.stackly-brok-hero-title { font-size: 38px; margin: 0 0 12px; color: #d4af37; font-weight: 800; }
.stackly-brok-hero-sub { color: #e5c983; max-width: 760px; margin-bottom: 18px; }
.stackly-brok-hero-cta-wrap { display:flex; gap:12px; align-items:center; }
.stackly-brok-cta { background: #d4af37; color:#0d1b2a; padding: 12px 18px; border-radius:8px; text-decoration:none; font-weight:800; border:2px solid #fff; display:inline-block; }
.stackly-brok-cta.outline { background: transparent; color:#fff; border-color:#fff; }
.stackly-brok-hero-right { width: 320px; }
.stackly-brok-hero-card { background: rgba(255,255,255,0.04); border:1px solid #ffffff33; padding:18px; border-radius:12px; color:#fff; }

/* SECTION TITLE & LEAD */
.stackly-brok-section-title { color:#d4af37; font-size:28px; margin-bottom:6px; font-weight:800; }
.stackly-brok-lead { color:#e5c983; margin-bottom:20px; }

/* SOLUTIONS GRID */
.stackly-brok-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top:18px;}
.stackly-brok-card { background: rgba(255,255,255,0.02); border:1px solid #ffffff22; padding:18px; border-radius:12px; color:#fff; transition: transform .28s ease, box-shadow .28s ease; text-align:center; }
.stackly-brok-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.6); }
.stackly-brok-card .icon { font-size:28px; margin-bottom:10px; }

/* PROCESS FLOW */
.stackly-brok-process .stackly-brok-steps { display:flex; align-items:center; gap:10px; margin-top:18px; flex-wrap:wrap; }
.stackly-brok-process .step { background: rgba(255,255,255,0.02); padding:18px; border-radius:12px; border:1px solid #ffffff22; flex:1; min-width:200px; text-align:center; color:#fff; }
.stackly-brok-process .step .num { width:44px;height:44px;border-radius:50%; background:#d4af37;color:#0d1b2a; margin:0 auto 10px; display:grid; place-items:center; font-weight:800; }
.stackly-brok-process .connector { width:40px; height:2px; background: linear-gradient(90deg, rgba(212,175,55,0.9), rgba(255,255,255,0.2)); margin:0 8px; }

/* WHY GRID */
.stackly-brok-why-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-top:18px; }
.stackly-brok-why-card { padding:18px; border-radius:12px; border:1px solid #ffffff22; background: rgba(255,255,255,0.02); color:#fff; }

/* CASE STUDIES */
.stackly-brok-cards { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-top:18px; }
.case { padding:18px; border-radius:12px; background: rgba(255,255,255,0.02); border:1px solid #ffffff22; color:#fff; }

/* TECH GRID */
.stackly-brok-tech-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:14px; margin-top:18px; }
.tech-card { padding:14px; border-radius:10px; background: rgba(255,255,255,0.02); border:1px solid #ffffff22; color:#fff; }

/* TESTIMONIALS (reuse existing classes; ensure those CSS rules exist in your stylesheet) */
.stackly-testi-section { padding-top:40px; padding-bottom:40px; background: transparent; }

/* FAQ SHORT */
.stackly-brok-faq-list { margin-top:16px; display:grid; gap:12px; color:#fff; }
.stackly-faq-q { width:100%; background:transparent; color:#fff; border:1px solid #ffffff22; padding:14px; border-radius:10px; text-align:left; font-weight:700; cursor:pointer; }
.stackly-faq-a { padding:12px; background: rgba(0,0,0,0.15); border-radius:8px; margin-top:6px; color:#e5c983; }

/* CONTACT FORM */
.stackly-brok-form { margin-top:18px; background: rgba(255,255,255,0.02); padding:18px; border-radius:12px; border:1px solid #ffffff22; color:#fff; }
.stackly-brok-form .form-row { display:flex; gap:12px; margin-bottom:12px; }
.stackly-brok-form input, .stackly-brok-form select, .stackly-brok-form textarea { flex:1; padding:12px; border-radius:8px; border:1px solid #ffffff22; background: rgba(255,255,255,0.02); color:#fff; }
.stackly-brok-submit { background:#d4af37; color:#0d1b2a; padding:12px 16px; border-radius:8px; border:2px solid #fff; font-weight:800; cursor:pointer; }

/* small text */
.stackly-brok-form-note { color:#ffffffaa; margin-top:10px; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .stackly-brok-grid { grid-template-columns: repeat(2,1fr); }
  .stackly-brok-why-grid { grid-template-columns: repeat(2,1fr); }
  .stackly-brok-cards { grid-template-columns: repeat(2,1fr); }
  .stackly-brok-tech-grid { grid-template-columns: repeat(2,1fr); }
  .stackly-brok-hero { flex-direction:column; text-align:center; }
  .stackly-brok-hero-right { width:100%; order:2; }
}

@media (max-width: 640px) {
  .stackly-brok-grid, .stackly-brok-cards, .stackly-brok-tech-grid { grid-template-columns: 1fr; }
  .stackly-brok-hero-title { font-size:28px; }
  .stackly-brok-form .form-row { flex-direction:column; }
}


/* ============================
  STACKLY — Additional Mobile Responsive Overrides
  Paste this AFTER your existing stylesheet
  ============================ */

/* 1) Global mobile scale-down + spacing */
@media (max-width: 1000px) {
  .stackly-brok-inner { padding-left: 4%; padding-right: 4%; }
  .stackly-brok-hero { gap: 18px; padding-top: 36px; padding-bottom: 36px; }
  .stackly-brok-hero-title { font-size: 32px; }
  .stackly-brok-section-title { font-size: 24px; }
  .stackly-brok-card, .case, .tech-card { padding: 14px; }
  .stackly-brok-process .step { padding: 14px; min-width: 180px; }
}

/* 2) Tablet -> collapse 3-col/4-col grids to 2-col (already partly done; ensure consistency) */
@media (max-width: 900px) {
  .stackly-brok-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stackly-brok-why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stackly-brok-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stackly-brok-tech-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Hero: stack vertically and center content */
  .stackly-brok-hero { flex-direction: column; align-items: center; text-align:center; }
  .stackly-brok-hero-left, .stackly-brok-hero-right { width:100%; }
  .stackly-brok-hero-right { order: 2; margin-top: 12px; }

  /* Make CTA area wrap for smaller widths */
  .stackly-brok-hero-cta-wrap { flex-wrap:wrap; justify-content:center; gap:10px; }
}

/* 3) Mobile: single column layout, center everything, and stack process vertically one-by-one */
@media (max-width: 640px) {
  /* remove large page paddings to maximize real estate */
  .stackly-brok-hero,
  .stackly-brok-solutions,
  .stackly-brok-process,
  .stackly-brok-why,
  .stackly-brok-cases,
  .stackly-brok-tech,
  .stackly-testi-section,
  .stackly-brok-faq,
  .stackly-brok-contact {
    padding-left: 6%;
    padding-right: 6%;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .stackly-brok-hero-title { font-size: 26px; line-height: 1.05; }
  .stackly-brok-hero-sub { font-size: 14px; }

  .stackly-brok-grid,
  .stackly-brok-cards,
  .stackly-brok-tech-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Process flow -> vertical stack with visible separators between steps */
  .stackly-brok-process .stackly-brok-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
  }

  .stackly-brok-process .step {
    width: 100%;
    max-width: 720px;
    text-align: center;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* vertical connector becomes taller and centered */
  .stackly-brok-process .connector {
    width: 2px;
    height: 28px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(212,175,55,0.9), rgba(212,175,55,0.45));
    border-radius: 6px;
  }

  /* Make badge slightly smaller on phone */
  .stackly-brok-process .num { width:40px; height:40px; font-size:15px; }

  /* Reduce card shadows and hover lift on touch devices */
  .stackly-brok-card, .case, .tech-card { box-shadow: 0 8px 22px rgba(0,0,0,0.45); }
  .stackly-brok-card:hover, .case:hover, .tech-card:hover { transform: none; box-shadow: 0 10px 28px rgba(0,0,0,0.48); }

  /* Buttons / CTAs larger for touch */
  .stackly-brok-cta, .stackly-brok-submit {
    padding: 14px 18px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
  }
}

/* 4) Very small phones: extra condense */
@media (max-width: 420px) {
  .stackly-brok-hero-title { font-size: 22px; }
  .stackly-brok-hero-sub { font-size: 13px; }
  .stackly-brok-section-title { font-size: 20px; }
  .stackly-brok-card, .case, .tech-card { padding: 12px; }
  .stackly-brok-form .form-row { gap: 8px; }
  .stackly-brok-form input, .stackly-brok-form select, .stackly-brok-form textarea { padding: 10px; font-size: 14px; }
  .stackly-brok-process .connector { height: 22px; }
}

/* 5) Accessibility: focus states and reduced motion handling */
.stackly-brok-cta:focus, .stackly-brok-cta:active,
.stackly-brok-submit:focus, .stackly-brok-submit:active,
.stackly-faq-q:focus {
  outline: 3px solid rgba(212,175,55,0.14);
  outline-offset: 4px;
  box-shadow: 0 8px 30px rgba(212,175,55,0.06);
}

@media (prefers-reduced-motion: reduce) {
  .stackly-brok-card, .case, .tech-card,
  .stackly-brok-hero-cta-wrap, .stackly-brok-steps .step {
    transition: none !important;
    animation: none !important;
  }
}

/* 6) Utility: keep content visually centered when section is small */
.stackly-brok-inner.centered { display:flex; flex-direction:column; align-items:center; justify-content:center; }

/* 7) Minor UX polish: long text wrapping in table/clients etc. */
.stackly-brok-grid .stackly-brok-card p,
.stackly-brok-cards .case p { word-break: break-word; }

/* 8) Ensure FAQ answer doesn't overflow on tiny screens */
.stackly-brok-faq-list .stackly-faq-a { white-space: normal; word-wrap: break-word; }

/* 9) Ensure images inside hero/right card are responsive */
.stackly-brok-hero-right img, .stackly-brok-hero-card img { max-width:100%; height:auto; display:block; border-radius:10px; }

/* 10) If you want the process steps to visually stand out on mobile, add a light separator for each step */
@media (max-width: 640px) {
  .stackly-brok-process .step { border-left: 4px solid rgba(212,175,55,0.06); }
}


/* ==========================
   STACKLY PROPERTIES GRID
   ========================== */

.stackly-prop-grid-section {
  background: #0d1b2a;
  padding: 70px 5%;
  color: #d4af37;
}

.stackly-prop-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.stackly-prop-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.stackly-prop-subtitle {
  color: #e5c983;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Grid */
.stackly-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card */
.stackly-prop-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid #ffffff22;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.stackly-prop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

/* Image */
.stackly-prop-img {
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.stackly-prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.stackly-prop-card:hover .stackly-prop-img img {
  transform: scale(1.05);
}

/* Info */
.stackly-prop-info {
  padding: 18px;
  text-align: left;
}

.stackly-prop-price {
  color: #d4af37;
  font-size: 22px;
  margin-bottom: 4px;
  font-weight: 800;
}

.stackly-prop-location {
  color: #ffffffcc;
  margin-bottom: 10px;
}

/* Specs */
.stackly-prop-specs {
  display: flex;
  gap: 10px;
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
  color: #e5c983;
  font-size: 14px;
}

/* Button */
.stackly-prop-btn {
  display: inline-block;
  padding: 10px 14px;
  background: #d4af37;
  color: #0d1b2a;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #fff;
  transition: transform .2s ease;
}

.stackly-prop-btn:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1000px) {
  .stackly-prop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stackly-prop-grid {
    grid-template-columns: 1fr;
  }
  .stackly-prop-img {
    height: 180px;
  }
}


/* ----------------------------------------
  Properties Filter - Full CSS (updated search input)
----------------------------------------- */

.stackly-prop-filter-wrap {
  padding: 20px 0;
  background:#0d1a29;
  border-bottom: 1px solid #eef2f6;
}
.stackly-prop-filter {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- SEARCH INPUT (UPDATED) ---------- */
/* Background: #0d1a29 | Border: white | Text: gold */
.filter-row input[type="search"] {
  flex: 1 1 260px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ffffff;         /* white border */
  background: #0d1a29;               /* dark navy background */
  color: #f0c419;                    /* gold text */
  font-weight: 600;
  transition: box-shadow 0.18s ease, transform 0.12s ease;
  outline: none;
  -webkit-appearance: none;
}

/* placeholder color (golden but slightly muted) */
.filter-row input[type="search"]::placeholder {
  color: rgba(240,196,25,0.6);
  font-weight: 500;
}

/* caret color - black (visible when editing) */
.filter-row input[type="search"] {
  caret-color: #000000;
}

/* focus state: subtle gold glow and slight upward lift */
.filter-row input[type="search"]:focus {
  box-shadow: 0 6px 20px rgba(240,196,25,0.12);
  transform: translateY(-2px);
  border-color: #f0c419;
}

/* make sure search text selection looks good */
.filter-row input[type="search"]::selection {
  background: black;
}

/* ---------- OTHER FILTER UI ---------- */
.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 130px;
}
.filter-group label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}
.filter-group select,
.filter-group input[type="number"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #dfe7ee;
  min-width: 120px;
  background: #fff;
  color: #222;
}
.filter-group select[multiple] {
  height: 92px;
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.filter-actions button {
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #0077ff;
  color: gold;
  font-weight: 600;
}
.filter-actions button.secondary {
  background: #f0f3f6;
  color: #333;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .filter-row {
    gap: 8px;
  }
  .filter-group select[multiple] {
    height: 72px;
  }
  /* allow the search to sit full width on small screens */
  .filter-row input[type="search"] {
    flex-basis: 100%;
  }
}

/* optional: smaller screens - stack actions */
@media (max-width: 560px) {
  .filter-actions { width: 100%; justify-content: space-between; }
  .filter-actions button { flex: 1; }
}




.prop-hero {
  background: linear-gradient(135deg, #0d1a29, #102a44);
  padding: 70px 20px;
  text-align: center;
  color: #fff;
}

.prop-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.prop-hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f0c419; /* gold */
}

.prop-hero-subtitle {
  font-size: 18px;
  color: #d8e2eb;
  max-width: 700px;
  margin: 0 auto;
}





/* ========== BLOG HERO ========== */
.stackly-blog-hero {
  background: linear-gradient(135deg, #0d1a29, #102a44);
  color: #ffffff;
  padding: 54px 20px;
  text-align: center;
}
.stackly-blog-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.stackly-blog-hero h1 {
  margin: 0 0 8px;
  font-size: 36px;
  color: #f0c419; /* gold */
  letter-spacing: 0.2px;
}
.stackly-blog-hero p {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
  color: rgba(255,255,255,0.95);
}

/* ========== PAGE WRAPPER ========== */
.stackly-blog-container {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ========== BLOG GRID ========== */
.stackly-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 14px;
}
.stackly-blog-card {
  background:#0d1a29;
  border-radius: 12px;
  border: 2px solid white;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(13, 26, 41, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stackly-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(13, 26, 41, 0.12);
}

.stackly-blog-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* Body content */
.stackly-blog-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stackly-blog-meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: gold;
  align-items: center;
}
.stackly-blog-title {
  margin: 0;
  font-size: 18px;
  color: white;
  line-height: 1.25;
}
.stackly-blog-excerpt {
  margin: 0;
  color:goldenrod;
  font-size: 14px;
  flex: 1 0 auto;
}

/* tags */
.stackly-blog-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stackly-blog-tag {
  background: #eef4f8;
  color: #0f2b3a;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 8px;
}

/* footer actions */
.stackly-blog-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  align-items: center;
}
.stackly-blog-read-btn {
  background: #0d1a29;
  color: #f0c419;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.stackly-blog-read-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* small meta on right */
.stackly-blog-meta:last-child {
  font-size: 13px;
  color: #6c7b86;
}

/* ========== PAGINATION ========== */
.stackly-blog-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 30px 0 60px;
}
.stackly-blog-page-btn {
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e9eff3;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13, 26, 41, 0.06);
  font-weight: 600;
}
.stackly-blog-page-btn:hover { transform: translateY(-2px); }
.stackly-blog-page-btn.active {
  background: #0d1a29;
  color: #f0c419;
  border-color: #0d1a29;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .stackly-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stackly-blog-thumb {
    height: 160px;
  }
}
@media (max-width: 700px) {
  .stackly-blog-grid {
    grid-template-columns: 1fr;
  }
  .stackly-blog-thumb {
    height: 220px;
  }
  .stackly-blog-container {
    padding: 0 14px;
  }
}

/* small helper utilities (optional) */
.stackly-hide-on-mobile { display: inline-block; }
@media (max-width:700px) {
  .stackly-hide-on-mobile { display: none; }
}






/* contact.css */

/* Scoped styles only — no :root or body selectors */
.contact-page {
min-height: 100vh;
display: grid;
grid-template-columns: 1fr 480px;
gap: 48px;
padding: 48px;
box-sizing: border-box;
background-color: #0d1a29; /* requested background */
color: #d4af37; /* gold text where appropriate */
font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.contact-hero {
border: 2px solid #ffffff; /* white border for hero */
padding: 24px;
border-radius: 12px;
animation: fadeInUp 600ms ease both;
}

.contact-hero h1 {
margin: 0 0 8px 0;
color: #d4af37; /* gold main heading */
font-size: 2rem;
}

.contact-hero p { margin: 0; color: #ffffff; }

.media-row { display: flex; gap: 16px; align-items: center; margin-top: 16px; }

.contact-image { width: 240px; height: 150px; overflow: hidden; border-radius: 10px; border: 1px solid rgba(212,175,55,0.15); background: #000; display:flex; align-items:center; justify-content:center; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.05); transition: opacity 420ms ease, transform 420ms ease; }
.contact-image img.loaded { opacity: 1; transform: scale(1); }

.stackly-box { color: #fff; display:flex; flex-direction:column; gap:6px; }
.stackly-name { color: #d4af37; margin:0; font-weight:700; }
.stackly-info { color: rgba(255,255,255,0.9); font-size:0.92rem; }

.contact-form {
background: rgba(255,255,255,0.02);
padding: 20px;
border-radius: 10px;
border: 1px solid rgba(212,175,55,0.12);
display: grid;
gap: 12px;
margin-top: 18px;
animation: fadeInUp 700ms ease 120ms both;
}

.field { display:flex; flex-direction:column; gap:6px; }
label { font-size: 0.9rem; color: #d4af37; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.65); color: #fff; font-size: 0.95rem; outline: none; transition: box-shadow 180ms ease, transform 180ms ease; }
input:focus, textarea:focus, select:focus { box-shadow: 0 6px 18px rgba(0,0,0,0.45); transform: translateY(-2px); }
textarea { min-height: 100px; resize: vertical; }

.form-row { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }

.error { color: #ff6b6b; font-size: 0.85rem; min-height: 18px; }
.note { margin-left:auto; color: rgba(255,255,255,0.7); font-size:0.85rem; align-self:center; }

.btn-row { display:flex; gap:12px; align-items:center; }

/* Buttons — black text, gold border; on hover reversed */
.btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 18px; border-radius:8px; cursor:pointer; font-weight:600; background: black; color: gold; border: 2px solid #d4af37; min-height:44px; transition: all 200ms ease; }
.btn:hover, .btn:focus { background: gold; color: #000; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.btn.secondary {
  background: black;
  color: #d4af37;          /* gold text */
  border: 2px solid #d4af37;
  border-style: solid;
  transition: all 0.25s ease;
}

/* Hover Effect */
.btn.secondary:hover {
  background: #d4af37;     /* gold background */
  color: black;            /* black text */
  border-color: #d4af37;   /* match background */
}


/* aside */
.contact-aside { display:flex; flex-direction:column; gap:20px; }
.map-card { border-radius: 10px; overflow:hidden; height:360px; border:1px solid #ffffff; background:#000; animation: fadeIn 700ms ease 180ms both; }
.map-card iframe { width:100%; height:100%; border:0; display:block; }
.info-card { border-radius:10px; padding:16px; border:1px solid #ffffff; color:#fff; background: rgba(255,255,255,0.02); animation: fadeIn 700ms ease 220ms both; }
.info-card h3 { margin:0 0 6px 0; color:#d4af37; }

/* subtle form invalid shake animation */
@keyframes shake {
10%, 90% { transform: translateX(-1px); }
20%, 80% { transform: translateX(2px); }
30%, 50%, 70% { transform: translateX(-4px); }
40%, 60% { transform: translateX(4px); }
}

@keyframes fadeInUp {
from { opacity:0; transform: translateY(12px); }
to { opacity:1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* responsive */
@media (max-width: 900px) {
.contact-page { grid-template-columns: 1fr; padding: 28px; }
.form-row { grid-template-columns: 1fr; }
.contact-aside { order: 2; }
}





/* =========================
  CONTACT PAGE — Mobile polish
  Paste AFTER your existing contact.css
   — pure CSS (no JS)
   — touch-friendly & compact on small screens
  ========================= */

/* --- Global tweaks for smaller viewports --- */
@media (max-width: 900px) {
  .contact-page {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 18px;
  }

  .contact-hero {
    padding: 18px;
    border-width: 1px;
    border-radius: 10px;
  }

  .contact-hero h1 { font-size: 1.5rem; }
  .contact-hero p  { font-size: 0.95rem; color: #ffffffcc; }

  .media-row { gap: 12px; justify-content: center; flex-wrap:wrap; }
  .contact-image { width: 100%; height: 160px; max-width: 480px; }
  .contact-image img { object-fit: cover; }

  .stackly-box { align-items: center; text-align:center; }

  /* Aside moves below form */
  .contact-aside { order: 2; width: 100%; }
  .contact-form { order: 1; width: 100%; margin-top: 6px; padding: 16px; }

  .map-card { height: 260px; }

  /* Make CTAs full-width / stacked on mobile for easier tapping */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn, .btn.secondary, .stackly-brok-cta { width: 100%; min-height: 48px; padding: 12px 14px; }

  /* inputs fill full width */
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select,
  .contact-form textarea { font-size: 1rem; padding: 12px 14px; }

  /* reduce shadow intensity for small screens */
  .stackly-brok-card, .contact-hero, .contact-form, .map-card, .info-card {
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  }
}

/* --- Very small phones — extra condense --- */
@media (max-width: 420px) {
  .contact-page { padding: 18px 12px; gap: 18px; }
  .contact-hero h1 { font-size: 1.25rem; }
  .contact-hero p { font-size: 0.9rem; }

  .contact-image { height: 140px; }

  .map-card { height: 200px; }

  .form-row { gap: 8px; }
  .btn, .btn.secondary { font-size: 15px; padding: 12px; min-height:46px; }
}

/* --- Fix grid-row behavior: keep form above aside on most phones --- */
@media (max-width: 700px) {
  .contact-aside { order: 2; }
  .contact-form { order: 1; }
}

/* --- Improve focus and contrast for keyboard users --- */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.btn:focus,
.btn.secondary:focus {
  outline: 3px solid rgba(212,175,55,0.14);
  outline-offset: 3px;
  box-shadow: 0 10px 30px rgba(212,175,55,0.06);
  transform: translateY(-2px);
}

/* --- Ensure form errors are visible on small screens --- */
.error { font-size: 0.9rem; line-height:1.2; min-height: 20px; }

/* --- Make contact-image content accessible if JS is missing (fade-in fallback) --- */
.contact-image img { opacity: 1; transform: none; }

/* --- Reduce motion if user prefers reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* --- Utility: content centering helper used optionally --- */
.contact-page.centered {
  align-items: start;
  justify-content: center;
}

/* --- Small polish to improve readability of gold on dark bg --- */
.contact-hero p, .stackly-info, .note { color: #ffffffcc; }
.contact-hero h1, .stackly-name, .info-card h3 { color: #d4af37; }

/* --- If you want the form-buttons to appear as icon + text on desktop but full width on mobile --- */
@media (min-width: 901px) {
  .btn-row { align-items: center; flex-direction: row; }
  .btn .icon, .btn.secondary .icon { margin-right: 8px; display:inline-flex; align-items:center; }
}

/* --- Final safety: ensure inputs do not overflow container width --- */
.contact-form input, .contact-form textarea, .contact-form select { max-width: 100%; box-sizing: border-box; }

.login-btn {
  padding: 10px 20px;
  background: black;        /* button background */
  color: gold;             /* text color */
  border: 2px solid black;  /* surrounded black border */
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover reversed */
.login-btn:hover {
  background: gold;   /* becomes white */
  color: black;        /* text becomes black */
  border-color: gold; /* border matches background */
}



/* ===========================
  FOOTER — Mobile-centered enhancements
  Paste after your existing footer CSS
  =========================== */

/* 1) Small screens: stack columns, center content */
@media (max-width: 900px) {
  .footer-wrap {
    grid-template-columns: 1fr;       /* single column */
    gap: 20px;
    padding-left: 18px;
    padding-right: 18px;
    justify-items: center;           /* centers column content horizontally */
    text-align: center;              /* default center for mobile */
  }

  /* Make each column full width but visually centered */
  .footer-col {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Brand: center logo & desc */
  .footer-brand { display:flex; flex-direction:column; align-items:center; gap:12px; }
  .footer-brand .footer-logo { margin: 0 auto; }
  .footer-desc { margin: 0 auto; max-width: 100%; }

  /* Links: vertical, centered, larger tap targets */
  .footer-col ul { align-items: center; }
  .footer-col li { width: 100%; max-width: 420px; }
  .footer-col a {
    display: inline-block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
  }

  /* Newsletter: full-width form and button; stack vertically */
  .footer-news .footer-news-form .input-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    align-items: stretch;
  }
  #footerNewsletterEmail { width: 100%; box-sizing: border-box; }
  .subscribe-btn { width: 100%; padding: 12px 14px; }

  /* Social icons centered with bigger tap area */
  .footer-socials { justify-content: center; margin-top: 12px; }
  .social-btn {
    width:48px; height:48px; font-size:16px;
    display:inline-flex; align-items:center; justify-content:center;
  }

  /* Footer-bottom: stack & center */
  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Make bottom legal links wrap and center */
  .footer-bottom-inner .legal, .footer-bottom-inner .policies {
    width: 100%;
    max-width: 720px;
  }
}

/* 2) Very small screens (phones) — tighten spacing and increase tap targets */
@media (max-width: 420px) {
  .footer-wrap { gap: 16px; padding-left: 12px; padding-right: 12px; }
  .footer-col h4 { font-size: 20px; }
  .footer-desc { font-size: 14px; line-height: 1.5; }
  #footerNewsletterEmail { font-size: 15px; padding: 10px 12px; }
  .subscribe-btn { font-size: 15px; padding: 12px; }
  .social-btn { width:44px; height:44px; }
  .footer-bottom { padding-bottom: 22px; }
}

/* 3) Accessibility & focus: clear outlines for keyboard users */
.footer-col a:focus,
.subscribe-btn:focus,
#footerNewsletterEmail:focus,
.social-btn:focus {
  outline: 3px solid rgba(212,175,55,0.14);
  outline-offset: 3px;
  box-shadow: 0 10px 30px rgba(212,175,55,0.06);
}

/* 4) Smooth show/hide for mobile dropdowns (polish) */
.mobile-dropdown { transition: max-height 260ms cubic-bezier(.2,.9,.2,1), opacity 200ms ease; }
.mobile-dropdown.show { opacity: 1; }

/* 5) Small visual polish: keep column heads left-aligned on desktop but centered on mobile */
@media (max-width: 900px) {
  .footer-col h4 { text-align: center; }
}
@media (min-width: 901px) {
  .footer-wrap { justify-items: start; }
  .footer-col { align-items: flex-start; text-align: left; }
}

/* 6) Optional: reduce newsletter input max-height jumping on slow devices */
#footerNewsletterEmail { transition: box-shadow 160ms ease, border-color 160ms ease; }

/* 7) Ensure no unexpected overflow on very long content */
.footer-wrap, .footer-bottom-inner { box-sizing: border-box; overflow: visible; }





/* Dropdown panel (desktop) - improved, no flicker */
.has-dropdown {
  position: relative;
}

/* hidden state */
.dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  top: 100%;                       /* keep it touching the parent */
  background: var(--secondary);
  min-width: 200px;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);

  /* Use visibility/opacity instead of display for smooth hover */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  z-index: 100;
}

/* visible state */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0); /* slide up slightly into place */
  transition: opacity 180ms ease, transform 180ms ease;
}

/* dropdown list styles */
.dropdown li { padding: 6px 6px; }
.dropdown li a {
  display: block;
  color: var(--light);
  font-weight: 500;
  padding: 6px;
  border-radius: 6px;
}
.dropdown li a:hover {
  background: rgba(212,175,55,0.08);
  color: var(--accent);
}








/* -------------------------
   MOBILE PANEL — Unified Styles
   Replace your current mobile-panel CSS with this
   ------------------------- */

.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--primary);
  padding: 18px;               /* slightly smaller padding for consistent spacing */
  z-index: 120;
  overflow: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* header */
.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-logo {
  height: 60px;
  display: inline-block;
}
.mobile-logo img { height: 100%; width: auto; display: block; }

/* close button */
.close-btn {
  background: transparent;
  border: 0;
  color: var(--light);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  border-radius: 8px;
}
.close-btn:focus { outline: 2px solid rgba(212,175,55,0.18); }

/* NAV LIST - unified box model */
.mobile-nav {
  width: 100%;
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ensure every li is full width */
.mobile-nav li {
  width: 100%;
  box-sizing: border-box;
}

/* base style shared by links and toggle buttons */
.mobile-nav a,
.mobile-drop-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between; /* keeps label left and arrow/right items aligned */
  width: 100%;
  box-sizing: border-box;
  padding: 14px 12px;              /* consistent padding for each item */
  font-size: 16px;                /* consistent font size */
  line-height: 1.2;
  text-decoration: none;
  color: var(--light);
  background: transparent;
  border-radius: 10px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

/* hover / active */
.mobile-nav a:hover,
.mobile-drop-toggle:hover {
  background: rgba(255,255,255,0.02);
  color: var(--accent);
}

/* Arrow inside toggle */
.mobile-drop-toggle .arrow {
  transition: transform 220ms var(--transition), color 160ms ease;
  font-size: 14px;
  margin-left: 8px;
  flex: 0 0 auto;
}

/* expanded state */
.mobile-drop-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Submenu (collapsed) — animate with max-height for smooth open/close */
.mobile-dropdown {
  display: block;                  /* keep it in flow so widths align */
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease, padding 180ms ease;
  padding-left: 12px;              /* indent items slightly */
  margin-top: 6px;
  box-sizing: border-box;
}

/* submenu open */
.mobile-dropdown.show {
  max-height: 480px;               /* large enough for multiple items */
  padding-top: 6px;
  padding-bottom: 6px;
}

/* submenu items */
.mobile-dropdown li {
  width: 100%;
  margin: 0;
}
.mobile-dropdown li a {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
}
.mobile-dropdown li a:hover {
  background: rgba(255,255,255,0.03);
  color: var(--accent);
}

/* Login button (full width, consistent with nav items) */
.mobile-login {
  margin-top: 12px;
}
.mobile-login a,
.mobile-login .login-btn {
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

/* prefer accent background for login */
.mobile-login .login-btn {
  background: var(--accent);
  color: var(--primary);
  border: 0;
  cursor: pointer;
}
.mobile-login .login-btn:hover {
  filter: brightness(.98);
}

/* Accessibility: focus style for keyboard users */
.mobile-nav a:focus,
.mobile-drop-toggle:focus,
.mobile-dropdown li a:focus,
.mobile-login .login-btn:focus {
  outline: 3px solid rgba(212,175,55,0.14);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Small adjustment for very small screens */
@media (max-width: 380px) {
  .mobile-nav a,
  .mobile-drop-toggle { padding: 12px 10px; font-size: 15px; }
  .mobile-dropdown li a { font-size: 14px; padding: 8px 10px; }
}
