:root {
  --red: #e5242a;
  --dark: #0a0a0a;
  --ink: #111;
  --muted: #666;
  --line: #dedede;
  --soft: #f4f4f4;
  --pad: clamp(20px, 5vw, 72px);
  --nav-h: 72px;
  --max: 1180px;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html{
  scroll-behavior: smooth;
}

body{
  background: #fff;
  color: var(--ink);
  overflow-x: hidden;
}

img{
  display: block;
  max-width: 100%;
}

a{
  color: inherit;
  text-decoration: none !important;
}

button{
  font: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container{
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

/* ================= NAV ================= */

nav{
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.nav-logo img{
  width: 120px;
  height: 27px;
  object-fit: contain;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  list-style: none;
}

.nav-links a{
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  opacity: .92;
  white-space: nowrap;
  transition: .2s ease;
}

.nav-links a:hover{
  opacity: 1;
  text-decoration: none;
}

.nav-login{
  border-radius: 5px;
  padding: 10px 28px;
  background: #fff;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

/* ================= PAGE BG ================= */

.page-bg-wrap{
  position: relative;
  background: #fff;
  overflow: hidden;
}

.page-bg-wrap::before{
  content: "";
  position: absolute;
  top: 340px;
  right: -180px;
  width: 820px;
  height: 520px;
  background: radial-gradient(
    ellipse at 40% 40%,
    #FF764C 0%,
    #FCF7C0 25%,
    #FDA4EA 52%,
    #FFB97C 78%,
    transparent 100%
  );
  opacity: .58;
  filter: blur(194px);
  transform: rotate(-21deg);
  pointer-events: none;
  z-index: 0;
}

.page-bg-wrap::after{
  content: "";
  position: absolute;
  top: 700px;
  left: -160px;
  width: 480px;
  height: 360px;
  background: radial-gradient(
    ellipse at center,
    #FFB97C 0%,
    #FDA4EA 42%,
    #FCF7C0 70%,
    transparent 100%
  );
  opacity: .38;
  filter: blur(140px);
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 0;
}

/* ================= HERO ================= */

.contact-hero-outer{
  padding-top: calc(var(--nav-h) + 24px);
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.contact-hero{
  position: relative;
  height: clamp(260px, 33vw, 400px);
  overflow: hidden;
  border-radius: 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.contact-hero-bg{
  position: absolute;
  inset: 0;
  background: url('https://scravel.server55.net/public/assets/homepage/contact/contact.jpg') center/cover no-repeat;
}

.contact-hero-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.80) 25%,
    rgba(0,0,0,.48) 65%,
    rgba(0,0,0,.22)
  );
}

.contact-hero-content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(28px, 4vw, 56px);
  max-width: 700px;
}

.contact-hero-content h1{
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.01em;
}

.contact-hero-content .red{
  color: var(--red);
}

.contact-hero-content p{
  margin-top: 14px;
  color: rgba(255,255,255,.76);
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.65;
  max-width: 500px;
}

/* ================= OFFICE ================= */

.offices-section{
  position: relative;
  z-index: 1;
  padding: clamp(36px, 5vw, 64px) var(--pad);
}

.offices-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
}

.office-card{
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: clamp(22px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: .25s ease;
}

.office-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.11);
}

.office-icon{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fce8e8;
  display: grid;
  place-items: center;
}

.office-icon svg{
  width: 22px;
  height: 22px;
  color: var(--red);
}

.office-card h3{
  font-size: 15px;
  font-weight: 800;
}

.office-info{
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.office-info p{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #444;
  line-height: 1.5;
}

.office-info p svg{
  width: 13px;
  height: 13px;
  color: var(--red);
  flex: 0 0 auto;
}

/* ================= CONNECT ================= */

.connect-section{
  position: relative;
  z-index: 1;
  padding: 0 var(--pad) clamp(56px, 7vw, 88px);
}

.connect-inner{
  max-width: var(--max);
  margin: 0 auto;
}

.connect-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.connect-left h2{
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  margin-bottom: 10px;
}

.connect-left > p{
  font-size: 13.5px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  border: 1.5px solid #e2e2e2;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13px;
  background: #fafafa;
  outline: none;
  transition: .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: var(--red);
  background: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: #bbb;
}

.contact-form textarea{
  resize: vertical;
  min-height: 115px;
}

.submit-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: #1a1f2e;
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
  align-self: flex-start;
}

.submit-btn:hover{
  background: var(--red);
}

/* ================= MAP ================= */

.map-section{
  position: relative;
  z-index: 1;
  padding: 0 var(--pad) clamp(40px, 5vw, 64px);
}

.map-wrap{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  height: clamp(240px, 30vw, 360px);
  border-radius: 16px;
  overflow: hidden;
}

.map-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ================= APP ================= */

.app-banner img{
  width: 100%;
  display: block;
}

/* ================= FOOTER ================= */

.footer{
  background: #f3f3f3;
  color: #222;
  padding: 58px var(--pad) 26px;
  position: relative;
  z-index: 1;
}

.footer-top{
  display: grid;
  grid-template-columns: 1.25fr .8fr .9fr 1fr;
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.footer-logo{
  width: 184px;
  margin-bottom: 20px;
}

.footer-desc{
  max-width: 240px;
  color: #555;
  font-size: 13px;
  line-height: 1.65;
}

.footer h4{
  margin-bottom: 22px;
  color: #232323;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.footer-links{
  display: grid;
  gap: 18px;
  list-style: none;
}

.footer-links a{
  color: #222;
  font-size: 14px;
}

.footer-links a:hover{
  color: var(--red);
}

.mail-line{
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 38px;
}

.mail-line svg{
  width: 14px;
  height: 14px;
}

.made{
  color: #555;
  font-size: 14px;
}

.made span{
  color: #ff7a00;
  font-weight: 900;
}

.footer-divider{
  height: 1px;
  background: var(--line);
  margin: 62px 0 30px;
}

.footer-bottom{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 20px;
}

.footer-bottom-logo{
  width: 78px;
  margin-bottom: 10px;
}

.footer-copy{
  color: #555;
  font-size: 12px;
}

.footer-actions{
  justify-self: end;
  display: flex;
  gap: 12px;
}

.footer-btn{
  min-width: 78px;
  border-radius: 11px;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 0 #222;
}

.footer-btn.login{
  border: 2px solid #222;
  background: #fff;
  color: #222;
}

.footer-btn.try{
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
}

/* ================= CONNECT IMAGE (with quote overlay) ================= */

.connect-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: 18px;
  overflow: hidden;
}

.connect-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* gradient so text is legible */
.connect-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(15, 10, 35, 0.72) 68%,
    rgba(10, 6, 28, 0.88) 100%
  );
  pointer-events: none;
}

.img-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 28px 26px 26px;
}

.img-overlay-text blockquote {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.90);
  margin-bottom: 12px;
}

.img-overlay-author .author-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 980px){

  nav{
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-links{
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 8px;
  }

  .offices-grid{
    grid-template-columns: 1fr 1fr;
  }

  .connect-grid{
    grid-template-columns: 1fr;
  }

  .footer-top{
    grid-template-columns: repeat(2,1fr);
  }

  .footer-bottom{
    grid-template-columns: 1fr;
  }

  .footer-actions{
    justify-self: start;
  }
}

@media (max-width: 640px){

  :root{
    --nav-h: 118px;
  }

  .offices-grid{
    grid-template-columns: 1fr;
  }

  .form-row{
    grid-template-columns: 1fr;
  }

  .footer-top{
    grid-template-columns: 1fr;
  }

  .footer-bottom{
    grid-template-columns: 1fr;
  }

  .footer-actions{
    justify-self: start;
  }
}